mazi-project / portal

This is the portal of the MAZI toolkit
http://www.mazizone.eu/toolkit/
MIT License
18 stars 6 forks source link

etherpad import fails in v3.0.1 #160

Closed panosnethood closed 5 years ago

panosnethood commented 5 years ago

Hi, I have installed v3.0.1 and I tried to import an etherpad instance from v2.6.

I got this error, and now etherpad is not running anymore:

E, [2018-12-28 20:26:04 #642] ERROR -- : undefined method []' for nil:NilClass E, [2018-12-28 20:26:04 #642] ERROR -- : /root/portal/lib/routes/mazi_config.rb:216:inblock in registered' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:1635:in call' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:1635:inblock in compile!' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:992:in block (3 levels) in route!' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:1011:inroute_eval' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:992:in block (2 levels) in route!' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:1040:inblock in process_route' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:1038:in catch' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:1038:inprocess_route' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:990:in block in route!' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:989:ineach' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:989:in route!' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:1097:inblock in dispatch!' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:1076:in block in invoke' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:1076:incatch' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:1076:in invoke' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:1094:indispatch!' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:924:in block in call!' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:1076:inblock in invoke' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:1076:in catch' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:1076:ininvoke' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:924:in call!' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:913:incall' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/rack-2.0.5/lib/rack/session/abstract/id.rb:232:in context' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/rack-2.0.5/lib/rack/session/abstract/id.rb:226:incall' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/rack-protection-2.0.3/lib/rack/protection/xss_header.rb:18:in call' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/rack-protection-2.0.3/lib/rack/protection/path_traversal.rb:16:incall' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/rack-protection-2.0.3/lib/rack/protection/json_csrf.rb:26:in call' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/rack-protection-2.0.3/lib/rack/protection/base.rb:50:incall' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/rack-protection-2.0.3/lib/rack/protection/base.rb:50:in call' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/rack-protection-2.0.3/lib/rack/protection/frame_options.rb:31:incall' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/rack-2.0.5/lib/rack/null_logger.rb:9:in call' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/rack-2.0.5/lib/rack/head.rb:12:incall' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:194:in call' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:1958:incall' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:1502:in block in call' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:1729:insynchronize' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/sinatra-2.0.3/lib/sinatra/base.rb:1502:in call' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/thin-1.7.2/lib/thin/connection.rb:86:inblock in pre_process' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/thin-1.7.2/lib/thin/connection.rb:84:in catch' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/thin-1.7.2/lib/thin/connection.rb:84:inpre_process' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/thin-1.7.2/lib/thin/connection.rb:53:in process' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/thin-1.7.2/lib/thin/connection.rb:39:inreceive_data' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/eventmachine-1.2.7/lib/eventmachine.rb:195:in run_machine' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/eventmachine-1.2.7/lib/eventmachine.rb:195:inrun' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/thin-1.7.2/lib/thin/backends/base.rb:73:in start' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/thin-1.7.2/lib/thin/server.rb:162:instart' E, [2018-12-28 20:26:04 #642] ERROR -- : /var/lib/gems/2.3.0/gems/thin-1.7.2/lib/thin/server.rb:148:in start' E, [2018-12-28 20:26:04 #642] ERROR -- : mazi_portal_server.rb:181:in'

panosnethood commented 5 years ago

In another fresh installation this worked, so perhaps there is a combination of actions that causes the error. I will explore more and report if I will manage to reproduce it again.

haniavis commented 5 years ago

I just did the procedure and it went well with no errors. The only thing is that I had to manually restart Etherpad (I did it through the admin panel) to see the imported pads.