help on starting up Jenkins on Suse Linux

499 views
Skip to first unread message

Vijai Meda

unread,
Jan 6, 2017, 5:15:18 AM1/6/17
to Jenkins Users
Hi,
 I have downloaded rpm for “Red Hat/Fedora/CentOS” and installed on my Suse Linux 11, below is the output of the installation.


warning: jenkins-2.32.1-1.1.noarch.rpm: Header V4 DSA signature: NOKEY, key ID d50582e6

Preparing...                ########################################### [100%]

   1:jenkins                ########################################### [100%]

jenkins                   0:off  1:off  2:off  3:on   4:off  5:on   6:off


But when I start the Jenkins, it fails with below error.

/etc/init.d/jenkins: line 51: /etc/init.d/functions: No such file or directory


If any of you guys ever encountered or did know a solution, then please help me.

In which directory Jenkins gets installed at?


Thanks,

Vijai


Mark Waite

unread,
Jan 6, 2017, 5:27:48 AM1/6/17
to Jenkins Users
You're trying to use a package created for a Red Hat distribution on a distribution which is not Red Hat or a Red Hat derivative.  In general, that won't work.


You should probably use the SUSE / openSUSE long term support package from http://pkg.jenkins-ci.org/opensuse-stable/ or the weekly from http://pkg.jenkins-ci.org/opensuse/ 

Mark Waite

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/64a7c6ef-f469-4a6a-8944-562ec3c517d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vijai Meda

unread,
Jan 6, 2017, 7:02:33 AM1/6/17
to Jenkins Users
Thanks Mark.
I have downloaded OpenSuSe package and installed.
Now it simply says  failed.

hyslnx20:/opt/home/vm185012/Jenkins # /etc/init.d/jenkins start
Starting Jenkins                                                               failed

I have debugged a /etc/init.d/jenkins script it fails  at

case "$1" in
    start)
        echo -n "Starting Jenkins "
        /sbin/checkproc -k -p "$JENKINS_PID_FILE" "$JAVA_HOME/bin/java" >/var/log/jenkins.rc 2>&1
        CHECK=$?
        if [ $CHECK -eq 7 ]; then
                rm -f "$JENKINS_PID_FILE"
                if [ -x "$JENKINS_INIT_SHELL" ]; then
 
                       startproc -n $JENKINS_NICE -s -e -l /var/log/jenkins.rc -p "$JENKINS_PID_FILE" -t 1 /bin/su -l -s "$JENKINS_INIT_SHELL" -c "$JAVA_CMD $PARAMS &" "$JENKINS_USER"
                else


                       HOME=$JENKINS_HOME startproc -n $JENKINS_NICE -s -e -l /var/log/jenkins.rc -u "$JENKINS_USER" -p "$JENKINS_PID_FILE" $JAVA_CMD $PARAMS
                fi
                JPROC=$( pgrep java -U $JENKINS_USER )
                if [ -n "$JPROC" ]; then
                        echo "$JPROC" >"$JENKINS_PID_FILE"
                        rc_status -v
                else
                        echo " Failed here....1"
                        rc_failed
                        rc_status -v
                fi
        else

The command doesnt seem to be running in the backgroud "startproc -n $JENKINS_NICE -s -e -l /var/log/jenkins.rc -p "$JENKINS_PID_FILE" -t 1 /bin/su -l -s "$JENKINS_INIT_SHELL" -c "$JAVA_CMD $PARAMS &" "$JENKINS_USER"" and hence the below lines fail

JPROC=$( pgrep java -U $JENKINS_USER )
                if [ -n "$JPROC" ]; then

Mark Waite

unread,
Jan 6, 2017, 7:09:08 AM1/6/17
to Jenkins Users
Sorry, but I'm not a SUSE user.  You'll need to investigate further on your own.

Mark Waite

Jeffrey Cañas

unread,
Jan 12, 2017, 6:47:42 PM1/12/17
to Jenkins Users
Do you have JAVA installed on your server?
Reply all
Reply to author
Forward
0 new messages