Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-65111

Jenkins is not accessible with system service [jenkins.service]

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Feodra 32
      Kernel: 5.10*
      Jenkins version:
      2.218

      I am trying start Jenkins with jenkins.service system service and accessing jenkins through http page on 8080 port.

      When we run system service I could jenkinis is running.But not accessible through browser.

       

      ● jenkins.service - LSB: Jenkins Automation Server
      Loaded: loaded (/etc/rc.d/init.d/jenkins; generated)
      Active: active (running) since Sun 2021-03-14 12:49:32 GMT; 7min ago
      Docs: man:systemd-sysv-generator(8)
      Process: 506279 ExecStart=/etc/rc.d/init.d/jenkins start (code=exited, status=0/SUCCESS)
      Tasks: 1 (limit: 230350)
      Memory: 71.2M
      CPU: 1.759s
      CGroup: /system.slice/jenkins.service
      └─506338 /etc/alternatives/java -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war>

      Mar 14 12:49:31 localhost systemd[1]: Starting LSB: Jenkins Automation Server...
      Mar 14 12:49:31 localhost runuser[506285]: pam_unix(runuser:session): session opened for user root by (uid=0)
      Mar 14 12:49:31 localhost runuser[506285]: pam_unix(runuser:session): session closed for user root
      Mar 14 12:49:32 localhost jenkins[506279]: [30B blob data]
      Mar 14 12:49:32 localhost systemd[1]: Started LSB: Jenkins Automation Server.

      Is not working

      Where as when I try to run manually, I could able to access.

      /etc/alternatives/java -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war

      is working good.

       

            Unassigned Unassigned
            gindrasena IndrasenaReddy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: