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

Jenkins is not starting on KDE NEON

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Component/s: _unsorted
    • Labels:
      None
    • Similar Issues:

      Description

      Installed KDE Neon (Based on Ubuntu 20.04LTS), installed openjdk 11 and the Jenkins 2.263.4. Installation went ok until the installer attempted to start jenkins (systemctl start jenkins).

      Error:

      Konfigurowanie pakietu jenkins (2.263.4) ...
      Job for jenkins.service failed because the control process exited with error code.
      See "systemctl status jenkins.service" and "journalctl -xe" for details.
      invoke-rc.d: initscript jenkins, action "start" failed.
      ● jenkins.service - LSB: Start Jenkins at boot time
          Loaded: loaded (/etc/init.d/jenkins; generated)
          Active: failed (Result: exit-code) since Sat 2021-02-27 16:56:24 CET; 5ms ago
            Docs: man:systemd-sysv-generator(8)
         Process: 15709 ExecStart=/etc/init.d/jenkins start (code=exited, status=7)

      lut 27 16:56:23 krzysiek-KDENeon-AIO-520-24ICB systemd[1]: Starting LSB: Start Jenkins at boot time...
      lut 27 16:56:23 krzysiek-KDENeon-AIO-520-24ICB jenkins[15709]: Correct java version found
      lut 27 16:56:23 krzysiek-KDENeon-AIO-520-24ICB jenkins[15709]:  * Starting Jenkins Automation Server jenkins
      lut 27 16:56:23 krzysiek-KDENeon-AIO-520-24ICB su[15764]: (to jenkins) root on none
      lut 27 16:56:23 krzysiek-KDENeon-AIO-520-24ICB su[15764]: pam_unix(su-l:session): session opened for user jenkins by (uid=0)
      lut 27 16:56:23 krzysiek-KDENeon-AIO-520-24ICB su[15764]: pam_unix(su-l:session): session closed for user jenkins
      lut 27 16:56:24 krzysiek-KDENeon-AIO-520-24ICB jenkins[15709]:    ...fail!
      lut 27 16:56:24 krzysiek-KDENeon-AIO-520-24ICB systemd[1]: jenkins.service: Control process exited, code=exited, status=7/NOTRUNNING
      lut 27 16:56:24 krzysiek-KDENeon-AIO-520-24ICB systemd[1]: jenkins.service: Failed with result 'exit-code'.
      lut 27 16:56:24 krzysiek-KDENeon-AIO-520-24ICB systemd[1]: Failed to start LSB: Start Jenkins at boot time.
      dpkg: błąd przetwarzania pakietu jenkins (--configure):
      podproces zainstalowany pakiet jenkins skrypt post-installation zwrócił kod błędu 1
      Wystąpiły błędy podczas przetwarzania:
      jenkins
      E: Sub-process /usr/bin/dpkg returned an error code (1)

      Log from journalctl -xe

      – Jednostka packagekit.service pomyślnie przeszła do stanu „dead” (martwego).
      lut 27 17:04:35 krzysiek-KDENeon-AIO-520-24ICB sudo[16160]: krzysiek : TTY=pts/1 ; PWD=/home/krzysiek ; USER=root ; COMMAND=/bin/systemctl >
      lut 27 17:04:35 krzysiek-KDENeon-AIO-520-24ICB sudo[16160]: pam_unix(sudo:session): session opened for user root by (uid=0)
      lut 27 17:04:35 krzysiek-KDENeon-AIO-520-24ICB sudo[16160]: pam_unix(sudo:session): session closed for user root
      lut 27 17:05:20 krzysiek-KDENeon-AIO-520-24ICB sudo[16171]: krzysiek : TTY=pts/1 ; PWD=/home/krzysiek ; USER=root ; COMMAND=/bin/journalctl>
      lut 27 17:05:20 krzysiek-KDENeon-AIO-520-24ICB sudo[16171]: pam_unix(sudo:session): session opened for user root by (uid=0)
      lut 27 17:05:20 krzysiek-KDENeon-AIO-520-24ICB sudo[16171]: pam_unix(sudo:session): session closed for user root
      lut 27 17:05:25 krzysiek-KDENeon-AIO-520-24ICB sudo[16173]: krzysiek : TTY=pts/1 ; PWD=/home/krzysiek ; USER=root ; COMMAND=/bin/journalctl>
      lut 27 17:05:25 krzysiek-KDENeon-AIO-520-24ICB sudo[16173]: pam_unix(sudo:session): session opened for user root by (uid=0)

        Attachments

          Activity

          krzysieks Krzysztof Swiatly created issue -
          Hide
          markewaite Mark Waite added a comment -

          What is the content of /var/log/jenkins/jenkins.log?

          Can you run jenkins.war from a typical user account with the command java -jar /usr/share/jenkins/jenkins.war?

          Show
          markewaite Mark Waite added a comment - What is the content of /var/log/jenkins/jenkins.log ? Can you run jenkins.war from a typical user account with the command java -jar /usr/share/jenkins/jenkins.war ?
          Hide
          krzysieks Krzysztof Swiatly added a comment -

          java -jar /usr/share/jenkins/jenkins.war
          Running from: /usr/share/jenkins/jenkins.war
          webroot: $user.home/.jenkins
          2021-02-27 18:03:11.644+0000 [id=1]     INFO    org.eclipse.jetty.util.log.Log#initialized: Logging initialized @1215ms to org.eclipse.jetty
          .util.log.JavaUtilLog
          2021-02-27 18:03:11.777+0000 [id=1]     INFO    winstone.Logger#logInternal: Beginning extraction from war file
          2021-02-27 18:03:12.614+0000 [id=1]     WARNING o.e.j.s.handler.ContextHandler#setContextPath: Empty contextPath
          2021-02-27 18:03:12.668+0000 [id=1]     INFO    org.eclipse.jetty.server.Server#doStart: jetty-9.4.33.v20201020; built: 2020-10-20T23:39:24.
          803Z; git: 1be68755656cef678b79a2ef1c2ebbca99e25420; jvm 11.0.10+9-Ubuntu-0ubuntu1.20.04
          2021-02-27 18:03:13.083+0000 [id=1]     INFO    o.e.j.w.StandardDescriptorProcessor#visitServlet: NO JSP Support for /, did not find org.ecl
          ipse.jetty.jsp.JettyJspServlet
          2021-02-27 18:03:13.121+0000 [id=1]     INFO    o.e.j.s.s.DefaultSessionIdManager#doStart: DefaultSessionIdManager workerName=node0
          2021-02-27 18:03:13.121+0000 [id=1]     INFO    o.e.j.s.s.DefaultSessionIdManager#doStart: No SessionScavenger set, using defaults
          2021-02-27 18:03:13.122+0000 [id=1]     INFO    o.e.j.server.session.HouseKeeper#startScavenging: node0 Scavenging every 660000ms
          WARNING: An illegal reflective access operation has occurred
          WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:/home/krzysiek/.jenkins/war/WEB-INF/lib/xstream-1.4.7-
          jenkins-1.jar) to field java.util.TreeMap.comparator
          WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.core.util.Fields
          WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
          WARNING: All illegal access operations will be denied in a future release
          2021-02-27 18:03:13.585+0000 [id=1]     INFO    hudson.WebAppMain#contextInitialized: Jenkins home directory: /home/krzysiek/.jenkins found
          at: $user.home/.jenkins
          2021-02-27 18:03:13.926+0000 [id=1]     INFO    o.e.j.s.handler.ContextHandler#doStart: Started w.@e344ad3

          {Jenkins v2.263.4,/,file:///home/k rzysiek/.jenkins/war/,AVAILABLE}

          {/home/krzysiek/.jenkins/war}
          2021-02-27 18:03:13.977+0000 [id=1]     INFO    o.e.j.server.AbstractConnector#doStart: Started ServerConnector@67d18ed7

          {HTTP/1.1, (http/1.1 )}

          {0.0.0.0:8080}
          2021-02-27 18:03:13.977+0000 [id=1]     INFO    org.eclipse.jetty.server.Server#doStart: Started @3548ms
          2021-02-27 18:03:13.977+0000 [id=24]    INFO    winstone.Logger#logInternal: Winstone Servlet Engine running: controlPort=disabled
          2021-02-27 18:03:14.283+0000 [id=31]    INFO    jenkins.InitReactorRunner$1#onAttained: Started initialization
          2021-02-27 18:03:14.407+0000 [id=34]    INFO    jenkins.InitReactorRunner$1#onAttained: Listed all plugins
          2021-02-27 18:03:15.477+0000 [id=34]    INFO    jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
          2021-02-27 18:03:15.481+0000 [id=34]    INFO    jenkins.InitReactorRunner$1#onAttained: Started all plugins
          2021-02-27 18:03:15.484+0000 [id=36]    INFO    jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
          2021-02-27 18:03:15.713+0000 [id=29]    INFO    jenkins.InitReactorRunner$1#onAttained: System config loaded
          2021-02-27 18:03:15.714+0000 [id=29]    INFO    jenkins.InitReactorRunner$1#onAttained: System config adapted
          2021-02-27 18:03:15.714+0000 [id=29]    INFO    jenkins.InitReactorRunner$1#onAttained: Loaded all jobs
          2021-02-27 18:03:15.714+0000 [id=29]    INFO    jenkins.InitReactorRunner$1#onAttained: Configuration for all jobs updated
          2021-02-27 18:03:15.785+0000 [id=49]    INFO    hudson.model.AsyncPeriodicWork#lambda$doRun$0: Started Download metadata
          2021-02-27 18:03:15.817+0000 [id=49]    INFO    hudson.util.Retrier#start: Attempt #1 to do the action check updates server
          2021-02-27 18:03:16.523+0000 [id=30]    INFO    o.s.c.s.AbstractApplicationContext#prepareRefresh: Refreshing org.springframework.web.contex
          t.support.StaticWebApplicationContext@752a4531: display name [Root WebApplicationContext]; startup date [Sat Feb 27 19:03:16 CET 2021]; root
          of context hierarchy
          2021-02-27 18:03:16.523+0000 [id=30]    INFO    o.s.c.s.AbstractApplicationContext#obtainFreshBeanFactory: Bean factory for application cont
          ext [org.springframework.web.context.support.StaticWebApplicationContext@752a4531]: org.springframework.beans.factory.support.DefaultListabl
          eBeanFactory@7d17e186
          2021-02-27 18:03:16.548+0000 [id=30]    INFO    o.s.b.f.s.DefaultListableBeanFactory#preInstantiateSingletons: Pre-instantiating singletons
          in org.springframework.beans.factory.support.DefaultListableBeanFactory@7d17e186: defining beans [authenticationManager]; root of factory hi
          erarchy
          2021-02-27 18:03:16.670+0000 [id=30]    INFO    o.s.c.s.AbstractApplicationContext#prepareRefresh: Refreshing org.springframework.web.contex
          t.support.StaticWebApplicationContext@1a093bb: display name [Root WebApplicationContext]; startup date [Sat Feb 27 19:03:16 CET 2021]; root
          of context hierarchy
          2021-02-27 18:03:16.670+0000 [id=30]    INFO    o.s.c.s.AbstractApplicationContext#obtainFreshBeanFactory: Bean factory for application cont
          ext [org.springframework.web.context.support.StaticWebApplicationContext@1a093bb]: org.springframework.beans.factory.support.DefaultListable
          BeanFactory@c454606
          2021-02-27 18:03:16.671+0000 [id=30]    INFO    o.s.b.f.s.DefaultListableBeanFactory#preInstantiateSingletons: Pre-instantiating singletons
          in org.springframework.beans.factory.support.DefaultListableBeanFactory@c454606: defining beans [filter,legacy]; root of factory hierarchy
          2021-02-27 18:03:16.767+0000 [id=30]    INFO    jenkins.install.SetupWizard#init:  

          Jenkins initial setup is required. An admin user has been created and a password generated.
          Please use the following password to proceed to installation:

          ece8dd9e52bf466aa676570d3cb53262

          This may also be found at: /home/krzysiek/.jenkins/secrets/initialAdminPassword

          2021-02-27 18:03:30.289+0000 [id=49]    INFO    h.m.DownloadService$Downloadable#load: Obtained the updated data file for hudson.tasks.Maven
          .MavenInstaller
          2021-02-27 18:03:30.303+0000 [id=49]    INFO    hudson.util.Retrier#start: Performed the action check updates server successfully at the att
          empt #1
          2021-02-27 18:03:30.373+0000 [id=49]    INFO    hudson.model.AsyncPeriodicWork#lambda$doRun$0: Finished Download metadata. 14 572 ms
          2021-02-27 18:03:30.648+0000 [id=30]    INFO    jenkins.InitReactorRunner$1#onAttained: Completed initialization
          2021-02-27 18:03:30.697+0000 [id=23]    INFO    hudson.WebAppMain$3#run: Jenkins is fully up and running

          Content of /var/log/jenkins/jenkins.log is empty.

          Show
          krzysieks Krzysztof Swiatly added a comment - java -jar /usr/share/jenkins/jenkins.war Running from: /usr/share/jenkins/jenkins.war webroot: $user.home/.jenkins 2021-02-27 18:03:11.644+0000 [id=1]     INFO    org.eclipse.jetty.util.log.Log#initialized: Logging initialized @1215ms to org.eclipse.jetty .util.log.JavaUtilLog 2021-02-27 18:03:11.777+0000 [id=1]     INFO    winstone.Logger#logInternal: Beginning extraction from war file 2021-02-27 18:03:12.614+0000 [id=1]     WARNING o.e.j.s.handler.ContextHandler#setContextPath: Empty contextPath 2021-02-27 18:03:12.668+0000 [id=1]     INFO    org.eclipse.jetty.server.Server#doStart: jetty-9.4.33.v20201020; built: 2020-10-20T23:39:24. 803Z; git: 1be68755656cef678b79a2ef1c2ebbca99e25420; jvm 11.0.10+9-Ubuntu-0ubuntu1.20.04 2021-02-27 18:03:13.083+0000 [id=1]     INFO    o.e.j.w.StandardDescriptorProcessor#visitServlet: NO JSP Support for /, did not find org.ecl ipse.jetty.jsp.JettyJspServlet 2021-02-27 18:03:13.121+0000 [id=1]     INFO    o.e.j.s.s.DefaultSessionIdManager#doStart: DefaultSessionIdManager workerName=node0 2021-02-27 18:03:13.121+0000 [id=1]     INFO    o.e.j.s.s.DefaultSessionIdManager#doStart: No SessionScavenger set, using defaults 2021-02-27 18:03:13.122+0000 [id=1]     INFO    o.e.j.server.session.HouseKeeper#startScavenging: node0 Scavenging every 660000ms WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields ( file:/home/krzysiek/.jenkins/war/WEB-INF/lib/xstream-1.4.7- jenkins-1.jar) to field java.util.TreeMap.comparator WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.core.util.Fields WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 2021-02-27 18:03:13.585+0000 [id=1]     INFO    hudson.WebAppMain#contextInitialized: Jenkins home directory: /home/krzysiek/.jenkins found at: $user.home/.jenkins 2021-02-27 18:03:13.926+0000 [id=1]     INFO    o.e.j.s.handler.ContextHandler#doStart: Started w.@e344ad3 {Jenkins v2.263.4,/,file:///home/k rzysiek/.jenkins/war/,AVAILABLE} {/home/krzysiek/.jenkins/war} 2021-02-27 18:03:13.977+0000 [id=1]     INFO    o.e.j.server.AbstractConnector#doStart: Started ServerConnector@67d18ed7 {HTTP/1.1, (http/1.1 )} {0.0.0.0:8080} 2021-02-27 18:03:13.977+0000 [id=1]     INFO    org.eclipse.jetty.server.Server#doStart: Started @3548ms 2021-02-27 18:03:13.977+0000 [id=24]    INFO    winstone.Logger#logInternal: Winstone Servlet Engine running: controlPort=disabled 2021-02-27 18:03:14.283+0000 [id=31]    INFO    jenkins.InitReactorRunner$1#onAttained: Started initialization 2021-02-27 18:03:14.407+0000 [id=34]    INFO    jenkins.InitReactorRunner$1#onAttained: Listed all plugins 2021-02-27 18:03:15.477+0000 [id=34]    INFO    jenkins.InitReactorRunner$1#onAttained: Prepared all plugins 2021-02-27 18:03:15.481+0000 [id=34]    INFO    jenkins.InitReactorRunner$1#onAttained: Started all plugins 2021-02-27 18:03:15.484+0000 [id=36]    INFO    jenkins.InitReactorRunner$1#onAttained: Augmented all extensions 2021-02-27 18:03:15.713+0000 [id=29]    INFO    jenkins.InitReactorRunner$1#onAttained: System config loaded 2021-02-27 18:03:15.714+0000 [id=29]    INFO    jenkins.InitReactorRunner$1#onAttained: System config adapted 2021-02-27 18:03:15.714+0000 [id=29]    INFO    jenkins.InitReactorRunner$1#onAttained: Loaded all jobs 2021-02-27 18:03:15.714+0000 [id=29]    INFO    jenkins.InitReactorRunner$1#onAttained: Configuration for all jobs updated 2021-02-27 18:03:15.785+0000 [id=49]    INFO    hudson.model.AsyncPeriodicWork#lambda$doRun$0: Started Download metadata 2021-02-27 18:03:15.817+0000 [id=49]    INFO    hudson.util.Retrier#start: Attempt #1 to do the action check updates server 2021-02-27 18:03:16.523+0000 [id=30]    INFO    o.s.c.s.AbstractApplicationContext#prepareRefresh: Refreshing org.springframework.web.contex t.support.StaticWebApplicationContext@752a4531: display name [Root WebApplicationContext] ; startup date [Sat Feb 27 19:03:16 CET 2021] ; root of context hierarchy 2021-02-27 18:03:16.523+0000 [id=30]    INFO    o.s.c.s.AbstractApplicationContext#obtainFreshBeanFactory: Bean factory for application cont ext [org.springframework.web.context.support.StaticWebApplicationContext@752a4531] : org.springframework.beans.factory.support.DefaultListabl eBeanFactory@7d17e186 2021-02-27 18:03:16.548+0000 [id=30]    INFO    o.s.b.f.s.DefaultListableBeanFactory#preInstantiateSingletons: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@7d17e186: defining beans [authenticationManager] ; root of factory hi erarchy 2021-02-27 18:03:16.670+0000 [id=30]    INFO    o.s.c.s.AbstractApplicationContext#prepareRefresh: Refreshing org.springframework.web.contex t.support.StaticWebApplicationContext@1a093bb: display name [Root WebApplicationContext] ; startup date [Sat Feb 27 19:03:16 CET 2021] ; root of context hierarchy 2021-02-27 18:03:16.670+0000 [id=30]    INFO    o.s.c.s.AbstractApplicationContext#obtainFreshBeanFactory: Bean factory for application cont ext [org.springframework.web.context.support.StaticWebApplicationContext@1a093bb] : org.springframework.beans.factory.support.DefaultListable BeanFactory@c454606 2021-02-27 18:03:16.671+0000 [id=30]    INFO    o.s.b.f.s.DefaultListableBeanFactory#preInstantiateSingletons: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@c454606: defining beans [filter,legacy] ; root of factory hierarchy 2021-02-27 18:03:16.767+0000 [id=30]    INFO    jenkins.install.SetupWizard#init:   Jenkins initial setup is required. An admin user has been created and a password generated. Please use the following password to proceed to installation: ece8dd9e52bf466aa676570d3cb53262 This may also be found at: /home/krzysiek/.jenkins/secrets/initialAdminPassword 2021-02-27 18:03:30.289+0000 [id=49]    INFO    h.m.DownloadService$Downloadable#load: Obtained the updated data file for hudson.tasks.Maven .MavenInstaller 2021-02-27 18:03:30.303+0000 [id=49]    INFO    hudson.util.Retrier#start: Performed the action check updates server successfully at the att empt #1 2021-02-27 18:03:30.373+0000 [id=49]    INFO    hudson.model.AsyncPeriodicWork#lambda$doRun$0: Finished Download metadata. 14 572 ms 2021-02-27 18:03:30.648+0000 [id=30]    INFO    jenkins.InitReactorRunner$1#onAttained: Completed initialization 2021-02-27 18:03:30.697+0000 [id=23]    INFO    hudson.WebAppMain$3#run: Jenkins is fully up and running Content of /var/log/jenkins/jenkins.log is empty.
          Hide
          krzysieks Krzysztof Swiatly added a comment -

          I think problem can be here:

          lut 27 16:56:23 krzysiek-KDENeon-AIO-520-24ICB su[15764]: (to jenkins) root on none
          lut 27 16:56:23 krzysiek-KDENeon-AIO-520-24ICB su[15764]: pam_unix(su-l:session): session opened for user jenkins by (uid=0)
          lut 27 16:56:23 krzysiek-KDENeon-AIO-520-24ICB su[15764]: pam_unix(su-l:session): session closed for user jenkins
          lut 27 16:56:24 krzysiek-KDENeon-AIO-520-24ICB jenkins[15709]:    ...fail!

          but I don't know how to solve it. 

          Show
          krzysieks Krzysztof Swiatly added a comment - I think problem can be here: lut 27 16:56:23 krzysiek-KDENeon-AIO-520-24ICB su [15764] : (to jenkins) root on none lut 27 16:56:23 krzysiek-KDENeon-AIO-520-24ICB su [15764] : pam_unix(su-l:session): session opened for user jenkins by (uid=0) lut 27 16:56:23 krzysiek-KDENeon-AIO-520-24ICB su [15764] : pam_unix(su-l:session): session closed for user jenkins lut 27 16:56:24 krzysiek-KDENeon-AIO-520-24ICB jenkins [15709] :    ...fail! but I don't know how to solve it. 
          krzysieks Krzysztof Swiatly made changes -
          Field Original Value New Value
          Description nstalled KDE Neon (Based on Ubuntu 20.04LTS), installed openjdk 11 and the Jenkins 2.263.4. Installation went ok until the installer attempted to start jenkins (systemctl start jenkins).

          Error:

          Konfigurowanie pakietu jenkins (2.263.4) ...
          Job for jenkins.service failed because the control process exited with error code.
          See "systemctl status jenkins.service" and "journalctl -xe" for details.
          invoke-rc.d: initscript jenkins, action "start" failed.
          ● jenkins.service - LSB: Start Jenkins at boot time
               Loaded: loaded (/etc/init.d/jenkins; generated)
               Active: failed (Result: exit-code) since Sat 2021-02-27 16:56:24 CET; 5ms ago
                 Docs: man:systemd-sysv-generator(8)
              Process: 15709 ExecStart=/etc/init.d/jenkins start (code=exited, status=7)
           
          lut 27 16:56:23 krzysiek-KDENeon-AIO-520-24ICB systemd[1]: Starting LSB: Start Jenkins at boot time...
          lut 27 16:56:23 krzysiek-KDENeon-AIO-520-24ICB jenkins[15709]: Correct java version found
          lut 27 16:56:23 krzysiek-KDENeon-AIO-520-24ICB jenkins[15709]:  * Starting Jenkins Automation Server jenkins
          lut 27 16:56:23 krzysiek-KDENeon-AIO-520-24ICB su[15764]: (to jenkins) root on none
          lut 27 16:56:23 krzysiek-KDENeon-AIO-520-24ICB su[15764]: pam_unix(su-l:session): session opened for user jenkins by (uid=0)
          lut 27 16:56:23 krzysiek-KDENeon-AIO-520-24ICB su[15764]: pam_unix(su-l:session): session closed for user jenkins
          lut 27 16:56:24 krzysiek-KDENeon-AIO-520-24ICB jenkins[15709]:    ...fail!
          lut 27 16:56:24 krzysiek-KDENeon-AIO-520-24ICB systemd[1]: jenkins.service: Control process exited, code=exited, status=7/NOTRUNNING
          lut 27 16:56:24 krzysiek-KDENeon-AIO-520-24ICB systemd[1]: jenkins.service: Failed with result 'exit-code'.
          lut 27 16:56:24 krzysiek-KDENeon-AIO-520-24ICB systemd[1]: Failed to start LSB: Start Jenkins at boot time.
          dpkg: błąd przetwarzania pakietu jenkins (--configure):
           podproces zainstalowany pakiet jenkins skrypt post-installation zwrócił kod błędu 1
          Wystąpiły błędy podczas przetwarzania:
           jenkins
          E: Sub-process /usr/bin/dpkg returned an error code (1)

          Log from journalctl -xe

          -- Jednostka packagekit.service pomyślnie przeszła do stanu „dead” (martwego).
          lut 27 17:04:35 krzysiek-KDENeon-AIO-520-24ICB sudo[16160]: krzysiek : TTY=pts/1 ; PWD=/home/krzysiek ; USER=root ; COMMAND=/bin/systemctl >
          lut 27 17:04:35 krzysiek-KDENeon-AIO-520-24ICB sudo[16160]: pam_unix(sudo:session): session opened for user root by (uid=0)
          lut 27 17:04:35 krzysiek-KDENeon-AIO-520-24ICB sudo[16160]: pam_unix(sudo:session): session closed for user root
          lut 27 17:05:20 krzysiek-KDENeon-AIO-520-24ICB sudo[16171]: krzysiek : TTY=pts/1 ; PWD=/home/krzysiek ; USER=root ; COMMAND=/bin/journalctl>
          lut 27 17:05:20 krzysiek-KDENeon-AIO-520-24ICB sudo[16171]: pam_unix(sudo:session): session opened for user root by (uid=0)
          lut 27 17:05:20 krzysiek-KDENeon-AIO-520-24ICB sudo[16171]: pam_unix(sudo:session): session closed for user root
          lut 27 17:05:25 krzysiek-KDENeon-AIO-520-24ICB sudo[16173]: krzysiek : TTY=pts/1 ; PWD=/home/krzysiek ; USER=root ; COMMAND=/bin/journalctl>
          lut 27 17:05:25 krzysiek-KDENeon-AIO-520-24ICB sudo[16173]: pam_unix(sudo:session): session opened for user root by (uid=0)
          Installed KDE Neon (Based on Ubuntu 20.04LTS), installed openjdk 11 and the Jenkins 2.263.4. Installation went ok until the installer attempted to start jenkins (systemctl start jenkins).

          Error:

          Konfigurowanie pakietu jenkins (2.263.4) ...
           Job for jenkins.service failed because the control process exited with error code.
           See "systemctl status jenkins.service" and "journalctl -xe" for details.
           invoke-rc.d: initscript jenkins, action "start" failed.
           ● jenkins.service - LSB: Start Jenkins at boot time
               Loaded: loaded (/etc/init.d/jenkins; generated)
               Active: failed (Result: exit-code) since Sat 2021-02-27 16:56:24 CET; 5ms ago
                 Docs: man:systemd-sysv-generator(8)
              Process: 15709 ExecStart=/etc/init.d/jenkins start (code=exited, status=7)

          lut 27 16:56:23 krzysiek-KDENeon-AIO-520-24ICB systemd[1]: Starting LSB: Start Jenkins at boot time...
           lut 27 16:56:23 krzysiek-KDENeon-AIO-520-24ICB jenkins[15709]: Correct java version found
           lut 27 16:56:23 krzysiek-KDENeon-AIO-520-24ICB jenkins[15709]:  * Starting Jenkins Automation Server jenkins
           lut 27 16:56:23 krzysiek-KDENeon-AIO-520-24ICB su[15764]: (to jenkins) root on none
           lut 27 16:56:23 krzysiek-KDENeon-AIO-520-24ICB su[15764]: pam_unix(su-l:session): session opened for user jenkins by (uid=0)
           lut 27 16:56:23 krzysiek-KDENeon-AIO-520-24ICB su[15764]: pam_unix(su-l:session): session closed for user jenkins
           lut 27 16:56:24 krzysiek-KDENeon-AIO-520-24ICB jenkins[15709]:    ...fail!
           lut 27 16:56:24 krzysiek-KDENeon-AIO-520-24ICB systemd[1]: jenkins.service: Control process exited, code=exited, status=7/NOTRUNNING
           lut 27 16:56:24 krzysiek-KDENeon-AIO-520-24ICB systemd[1]: jenkins.service: Failed with result 'exit-code'.
           lut 27 16:56:24 krzysiek-KDENeon-AIO-520-24ICB systemd[1]: Failed to start LSB: Start Jenkins at boot time.
           dpkg: błąd przetwarzania pakietu jenkins (--configure):
           podproces zainstalowany pakiet jenkins skrypt post-installation zwrócił kod błędu 1
           Wystąpiły błędy podczas przetwarzania:
           jenkins
           E: Sub-process /usr/bin/dpkg returned an error code (1)

          Log from journalctl -xe

          – Jednostka packagekit.service pomyślnie przeszła do stanu „dead” (martwego).
           lut 27 17:04:35 krzysiek-KDENeon-AIO-520-24ICB sudo[16160]: krzysiek : TTY=pts/1 ; PWD=/home/krzysiek ; USER=root ; COMMAND=/bin/systemctl >
           lut 27 17:04:35 krzysiek-KDENeon-AIO-520-24ICB sudo[16160]: pam_unix(sudo:session): session opened for user root by (uid=0)
           lut 27 17:04:35 krzysiek-KDENeon-AIO-520-24ICB sudo[16160]: pam_unix(sudo:session): session closed for user root
           lut 27 17:05:20 krzysiek-KDENeon-AIO-520-24ICB sudo[16171]: krzysiek : TTY=pts/1 ; PWD=/home/krzysiek ; USER=root ; COMMAND=/bin/journalctl>
           lut 27 17:05:20 krzysiek-KDENeon-AIO-520-24ICB sudo[16171]: pam_unix(sudo:session): session opened for user root by (uid=0)
           lut 27 17:05:20 krzysiek-KDENeon-AIO-520-24ICB sudo[16171]: pam_unix(sudo:session): session closed for user root
           lut 27 17:05:25 krzysiek-KDENeon-AIO-520-24ICB sudo[16173]: krzysiek : TTY=pts/1 ; PWD=/home/krzysiek ; USER=root ; COMMAND=/bin/journalctl>
           lut 27 17:05:25 krzysiek-KDENeon-AIO-520-24ICB sudo[16173]: pam_unix(sudo:session): session opened for user root by (uid=0)
          Hide
          krzysieks Krzysztof Swiatly added a comment -

          I manage to run jenkins, i changed in /etc/default/jenkins JENKINS_USER=$NAME to JENKINS_USER=root but is it ok?

          Show
          krzysieks Krzysztof Swiatly added a comment - I manage to run jenkins, i changed in /etc/default/jenkins JENKINS_USER=$NAME to JENKINS_USER=root but is it ok?
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          This is definitely a bad idea. The user is "jenkins" in all standard installers. Running Jenkins with root permissions is a big risk, especially if you permit jobs on the controller

          Show
          oleg_nenashev Oleg Nenashev added a comment - This is definitely a bad idea. The user is "jenkins" in all standard installers. Running Jenkins with root permissions is a big risk, especially if you permit jobs on the controller
          Hide
          krzysieks Krzysztof Swiatly added a comment - - edited

          Is three any solution to my problem?

          Show
          krzysieks Krzysztof Swiatly added a comment - - edited Is three any solution to my problem?

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            krzysieks Krzysztof Swiatly
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: