Newsgroup: it.comp.os.linux.sys
Titolo: Disperazione: aggiornamento Redmine

Ciao a tutti,
 
 
non capisco perché ogni volta che aggiorno una stable di Debian di un 
sistema con Redmine debba sempre essere un bagno di sangue... :-/
 
Per il passaggio da Wheezy a Jessie, ho proceduto come segue (i punti da 1 a 
10 riguardavano la conversione della VM da OpenVZ a KVM):
 
11. # vi /etc/apt/sources.list (wheezy -> jessie)
12. # apt-get update
13. # apt-get -fuV upgrade
14. # apt-get install -fuV ruby-mysql2 redmine
 
Il punto 14 è stato necessario perché altrimenti con un semplice dist-
upgrade apt mi avrebbe rimosso redmine. ruby-mysql2 ho scoperto essere 
necessario tra un tentativo e l'altro...
 
15. # dpkg-reconfigure -plow redmine
 
Questo non mi ricordo se effettivamente necessario avendo già installato 
ruby-mysql2, dovrei riprovare da capo...
 
16. # apt-get -fuV dist-upgrade
 
17. # cd /usr/share/redmine/
    # RAILS_ENV=production rake db:migrate
 
E non funziona! :-/
 
Quando provo ad accedere a Remine con un browser ottengo un "Internal Server 
Error" e nei log di apache questi errori:
 
core:error End of script output before headers: dispatch.fcgi
 
fcgid:warn Connection reset by peer mod_fcgid: error reading data from 
FastCGI server
 
 
Qualche idea?
 
 
Ciao,
  Void

 Server Error" e nei log di apache questi errori:
 
==> error.log <==
config.eager_load is set to nil. Please update your config/environments/*.rb 
files accordingly:
 
  * development - set it to false
  * test - set it to false (unless you use a tool that preloads your test 
environment)
  * production - set it to true
 
/usr/lib/ruby/vendor_ruby/active_record/connection_adapters/connection_specification.rb:257:in 
`resolve_symbol_connection': 'development' database is not configured. 
Available: ["production"] (ActiveRecord::AdapterNotSpecified)
        from 
/usr/lib/ruby/vendor_ruby/active_record/connection_adapters/connection_specification.rb:224:in 
`resolve_connection'
        from 
/usr/lib/ruby/vendor_ruby/active_record/connection_adapters/connection_specification.rb:152:in 
`resolve'
        from 
/usr/lib/ruby/vendor_ruby/active_record/connection_adapters/connection_specification.rb:182:in 
`spec'
        from 
/usr/lib/ruby/vendor_ruby/active_record/connection_handling.rb:50:in 
`establish_connection'
        from /usr/lib/ruby/vendor_ruby/active_record/railtie.rb:129:in 
`block (2 levels) in <class:Railtie>'
        from 
/usr/lib/ruby/vendor_ruby/active_support/lazy_load_hooks.rb:38:in 
`instance_eval'
        from 
/usr/lib/ruby/vendor_ruby/active_support/lazy_load_hooks.rb:38:in 
`execute_hook'
        from 
/usr/lib/ruby/vendor_ruby/active_support/lazy_load_hooks.rb:28:in `block in 
on_load'
        from 
/usr/lib/ruby/vendor_ruby/active_support/lazy_load_hooks.rb:27:in `each'
        from 
/usr/lib/ruby/vendor_ruby/active_support/lazy_load_hooks.rb:27:in `on_load'
        from /usr/lib/ruby/vendor_ruby/active_record/railtie.rb:118:in 
`block in <class:Railtie>'
        from /usr/lib/ruby/vendor_ruby/rails/initializable.rb:30:in 
`instance_exec'
        from /usr/lib/ruby/vendor_ruby/rails/initializable.rb:30:in `run'
        from /usr/lib/ruby/vendor_ruby/rails/initializable.rb:55:in `block 
in run_initializers'
        from /usr/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
        from /usr/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in 
each_strongly_connected_component'
        from /usr/lib/ruby/2.1.0/tsort.rb:427:in 
`each_strongly_connected_component_from'
        from /usr/lib/ruby/2.1.0/tsort.rb:347:in `block in 
each_strongly_connected_component'
        from /usr/lib/ruby/2.1.0/tsort.rb:345:in `each'
        from /usr/lib/ruby/2.1.0/tsort.rb:345:in `call'
        from /usr/lib/ruby/2.1.0/tsort.rb:345:in 
`each_strongly_connected_component'
        from /usr/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
        from /usr/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
        from /usr/lib/ruby/vendor_ruby/rails/initializable.rb:54:in 
`run_initializers'
        from /usr/lib/ruby/vendor_ruby/rails/application.rb:300:in 
`initialize!'
        from /usr/share/redmine/config/environment.rb:14:in `<top 
(required)>'
        from /usr/share/redmine/public/dispatch.fcgi:4:in `require'
        from /usr/share/redmine/public/dispatch.fcgi:4:in `<main>'
 
==> redmine.ors.it-error.log <==
[Thu May 05 15:49:40.625086 2016] [fcgid:warn] [pid 1755] (104)Connection 
reset by peer: [client 
192.168.1.101:55586
] mod_fcgid: error reading data 
from FastCGI server
[Thu May 05 15:49:40.625157 2016] [core:error] [pid 1755] [client 
192.168.1.101:55586
] End of script output before headers: dispatch.fcgi
 
==> redmine.ors.it-access.log <==
192.168.1.101 - - [05/May/2016:15:49:39 +0200] "GET / HTTP/1.1" 500 919 "-" 
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) 
Chrome/49.0.2623.108 Safari/537.36"
192.168.1.101 - - [05/May/2016:15:49:40 +0200] "GET /favicon.ico HTTP/1.1" 
200 8383 "
https://redmine.ors.it/
" "Mozilla/5.0 (X11; Linux x86_64) 
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.108 Safari/537.36"
 

 config/environments/*.rb files accordingly:
 
Questi file sono configurati come richiesto, ma sembra che vengano ignorati 
o non trovati...
 
Commentando in /etc/redmine/default/session.yml le righe come segue:
 
production:
  key: _redmine_default
  secret: ...
 
#development:
#  key: _redmine_default
#  secret: ...
 
#test:
#  key: _redmine_default
#  secret: ...
 
... si riducono i messaggi, di errore, ma non sono sicuro che sia un buon 
sistema e per ora sono fermo qui:
 
==> /var/log/apache2/error.log <==
/usr/share/redmine/config/application.rb:73:in `<class:Application>': 
undefined method `[]' for nil:NilClass (NoMethodError)
        from /usr/share/redmine/config/application.rb:20:in 
`<module:RedmineApp>'
        from /usr/share/redmine/config/application.rb:19:in `<top 
(required)>'
        from /usr/share/redmine/config/environment.rb:2:in `require'
        from /usr/share/redmine/config/environment.rb:2:in `<top 


... alla fine è bastato installare anche libapache2-mod-passenger... :-/