-
Notifications
You must be signed in to change notification settings - Fork 11
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
Trinidad/Rails application does not know its root path on Ubuntu 14.04 when started using trinidad_init_services #41
Comments
Here is my startup script:
|
thanks a lot - could you try if this still happens with 1.5.0.B1 (simply |
I just tried 1.5.0.B1, and I now get the following error. I uninstalled 1.4.6 to make sure it wasn't picking anything up from the old version.
|
for init service's Trinidad::Daemon backwards-compatibility (see trinidad/trinidad_init_services#41)
I see - thanks ... this broke compatibility with init services but I've just fixed it. |
@kares Your fix got init services working again, but the original issue remains. |
@kgx thanks a lot will need to look at it than ... really thought it's been a dir resolution on Trinidad's side ... you can probably (hopefully - feel free to let us know here) work aroud by root_dir: /abs/path in trinidad.yml |
Thank you for looking into this. I tried the root_dir workaround and it did not work. I added the startup parameter "--config /opt/apps/myapp/current/config/trinidad.yml" just to make sure it was finding the config file, but that did not help either. |
changing the work directory to the app's path should resolve this for you (although I was unable to reproduce, actually reproduced another issue) add: |
@kares Thank you! This workaround works for now. Do you know what in jruby-rack is causing this? |
yes |
I recently upgraded some application servers from Ubuntu 12.04 to 14.04 LTS.
I have noticed an unusual behavior: my app works fine when started manually using "trinidad" command, but when I start it using the jsvc wrapper it does not know its root path.
For example, when started via command line "trinidad" command:
Rails.root returns "/opt/app/myapp/releases/20140512165627"
When started via jsvc wrapper,
Rails.root return "/" , which results in a variety of errors...
At first I thought it might have something to do with the current release symlink (/opt/apps/myapp/current => /opt/app/myapp/releases/20140512165627) , but I have ruled that out by switching the references in /etc/init.d/trinidad to point at the actual release folder.
I am using trinidad 1.4.6, trinidad_jars 1.4.0, jruby-rack 1.1.14, trinidad_init_services 1.2.3, rails 3.2.18, and openjdk-7-amd64 7u55 (all the latest). The only component in my stack which has changed is Ubuntu.
The text was updated successfully, but these errors were encountered: