1. Sebastian Sdorra
  2. scm-manager
Issue #397 resolved

Upgrade from 1.28 to 1.30 failed

Anonymous created an issue

The application started, but not worked after upgrade

Comments (24)

  1. Sebastian Sdorra repo owner
    • changed status to open

    The user which starts scm-manager has not enough permissions to open a port below 1024. Please check which user starts to old instance and which the new one.

  2. ppo_

    This is the scm-server.out file, that I couldn't attach as second file with starting issue:

    11:06:44.267 [Thread-0] INFO  sonia.scm.boot.BootstrapListener - start scm-manager 1.30 in stage: PRODUCTION
    11:06:44.515 [Thread-0] INFO  sonia.scm.boot.BootstrapUtil - using parent-first as plugin classloading strategy
    11:06:44.517 [Thread-0] INFO  sonia.scm.boot.BootstrapListener - try to use ScmBootstrapClassLoader
    11:06:44.531 [Thread-0] INFO  sonia.scm.upgrade.UpgradeManager - start upgrade from version "1.28" to "1.30"
    11:06:44.540 [Thread-0] INFO  sonia.scm.upgrade.UpgradeManager - upgrade to version 1.30 was successful
    11:06:44.555 [Thread-0] INFO  sonia.scm.plugin.DefaultPluginLoader - load core plugin /tmp/jetty-0.0.0.0-80-scm-webapp.war-_scm-any-/webapp/WEB-INF/lib/scm-svn-plugin-1.30.jar
    11:06:44.596 [Thread-0] INFO  sonia.scm.plugin.DefaultPluginLoader - load core plugin /tmp/jetty-0.0.0.0-80-scm-webapp.war-_scm-any-/webapp/WEB-INF/lib/scm-hg-plugin-1.30.jar
    11:06:44.598 [Thread-0] INFO  sonia.scm.plugin.DefaultPluginLoader - load core plugin /tmp/jetty-0.0.0.0-80-scm-webapp.war-_scm-any-/webapp/WEB-INF/lib/scm-git-plugin-1.30.jar
    11:06:44.600 [Thread-0] INFO  sonia.scm.plugin.DefaultPluginLoader - load  plugin /root/.scm/plugins/sonia/scm/plugins/scm-notify-plugin/1.2/scm-notify-plugin-1.2.jar
    11:06:44.602 [Thread-0] INFO  sonia.scm.plugin.DefaultPluginLoader - load  plugin /root/.scm/plugins/sonia/scm/plugins/scm-mail-plugin/1.3/scm-mail-plugin-1.3.jar
    11:06:44.882 [Thread-0] INFO  sonia.scm.plugin.DefaultPluginLoader - add module class sonia.scm.notify.NotifyModule
    11:06:44.882 [Thread-0] INFO  sonia.scm.plugin.DefaultPluginLoader - add module class sonia.scm.mail.internal.MailModule
    11:06:44.882 [Thread-0] INFO  sonia.scm.plugin.DefaultPluginLoader - add module class sonia.scm.web.HgServletModule
    11:06:44.883 [Thread-0] INFO  sonia.scm.plugin.DefaultPluginLoader - add module class sonia.scm.web.GitServletModule
    11:06:44.883 [Thread-0] INFO  sonia.scm.plugin.DefaultPluginLoader - add module class sonia.scm.web.SvnServletModule
    11:06:45.021 [Thread-0] INFO  sonia.scm.util.ScmConfigurationUtil - load ScmConfiguration from file /root/.scm/config/config.xml
    11:06:45.217 [Thread-0] INFO  sonia.scm.event.ScmEventBus - use sonia.scm.event.GuavaScmEventBus as event bus implementation
    11:06:45.225 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - bind 14 extensions to 21 extension points
    11:06:45.225 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.group.GroupListener
    11:06:45.242 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.repository.RepositoryManagerDecoratorFactory
    11:06:45.242 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.repository.BlameLinePreProcessor
    11:06:45.245 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.repository.BlameLinePreProcessorFactory
    11:06:45.246 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.repository.RepositoryHandler
    11:06:45.246 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - bind sonia.scm.repository.GitRepositoryHandler to multibinder of sonia.scm.repository.RepositoryHandler
    11:06:45.247 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - bind sonia.scm.repository.SvnRepositoryHandler to multibinder of sonia.scm.repository.RepositoryHandler
    11:06:45.247 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - bind sonia.scm.repository.HgRepositoryHandler to multibinder of sonia.scm.repository.RepositoryHandler
    11:06:45.247 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.resources.ResourceHandler
    11:06:45.248 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.group.GroupManagerDecoratorFactory
    11:06:45.249 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.repository.FileObjectPreProcessor
    11:06:45.249 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.repository.RepositoryRequestListener
    11:06:45.256 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for javax.servlet.ServletContextListener
    11:06:45.256 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - bind sonia.scm.notify.migration.MigrationContextListener to multibinder of javax.servlet.ServletContextListener
    11:06:45.260 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.repository.FileObjectPreProcessorFactory
    11:06:45.261 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.web.security.AuthenticationHandler
    11:06:45.261 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - bind sonia.scm.web.security.DefaultAuthenticationHandler to multibinder of sonia.scm.web.security.AuthenticationHandler
    11:06:45.262 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.web.security.AuthenticationListener
    11:06:45.266 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.user.UserManagerDecoratorFactory
    11:06:45.267 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.repository.spi.RepositoryServiceResolver
    11:06:45.267 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - bind sonia.scm.repository.spi.SvnRepositoryServiceResolver to multibinder of sonia.scm.repository.spi.RepositoryServiceResolver
    11:06:45.267 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - bind sonia.scm.repository.spi.HgRepositoryServiceResolver to multibinder of sonia.scm.repository.spi.RepositoryServiceResolver
    11:06:45.268 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - bind sonia.scm.repository.spi.GitRepositoryServiceResolver to multibinder of sonia.scm.repository.spi.RepositoryServiceResolver
    11:06:45.268 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.repository.RepositoryHook
    11:06:45.272 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - bind sonia.scm.notify.NotifyRepositoryHook to multibinder of sonia.scm.repository.RepositoryHook
    11:06:45.272 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.repository.ChangesetPreProcessor
    11:06:45.273 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.repository.ChangesetPreProcessorFactory
    11:06:45.274 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.repository.RepositoryListener
    11:06:45.276 [Thread-0] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.user.UserListener
    11:06:45.323 [Thread-0] INFO  sonia.scm.ScmServletModule - configure jersey with package path: sonia.scm
    11:06:46.200 [Thread-0] WARN  sonia.scm.cache.GuavaCacheConfigurationReader - could not find manual configuration at /root/.scm/ext/gcache.xml
    11:06:46.637 [Thread-0] INFO  sonia.scm.repository.DefaultRepositoryManager - added RepositoryHandler class sonia.scm.repository.GitRepositoryHandler for type Type{name=git, displayName=Git}
    11:06:46.638 [Thread-0] INFO  sonia.scm.repository.DefaultRepositoryManager - added RepositoryHandler class sonia.scm.repository.SvnRepositoryHandler for type Type{name=svn, displayName=Subversion}
    11:06:46.638 [Thread-0] INFO  sonia.scm.repository.DefaultRepositoryManager - added RepositoryHandler class sonia.scm.repository.HgRepositoryHandler for type Type{name=hg, displayName=Mercurial}
    11:06:46.898 [Thread-0] INFO  sonia.scm.boot.BootstrapFilter - loading GuiceFilter with ScmBootstrapClassLoader
    

    This is my startup script under CentOS 6.3:

    #!/bin/sh
    # chkconfig: 2345 90 10
    # description: SCM-Server
    
    export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre
    
    SCM_SERVER="/root/scm-server130/bin/scm-server"
    
    start() {
      "$SCM_SERVER" start
    }
    
    stop() {
      "$SCM_SERVER" stop
    }
    
    case "$1" in
        start)
          start
            ;;
        stop)
          stop
            ;;
        restart)
          stop
          start
            ;;
        *)
            echo $"Usage: $0 {start|stop|restart}"
            exit 2
    esac
    

    I did: 1) /etc/init.d/scmserver stop 2) change scmserver to point to new scm folder 3) /etc/init.d/scmserver start 4) got issue I work as root. The scm-server started work after reboot CentOS. So I don't think this is really SCM related issue, but I don't don't understood why it doesn't work without reboot.

  3. ppo_

    The user is root as I see. Maybe I stop/start service in wrong way?

    [root@scm ~]# ps aux | grep scm-server
    root      1295  0.0  0.0   2152   332 ?        Ss   11:22   0:00 jsvc.exec -cp :/root/scm-server130/conf:/root/scm-server130/lib/scm-server-1.30.jar:/root/scm-server130/lib/commons-daemon-1.0.10.jar:/root/scm-server130/lib/jetty-server-7.6.8.v20121106.jar:/root/scm-server130/lib/javax.servlet-2.5.0.v201103041518.jar:/root/scm-server130/lib/jetty-continuation-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-http-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-io-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-webapp-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-xml-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-servlet-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-security-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-jmx-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-util-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-ajp-7.6.8.v20121106.jar -Djava.awt.headless=true -Dlogback.configurationFile=logging.xml -outfile /root/scm-server130/var/log/scm-server.out -errfile /root/scm-server130/var/log/scm-server.err -pidfile /root/scm-server130/var/scm-server.pid -jvm server -home /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre -Dapp.name=scm-server -Dapp.repo=/root/scm-server130/lib -Dbasedir=/root/scm-server130 sonia.scm.server.ScmServerDaemon start
    root      1298  0.3 28.4 543480 145516 ?       Sl   11:22   1:16 jsvc.exec -cp :/root/scm-server130/conf:/root/scm-server130/lib/scm-server-1.30.jar:/root/scm-server130/lib/commons-daemon-1.0.10.jar:/root/scm-server130/lib/jetty-server-7.6.8.v20121106.jar:/root/scm-server130/lib/javax.servlet-2.5.0.v201103041518.jar:/root/scm-server130/lib/jetty-continuation-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-http-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-io-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-webapp-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-xml-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-servlet-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-security-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-jmx-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-util-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-ajp-7.6.8.v20121106.jar -Djava.awt.headless=true -Dlogback.configurationFile=logging.xml -outfile /root/scm-server130/var/log/scm-server.out -errfile /root/scm-server130/var/log/scm-server.err -pidfile /root/scm-server130/var/scm-server.pid -jvm server -home /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre -Dapp.name=scm-server -Dapp.repo=/root/scm-server130/lib -Dbasedir=/root/scm-server130 sonia.scm.server.ScmServerDaemon start
    root      1508  0.0  0.1   4340   752 pts/0    S+   17:30   0:00 grep scm-server
    
  4. ppo_

    I don't have such file. What that file should consist? I also don't have USER=.. line in my /etc/init.d/scmserver script.

  5. Sebastian Sdorra repo owner

    In this file you can add some variables for the scm-server start script which should stay across updates. Do you have such a user line in the bin/scm-server script?

  6. ppo_

    Ok, I remembered that on same machine with different previous version of SCM I was able to exucute /etc/init.d/scmserver stop|start without issues.

    Now, after reboot I have SCM up and running. But when I execute SCM stop and then start I see running SCM process, but access to SCM web page isn't working.

    Now I have:

    1) scm 1.30,

    2) init.d script that I found in googlegroups when you posted it here,

    3) I changed this script to point to my scm folder location and added java_home variable,

    4) I created /etc/default/scm-server file without content,

    5) I'm working only with root user

  7. Sebastian Sdorra repo owner

    Sorry, but the start mechanism of scm-manager has not changed sine version 1.20 and the exception you posted means that the current user has no privileges to open a port below 1024 (in your case port 80). Is the scm-manager process really closed after you call "/etc/init.d/scmserver stop" and before you call the start procedure? Is the port 80 free, when you try to manually start scm-manager?

  8. ppo_
    [root@scm ~]# java -version
    java version "1.6.0_24"
    OpenJDK Runtime Environment (IcedTea6 1.11.4) (rhel-1.49.1.11.4.el6_3-i386)
    OpenJDK Client VM (build 20.0-b12, mixed mode)
    [root@scm ~]# netstat -nlp | grep 80
    tcp        0      0 :::80                       :::*                        LISTEN      1300/jsvc.exec      
    [root@scm ~]# ps ax | grep jsvc
     1297 ?        Ss     0:00 jsvc.exec -cp :/root/scm-server130/co....
     1300 ?        Sl     1:40 jsvc.exec -cp :/root/scm-server130/co...
    [root@scm audit]# /etc/init.d/scmserver stop
    [root@scm audit]# netstat -nlp | grep 80
    [root@scm audit]# ps ax | grep jsvc
     1606 pts/0    S+     0:00 grep jsvc
    [root@scm audit]# /etc/init.d/scmserver start
    [root@scm audit]# netstat -nlp | grep 80
    [root@scm audit]#
    

    You are completely right, it can't bind to port 80. It's look strange for me due I only follow to the newest version of SCM and didn't change any in system.

  9. ppo_
    Last login: Thu May 30 10:59:15 2013 from 192.168.5.1
    [root@scm ~]# netstat -nlp | grep 80
    tcp        0      0 :::80                       :::*                        LISTEN      1300/jsvc.exec 
    [root@scm ~]# nano /root/scm-server130/conf/server-config.xml 
    [root@scm ~]# /etc/init.d/scmserver stop
    [root@scm ~]# netstat -nlp | grep 80
    [root@scm ~]# /etc/init.d/scmserver start
    [root@scm ~]# netstat -nlp | grep 8080
    tcp        0      0 :::8080                     :::*                        LISTEN      1384/jsvc.exec
    

    It works after changing port from 80 to 8080

    Is it related: http://stackoverflow.com/questions/5544713/starting-tomcat-on-port-80-on-centos-release-5-5-final

  10. Sebastian Sdorra repo owner

    I think it is not related to this, when you are working as root. Can you start the server on port 80 without the init scirpt:

    $ export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre
    $ /root/scm-server130/bin/scm-server start
    

    If this not work please try to start scm-manager without the start parameter (console mode):

    $ export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre
    $ /root/scm-server130/bin/scm-server
    
  11. ppo_
    Last login: Thu May 30 11:07:45 2013 from 192.168.5.1
    [root@scm ~]# netstat -nlp | grep 80
    tcp        0      0 :::80                       :::*                        LISTEN      1285/jsvc.exec      
    [root@scm ~]# /etc/init.d/scmserver stop
    [root@scm ~]# echo $JAVA_HOME
    
    [root@scm ~]# export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre
    [root@scm ~]# echo $JAVA_HOME
    /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre
    [root@scm ~]# netstat -nlp | grep 80
    [root@scm ~]# /root/scm-server130/bin/scm-server start
    [root@scm ~]# netstat -nlp | grep 80
    [root@scm ~]# netstat -nlp
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
    tcp        0      0 0.0.0.0:41441               0.0.0.0:*                   LISTEN      -                   
    tcp        0      0 0.0.0.0:59717               0.0.0.0:*                   LISTEN      1140/rpc.statd      
    tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      1122/rpcbind        
    tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      1260/sshd           
    tcp        0      0 :::3690                     :::*                        LISTEN      1268/xinetd         
    tcp        0      0 :::111                      :::*                        LISTEN      1122/rpcbind        
    tcp        0      0 :::22                       :::*                        LISTEN      1260/sshd           
    tcp        0      0 :::47384                    :::*                        LISTEN      1140/rpc.statd      
    tcp        0      0 :::36287                    :::*                        LISTEN      -                   
    udp        0      0 0.0.0.0:68                  0.0.0.0:*                               979/dhclient        
    udp        0      0 0.0.0.0:35929               0.0.0.0:*                               -                   
    udp        0      0 0.0.0.0:873                 0.0.0.0:*                               1122/rpcbind        
    udp        0      0 0.0.0.0:111                 0.0.0.0:*                               1122/rpcbind        
    udp        0      0 0.0.0.0:892                 0.0.0.0:*                               1140/rpc.statd      
    udp        0      0 0.0.0.0:55225               0.0.0.0:*                               1140/rpc.statd      
    udp        0      0 :::873                      :::*                                    1122/rpcbind        
    udp        0      0 :::111                      :::*                                    1122/rpcbind        
    udp        0      0 :::35107                    :::*                                    -                   
    udp        0      0 :::50468                    :::*                                    1140/rpc.statd      
    Active UNIX domain sockets (only servers)
    Proto RefCnt Flags       Type       State         I-Node PID/Program name    Path
    unix  2      [ ACC ]     STREAM     LISTENING     7171   1/init              @/com/ubuntu/upstart
    unix  2      [ ACC ]     STREAM     LISTENING     8658   1122/rpcbind        /var/run/rpcbind.sock
    unix  2      [ ACC ]     STREAM     LISTENING     9165   1243/acpid          /var/run/acpid.socket
    [root@scm ~]# ps ax | grep scm
     1365 ?        Ss     0:00 jsvc.exec -cp :/root/scm-server130/conf:/root/scm-server130/lib/scm-server-1.30.jar:/root/scm-server130/lib/commons-daemon-1.0.10.jar:/root/scm-server130/lib/jetty-server-7.6.8.v20121106.jar:/root/scm-server130/lib/javax.servlet-2.5.0.v201103041518.jar:/root/scm-server130/lib/jetty-continuation-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-http-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-io-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-webapp-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-xml-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-servlet-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-security-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-jmx-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-util-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-ajp-7.6.8.v20121106.jar -Djava.awt.headless=true -Dlogback.configurationFile=logging.xml -user root -outfile /root/scm-server130/var/log/scm-server.out -errfile /root/scm-server130/var/log/scm-server.err -pidfile /root/scm-server130/var/scm-server.pid -jvm server -home /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre -Dapp.name=scm-server -Dapp.repo=/root/scm-server130/lib -Dbasedir=/root/scm-server130 sonia.scm.server.ScmServerDaemon start
     1366 ?        Sl     0:07 jsvc.exec -cp :/root/scm-server130/conf:/root/scm-server130/lib/scm-server-1.30.jar:/root/scm-server130/lib/commons-daemon-1.0.10.jar:/root/scm-server130/lib/jetty-server-7.6.8.v20121106.jar:/root/scm-server130/lib/javax.servlet-2.5.0.v201103041518.jar:/root/scm-server130/lib/jetty-continuation-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-http-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-io-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-webapp-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-xml-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-servlet-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-security-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-jmx-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-util-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-ajp-7.6.8.v20121106.jar -Djava.awt.headless=true -Dlogback.configurationFile=logging.xml -user root -outfile /root/scm-server130/var/log/scm-server.out -errfile /root/scm-server130/var/log/scm-server.err -pidfile /root/scm-server130/var/scm-server.pid -jvm server -home /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre -Dapp.name=scm-server -Dapp.repo=/root/scm-server130/lib -Dbasedir=/root/scm-server130 sonia.scm.server.ScmServerDaemon start
     1391 pts/0    S+     0:00 grep scm
    [root@scm ~]# /root/scm-server130/bin/scm-server stop
    [root@scm ~]# ps ax | grep scm
     1402 pts/0    S+     0:00 grep scm
    [root@scm ~]# /root/scm-server130/bin/scm-server
    2013-05-30 11:19:54.008:INFO:oejs.Server:jetty-7.6.8.v20121106
    2013-05-30 11:19:54.087:INFO:oejw.WebInfConfiguration:Extract jar:file:/root/scm-server130/var/webapp/scm-webapp.war!/ to /tmp/jetty-0.0.0.0-80-scm-webapp.war-_scm-any-/webapp
    2013-05-30 11:19:55.407:INFO:oejw.StandardDescriptorProcessor:NO JSP Support for /scm, did not find org.apache.jasper.servlet.JspServlet
    11:19:55.626 [main] INFO  sonia.scm.boot.BootstrapListener - start scm-manager 1.30 in stage: PRODUCTION
    11:19:55.774 [main] INFO  sonia.scm.boot.BootstrapUtil - using parent-first as plugin classloading strategy
    11:19:55.774 [main] INFO  sonia.scm.boot.BootstrapListener - try to use ScmBootstrapClassLoader
    11:19:55.792 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - load core plugin /tmp/jetty-0.0.0.0-80-scm-webapp.war-_scm-any-/webapp/WEB-INF/lib/scm-svn-plugin-1.30.jar
    11:19:55.815 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - load core plugin /tmp/jetty-0.0.0.0-80-scm-webapp.war-_scm-any-/webapp/WEB-INF/lib/scm-hg-plugin-1.30.jar
    11:19:55.817 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - load core plugin /tmp/jetty-0.0.0.0-80-scm-webapp.war-_scm-any-/webapp/WEB-INF/lib/scm-git-plugin-1.30.jar
    11:19:55.822 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - load  plugin /root/.scm/plugins/sonia/scm/plugins/scm-mail-plugin/1.4/scm-mail-plugin-1.4.jar
    11:19:55.825 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - load  plugin /root/.scm/plugins/sonia/scm/plugins/scm-notify-plugin/1.2/scm-notify-plugin-1.2.jar
    11:19:56.036 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - add module class sonia.scm.notify.NotifyModule
    11:19:56.036 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - add module class sonia.scm.web.SvnServletModule
    11:19:56.036 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - add module class sonia.scm.web.GitServletModule
    11:19:56.037 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - add module class sonia.scm.mail.internal.MailModule
    11:19:56.037 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - add module class sonia.scm.web.HgServletModule
    11:19:56.137 [main] INFO  sonia.scm.util.ScmConfigurationUtil - load ScmConfiguration from file /root/.scm/config/config.xml
    11:19:56.201 [main] INFO  sonia.scm.event.ScmEventBus - use sonia.scm.event.GuavaScmEventBus as event bus implementation
    11:19:56.205 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - bind 14 extensions to 21 extension points
    11:19:56.205 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.repository.ChangesetPreProcessor
    11:19:56.214 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.group.GroupListener
    11:19:56.214 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.repository.RepositoryHandler
    11:19:56.215 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - bind sonia.scm.repository.GitRepositoryHandler to multibinder of sonia.scm.repository.RepositoryHandler
    11:19:56.215 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - bind sonia.scm.repository.SvnRepositoryHandler to multibinder of sonia.scm.repository.RepositoryHandler
    11:19:56.216 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - bind sonia.scm.repository.HgRepositoryHandler to multibinder of sonia.scm.repository.RepositoryHandler
    11:19:56.216 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.resources.ResourceHandler
    11:19:56.217 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.repository.BlameLinePreProcessor
    11:19:56.217 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.repository.FileObjectPreProcessorFactory
    11:19:56.218 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.repository.spi.RepositoryServiceResolver
    11:19:56.218 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - bind sonia.scm.repository.spi.SvnRepositoryServiceResolver to multibinder of sonia.scm.repository.spi.RepositoryServiceResolver
    11:19:56.218 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - bind sonia.scm.repository.spi.GitRepositoryServiceResolver to multibinder of sonia.scm.repository.spi.RepositoryServiceResolver
    11:19:56.219 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - bind sonia.scm.repository.spi.HgRepositoryServiceResolver to multibinder of sonia.scm.repository.spi.RepositoryServiceResolver
    11:19:56.219 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.repository.RepositoryManagerDecoratorFactory
    11:19:56.220 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.repository.RepositoryRequestListener
    11:19:56.220 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.repository.BlameLinePreProcessorFactory
    11:19:56.221 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for javax.servlet.ServletContextListener
    11:19:56.221 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - bind sonia.scm.notify.migration.MigrationContextListener to multibinder of javax.servlet.ServletContextListener
    11:19:56.221 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.repository.RepositoryListener
    11:19:56.222 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.repository.ChangesetPreProcessorFactory
    11:19:56.222 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.web.security.AuthenticationListener
    11:19:56.223 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.repository.FileObjectPreProcessor
    11:19:56.223 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.web.security.AuthenticationHandler
    11:19:56.224 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - bind sonia.scm.web.security.DefaultAuthenticationHandler to multibinder of sonia.scm.web.security.AuthenticationHandler
    11:19:56.224 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.user.UserManagerDecoratorFactory
    11:19:56.224 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.user.UserListener
    11:19:56.225 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.repository.RepositoryHook
    11:19:56.226 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - bind sonia.scm.notify.NotifyRepositoryHook to multibinder of sonia.scm.repository.RepositoryHook
    11:19:56.226 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.group.GroupManagerDecoratorFactory
    11:19:56.242 [main] INFO  sonia.scm.ScmServletModule - configure jersey with package path: sonia.scm
    11:19:56.660 [main] WARN  sonia.scm.cache.GuavaCacheConfigurationReader - could not find manual configuration at /root/.scm/ext/gcache.xml
    11:19:56.810 [main] INFO  sonia.scm.repository.DefaultRepositoryManager - added RepositoryHandler class sonia.scm.repository.GitRepositoryHandler for type Type{name=git, displayName=Git}
    11:19:56.810 [main] INFO  sonia.scm.repository.DefaultRepositoryManager - added RepositoryHandler class sonia.scm.repository.SvnRepositoryHandler for type Type{name=svn, displayName=Subversion}
    11:19:56.810 [main] INFO  sonia.scm.repository.DefaultRepositoryManager - added RepositoryHandler class sonia.scm.repository.HgRepositoryHandler for type Type{name=hg, displayName=Mercurial}
    2013-05-30 11:19:56.915:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext{/scm,file:/tmp/jetty-0.0.0.0-80-scm-webapp.war-_scm-any-/webapp/},/root/scm-server130/var/webapp/scm-webapp.war
    11:19:56.916 [main] INFO  sonia.scm.boot.BootstrapFilter - loading GuiceFilter with ScmBootstrapClassLoader
    May 30, 2013 11:19:56 AM com.sun.jersey.api.core.PackagesResourceConfig init
    INFO: Scanning for root resource and provider classes in the packages:
      sonia.scm
    May 30, 2013 11:19:57 AM com.sun.jersey.api.core.ScanningResourceConfig logClasses
    INFO: Root resource classes found:
      class sonia.scm.api.rest.resources.RepositoryResource
      class sonia.scm.api.rest.resources.GitConfigResource
      class sonia.scm.api.rest.resources.SupportResource
      class sonia.scm.api.rest.resources.ChangePasswordResource
      class sonia.scm.api.rest.resources.GroupResource
      class sonia.scm.api.rest.resources.RepositoryRootResource
      class sonia.scm.api.rest.resources.HgConfigResource
      class sonia.scm.api.rest.resources.SearchResource
      class sonia.scm.api.rest.resources.PluginResource
      class sonia.scm.api.rest.resources.AuthenticationResource
      class sonia.scm.api.rest.resources.UserResource
      class sonia.scm.api.rest.resources.ConfigurationResource
      class sonia.scm.api.rest.resources.SvnConfigResource
      class sonia.scm.mail.internal.MailConfigurationResource
      class sonia.scm.api.rest.resources.RepositoryImportResource
    May 30, 2013 11:19:57 AM com.sun.jersey.api.core.ScanningResourceConfig logClasses
    INFO: Provider classes found:
      class sonia.scm.api.rest.ScmSecurityExceptionMapper
      class sonia.scm.api.rest.RestActionUploadResultMessageWriter
      class sonia.scm.api.rest.TemplateEngineViewable
    May 30, 2013 11:19:57 AM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
    INFO: Initiating Jersey application, version 'Jersey: 1.17.1 02/28/2013 12:47 PM'
    May 30, 2013 11:19:57 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
    INFO: Binding sonia.scm.api.rest.TemplateEngineViewable to GuiceInstantiatedComponentProvider
    May 30, 2013 11:19:57 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
    INFO: Binding sonia.scm.api.rest.resources.UserResource to GuiceInstantiatedComponentProvider
    May 30, 2013 11:19:57 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
    INFO: Binding sonia.scm.api.rest.resources.SupportResource to GuiceInstantiatedComponentProvider
    May 30, 2013 11:19:57 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
    INFO: Binding sonia.scm.api.rest.resources.SearchResource to GuiceInstantiatedComponentProvider
    May 30, 2013 11:19:57 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
    INFO: Binding sonia.scm.api.rest.resources.RepositoryRootResource to GuiceInstantiatedComponentProvider
    May 30, 2013 11:19:57 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
    INFO: Binding sonia.scm.api.rest.resources.RepositoryResource to GuiceInstantiatedComponentProvider
    May 30, 2013 11:19:57 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
    INFO: Binding sonia.scm.api.rest.resources.RepositoryImportResource to GuiceInstantiatedComponentProvider
    May 30, 2013 11:19:57 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
    INFO: Binding sonia.scm.api.rest.resources.PluginResource to GuiceInstantiatedComponentProvider
    May 30, 2013 11:19:57 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
    INFO: Binding sonia.scm.api.rest.resources.GroupResource to GuiceInstantiatedComponentProvider
    May 30, 2013 11:19:57 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
    INFO: Binding sonia.scm.api.rest.resources.ConfigurationResource to GuiceInstantiatedComponentProvider
    May 30, 2013 11:19:57 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
    INFO: Binding sonia.scm.api.rest.resources.ChangePasswordResource to GuiceInstantiatedComponentProvider
    May 30, 2013 11:19:57 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
    INFO: Binding sonia.scm.api.rest.resources.AuthenticationResource to GuiceInstantiatedComponentProvider
    May 30, 2013 11:19:57 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
    INFO: Binding sonia.scm.api.rest.resources.SvnConfigResource to GuiceInstantiatedComponentProvider
    May 30, 2013 11:19:57 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
    INFO: Binding sonia.scm.api.rest.resources.HgConfigResource to GuiceInstantiatedComponentProvider
    May 30, 2013 11:19:57 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
    INFO: Binding sonia.scm.api.rest.resources.GitConfigResource to GuiceInstantiatedComponentProvider
    May 30, 2013 11:19:57 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
    INFO: Binding sonia.scm.mail.internal.MailConfigurationResource to GuiceInstantiatedComponentProvider
    2013-05-30 11:19:57.672:INFO:oejw.StandardDescriptorProcessor:NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet
    2013-05-30 11:19:57.676:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext{/,[file:/root/scm-server130/var/webapp/docroot/]}
    2013-05-30 11:19:57.691:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:80
    

    After starting in console mode I can open SCM in web on 80 port.

  12. ppo_

    In console mode it looks like:

    [root@scm ~]# ps ax | grep scm
     1432 pts/0    Sl     0:04 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/bin/java -Djava.awt.headless=true -Dlogback.configurationFile=logging.xml -classpath :/root/scm-server130/conf:/root/scm-server130/lib/scm-server-1.30.jar:/root/scm-server130/lib/commons-daemon-1.0.10.jar:/root/scm-server130/lib/jetty-server-7.6.8.v20121106.jar:/root/scm-server130/lib/javax.servlet-2.5.0.v201103041518.jar:/root/scm-server130/lib/jetty-continuation-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-http-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-io-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-webapp-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-xml-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-servlet-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-security-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-jmx-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-util-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-ajp-7.6.8.v20121106.jar -Dapp.name=scm-server -Dapp.pid=1432 -Dapp.repo=/root/scm-server130/lib -Dbasedir=/root/scm-server130 sonia.scm.server.ScmServerDaemon
     1463 pts/0    S+     0:00 grep scm
    [root@scm ~]# netstat -nlp | grep 80
    tcp        0      0 :::80                       :::*                        LISTEN      1432/java  
    
  13. Sebastian Sdorra repo owner

    So it works when you start the command manually, but it fails if you ran the init script? That is very strange! Could you change your shell to /bin/sh and start "scm-server start" again?

  14. ppo_
    [root@scm ~]# echo $0
    -bash
    [root@scm ~]# which sh
    /bin/sh
    [root@scm ~]# ps ax | grep scm
     1499 pts/1    S+     0:00 grep scm
    [root@scm ~]# netstat -nlp | grep 80
    [root@scm ~]# /bin/sh
    sh-4.1# echo $0
    /bin/sh
    sh-4.1# /root/scm-server130/bin/scm-server start
    Cannot locate Java Home
    sh-4.1# export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre
    sh-4.1# /root/scm-server130/bin/scm-server start
    sh-4.1# ps ax | grep scm
     1523 ?        Ss     0:00 jsvc.exec -cp :/root/scm-server130/conf:/root/scm-server130/lib/scm-server-1.30.jar:/root/scm-server130/lib/commons-daemon-1.0.10.jar:/root/scm-server130/lib/jetty-server-7.6.8.v20121106.jar:/root/scm-server130/lib/javax.servlet-2.5.0.v201103041518.jar:/root/scm-server130/lib/jetty-continuation-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-http-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-io-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-webapp-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-xml-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-servlet-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-security-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-jmx-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-util-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-ajp-7.6.8.v20121106.jar -Djava.awt.headless=true -Dlogback.configurationFile=logging.xml -user root -outfile /root/scm-server130/var/log/scm-server.out -errfile /root/scm-server130/var/log/scm-server.err -pidfile /root/scm-server130/var/scm-server.pid -jvm server -home /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre -Dapp.name=scm-server -Dapp.repo=/root/scm-server130/lib -Dbasedir=/root/scm-server130 sonia.scm.server.ScmServerDaemon start
     1524 ?        Sl     0:04 jsvc.exec -cp :/root/scm-server130/conf:/root/scm-server130/lib/scm-server-1.30.jar:/root/scm-server130/lib/commons-daemon-1.0.10.jar:/root/scm-server130/lib/jetty-server-7.6.8.v20121106.jar:/root/scm-server130/lib/javax.servlet-2.5.0.v201103041518.jar:/root/scm-server130/lib/jetty-continuation-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-http-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-io-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-webapp-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-xml-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-servlet-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-security-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-jmx-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-util-7.6.8.v20121106.jar:/root/scm-server130/lib/jetty-ajp-7.6.8.v20121106.jar -Djava.awt.headless=true -Dlogback.configurationFile=logging.xml -user root -outfile /root/scm-server130/var/log/scm-server.out -errfile /root/scm-server130/var/log/scm-server.err -pidfile /root/scm-server130/var/scm-server.pid -jvm server -home /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre -Dapp.name=scm-server -Dapp.repo=/root/scm-server130/lib -Dbasedir=/root/scm-server130 sonia.scm.server.ScmServerDaemon start
     1537 pts/1    S+     0:00 grep scm
    sh-4.1# netstat -nlp | grep 80
    sh-4.1#
    

    Result the same, can't bind to port 80.

  15. ppo_
    /root/scm-server130/bin/scm-server start
    

    Don't work in two cases (bash, sh), process started, but can't bind to port. Same for init script, that calls scm-server start (Init script works only during reboot system, than SCM can bind to port)

    /root/scm-server130/bin/scm-server
    

    Console mode works in bash and sh.

  16. ppo_
    [root@scm bin]# pwd
    /root/scm-server130/bin
    [root@scm bin]# grep USER= scm-server
    USER=""
    [root@scm bin]# netstat -nlp | grep 80
    tcp        0      0 :::80                       :::*                        LISTEN      1288/jsvc.exec      
    unix  2      [ ACC ]     STREAM     LISTENING     9180   1246/acpid          /var/run/acpid.socket
    [root@scm bin]# /etc/init.d/scmserver stop
    [root@scm bin]# /etc/init.d/scmserver start
    [root@scm bin]# netstat -nlp | grep 80
    tcp        0      0 :::80                       :::*                        LISTEN      1410/jsvc.exec      
    unix  2      [ ACC ]     STREAM     LISTENING     9180   1246/acpid          /var/run/acpid.socket
    

    Success!! Thank you again!!

  17. Log in to comment