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
Ubuntu 10.04 LTS, Issues reading config file? #7
Comments
I have reviewed your |
Thanks for having a look @kares For now an interim solution is to use the YAML config file (which gets loaded by default). I'm also having an issue with the -user flag, but only root can bind to port 80. Which is probably a better idea for production anyway! :) |
so replacing |
The |
Yep, replacing it with the equivalent YAML file fixed it.. |
Okay thats cool.. Maybe we should update the README or add a wiki page about it. What do you think is best? |
Yea, I think jsvc should be one of the option that you are prompted for. I'l definately update the README, too. Thx |
Great! thanks for your help :) |
I'm able to reproduce this -- but not on purpose unfortunately. @kares fix seems to work though. Can we get a 1.1.3 release soon? |
Hi, our production server is running on Ubuntu 10.04.
We've got trinidad working great when invoked manually like so:
Installation of the init_services went find as did generation of the init.d file.
However when I went to run
sudo /etc/init.d/trinidad start
I received the following error:Naturally i checked the file existed and had appropriate permissions and all seemed fine.
A kind of fix for that was to manually install jsvc and point the init script at
/usr/bin/jsvc
.Now the service tries to starts up but upon inspection of the log file I see the following errors:
This leads me to believe that it is not reading my configuration file as I have specified log level and min/max runtimes like so:
So my next logical step was to specify the config file in the init file on line 24 like so:
TRINIDAD_OPTS="-d /var/webapps --config /var/webapps/config/trinidad.rb"
Again no dice!
So as a last resort I edited the init script to print the
$START_COMMAND
and it outputs the following:I dropped that into a terminal and it returns:
On inspection of this i figured it was an issue with the
-errfile
option and how your using the&1
option to send it tostdout
.So i tried wrapping this in quotes like so:
'&1'
and the command itself exits successfully.But upon inspection of the log file I still see the same error:
16-Jan-2012 11:49:28 org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-localhost/127.0.0.1-0"] 16-Jan-2012 11:49:28 org.apache.catalina.core.StandardService startInternal INFO: Starting service Tomcat 16-Jan-2012 11:49:28 org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.23 Invalid log level , using default: INFO 2012-01-16 11:49:28 INFO: No global web.xml found 2012-01-16 11:49:30 INFO: Warning: no max runtimes specified. 2012-01-16 11:49:30 INFO: jruby 1.6.5.1 (ruby-1.8.7-p330) (2011-12-27 1bf37c2) (OpenJDK 64-Bit Server VM 1.6.0_20) [linux-amd64-java] 2012-01-16 11:49:30 INFO: Info: using runtime pool timeout of 30 seconds 2012-01-16 11:49:30 INFO: Warning: no min runtimes specified. 2012-01-16 11:49:30 INFO: Warning: no max runtimes specified. 2012-01-16 11:49:30 SEVERE: Failed to start connector [Connector[HTTP/1.1-0]]
Where is it going wrong?
Thankyou in advance
The text was updated successfully, but these errors were encountered: