Jenkins LTS on Fedora 33 Server

78 views
Skip to first unread message

Horst Kronstorfer

unread,
Apr 26, 2021, 11:10:02 AM4/26/21
to Jenkins Users
hi!

i have installed jenkins lts according to the installation instructions @ https://www.jenkins.io/doc/book/installing/linux/#fedora but when i try to start the service it fails:

# systemctl start jenkins
Failed to start jenkins.service: Unit jenkins.service not found.

as it turns out the rpm does not contain the jenkins.service file:

# dnf repoquery --list jenkins
/etc/init.d/jenkins
/etc/logrotate.d/jenkins
/etc/sysconfig/jenkins
/etc/yum.repos.d/jenkins.repo
/usr/lib/jenkins
/usr/lib/jenkins/jenkins.war
/usr/sbin/rcjenkins
/var/cache/jenkins
/var/lib/jenkins
/var/log/jenkins
/etc/init.d/jenkins
/etc/logrotate.d/jenkins
/etc/sysconfig/jenkins
/etc/yum.repos.d/jenkins.repo
/usr/lib/jenkins
/usr/lib/jenkins/jenkins.war
/usr/sbin/rcjenkins
/var/lib/jenkins
/var/log/jenkins
/etc/init.d/jenkins
/etc/logrotate.d/jenkins
/etc/sysconfig/jenkins
/usr/lib/jenkins
/usr/lib/jenkins/jenkins.war
/usr/sbin/rcjenkins
/var/cache/jenkins
/var/lib/jenkins
/var/log/jenkins


is this file missing or am i supposed to provide one myself?

regards
-h

Fritz Elfert

unread,
Apr 27, 2021, 3:16:42 AM4/27/21
to jenkins...@googlegroups.com
In Fedora terms, jenkins is a so called legacy service. It does not provide a service file, but an old style System V init script.
That should be recognized by systemd, but for doing so, AFAIK it needs a package called initscripts. Maybe that one is missing
on your system?

Cheers
-Fritz
> --
> 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 <mailto:jenkinsci-use...@googlegroups.com>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/287def2b-92ff-4e46-a63e-f6bcceadfc9en%40googlegroups.com <https://groups.google.com/d/msgid/jenkinsci-users/287def2b-92ff-4e46-a63e-f6bcceadfc9en%40googlegroups.com?utm_medium=email&utm_source=footer>.

OpenPGP_0x6E8338980332A6B0.asc
OpenPGP_signature

Francesco Chemolli

unread,
Apr 27, 2021, 4:27:11 AM4/27/21
to jenkinsci-users
Solved. The plugin's name "Hudson bolts and latches" might have been a hint.

Thanks for the help!

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/b6d37443-d54d-ab9c-59d8-3137ab807755%40fritz-elfert.de.


--
    Francesco

Francesco Chemolli

unread,
Apr 27, 2021, 4:34:51 AM4/27/21
to jenkinsci-users
whoops, wrong thread. Apologies.
--
    Francesco

Horst Kronstorfer

unread,
Apr 28, 2021, 7:53:58 AM4/28/21
to Jenkins Users
hi!

in fact systemd recognizes jenkins as a legacy service when trying to enable it ... (this step is missing in the documentation):

# systemctl enable jenkins
jenkins.service is not a native service, redirecting to systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable jenkins
Failed to execute /usr/lib/systemd/systemd-sysv-install: No such file or directory

systemd-sysv-install is part of package chkconfig, so after executing ...

# dnf install chkconfig
# systemctl enable jenkins
# systemctl start jenkins

... it works!

thx!

regards
-h

Mark Waite

unread,
Apr 28, 2021, 9:21:11 PM4/28/21
to Jenkins Users
Thanks for describing the problem and for your investigation.  I've submitted https://github.com/jenkins-infra/jenkins.io/pull/4308 to update the documentation.  Would love to have your approval of the pull request, since I don't have a Fedora 33 system available.
Reply all
Reply to author
Forward
0 new messages