Problem with ASpace Service starting after Plugin install
dcarlsonatsys opened this issue · 12 comments
Good Afternoon, I recently installed the aspace-import-excel plugin to my Test server. Its running AS 2.4.1. When attempting to restart the ASpace service to test the plugin I receive the below output in the achivessapce.out log:
You're seeing this error because you use JRuby::Rack::ErrorApp::ShowStatus
.
Internal Server Error (500)
Request Method: | GET |
---|---|
Request URL: | http://localhost:8089/config/enumerations |
[!] There was an error parsing `Gemfile`: You cannot specify the same gem twice with different version requirements. You specified: pry (>= 0) and pry (~> 0.11.3). Bundler cannot continue.
from /archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/Gemfile:58
-------------------------------------------
require 'asutils'
> ASUtils.load_plugin_gems(self)
-------------------------------------------
from /archivesspace/gems/gems/bundler-1.16.1/lib/bundler/dsl.rb:110:in `gem'
from (eval):6:in `<eval>'
from org/jruby/RubyBasicObject.java:1693:in `instance_eval'
from uri:classloader:/asutils.rb:245:in `block in load_plugin_gems'
from org/jruby/RubyArray.java:1734:in `each'
from uri:classloader:/asutils.rb:241:in `load_plugin_gems'
from /archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/Gemfile:58:in `<eval>'
from org/jruby/RubyBasicObject.java:1705:in `instance_eval'
from /archivesspace/gems/gems/bundler-1.16.1/lib/bundler/dsl.rb:47:in `eval_gemfile'
from /archivesspace/gems/gems/bundler-1.16.1/lib/bundler/dsl.rb:12:in `evaluate'
from /archivesspace/gems/gems/bundler-1.16.1/lib/bundler/definition.rb:35:in `build'
from /archivesspace/gems/gems/bundler-1.16.1/lib/bundler.rb:135:in `definition'
from /archivesspace/gems/gems/bundler-1.16.1/lib/bundler.rb:101:in `setup'
from /archivesspace/gems/gems/bundler-1.16.1/lib/bundler/setup.rb:20:in `<main>'
from org/jruby/RubyKernel.java:961:in `require'
from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:133:in `require'
from /archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/main.rb:1:in `<main>'
from org/jruby/RubyKernel.java:961:in `require'
from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55:in `require'
from /archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/main.rb:1:in `block in (root)'
from org/jruby/RubyBasicObject.java:1687:in `instance_eval'
from /archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/config.ru:1:in `(root)'
from /archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/config.ru:4:in `<main>'
from launcher/launcher.rb:92:in `start_server'
from launcher/launcher.rb:157:in `main'
from launcher/launcher.rb:261:in `<main>'
That continues in an endless loop an the pages never come up. Assistance is greatly appreciated.
Regards,
Yep Linux Debian Jessie to be exact. Thank you. I will give it another go. Much appreciated.
Ok no joy. Getting this:
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
[!] There was an error parsing Gemfile
: No such file or directory - /archivesspace/plugins/aspace-import-excel/Gemfile. Bundler cannot continue.
I then tried running it as myself:
root@asdgc:/archivesspace# su dcarlson scripts/initialize-plugin.sh aspace-import-excel
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the gems directory.
[!] There was an error parsing Gemfile
: No such file or directory - /archivesspace/plugins/aspace-import-excel/Gemfile. Bundler cannot continue.
[!] There was an error parsing Gemfile: No such file or directory - /archivesspace/plugins/aspace-import-excel/Gemfile. Bundler cannot continue.
This implies that the Gemfile isn't there; when you do an ls ~/archivesspace/plugins
, do you see aspace-import-excel ?
Depending on how you downloaded/unzipped the plugin, it may have ended up with the plugin being named aspace-import-excel-2.1.10, which you then rename to aspace-import-excel
Yes the file folder is there and shows aspace-import-excel as being in the directory of /archivesspace/plugins
It was originally named aspace-import-excel-master as I downloaded it via chrome and then copied it via WinSCP to the server.
I then I unzipped it and renamed it to just aspace-import-excel since that's what it calls for in the documentation for the config.rb
so when you ls -l ~/archivesspace/plugins/aspace-import-exel/Gemfile
, what do you see? The bundler is reporting that it can't find that file, which is why I asked you about the directory.
drwxr-xr-x 5 root root 4096 Jul 26 11:18 aspace-import-excel-master
drwxr-xr-x 9 root root 4096 Jul 26 11:19 gems
I looked for the gemfile and found it in:
/archivesspace/plugins/aspace-import-excel/aspace-import-excel-master
But it does not appear to have a Gemfile directly under /archivesspace/plugins/aspace-import-excel
OK:
The zip file from aspace-import-excel-master.zip should have been placed in
~/archivesspace/plugins
. If there already was a ~/archivesspace/plugins/aspace-import-excel
directory present, it should have been either deleted (rm -R ~/archivesspace/plugins/aspace-import-excel
) or renamed (mv ~/archivesspace/plugins/aspace-import-excel ~/archivesspace/plugins/aspace-import-excel-previous
). Then the following should have been done:
`$ cd ~/archivesspace/plugins
$ unzip aspace-import-excel-master.zip
$ ls -l aspace-import-excel-master # you should see a lot of files
$ mv aspace-import-excel-master aspace-import-excel
$ cd ~/archivesspace
$ scripts/initialize-plugin.sh aspace-import-excel
`
This should find the Gemfile, and the bundler should run smoothly.
Eureka. Not sure how the GemFile was getting smoked. But I got it working. Mucho Appreciado!
Yay! Closing this out...