java.io.FileNotFoundException: /home/common/atlassian-stash-2.8.2/work/Catalina/localhost/_/SESSIONS.ser (No such file or directory)

Atlassian JIRA | Oleksiy Ivanov | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    After starting Stash I am usually able to use it for some time, several hours or less than hour in some cases. After that exception is shown when Stash accessed from web or via Git client. {noformat} HTTP Status 500 - Filter execution threw an exception type Exception report message Filter execution threw an exception description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: Filter execution threw an exception org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) root cause java.lang.NoClassDefFoundError: ch/qos/logback/core/status/ErrorStatus ch.qos.logback.core.recovery.ResilientOutputStreamBase.postIOFailure(ResilientOutputStreamBase.java:101) ch.qos.logback.core.recovery.ResilientOutputStreamBase.write(ResilientOutputStreamBase.java:55) java.io.OutputStream.write(OutputStream.java:75) ch.qos.logback.core.encoder.LayoutWrappingEncoder.doEncode(LayoutWrappingEncoder.java:135) ch.qos.logback.core.OutputStreamAppender.writeOut(OutputStreamAppender.java:188) ch.qos.logback.core.FileAppender.writeOut(FileAppender.java:206) ch.qos.logback.core.OutputStreamAppender.subAppend(OutputStreamAppender.java:212) ch.qos.logback.core.rolling.RollingFileAppender.subAppend(RollingFileAppender.java:175) ch.qos.logback.core.OutputStreamAppender.append(OutputStreamAppender.java:103) ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:88) ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:48) ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:272) ch.qos.logback.classic.Logger.callAppenders(Logger.java:259) ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:441) ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:395) ch.qos.logback.classic.Logger.info(Logger.java:599) com.atlassian.stash.internal.request.DefaultRequestManager.logEndRequest(DefaultRequestManager.java:166) com.atlassian.stash.internal.request.DefaultRequestManager.doAsRequest(DefaultRequestManager.java:79) com.atlassian.stash.internal.web.filters.RequestAttributeFilter.doFilterInternal(RequestAttributeFilter.java:46) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343) org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260) com.atlassian.johnson.spring.web.filter.BypassableDelegatingFilterProxy.doFilter(BypassableDelegatingFilterProxy.java:54) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) note The full stack trace of the root cause is available in the Apache Tomcat/7.0.40 logs. Apache Tomcat/7.0.40 {noformat} Also in catalina.out such events {noformat} java.util.logging.ErrorManager: 4: Unable to create [/home/common/atlassian-stash-2.8.2/logs] Exception in thread "scheduler_Worker-5" java.lang.NoClassDefFoundError: ch/qos/logback/classic/spi/ThrowableProxy at ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:126) at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:439) at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:395) at ch.qos.logback.classic.Logger.error(Logger.java:558) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:560) Exception in thread "scheduler_Worker-2" java.lang.NoClassDefFoundError: ch/qos/logback/classic/spi/ThrowableProxy at ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:126) at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:439) at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:395) at ch.qos.logback.classic.Logger.error(Logger.java:558) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:560) {noformat} Other events {noformat} Nov 23, 2013 7:35:43 PM org.apache.catalina.core.StandardService stopInternal INFO: Stopping service Catalina Nov 23, 2013 7:35:44 PM org.apache.catalina.session.StandardManager doUnload SEVERE: IOException while saving persisted sessions: java.io.FileNotFoundException: /home/common/atlassian-stash-2.8.2/work/Catalina/localhost/_/SESSIONS.ser (No such file or directory) java.io.FileNotFoundException: /home/common/atlassian-stash-2.8.2/work/Catalina/localhost/_/SESSIONS.ser (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:221) at java.io.FileOutputStream.<init>(FileOutputStream.java:110) at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:386) at org.apache.catalina.session.StandardManager.unload(StandardManager.java:353) at org.apache.catalina.session.StandardManager.stopInternal(StandardManager.java:518) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5569) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1575) at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1564) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) {noformat} User that running Stash has rights to create files in log folder and in other folders of stash home folder as well. Generally folder logs already created and Stash is able to write logs to it.

    Atlassian JIRA | 3 years ago | Oleksiy Ivanov
    java.io.FileNotFoundException: /home/common/atlassian-stash-2.8.2/work/Catalina/localhost/_/SESSIONS.ser (No such file or directory)
  2. 0

    After starting Stash I am usually able to use it for some time, several hours or less than hour in some cases. After that exception is shown when Stash accessed from web or via Git client. {noformat} HTTP Status 500 - Filter execution threw an exception type Exception report message Filter execution threw an exception description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: Filter execution threw an exception org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) root cause java.lang.NoClassDefFoundError: ch/qos/logback/core/status/ErrorStatus ch.qos.logback.core.recovery.ResilientOutputStreamBase.postIOFailure(ResilientOutputStreamBase.java:101) ch.qos.logback.core.recovery.ResilientOutputStreamBase.write(ResilientOutputStreamBase.java:55) java.io.OutputStream.write(OutputStream.java:75) ch.qos.logback.core.encoder.LayoutWrappingEncoder.doEncode(LayoutWrappingEncoder.java:135) ch.qos.logback.core.OutputStreamAppender.writeOut(OutputStreamAppender.java:188) ch.qos.logback.core.FileAppender.writeOut(FileAppender.java:206) ch.qos.logback.core.OutputStreamAppender.subAppend(OutputStreamAppender.java:212) ch.qos.logback.core.rolling.RollingFileAppender.subAppend(RollingFileAppender.java:175) ch.qos.logback.core.OutputStreamAppender.append(OutputStreamAppender.java:103) ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:88) ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:48) ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:272) ch.qos.logback.classic.Logger.callAppenders(Logger.java:259) ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:441) ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:395) ch.qos.logback.classic.Logger.info(Logger.java:599) com.atlassian.stash.internal.request.DefaultRequestManager.logEndRequest(DefaultRequestManager.java:166) com.atlassian.stash.internal.request.DefaultRequestManager.doAsRequest(DefaultRequestManager.java:79) com.atlassian.stash.internal.web.filters.RequestAttributeFilter.doFilterInternal(RequestAttributeFilter.java:46) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343) org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260) com.atlassian.johnson.spring.web.filter.BypassableDelegatingFilterProxy.doFilter(BypassableDelegatingFilterProxy.java:54) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) note The full stack trace of the root cause is available in the Apache Tomcat/7.0.40 logs. Apache Tomcat/7.0.40 {noformat} Also in catalina.out such events {noformat} java.util.logging.ErrorManager: 4: Unable to create [/home/common/atlassian-stash-2.8.2/logs] Exception in thread "scheduler_Worker-5" java.lang.NoClassDefFoundError: ch/qos/logback/classic/spi/ThrowableProxy at ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:126) at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:439) at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:395) at ch.qos.logback.classic.Logger.error(Logger.java:558) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:560) Exception in thread "scheduler_Worker-2" java.lang.NoClassDefFoundError: ch/qos/logback/classic/spi/ThrowableProxy at ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:126) at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:439) at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:395) at ch.qos.logback.classic.Logger.error(Logger.java:558) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:560) {noformat} Other events {noformat} Nov 23, 2013 7:35:43 PM org.apache.catalina.core.StandardService stopInternal INFO: Stopping service Catalina Nov 23, 2013 7:35:44 PM org.apache.catalina.session.StandardManager doUnload SEVERE: IOException while saving persisted sessions: java.io.FileNotFoundException: /home/common/atlassian-stash-2.8.2/work/Catalina/localhost/_/SESSIONS.ser (No such file or directory) java.io.FileNotFoundException: /home/common/atlassian-stash-2.8.2/work/Catalina/localhost/_/SESSIONS.ser (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:221) at java.io.FileOutputStream.<init>(FileOutputStream.java:110) at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:386) at org.apache.catalina.session.StandardManager.unload(StandardManager.java:353) at org.apache.catalina.session.StandardManager.stopInternal(StandardManager.java:518) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5569) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1575) at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1564) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) {noformat} User that running Stash has rights to create files in log folder and in other folders of stash home folder as well. Generally folder logs already created and Stash is able to write logs to it.

    Atlassian JIRA | 3 years ago | Oleksiy Ivanov
    java.io.FileNotFoundException: /home/common/atlassian-stash-2.8.2/work/Catalina/localhost/_/SESSIONS.ser (No such file or directory)
  3. 0

    My LiFe StOrY: 10월 2012

    blogspot.com | 1 year ago
    java.io.FileNotFoundException: D:\study\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\_\
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Deleting keyspace on hourly basis

    Stack Overflow | 3 years ago | pavelk
    java.io.FileNotFoundException: /var/lib/cassandra/data/ks_2014_05_24_07/cf_cortexer/ks_2014_05_24_07-cf_cortexer-tmp-jb-1-Filter.db (No such file or directory)

  1. linxiaolong 6 times, last 6 months ago
  2. reni 1 times, last 6 days ago
  3. batwalrus76 1 times, last 1 week ago
  4. Pilleo 1 times, last 2 weeks ago
  5. QrCeric 12 times, last 2 weeks ago
31 more registered users
64 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.FileNotFoundException

    /home/common/atlassian-stash-2.8.2/work/Catalina/localhost/_/SESSIONS.ser (No such file or directory)

    at java.io.FileOutputStream.open()
  2. Java RT
    FileOutputStream.<init>
    1. java.io.FileOutputStream.open(Native Method)
    2. java.io.FileOutputStream.<init>(FileOutputStream.java:221)
    3. java.io.FileOutputStream.<init>(FileOutputStream.java:110)
    3 frames
  3. Glassfish Core
    ContainerBase$StopChild.call
    1. org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:386)
    2. org.apache.catalina.session.StandardManager.unload(StandardManager.java:353)
    3. org.apache.catalina.session.StandardManager.stopInternal(StandardManager.java:518)
    4. org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
    5. org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5569)
    6. org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
    7. org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1575)
    8. org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1564)
    8 frames
  4. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:262)
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    4. java.lang.Thread.run(Thread.java:724)
    4 frames