Issue #530 resolved

SCM Manager's website hangs.

Vladislav Bauer
created an issue

We have 3 servers with SCM Manager 1.35 and web UI hangs time to time. We couldn't understand the reason of it. I think it is very similar with https://bitbucket.org/sdorra/scm-manager/issue/506/website-hangs

Environment: OS: CentOS release 6.2 (Final) Kernel: Linux git2 2.6.32-220.23.1.el6.i686 Java: Java(TM) SE Runtime Environment (build 1.6.0_45-b06) Java HotSpot(TM) Client VM (build 20.45-b01, mixed mode, sharing)

I've attached dump file: cheap.bin.tar

Comments (10)

  1. Sebastian Sdorra repo owner

    Did you see 404 errors for resources (scripts or stylesheet), when you access the website? You can check this with chrome developer tools or firebug for firefox.

  2. Vladislav Bauer reporter

    Hangs the only website:

    GET http://git-trainings.noveogroup.com/resources/c7bcfcb041ded39ddb61eea8b0830721be2d85a4.js 404 (Not Found) (index):58
    GET http://git-trainings.noveogroup.com/resources/958dd4be2e9ad45cee960de7c6b4d8d11c849068.css 404 (Not Found) (index):56
    GET http://git-trainings.noveogroup.com/resources/js/i18n/ru.js 404 (Not Found) (index):82
    GET http://git-trainings.noveogroup.com/resources/moment/lang/ru.js 404 (Not Found) (index):80
    GET http://git-trainings.noveogroup.com/resources/extjs/i18n/ext-lang-ru.js 404 (Not Found) (index):81
    GET http://git-trainings.noveogroup.com/resources/images/scm-logo.jpg 404 (Not Found) (index):93
    Uncaught ReferenceError: Ext is not defined 57ab3f7260bd7ba12077b8d748951cd108a3657f.js:1
    GET http://git-trainings.noveogroup.com/resources/images/scm-logo.jpg 404 (Not Found) (index):93
    

    Command to execute application is "bin/scm-manager"

  3. Sebastian Sdorra repo owner

    This looks exactly like issue #506. Jetty has unpacked the war file to a temp fs and your os has cleaned this fs after a few days. Could you please post your server-config.xml?

  4. Sebastian Sdorra repo owner

    The directory settings are missing in your server-config.xml. The WebAppContext of scm-manager should look like the following:

      <New id="scm-webapp" class="org.eclipse.jetty.webapp.WebAppContext">
        <Set name="contextPath">/scm</Set>
        <Set name="war"><SystemProperty name="basedir" default="."/>/var/webapp/scm-webapp.war</Set>
        <!-- disable directory listings -->
        <Call name="setInitParameter">
          <Arg>org.eclipse.jetty.servlet.Default.dirAllowed</Arg>
          <Arg>false</Arg>
        </Call>
        <Set name="tempDirectory">
          <SystemProperty name="basedir" default="."/>/work
        </Set>
      </New>
    
  5. Log in to comment