My colleague used Jenkins + ant + JMeter to build the interface automation shelf. Today, my colleague asked me to help look at a problem
The error reports are as follows:
error reading project file/var/lib/Jenkins/workspace/2021. M6/build. XML
at first, I thought the file could not be found. Later, I went to the server to check it. The file is in. (after thinking about it carefully, it should be not find if the file cannot be found. This error means that there is an error reading the file. In fact, there is an error reading and writing due to insufficient permissions)
later, I can successfully execute the ant command on the server
after step-by-step analysis and troubleshooting, it is found that it is a problem of permissions. After Jenkins is installed on the server, a user named Jenkins is automatically created. By default, the permissions of this user are also used
when I switch the Linux user to Jenkins and execute the ant command, the above error is reported. The root user will not report an error
therefore, the solution is to increase the permissions of Jenkins to root
1. Add the Jenkins user to the root group
gpasswd -a root jenkins
2[UNK]vim /etc/sysconfig/jenkins
JENKINS_USER="root"
JENKINS_GROUP="root"
3. Restart Jenkins
service jenkins restart
Final effect:
Read More:
- [Ubuntu] How to Solve dpkg Error: dpkg: error: failed to open package info file ‘/usr/local/var/lib/dpkg/status’ for reading: No such file or directory
- [Solved] Jenkins build error: esbuild install failed
- stream copy error: reading from a closed fifo [How to Solve]
- Using common file upload to upload files in SSH project
- Wget Error: ERROR: The certificate of ‘xxxxx’ is not trusted
- [Solved] Ubuntu Error: Failed to connect to 127.0.0.1 port xxxxx: Connection refused
- [Solved] Win10 and Linux address reading format is different (CV2. Error: opencv (4.2.0)/Io/opencv…)
- Disk Extended Error: WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
- [Solved] paramiko.ssh_exception.SSHException: Error reading SSH protocol banner
- [Solved] ××: error while loading shared libraries: ××.so.19: cannot open shared object file: No such file or directory
- Linux useradd Error: Creating mailbox file: File exists
- U-boot NFS download file error: loading: * * * error: File lookup fail solution
- [Solved] Python Import mmcv Warning: ImportError: libGL.so.1: cannot open shared object file: No such file or directory
- Ubuntu: Redis starts the project Error [How to Solve]
- Linux Ubuntu ImportError: Libtk8.5.so: cannot open shared object file:No such file Install tkinter Library
- Error: loading shared libraries: cannot open shared object file: No such file or directory
- [Solved] ubuntu makefile Cross-compilation error: file not recognized: file format not recognized
- [Solved] error while loading shared libraries: libjson.so.0: cannot open shared object file: No such file or
- [Solved] CRITICAL:yum.cli:Config error: Error accessing file for config file:///opt/++
- [Solved] /usr/local/libexec/mecab/mecab-dict-index: error while loading shared libraries: libmecab.so.2: cannot open shared object file: No such file or directory