Login Page Not Displaying Properly

79 views
Skip to first unread message

John Trump

unread,
Feb 21, 2014, 11:30:31 AM2/21/14
to scmma...@googlegroups.com
At random times the web portal for scm-manager will not display properly. I have attached a screenshot. With the site in this state users can not log in. Repositories are still accessible via command line. scm-manager is running on a RHEL 6 server. I do not see any errors in log files. Any suggestions as to what could be causing this?
scm-manager-login_page.png

Sebastian Sdorra

unread,
Feb 25, 2014, 2:31:24 AM2/25/14
to scmma...@googlegroups.com
Hi,
This sounds like issue #506 [1]. Upgrading to version 1.35 of SCM-Manager should fix the problem. If you have changed the server-config.xml use the new one shipped with version 1.35 and apply your changes again.


Sebastian


2014-02-21 17:30 GMT+01:00 John Trump <tru...@gmail.com>:
At random times the web portal for scm-manager will not display properly. I have attached a screenshot. With the site in this state users can not log in. Repositories are still accessible via command line. scm-manager is running on a RHEL 6 server. I do not see any errors in log files. Any suggestions as to what could be causing this?

--
You received this message because you are subscribed to the Google Groups "scmmanager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scmmanager+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

John Trump

unread,
Feb 25, 2014, 12:31:51 PM2/25/14
to scmma...@googlegroups.com
I am currently running 1.35. Upgraded to fix issue in Issue #520

john


--
You received this message because you are subscribed to a topic in the Google Groups "scmmanager" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/scmmanager/1-bsFNJXsvU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to scmmanager+...@googlegroups.com.

Sebastian Sdorra

unread,
Mar 3, 2014, 1:59:39 AM3/3/14
to scmma...@googlegroups.com
Hi,
Could you please post your server-config.xml?

Sebastian

John Trump

unread,
Mar 3, 2014, 11:30:55 AM3/3/14
to scmma...@googlegroups.com
Server config below:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
<!--

    Copyright (c) 2010, Sebastian Sdorra
    All rights reserved.

    Redistribution and use in source and binary forms, with or without
    modification, are permitted provided that the following conditions are met:

    1. Redistributions of source code must retain the above copyright notice,
       this list of conditions and the following disclaimer.
    2. Redistributions in binary form must reproduce the above copyright notice,
       this list of conditions and the following disclaimer in the documentation
       and/or other materials provided with the distribution.
    3. Neither the name of SCM-Manager; nor the names of its
       contributors may be used to endorse or promote products derived from this
       software without specific prior written permission.

    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
    DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
    LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
    ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.



-->

<!--
    Document   : server-config.xml
    Created on : January 20, 2011, 6:05 PM
    Author     : sdorra
    Description:
        Purpose of the document follows.
-->

<Configure class="org.eclipse.jetty.server.Server">

  <Call name="addConnector">
    <Arg>
      <New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
        <Set name="host">
          <SystemProperty name="jetty.host" />
        </Set>
        <Set name="port">
          <SystemProperty name="jetty.port" default="8080" />
        </Set>
        <Set name="requestHeaderSize">16384</Set>
        <!-- for mod_proxy -->
        <!--
        <Set name="forwarded">true</Set>
        -->
      </New>
    </Arg>
  </Call>

  <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>
  </New>

  <New id="docroot" class="org.eclipse.jetty.webapp.WebAppContext">
    <Set name="contextPath">/</Set>
    <Set name="baseResource">
      <New class="org.eclipse.jetty.util.resource.ResourceCollection">
        <Arg>
          <Array type="java.lang.String">
            <Item><SystemProperty name="basedir" default="."/>/var/webapp/docroot</Item>
          </Array>
        </Arg>
      </New>
    </Set>
  </New>
  
  <Set name="handler">
    <New class="org.eclipse.jetty.server.handler.HandlerCollection">
      <Set name="handlers">
        <Array type="org.eclipse.jetty.server.Handler">
          <Item>
            <Ref id="scm-webapp" />
          </Item>
          <Item>
            <Ref id="docroot" />
          </Item>
          <!--
          <Item>
            <New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler"/>
          </Item>
          -->
        </Array>
      </Set>
    </New>
  </Set>
  
  <!-- request logging -->
  <!--
  <Ref id="RequestLog">
    <Set name="requestLog">
      <New id="RequestLogImpl" class="org.eclipse.jetty.server.NCSARequestLog">
        <Arg><SystemProperty name="basedir" default="."/>/var/log/yyyy_mm_dd.request.log</Arg>
        <Set name="retainDays">90</Set>
        <Set name="append">true</Set>
        <Set name="extended">true</Set>
        <Set name="LogTimeZone">GMT</Set>
       </New>
    </Set>
  </Ref>
  -->

  <!-- mod_proxy_ajp or mod_jk -->
  <!--
  <Call name="addConnector">
    <Arg>
       <New class="org.eclipse.jetty.ajp.Ajp13SocketConnector">
         <Set name="port">8009</Set>
       </New>
    </Arg>
  </Call>
  -->

  <!-- SSL-Connector -->
  <!--
     Documentation for the SSL-Connector: 
  -->
  <!--
  <Call name="addConnector">
    <Arg>
      <New class="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">
        <Set name="Port">8181</Set>
        <Set name="maxIdleTime">30000</Set>
        <Set name="requestHeaderSize">16384</Set>
        <Set name="keystore"><SystemProperty name="basedir" default="." />/conf/keystore.jks</Set>
        <Set name="password">OBF:xxx</Set>
        <Set name="keyPassword">OBF:xxx</Set>
        <Set name="truststore"><SystemProperty name="basedir" default="." />/conf/keystore.jks</Set>
        <Set name="trustPassword">OBF:xxx</Set>
      </New>
    </Arg>
  </Call>
  -->

  <!-- JMX support -->
  <!--
  <Call id="MBeanServer" class="java.lang.management.ManagementFactory"
    name="getPlatformMBeanServer" />

  <New id="MBeanContainer" class="org.eclipse.jetty.jmx.MBeanContainer">
    <Arg>
      <Ref id="MBeanServer" />
    </Arg>
  </New>

  <Get id="Container" name="container">
    <Call name="addEventListener">
      <Arg>
        <Ref id="MBeanContainer" />
      </Arg>
    </Call>
  </Get>
  -->

Sebastian Sdorra

unread,
Mar 6, 2014, 7:33:42 AM3/6/14
to scmma...@googlegroups.com
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>

John Trump

unread,
Mar 6, 2014, 10:23:45 AM3/6/14
to scmma...@googlegroups.com
Thank you. I will add the tempDirectory lines and see if issue happens again.
Reply all
Reply to author
Forward
0 new messages