Skip to content

Instantly share code, notes, and snippets.

View nowthatsamatt's full-sized avatar

Matthew Cupples nowthatsamatt

  • American Fork, UT
  • 08:44 (UTC -07:00)
View GitHub Profile
global
daemon
maxconn 256
log 127.0.0.1 local0 info
defaults
mode http log
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
@nowthatsamatt
nowthatsamatt / unicorn.errors
Created June 18, 2011 21:03
unicorn errors
I, [2011-06-18T20:50:47.132747 #18471] INFO -- : unlinking existing socket=/srv/domain.com.sock
I, [2011-06-18T20:50:47.133084 #18471] INFO -- : listening on addr=/srv/domain.com.sock fd=3
I, [2011-06-18T20:50:47.133431 #18471] INFO -- : Refreshing Gem list
Missing the Radiant gem. Please `gem install -v= radiant`, update your RADIANT_GEM_VERSION setting in config/environment.rb for the Radiant version you do have installed, or comment out RADIANT_GEM_VERSION to use the latest version installed.
root@domain:/srv/domain.com# gem list
*** LOCAL GEMS ***
bundler (1.0.15)
kgio (2.4.2)
minitest (1.6.0)
rack (1.3.0, 1.1.2)
radiant (0.9.1)
radius (0.6.1)
@nowthatsamatt
nowthatsamatt / failed chef run
Created June 20, 2011 17:10
failed chef run
compute-1.amazonaws.com [Mon, 20 Jun 2011 17:01:07 +0000] INFO: *** Chef 0.10.0 ***
compute-1.amazonaws.com [Mon, 20 Jun 2011 17:01:07 +0000] INFO: Client key /etc/chef/client.pem is not present - registering
compute-1.amazonaws.com [Mon, 20 Jun 2011 17:01:08 +0000] INFO: HTTP Request Returned 409 Conflict: Client already exists.
compute-1.amazonaws.com [Mon, 20 Jun 2011 17:01:10 +0000] INFO: Setting the run_list to ["role[overhaul]"] from JSON
compute-1.amazonaws.com [Mon, 20 Jun 2011 17:01:11 +0000] INFO: Run List is [role[overhaul]]
compute-1.amazonaws.com [Mon, 20 Jun 2011 17:01:11 +0000] INFO: Run List expands to [git, nagios::nrpe, mysql::client, mysql::server, ruby1.9, postfix, nginx, overhaul]
compute-1.amazonaws.com [Mon, 20 Jun 2011 17:01:11 +0000] INFO: Starting Chef Run for overhaul
compute-1.amazonaws.com [Mon, 20 Jun 2011 17:01:14 +0000] INFO: HTTP Request Returned 412 Precondition Failed: {"unsatisfiable_run_list_item":"(git >= 0.0.0)","non_existent_cookbooks":["Package runit"],"most_constraine
root@ubuntu:~# pecl install svn
downloading svn-1.0.1.tgz ...
Starting to download svn-1.0.1.tgz (24,716 bytes)
.........done: 24,716 bytes
4 source files, building
running: phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
root@ubuntu:~# php -v
PHP 5.3.2-1ubuntu4.11 with Suhosin-Patch (cli) (built: Dec 13 2011 18:49:27)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
[program:import_script]
command=RAILS_ENV=production bundle exec rails runner extras/import_script.rb
autorestart=true
directory=/srv/app/current
redirect_stderr=true
stdout_logfile=/srv/service_logs/import_script.log
stdout_logfile_maxbytes=500MB
stdout_logfile_backups=10
[program:stats_import_script_nba"]
command="RAILS_ENV=production bundle exec rails runner extras/stats_import_script_nba.rb"
autorestart=true
directory=/srv/app/current
redirect_stderr=true
stdout_logfile=/srv/service_logs/stats_import_script_nba.log
stdout_logfile_maxbytes=500MB
stdout_logfile_backups=10
; Sample supervisor config file.
;[unix_http_server]
;file=/tmp/supervisor.sock ; (the path to the socket file)
;chmod=0700 ; socket file mode (default 0700)
;chown=nobody:nogroup ; socket file uid:gid owner
;username=user ; (default is no username (open server))
;password=123 ; (default is no password (open server))
[inet_http_server] ; inet (TCP) server disabled by default
root@host:~# mysqldump -q database > database.sql
mysqldump: Error 1194: Table 'Saacblogscanarticles' is marked as crashed and should be repaired when dumping table `Saacblogscanarticles` at row: 47
root@host:~# mysql database -e"repair table Saacblogscanarticles"
+------------------------------------+--------+----------+-----------------------------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+------------------------------------+--------+----------+-----------------------------------------------------------------+
| database.Saacblogscanarticles | repair | info | Wrong bytesec: 51- 47- 57 at 364138120; Skipped |
| database.Saacblogscanarticles | repair | info | Wrong bytesec: 116-112- 58 at 363135916; Skipped |
| database.Saacblogscanarticles | repair | info | Key 1 - Found wrong stored record at 363003100 |
| databas