Error in gem installed sequenceserver while running blast search over nginx

Hello,

First thank you to developers for creating a nice frontend.

I am trying to run sequenceserver after installing with gem with nginx. I can easily access it but when a query is ran it throws below error:

NoMethodError - undefined method root' for nil:NilClass: /var/lib/gems/2.5.0/gems/sequenceserver-1.0.14/lib/sequenceserver/blast/report.rb:38:in generate’
/var/lib/gems/2.5.0/gems/sequenceserver-1.0.14/lib/sequenceserver/blast/report.rb:21:in initialize' /var/lib/gems/2.5.0/gems/sequenceserver-1.0.14/lib/sequenceserver/blast.rb:96:in new’
/var/lib/gems/2.5.0/gems/sequenceserver-1.0.14/lib/sequenceserver/blast.rb:96:in run' /var/lib/gems/2.5.0/gems/sequenceserver-1.0.14/lib/sequenceserver/routes.rb:135:in block in class:Routes’
/var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1611:in call' /var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1611:in block in compile!’
/var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:975:in block (3 levels) in route!' /var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:994:in route_eval’
/var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:975:in block (2 levels) in route!' /var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1015:in block in process_route’
/var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1013:in catch' /var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1013:in process_route’
/var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:973:in block in route!' /var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:972:in each’
/var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:972:in route!' /var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1085:in block in dispatch!’
/var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in block in invoke' /var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in catch’
/var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in invoke' /var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1082:in dispatch!’
/var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:907:in block in call!' /var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in block in invoke’
/var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in catch' /var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in invoke’
/var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:907:in call!' /var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:895:in call’
/var/lib/gems/2.5.0/gems/rack-1.6.13/lib/rack/head.rb:13:in call' /var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:182:in call’
/var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:2013:in call' /var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1487:in block in call’
/var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1787:in synchronize' /var/lib/gems/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1487:in call’
/var/lib/gems/2.5.0/gems/sequenceserver-1.0.14/lib/sequenceserver.rb:96:in call' /var/lib/gems/2.5.0/gems/rack-1.6.13/lib/rack/handler/webrick.rb:88:in service’
/usr/lib/ruby/2.5.0/webrick/httpserver.rb:140:in service' /usr/lib/ruby/2.5.0/webrick/httpserver.rb:96:in run’
/usr/lib/ruby/2.5.0/webrick/server.rb:307:in `block in start_thread’

I have one more question, root in nginx is dist folder where the sequenceserver is installed?

Thank you in advance.

Best,
Peeyush

It is not a requirement. Setting root in Nginx to SequenceServer’s dist folder will let Nginx serve the files directly which should be faster.