integration with apache2

Hi, I am trying to integrate sequenceserver-1.0.14 into apache2 on an
Ubuntu 20.04.2 LTS server. During the installation (running
sudo gem install sequenceserver ) other gems were automatically
installed, for example rack-1.6.13 and sinatra-1.4.8. The installation
worked fine and I can run sequenceserver, but trying to integrate
it into apache2 using passenger failed. When typing the blast subdirectory
in the browser, I get an error message from the Phusion Passenger,
that something went wrong.

The file
/var/log/apache2/error.log said:
Message from application: Unable to activate sinatra-1.4.8,
because rack-2.0.7 conflicts with rack (~> 1.5) (Gem::ConflictError)

ruby-rack (version 2.0.7-2) was installed to resolve a dependency of
libapache2-mod-passenger. Now it seems to cause a version conflict with the
other gems, that were installed by sequenceserver.

Has anyone encountered this problem before? Is their an easy solution.

Here is the complete entry from the apache2 error log file:

[ 2021-02-22 19:44:18.5688 45739/7f0360214700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /var/lib/gems/2.7.0/gems/sequenceserver-1.0.14: An error occurred while starting up the preloader.
Error ID: f72260f4
Error details saved to: /tmp/passenger-error-wsCBbK.html
Message from application: Unable to activate sinatra-1.4.8, because rack-2.0.7 conflicts with rack (~> 1.5) (Gem::ConflictError)
/usr/lib/ruby/2.7.0/rubygems/specification.rb:2245:in raise_if_conflicts' /usr/lib/ruby/2.7.0/rubygems/specification.rb:1371:in activate’
/usr/lib/ruby/2.7.0/rubygems/specification.rb:1405:in block in activate_dependencies' /usr/lib/ruby/2.7.0/rubygems/specification.rb:1391:in each’
/usr/lib/ruby/2.7.0/rubygems/specification.rb:1391:in activate_dependencies' /usr/lib/ruby/2.7.0/rubygems/specification.rb:1373:in activate’
/usr/lib/ruby/2.7.0/rubygems.rb:215:in rescue in try_activate' /usr/lib/ruby/2.7.0/rubygems.rb:208:in try_activate’
/usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:161:in rescue in require' /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:156:in require’
config.ru:1:in block in <main>' /usr/lib/ruby/vendor_ruby/rack/builder.rb:55:in instance_eval’
/usr/lib/ruby/vendor_ruby/rack/builder.rb:55:in initialize' config.ru:1:in new’
config.ru:1:in <main>' /usr/share/passenger/helper-scripts/rack-preloader.rb:110:in eval’
/usr/share/passenger/helper-scripts/rack-preloader.rb:110:in preload_app' /usr/share/passenger/helper-scripts/rack-preloader.rb:156:in module:App
/usr/share/passenger/helper-scripts/rack-preloader.rb:30:in <module:PhusionPassenger>' /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in

[ 2021-02-22 19:44:18.5767 45739/7f0361d9e700 age/Cor/Con/CheckoutSession.cpp:283 ]: [Client 3-1] Cannot checkout session because a spawning error occurred. The identifier of the error is f72260f4. Please see earlier logs for details about the error.

I think using the candidate release of SequenceServer 2.0 will avoid the gem version conflict you are seeing:

sudo gem install --pre sequenceserver

May be uninstall the older version to be sure.

Priyam

Dear Priyam,

That worked perferfectly! Thanks for providing such great support.

Best,
Christian