Web interface inaccessible through port 8080
EDITED See last post for new details.
I've followed the directions here: http://confluence.jetbrains.com/display/YTD5/Linux.+YouTrack+JAR+as+a+Service however when I try to use the command
service youtrack start
I get the following message: "/home/youtrack/standalone/bin/wrapper" "/home/youtrack/standalone/conf/wrapper.conf" wrapper.syslog.ident=youtrack wrapper.pidfile="/home/youtrack/standalone/youtrack.pid" wrapper.daemonize=TRUE
After that message nothing happens and there is no youtrack.pid in the standalone directory.
I've followed the directions here: http://confluence.jetbrains.com/display/YTD5/Linux.+YouTrack+JAR+as+a+Service however when I try to use the command
service youtrack start
I get the following message: "/home/youtrack/standalone/bin/wrapper" "/home/youtrack/standalone/conf/wrapper.conf" wrapper.syslog.ident=youtrack wrapper.pidfile="/home/youtrack/standalone/youtrack.pid" wrapper.daemonize=TRUE
After that message nothing happens and there is no youtrack.pid in the standalone directory.
Please sign in to leave a comment.
Please, look at wrapper logs: home/youtrack/standalone/logs/wrapper.log.
Also, under what user do you execute the command "service youtrack start"? Usually, you need to run it with sudo:
I'm logged in as root so sudo is not needed.
wrapper.log does exist in the logs directory but is empty.
ls -l /home | grep youtrack drwx------ 3 youtrack youtrack 4096 Apr 2 18:16 youtrack
ls -laR /home/youtrack/standalone /home/youtrack/standalone: total 66048 drwxr-xr-x 9 youtrack youtrack 4096 Apr 2 18:19 . drwx------ 3 youtrack youtrack 4096 Apr 2 18:16 .. drwxr-xr-x 2 youtrack youtrack 4096 Apr 2 18:15 bin drwxr-xr-x 2 youtrack youtrack 4096 Apr 2 19:29 conf drwxr-xr-x 2 youtrack youtrack 4096 Apr 2 18:15 doc drwxr-xr-x 2 youtrack youtrack 4096 Apr 2 18:15 jdoc -rw-r--r-- 1 youtrack youtrack 365 Oct 16 2010 jdoc.tar.gz drwxr-xr-x 2 youtrack youtrack 4096 Apr 2 18:15 lib drwxr-xr-x 2 youtrack youtrack 4096 Apr 4 13:10 logs drwxr-xr-x 4 youtrack youtrack 4096 Oct 16 2010 src -rw-r--r-- 1 youtrack youtrack 67514662 Mar 18 14:10 youtrack-5.1.2.jar lrwxrwxrwx 1 youtrack youtrack 18 Apr 2 18:19 youtrack.jar -> youtrack-5.1.2.jar /home/youtrack/standalone/bin: total 392 drwxr-xr-x 2 youtrack youtrack 4096 Apr 2 18:15 . drwxr-xr-x 9 youtrack youtrack 4096 Apr 2 18:19 .. -rw-r--r-- 1 youtrack youtrack 50068 Oct 16 2010 demoapp -rwxr-xr-x 1 youtrack youtrack 50517 Oct 16 2010 testwrapper -rwxr-xr-x 1 youtrack youtrack 272426 Oct 16 2010 wrapper /home/youtrack/standalone/conf: total 32 drwxr-xr-x 2 youtrack youtrack 4096 Apr 2 19:29 . drwxr-xr-x 9 youtrack youtrack 4096 Apr 2 18:19 .. -rw-r--r-- 1 youtrack youtrack 8011 Oct 16 2010 demoapp.conf -rw-r--r-- 1 youtrack youtrack 4925 Apr 2 19:29 wrapper.conf -rw-r--r-- 1 youtrack youtrack 8173 Oct 16 2010 wrapper.conf.bak /home/youtrack/standalone/doc: total 196 drwxr-xr-x 2 youtrack youtrack 4096 Apr 2 18:15 . drwxr-xr-x 9 youtrack youtrack 4096 Apr 2 18:19 .. -rw-r--r-- 1 youtrack youtrack 451 Oct 16 2010 index.html -rw-r--r-- 1 youtrack youtrack 191 Oct 16 2010 readme.txt -rw-r--r-- 1 youtrack youtrack 156687 Oct 16 2010 revisions.txt -rw-r--r-- 1 youtrack youtrack 20373 Oct 16 2010 wrapper-community-license-1.1.txt /home/youtrack/standalone/jdoc: total 12 drwxr-xr-x 2 youtrack youtrack 4096 Apr 2 18:15 . drwxr-xr-x 9 youtrack youtrack 4096 Apr 2 18:19 .. -rw-r--r-- 1 youtrack youtrack 318 Oct 16 2010 index.html /home/youtrack/standalone/lib: total 320 drwxr-xr-x 2 youtrack youtrack 4096 Apr 2 18:15 . drwxr-xr-x 9 youtrack youtrack 4096 Apr 2 18:19 .. -rwxr-xr-x 1 youtrack youtrack 47091 Oct 16 2010 libwrapper.so -rw-r--r-- 1 youtrack youtrack 67897 Oct 16 2010 wrapperdemo.jar -rw-r--r-- 1 youtrack youtrack 114841 Oct 16 2010 wrapper.jar -rw-r--r-- 1 youtrack youtrack 67002 Oct 16 2010 wrappertest.jar /home/youtrack/standalone/logs: total 8 drwxr-xr-x 2 youtrack youtrack 4096 Apr 4 13:10 . drwxr-xr-x 9 youtrack youtrack 4096 Apr 2 18:19 .. -rw-r--r-- 1 youtrack youtrack 0 Oct 16 2010 wrapper.log /home/youtrack/standalone/src: total 16 drwxr-xr-x 4 youtrack youtrack 4096 Oct 16 2010 . drwxr-xr-x 9 youtrack youtrack 4096 Apr 2 18:19 .. drwxr-xr-x 2 youtrack youtrack 4096 Apr 2 18:15 bin drwxr-xr-x 2 youtrack youtrack 4096 Apr 2 18:15 conf /home/youtrack/standalone/src/bin: total 64 drwxr-xr-x 2 youtrack youtrack 4096 Apr 2 18:15 . drwxr-xr-x 4 youtrack youtrack 4096 Oct 16 2010 .. -rw-r--r-- 1 youtrack youtrack 50003 Oct 16 2010 sh.script.in /home/youtrack/standalone/src/conf: total 16 drwxr-xr-x 2 youtrack youtrack 4096 Apr 2 18:15 . drwxr-xr-x 4 youtrack youtrack 4096 Oct 16 2010 .. -rw-r--r-- 1 youtrack youtrack 7813 Oct 16 2010 wrapper.conf.in
Please, check JAVA_HOME variable in init script points to right java directory.
So... now a youtrack.pid file appears temporarily and then disappears.
I checked wrapper.log and found this:
STATUS | wrapper | 2014/04/04 14:57:21 | --> Wrapper Started as Daemon STATUS | wrapper | 2014/04/04 14:57:21 | Java Service Wrapper Community Edition 64-bit 3.5.6 STATUS | wrapper | 2014/04/04 14:57:21 | Copyright (C) 1999-2010 Tanuki Software, Ltd. All Rights Reserved. STATUS | wrapper | 2014/04/04 14:57:21 | http://wrapper.tanukisoftware.com STATUS | wrapper | 2014/04/04 14:57:21 | Launching a JVM... INFO | jvm 1 | 2014/04/04 14:57:21 | WrapperManager: Initializing... INFO | jvm 1 | 2014/04/04 14:57:21 | WrapperSimpleApp Error: Unable to locate the class jetbrains.charisma.standalone.CharismaStandalone : java.lang.ClassNotFoundException: jetbrains.charisma.standalone.CharismaStandalone INFO | jvm 1 | 2014/04/04 14:57:21 | INFO | jvm 1 | 2014/04/04 14:57:21 | WrapperSimpleApp Usage: INFO | jvm 1 | 2014/04/04 14:57:21 | java org.tanukisoftware.wrapper.WrapperSimpleApp { app_class{/app_method} } [app_arguments] INFO | jvm 1 | 2014/04/04 14:57:21 | INFO | jvm 1 | 2014/04/04 14:57:21 | Where: INFO | jvm 1 | 2014/04/04 14:57:21 | app_class: The fully qualified class name of the application to run. INFO | jvm 1 | 2014/04/04 14:57:21 | app_arguments: The arguments that would normally be passed to the INFO | jvm 1 | 2014/04/04 14:57:21 | applictiion. ERROR | wrapper | 2014/04/04 14:57:23 | JVM exited while loading the application.
It seems there is not enough memory. Try to increase it.
To do it edit wrapper.conf file and add/edit these parameters:
P.S. Please, note that you have to adjust the parameters' ordinal numbers.
Same error appears in logs/wrapper.log
The server has 2GB of memory available to it. JVM also is set use 512M initially up to a maximum of 1G.
Also, you can check md5 sums of downloaded file.
So after downloading a new jar and confirming that checksums in fact do match (4f6815998fcfca3f7ea3de584e96451d) I get the log below.
Permissions are still the same and all files are owned by youtrack. I'm not sure where exactly the denied permissions are originating.
It's because YT runs on privileged port 777. Try to use port > 1024. It's common practice to use ports 8080, 8088, 8888 and so on.
Firewall is open on TCP port 8080 however if I go to that port nothing comes up. Displays "webpage not available" following the timeout period.
This is what wrapper.log now contains. which looks okay to me:
But if there are some problems you can use ssh and port forwarding to do that.
For example, like this:
After that go to http://localhost:8080 on local machine.
P.S. The ssh tunnel will work only while ssh session is active.
Did you manage to run YT in the end?
Sorry I was busy doing hardware changes and didn't have time to test it out.
I run that ssh command on the remote server or my local machine first? The server is running CentOS however my local machine is Windows 7.
Thanks!
Thanks!
Am I right that you're using Putty to connect to remote host?
If so, you can see this page for details on how to setup port forwarding.
Thank you very much for your help Alex I couldn't have completed this without you!