- bug description (occurred issue):
When I access the main page (/scm), it pops up a 503 error.
- expected result / system behavior:
Enter the main page (or login page).
- observed result / system behavior:
- SCM-Manager version and installed package:
2.43.0 for Windows
(Please also add Screenshots of the issue + if possible a trace created by the SCM-Manager support plugin)
Error Logs:
2023-05-02 13:14:09.901:INFO::main: Logging initialized @829ms to org.eclipse.jetty.util.log.StdErrLog
2023-05-02 13:14:10.292:INFO:oejs.Server:main: jetty-9.4.44.v20210927; built: 2021-09-27T23:02:44.612Z; git: 8da83308eeca865e495e53ef315a249d63ba9332; jvm 11.0.16+8
2023-05-02 13:14:31.281:INFO:oejw.StandardDescriptorProcessor:main: NO JSP Support for /scm, did not find org.eclipse.jetty.jsp.JettyJspServlet
2023-05-02 13:14:31.328:INFO:oejs.session:main: DefaultSessionIdManager workerName=node0
2023-05-02 13:14:31.328:INFO:oejs.session:main: No SessionScavenger set, using defaults
2023-05-02 13:14:31.336:INFO:oejs.session:main: node0 Scavenging every 600000ms
2023-05-02 13:14:32.079:WARN:oejw.WebAppContext:main: Failed startup of context o.e.j.w.WebAppContext@72ccd81a{SCM-Manager ${project.version},/scm,file:///D:/GitServer/scm-server/work/scm-webapp/webapp/,UNAVAILABLE}{./webapp/scm-webapp.war}
sonia.scm.version.VersionParseException: could not parse version
at sonia.scm.version.Version.parse(Version.java:105)
at sonia.scm.lifecycle.Versions.readVersionFromFile(Versions.java:87)
at sonia.scm.lifecycle.Versions.readVersion(Versions.java:78)
at sonia.scm.lifecycle.Versions.isPreviousVersionTooOld(Versions.java:57)
at sonia.scm.lifecycle.Versions.isTooOld(Versions.java:94)
at sonia.scm.lifecycle.BootstrapContextListener.getInjector(BootstrapContextListener.java:88)
at com.google.inject.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:45)
at sonia.scm.lifecycle.BootstrapContextListener.contextInitialized(BootstrapContextListener.java:75)
at sonia.scm.lifecycle.BootstrapContextFilter.initializeContext(BootstrapContextFilter.java:74)
at sonia.scm.lifecycle.BootstrapContextFilter.init(BootstrapContextFilter.java:65)
at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:140)
at org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$0(ServletHandler.java:731)
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source)
at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Unknown Source)
at java.base/java.util.stream.ReferencePipeline$Head.forEach(Unknown Source)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:755)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1449)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1414)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:910)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
at org.eclipse.jetty.server.Server.start(Server.java:423)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
at org.eclipse.jetty.server.Server.doStart(Server.java:387)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
at sonia.scm.server.ScmServer.init(ScmServer.java:105)
at sonia.scm.server.ScmServer.run(ScmServer.java:66)
at sonia.scm.server.ScmServerDaemon.main(ScmServerDaemon.java:53)
Caused by:
java.lang.NumberFormatException: For input string: ""
at java.base/java.lang.NumberFormatException.forInputString(Unknown Source)
at java.base/java.lang.Integer.parseInt(Unknown Source)
at java.base/java.lang.Integer.parseInt(Unknown Source)
at sonia.scm.version.Version.parseVersionPart(Version.java:479)
at sonia.scm.version.Version.<init>(Version.java:74)
at sonia.scm.version.Version.parse(Version.java:100)
at sonia.scm.lifecycle.Versions.readVersionFromFile(Versions.java:87)
at sonia.scm.lifecycle.Versions.readVersion(Versions.java:78)
at sonia.scm.lifecycle.Versions.isPreviousVersionTooOld(Versions.java:57)
at sonia.scm.lifecycle.Versions.isTooOld(Versions.java:94)
at sonia.scm.lifecycle.BootstrapContextListener.getInjector(BootstrapContextListener.java:88)
at com.google.inject.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:45)
at sonia.scm.lifecycle.BootstrapContextListener.contextInitialized(BootstrapContextListener.java:75)
at sonia.scm.lifecycle.BootstrapContextFilter.initializeContext(BootstrapContextFilter.java:74)
at sonia.scm.lifecycle.BootstrapContextFilter.init(BootstrapContextFilter.java:65)
at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:140)
at org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$0(ServletHandler.java:731)
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source)
at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Unknown Source)
at java.base/java.util.stream.ReferencePipeline$Head.forEach(Unknown Source)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:755)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1449)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1414)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:910)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
at org.eclipse.jetty.server.Server.start(Server.java:423)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
at org.eclipse.jetty.server.Server.doStart(Server.java:387)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
at sonia.scm.server.ScmServer.init(ScmServer.java:105)
at sonia.scm.server.ScmServer.run(ScmServer.java:66)
at sonia.scm.server.ScmServerDaemon.main(ScmServerDaemon.java:53)
2023-05-02 13:14:32.093:INFO:oejw.StandardDescriptorProcessor:main: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
2023-05-02 13:14:32.095:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@2f162cc0{/,[file:///D:/GitServer/scm-server/webapp/docroot/],AVAILABLE}
2023-05-02 13:14:32.134:INFO:oejs.AbstractConnector:main: Started ServerConnector@7219ec67{HTTP/1.1, (http/1.1)}{0.0.0.0:8013}
2023-05-02 13:14:32.137:INFO:oejs.Server:main: Started @23079ms
Hi @unknownobject
thank you for your patience and welcome to our community!
Could you please check in your SCM home folder if there is
- a version.txt file and
- if there is a version.txt that this file is not empty?
From your report log file the system is looking for the version but just found an empy string.