Can't start Youtrack service

  • 1
  • 11

Hello!

I am trying to setup YouTrack.
I have used exe installation with Windows Service mode.
The YouTrack Web Server doesn't start localhost:8085 doesn't starts.

catalina log gives following:
Jan 28, 2013 11:19:59 AM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
Jan 28, 2013 11:19:59 AM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Jan 28, 2013 11:19:59 AM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8085
Jan 28, 2013 11:19:59 AM org.apache.coyote.ajp.AjpAprProtocol init
SEVERE: Error initializing endpoint
java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port) is normally permitted.
java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port) is normally permitted.
 at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:646)
 at org.apache.coyote.ajp.AjpAprProtocol.init(AjpAprProtocol.java:160)
 at org.apache.catalina.connector.Connector.initialize(Connector.java:1014)
 at org.apache.catalina.core.StandardService.initialize(StandardService.java:680)
 at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:548)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jan 28, 2013 11:19:59 AM org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException: Protocol handler initialization failed: java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port) is normally permitted.
 at org.apache.catalina.connector.Connector.initialize(Connector.java:1016)
 at org.apache.catalina.connector.Connector.initialize(Connector.java:1016)
 at org.apache.catalina.core.StandardService.initialize(StandardService.java:680)
 at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:548)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jan 28, 2013 11:19:59 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 748 ms
Jan 28, 2013 11:19:59 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 28, 2013 11:19:59 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
Jan 28, 2013 11:19:59 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive ROOT.war
Jan 28, 2013 11:20:10 AM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8085
Jan 28, 2013 11:20:10 AM org.apache.coyote.ajp.AjpAprProtocol start
SEVERE: Error starting endpoint
java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port) is normally permitted.
java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port) is normally permitted.
 at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:646)
 at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:753)
 at org.apache.coyote.ajp.AjpAprProtocol.start(AjpAprProtocol.java:188)
 at org.apache.catalina.connector.Connector.start(Connector.java:1087)
 at org.apache.catalina.core.StandardService.start(StandardService.java:534)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Jan 28, 2013 11:20:10 AM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port) is normally permitted.
 at org.apache.catalina.connector.Connector.start(Connector.java:1094)
 at org.apache.catalina.connector.Connector.start(Connector.java:1094)
 at org.apache.catalina.core.StandardService.start(StandardService.java:534)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Jan 28, 2013 11:20:10 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 11041 ms
Jan 28, 2013 11:20:10 AM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[8005]:
java.net.BindException: Address already in use: JVM_Bind
java.net.BindException: Address already in use: JVM_Bind
 at java.net.PlainSocketImpl.socketBind(Native Method)
 at java.net.PlainSocketImpl.bind(Unknown Source)
 at java.net.ServerSocket.bind(Unknown Source)
 at java.net.ServerSocket.<init>(Unknown Source)
 at org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
 at org.apache.catalina.startup.Catalina.await(Catalina.java:662)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:614)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Jan 28, 2013 11:20:10 AM org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8085
Jan 28, 2013 11:20:10 AM org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
Jan 28, 2013 11:20:11 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Jan 28, 2013 11:20:11 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: A web application appears to have started a thread named [Dispatcher-Thread-3] but has failed to stop it. This is very likely to create a memory leak.
Jan 28, 2013 11:20:11 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: A web application appears to have started a thread named [Dispatcher-Thread-4] but has failed to stop it. This is very likely to create a memory leak.
Jan 28, 2013 11:20:12 AM org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already. Could not load jetbrains.exodus.core.dataStructures.hash.AbstractHashMap$Values. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
java.lang.IllegalStateException
 at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1402)
 at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)
 at jetbrains.exodus.core.dataStructures.hash.AbstractHashMap.values(AbstractHashMap.java:37)
 at webr.framework.controller.MultiplexingRollingFileAppender.close(MultiplexingRollingFileAppender.java:78)
 at org.apache.log4j.AppenderSkeleton.finalize(AppenderSkeleton.java:124)
 at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
 at java.lang.ref.Finalizer.runFinalizer(Unknown Source)
 at java.lang.ref.Finalizer.access$100(Unknown Source)
 at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
Jan 28, 2013 11:20:12 AM org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8085
Jan 28, 2013 11:20:12 AM org.apache.catalina.connector.MapperListener destroy
WARNING: Error unregistering MBeanServerDelegate
java.lang.NullPointerException
java.lang.NullPointerException
 at org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:176)
 at org.apache.catalina.connector.Connector.stop(Connector.java:1135)
 at org.apache.catalina.core.StandardService.stop(StandardService.java:596)
 at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:648)
 at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:692)
Jan 28, 2013 11:20:12 AM org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009
Hello Michael,
The cause is that http ports Tomcat is trying to use (8085, 8005) are already busy. Most you already have another Tomcat running on your machine. Please open http://localhost:8085 to connect to it and find out what web application runs there.

Regards,
Alexander