Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install. Error 500 #673

Closed
jeffersonalexsilva opened this issue Jan 7, 2017 · 7 comments
Closed

Can't install. Error 500 #673

jeffersonalexsilva opened this issue Jan 7, 2017 · 7 comments

Comments

@jeffersonalexsilva
Copy link

I try to install in my local machine and in my AWS. I can't install.
Please, help me.

Internal Server Error (500)
Request Method: GET
Request URL: http://localhost:8080/jobswork/
undefined method +' for nil:NilClass from /var/lib/tomcat8/webapps/jobswork/WEB-INF/config/initializers/010_devise.rb:6:in block in (root)' from /var/lib/tomcat8/webapps/jobswork/WEB-INF/gems/gems/devise-3.5.10/lib/devise.rb:282:in setup' from /var/lib/tomcat8/webapps/jobswork/WEB-INF/config/initializers/010_devise.rb:3:in

' from org/jruby/RubyKernel.java:974:in load' from /var/lib/tomcat8/webapps/jobswork/WEB-INF/gems/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:1:in block in (root)' from /var/lib/tomcat8/webapps/jobswork/WEB-INF/gems/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in load_dependency' from /var/lib/tomcat8/webapps/jobswork/WEB-INF/gems/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:268:in load' from /var/lib/tomcat8/webapps/jobswork/WEB-INF/gems/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:268:in block in load' from /var/lib/tomcat8/webapps/jobswork/WEB-INF/gems/gems/railties-4.2.7.1/lib/rails/engine.rb:652:in load_config_initializer' from /var/lib/tomcat8/webapps/jobswork/WEB-INF/gems/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:166:in instrument' from /var/lib/tomcat8/webapps/jobswork/WEB-INF/gems/gems/railties-4.2.7.1/lib/rails/engine.rb:651:in block in load_config_initializer' from org/jruby/RubyArray.java:1734:in each' from /var/lib/tomcat8/webapps/jobswork/WEB-INF/gems/gems/railties-4.2.7.1/lib/rails/engine.rb:616:in block in Engine' from org/jruby/RubyBasicObject.java:1704:in instance_exec' from /var/lib/tomcat8/webapps/jobswork/WEB-INF/gems/gems/railties-4.2.7.1/lib/rails/initializable.rb:30:in run' from /var/lib/tomcat8/webapps/jobswork/WEB-INF/gems/gems/railties-4.2.7.1/lib/rails/initializable.rb:55:in block in run_initializers' from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/tsort.rb:228:in block in tsort_each' from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/tsort.rb:350:in block in each_strongly_connected_component' from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/tsort.rb:422:in block in each_strongly_connected_component_from' from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/tsort.rb:431:in each_strongly_connected_component_from' from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/tsort.rb:420:in block in each_strongly_connected_component_from' from org/jruby/RubyArray.java:1734:in each' from /var/lib/tomcat8/webapps/jobswork/WEB-INF/gems/gems/railties-4.2.7.1/lib/rails/initializable.rb:44:in tsort_each_child' from org/jruby/RubyMethod.java:115:in call' from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/tsort.rb:415:in each_strongly_connected_component_from' from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/tsort.rb:349:in block in each_strongly_connected_component' from org/jruby/RubyArray.java:1734:in each' from org/jruby/RubyMethod.java:127:in call' from /var/lib/tomcat8/webapps/jobswork/WEB-INF/gems/gems/railties-4.2.7.1/lib/rails/engine.rb:615:in Engine' from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/tsort.rb:347:in each_strongly_connected_component' from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/tsort.rb:226:in tsort_each' from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/tsort.rb:205:in tsort_each' from /var/lib/tomcat8/webapps/jobswork/WEB-INF/gems/gems/railties-4.2.7.1/lib/rails/initializable.rb:54:in run_initializers' from org/jruby/RubyKernel.java:1808:in public_send' from /var/lib/tomcat8/webapps/jobswork/WEB-INF/gems/gems/railties-4.2.7.1/lib/rails/application.rb:352:in initialize!' from /var/lib/tomcat8/webapps/jobswork/WEB-INF/gems/gems/railties-4.2.7.1/lib/rails/railtie.rb:194:in <main>' from org/jruby/RubyKernel.java:956:in require' from /var/lib/tomcat8/webapps/jobswork/WEB-INF/config/environment.rb:5:in (root)' from uri:classloader:/jruby/rack/rails/environment3.rb:1:in (root)' from uri:classloader:/jruby/rack/rails/environment3.rb:25:in `'
You're seeing this error because you use JRuby::Rack::ErrorApp::ShowStatus.

@ari
Copy link
Owner

ari commented Jan 8, 2017 via email

@jeffersonalexsilva
Copy link
Author

I try to install version 5.1.
I don't understand what i need do with context.xml. When I override the context.xml in tomcat 8 it bloken, when put in config folder (WEB-INF/config) nothing happens.
I try to install this program 4 times.
Have a easy way to install this? Please, help me. Tanks.
Sory my english...

@ari
Copy link
Owner

ari commented Jan 9, 2017

context.xml doesn't go inside WEB-INF, but into the tomcat configuration folder

@ari ari closed this as completed Jan 9, 2017
@jeffersonalexsilva
Copy link
Author

How to do it?
Do you know? Because I can't install this.
The tutorial is not clear and I can not finish the installation. Missing some explanation.
Have a easy tutorial, or this project is only for heavy developers?

@ari
Copy link
Owner

ari commented Jan 9, 2017

I have instructions, but I'm guessing you didn't do this step:

There is one file you will need to edit and that is context.xml. This file defines all the configuration for your application. Copy the example into the tomcat configuration folder and set all the variables to reasonable choices for your system

@jeffersonalexsilva
Copy link
Author

I do it.
This is my context.xml

`

WEB-INF/web.xml ` I copy this to /etc/tomcat7/context.xml and override the default config. But not work. I See 404 error.

@frank-orellana
Copy link
Contributor

Just in case anyone else is having troubles installing this, I created the jobsworth-installer project so it is easier to install everything.

The scripts download, install and configure the database, tomcat and jobsworth so it is recommended to use a clean system, but you can also look at it and only install what you need.

There are also scripts to migrate your data from the hosted version if needed.

The project is still work in progress so if you have anything to contribute please do!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants