No method error - undefined method `root' for nil:NilClass:

Hello! I’m running a BLAST using a newly created database and I got the following error which I did not get when I ran sequenceserver before. This time, I also encountered another issue and I solved it by looking through your other posts suggesting downloading BLAST 2.9.0 and I downloaded BLAST 2.13.0 and did ```
sequenceserver -s -b /path/to/latest/blast/binaries


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

Hello Lyin :wave:,

it looks like you’re using an older version of sequenceserver (version 1.0.14). To use something that works with the latest blast, its probably worth using the 2.0 release of sequenceserver.

Please let us know how it goes. Kind regards,

Yannick

Thank you Yannick! This solves my problem!

1 Like