Gitblit does not start

290 views
Skip to first unread message

Christopher Auth

unread,
May 20, 2015, 3:41:16 PM5/20/15
to git...@googlegroups.com
Hi,

ich have problem to start the Gitblit Go (1.6.2) Application. I don't know why the application dosn't starts. I have add the service-ubuntu.sh script to the init.d directory. All works fine but today after an reboot Gitblit is unavailable. In the logs I can't find helpfull informations.

2015-05-20 20:45:01 [INFO ] *****************************************************************
2015-05-20 20:45:01 [INFO ] Running on Linux (3.13.0-53-generic)
2015-05-20 20:45:01 [INFO ] Logging initialized @345ms
2015-05-20 20:55:31 [INFO ] *****************************************************************
2015-05-20 20:55:31 [INFO ]             _____  _  _    _      _  _  _
2015-05-20 20:55:31 [INFO ]            |  __ \(_)| |  | |    | |(_)| |
2015-05-20 20:55:31 [INFO ]            | |  \/ _ | |_ | |__  | | _ | |_
2015-05-20 20:55:31 [INFO ]            | | __ | || __|| '_ \ | || || __|
2015-05-20 20:55:31 [INFO ]            | |_\ \| || |_ | |_) || || || |_
2015-05-20 20:55:31 [INFO ]             \____/|_| \__||_.__/ |_||_| \__|
2015-05-20 20:55:31 [INFO ]                          Gitblit v1.6.2
2015-05-20 20:55:31 [INFO ] 
2015-05-20 20:55:31 [INFO ] *****************************************************************
2015-05-20 20:55:31 [INFO ] Running on Linux (3.13.0-53-generic)
2015-05-20 20:55:31 [INFO ] Logging initialized @888ms
2015-05-20 20:56:32 [INFO ] *****************************************************************
2015-05-20 20:56:32 [INFO ]             _____  _  _    _      _  _  _
2015-05-20 20:56:32 [INFO ]            |  __ \(_)| |  | |    | |(_)| |
2015-05-20 20:56:32 [INFO ]            | |  \/ _ | |_ | |__  | | _ | |_
2015-05-20 20:56:32 [INFO ]            | | __ | || __|| '_ \ | || || __|
2015-05-20 20:56:32 [INFO ]            | |_\ \| || |_ | |_) || || || |_
2015-05-20 20:56:32 [INFO ]             \____/|_| \__||_.__/ |_||_| \__|
2015-05-20 20:56:32 [INFO ]                          Gitblit v1.6.2
2015-05-20 20:56:32 [INFO ] 
2015-05-20 20:56:32 [INFO ] *****************************************************************
2015-05-20 20:56:32 [INFO ] Running on Linux (3.13.0-53-generic)
2015-05-20 20:56:32 [INFO ] Logging initialized @373ms
2015-05-20 21:17:45 [INFO ] *****************************************************************
2015-05-20 21:17:45 [INFO ]             _____  _  _    _      _  _  _
2015-05-20 21:17:45 [INFO ]            |  __ \(_)| |  | |    | |(_)| |
2015-05-20 21:17:45 [INFO ]            | |  \/ _ | |_ | |__  | | _ | |_
2015-05-20 21:17:45 [INFO ]            | | __ | || __|| '_ \ | || || __|
2015-05-20 21:17:45 [INFO ]            | |_\ \| || |_ | |_) || || || |_
2015-05-20 21:17:45 [INFO ]             \____/|_| \__||_.__/ |_||_| \__|
2015-05-20 21:17:45 [INFO ]                          Gitblit v1.6.2
2015-05-20 21:17:45 [INFO ] 
2015-05-20 21:17:45 [INFO ] *****************************************************************
2015-05-20 21:17:45 [INFO ] Running on Linux (3.13.0-53-generic)
2015-05-20 21:17:45 [INFO ] Logging initialized @482ms


Every time I reboot another INFO log will add. If I restart gitblit with service gitblie restart, the folowing console text was print.

service gitblit restart 
Stopping gitblit server
start-stop-daemon: warning: failed to kill 9035: No such process
Starting gitblit server


What can I do to find a solution?

Thanks
Christopher

James Moger

unread,
May 21, 2015, 9:40:17 PM5/21/15
to git...@googlegroups.com
How about starting it manually.  Perhaps that'll give a clue.

-J


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

Christopher Auth

unread,
May 26, 2015, 4:57:07 AM5/26/15
to git...@googlegroups.com
Hi,

I think I have a error in the gitblit.property. I have set up gitblit from scratch. Moved the git profile ... folders in the new gitblit folder, and it works again. I don't know whats wrong I have not compare the two gitblit.property files.

But thanks for your help.

The start script was add to /etc/init.d/gitblit
#!/bin/bash
### BEGIN INIT INFO
# Provides:          gitblit
# Required-Start:    $remote_fs $syslog $network
# Required-Stop:     $remote_fs $syslog $network
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Gitblit repository server
# Description:       Gitblit is a stand-alone service for managing, viewing and serving Git repositories.
### END INIT INFO
. /lib/init/vars.sh
. /lib/lsb/init-functions
PATH
=/sbin:/bin:/usr/bin:/usr/sbin
# change theses values (default values)
GITBLIT_PATH
=/opt/gitblit
GITBLIT_BASE_FOLDER
=/opt/gitblit/data
GITBLIT_USER
="gitblit"
source $
{GITBLIT_PATH}/java-proxy-config.sh
ARGS
="-server -Xmx1024M ${JAVA_PROXY_CONFIG} -Djava.awt.headless=true -jar gitblit.jar --baseFolder $GITBLIT_BASE_FOLDER --dailyLogFile"
RETVAL
=0
case "$1" in
  start
)
   
if [ -f $GITBLIT_PATH/gitblit.jar ];
     
then
      echo $
"Starting gitblit server"
      start
-stop-daemon --start --quiet --background --oknodo --make-pidfile --pidfile /var/run/gitblit.pid --exec /usr/bin/java --chuid $GITBLIT_USER --chdir $GITBLIT_PATH -- $ARGS
     
exit $RETVAL
   
fi
 
;;
  stop
)
   
if [ -f $GITBLIT_PATH/gitblit.jar ];
     
then
      echo $
"Stopping gitblit server"
      start
-stop-daemon --stop --quiet --oknodo --pidfile /var/run/gitblit.pid
     
exit $RETVAL
   
fi
 
;;
  force
-reload|restart)
      $0 stop
      sleep
5
      $0 start
 
;;
 
*)
    echo $
"Usage: /etc/init.d/gitblit {start|stop|restart|force-reload}"
   
exit 1
 
;;
esac
exit $RETVAL


Thanks
Christopher
Reply all
Reply to author
Forward
0 new messages