Tag Archives: Jenkins Error

[Solved] Jenkins-ERROR: Error cloning remote repo ‘origin‘

In the process of Jenkins building Maven project, the configuration source code management reports an error:

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

refs/heads/*: refs/remotes/origin/* "returned status code 128: stdout: stderr: fatal: unable to access
GitHub account password verification cannot be used:
Solution: add a global certificate and use it in project configuration -> source management ->Use this voucher

Build again:

install Jenkins command under docker (Mount: Java and Maven) pay attention to the host directory

docker run -d -p 8089:8080 -p 8090:50000 -v /usr/local/jenkins:/var/jenkins_home -v /usr/local/jdk:/usr/local/java -v /usr/local/dev/apache-maven-3.6.3:/usr/local/maven -v /etc/localtime:/etc/localtime --name myjenkins jenkins/jenkins:lts

Jenkins error: exception message 137

ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [137]]
Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE
Finished: UNSTABLE

At present, there is no better information to support this error. Now record it. Due to too many execution script directories, try to put the script under the remote directory of the remote server

Jenkins Error: code=exited, status=127 [How to Solve]

Error when starting Jenkins

sudo systemctl start jenkins

Error Messages:

● jenkins.service - LSB: Jenkins Automation Server
   Loaded: loaded (/etc/rc.d/init.d/jenkins; bad; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2021-12-03 11:46:25 CST; 4s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 12366 ExecStart=/etc/rc.d/init.d/jenkins start (code=exited, status=127)
Dec 03 11:46:25 localhost.localdomain systemd[1]: Starting LSB: Jenkins Automation Server...
Dec 03 11:46:25 localhost.localdomain jenkins[12366]: Starting Jenkins /etc/rc.d/init.d/jenkins: line 120: daemonize: command not found
Dec 03 11:46:25 localhost.localdomain jenkins[12366]: [FAILED]
Dec 03 11:46:25 localhost.localdomain systemd[1]: jenkins.service: control process exited, code=exited status=127
Dec 03 11:46:25 localhost.localdomain systemd[1]: Failed to start LSB: Jenkins Automation Server.
Dec 03 11:46:25 localhost.localdomain systemd[1]: Unit jenkins.service entered failed state.
Dec 03 11:46:25 localhost.localdomain systemd[1]: jenkins.service failed.


 Two important messages Error code 127 daemonize command not found

 

Solution:

yum -y install daemonize