Skip to content

Instantly share code, notes, and snippets.

View phaidros7's full-sized avatar

artisan phaidros phaidros7

  • |||subsignal
  • leipzig / europe / terra / milky way
View GitHub Profile
diaspora@rhizome:/srv/diaspora-dev$ /usr/local/bin/chruby-exec 2.3 -- bundle exec puma -b unix:///tmp/rhizome.sock -e production
Puma starting in single mode...
* Version 3.6.2 (ruby 2.3.3-p222), codename: Sleepy Sunday Serenity
* Min threads: 0, max threads: 16
* Environment: production
Rack::SSL is enabled
! Unable to load application: NameError: uninitialized constant Devise::Models::TokenAuthenticatable
bundler: failed to load command: puma (/srv/diaspora-dev/vendor/bundle/ruby/2.3.0/bin/puma)
NameError: uninitialized constant Devise::Models::TokenAuthenticatable
/srv/diaspora-dev/vendor/bundle/ruby/2.3.0/gems/devise-4.2.0/lib/devise/models.rb:88:in `const_get'
Cron <list@srv> /usr/bin/python -S /var/lib/mailman/cron/gate_news
Traceback (most recent call last):
File "/var/lib/mailman/cron/gate_news", line 293, in <module>
main()
File "/var/lib/mailman/cron/gate_news", line 273, in main
process_lists(lock)
File "/var/lib/mailman/cron/gate_news", line 214, in process_lists
conn, first, last = open_newsgroup(mlist)
File "/var/lib/mailman/cron/gate_news", line 103, in open_newsgroup
diaspora@gargamel:~/rhizome-dev$ RAILS_ENV=production bin/rake tmp:cache:clear assets:precompile
Rack::SSL is enabled
rake aborted!
ExecJS::RuntimeError: SyntaxError: Unexpected token: operator (<) (line: 5, col: 0, pos: 4)
Error
at new JS_Parse_Error (/tmp/execjs20160915-1483-2541atjs:3623:11948)
at js_error (/tmp/execjs20160915-1483-2541atjs:3623:12167)
at croak (/tmp/execjs20160915-1483-2541atjs:3623:21858)
at token_error (/tmp/execjs20160915-1483-2541atjs:3623:21995)
su - munin --shell=/bin/bash /usr/bin/munin-cron
DBD::SQLite::st execute failed: called with 3 bind variables when 6 are needed at /usr/share/perl5/Munin/Master/Update.pm line 282.
Can't use string ("snmp_ups_power.graph_args") as an ARRAY ref while "strict refs" in use at /usr/share/perl5/Munin/Master/Update.pm line 303.
snmp_ups_power.update no
snmp_ups_power.graph_args --base 1000 -l 0
snmp_ups_power.graph_category UPS
snmp_ups_power.graph_title Aggregated output power
snmp_ups_power.graph_vlabel Watts
snmp_ups_power.output.label Output power
snmp_ups_power.graph_order output
snmp_ups_power.output.sum \
server1:icecast_duration.avg \
server2:icecast_duration.avg
[2015-12-16T13:32:28] INFO PID-22699 TID-69900831085360 Rails: Started POST "/users/sign_in" for 146.0.105.115 at 2015-12-16 13:32:28 +0100
[2015-12-16T13:32:28] INFO PID-22699 TID-69900831085360 ActionController::Base: Processing by SessionsController#create as HTML
[2015-12-16T13:32:28] INFO PID-22699 TID-69900831085360 ActionController::Base: Parameters: {"utf8"=>"�", "authenticity_token"=>"On1nXhUXZ/vGp76ck/Twp+qdOcFGun8XfLXNoFRPWU6FgC6FolW349hN22OJh+0nFvgSFRPED5fv4wJadxPQQw==", "user"=>{"username"=>"hfbk", "password"=>"[FILTERED]", "remember_me"=>"1"}, "commit"=>"Sign in"}
[2015-12-16T13:32:28] WARN PID-22699 TID-69900831085360 SessionsController: Can't verify CSRF token authenticity
[2015-12-16T13:32:28] INFO PID-22699 TID-69900831085360 ActionController::Base: Redirected to https://rhizome.hfbk.net/stream
[2015-12-16T13:32:28] INFO PID-22699 TID-69900831085360 ActionController::Base: Completed 302 Found in 136ms (ActiveRecord: 7.6ms)
[2015-12-16T13:32:28] INFO PID-22699 TID-69900831085360 Rail
[2015-12-16T12:45:40] INFO PID-22223 TID-69998740099880 Rails: Started GET "/auth/twitter/callback" for 146.0.105.115 at 2015-12-16 12:45:40 +0100
[2015-12-16T12:45:40] INFO PID-22223 TID-69998740099880 ActionController::Base: Processing by ServicesController#create as HTML
[2015-12-16T12:45:40] INFO PID-22223 TID-69998740099880 ActionController::Base: Parameters: {"provider"=>"twitter"}
[2015-12-16T12:45:40] DEBUG PID-22223 TID-69998740099880 ActiveRecord::Base: User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 ORDER BY `users`.`id` ASC LIMIT 1
[2015-12-16T12:45:40] INFO PID-22223 TID-69998740099880 ActionController::Base: Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.3ms)
[2015-12-16T12:45:40] FATAL PID-22223 TID-69998740099880 Rails:
NoMethodError (undefined method `[]' for nil:NilClass):
app/controllers/services_controller.rb:50:in `abort_if_already_authorized'
lib/rack/chrome_frame.rb:39:in `call'
lib/unicorn_killer.rb:35:in `call'
/home/diaspora/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- net/ssh (LoadError)
from /home/diaspora/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `block in require'
from /home/diaspora/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in `load_dependency'
from /home/diaspora/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'
from /home/diaspora/.rvm/gems/ruby-2.1.5/gems/fog-1.34.0/lib/fog/joyent/compute.rb:3:in `<top (required)>'
from /home/diaspora/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'
from /home/diaspora/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `block in require'
from /home/diaspora/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.5/lib/active_support/d
I, [2015-12-14T13:54:02.212612 #27618] INFO -- : [diaspora:sidekiq:sidekiq1] sleeping for :start_grace 2.5
I, [2015-12-14T13:54:04.331904 #27618] INFO -- : [diaspora:web] switch :started [:starting => :up] (reason: crashed)
I, [2015-12-14T13:54:04.337191 #27618] INFO -- : [diaspora:web] <= restore
I, [2015-12-14T13:54:04.713686 #27618] INFO -- : [diaspora:sidekiq:sidekiq1] switch :started [:starting => :up] (reason: crashed)
I, [2015-12-14T13:54:04.714072 #27618] INFO -- : [diaspora:sidekiq:sidekiq1] <= restore
W, [2015-12-14T13:54:14.333556 #27618] WARN -- : [diaspora:web] check_alive: process <28077> not found
function insertJob(site,node,time,gets){
var connection = openConnection();
var sqlInsert = "INSERT INTO job_result (sites_ID, node_ID, site_loaded_files, site_loading_time) ";
sqlInsert += "VALUES ((SELECT ID from sites WHERE site_name='" + site + "'), ";
sqlInsert += " (SELECT ID from nodes WHERE node_name='" + node + "'),";
sqlInsert += gets + "," + time + ")";
var connection.query(sqlInsert, function(err, result) {
if (err) throw err;
connection.end();
// ?? return result.insertId);