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

Exception in thread "jsvc-daemon-main" uninitialized constant Trinidad::CommandLineParser #39

Closed
jordanvs opened this issue May 6, 2014 · 2 comments

Comments

@jordanvs
Copy link

jordanvs commented May 6, 2014

Hi there. I'm using RVM with gemsets, running on Ubuntu as a non-root user. My logs output the following error when using the start command:

Exception in thread "jsvc-daemon-main" org.jruby.exceptions.RaiseException: (NameError) uninitialized constant Trinidad::CommandLineParser
    at org.jruby.RubyModule.const_missing(org/jruby/RubyModule.java:2690)
    at home.ubuntu.app.shared.bundle.jruby.$1_dot_9.gems.trinidad_init_services_minus_1_dot_2_dot_3.lib.trinidad.daemon.start(/home/ubuntu/app/shared/bundle/jruby/1.9/gems/trinidad_init_services-1.2.3/lib/trinidad/daemon.rb:24)

My guess is that my gems aren't being loaded properly but I'm not completely sure since it's looking in the shared bundle path for trinidad_init_services.

When I run bundle exec /etc/init.d/trinidad start (just trying it out) I get the following log output:

Deploying from /home/ubuntu/app/current as /
Initializing ProtocolHandler ["http-bio-127.0.0.1-3000"]
Error listenerStart
Context [default] startup failed due to previous errors
The web application [default] appears to have started a thread named [Ruby-1-JIT-1] but has failed to stop it. This is very likely to create a memory leak.
The web application [default] appears to have started a thread named [Ruby-1-JIT-2] but has failed to stop it. This is very likely to create a memory leak.
Starting ProtocolHandler ["http-bio-127.0.0.1-3000"]

Note the "Error listenerStart", but no other information. When I curl localhost:3000, there is no output in this case.

I'm not sure where to go from here. Any advice?

@kares
Copy link
Member

kares commented May 6, 2014

how does gem list look ? what trinidad verdion dois it give you. (make sure you set the env similar to the init.d script to check those)

@jordanvs
Copy link
Author

jordanvs commented May 6, 2014

Thanks @kares after some more debugging I realized that my application had a .ruby-version and .ruby-gemset file included in its root folder. This was causing the gems and even ruby version to be set to 1.9.3 (which didn't exist on my system even) and a gemset that also didn't exist.

I am still seeing the Error listenerstart error in the logs however and curl commands yield no response. I will open another ticket/question for this.

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

2 participants