Job2 bin sh -xe tmp jenkins308 sh sudo docker run -it -d --name web -p 8081 80 httpd latest etc sudoers syntax error near line 101 sudo parse error in etc sudoers near line 101

0 votes

Hi Guys,

I am trying to create one job in jenkins to run docker container, but it shows me the below error.

Started by user admin
Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/Job2
[Job2] $ /bin/sh -xe /tmp/jenkins3082368546458615220.sh
+ sudo docker run -it -d --name web -p 8081:80 httpd:latest
>>> /etc/sudoers: syntax error near line 101 <<<
sudo: parse error in /etc/sudoers near line 101
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
Build step 'Execute shell' marked build as failure
Finished: FAILURE
May 5, 2020 in Jenkins by akhtar
• 38,230 points
1,019 views

1 answer to this question.

0 votes

Hi@akhtar,

In your error, it says /etc/sudoers: syntax error near line 101, means you made a mistake when you edit this file.

Try to check /etc/sudoers file in your base system and try once.

answered May 5, 2020 by MD
• 95,440 points

Related Questions In Jenkins

0 votes
1 answer

I’m facing a login error when I try to run Jenkins on Docker. How do I solve this?

You have to open the /var/log/jenkins/jenkins.log file to ...READ MORE

answered Jul 24, 2018 in Jenkins by Sophie may
• 10,610 points
3,323 views
0 votes
2 answers

/tmp/jenkins7925067706776714433.sh: ./deploy: Permission denied in jenkins

To avoid this error, You should add ...READ MORE

answered Mar 31, 2020 in Jenkins by akhtar
• 38,230 points
3,087 views
0 votes
1 answer

run a pipeline in a jenkins docker-agent by jenkins slave

Hi@nemer, You can do your task in multiple ...READ MORE

answered Jul 7, 2020 in Jenkins by MD
• 95,440 points
2,405 views
0 votes
1 answer

Print the line if it contains a specific string by using groovy.

You can try the code written below: ...READ MORE

answered Apr 27, 2018 in Jenkins by shubham
• 7,340 points
29,299 views
+2 votes
1 answer
0 votes
2 answers
0 votes
1 answer

/tmp/jenkins6403305246799294208.sh: line 2: cd: /root: Permission denied

Hi@akhtar, You are getting permission denied because you ...READ MORE

answered Feb 6, 2020 in Jenkins by MD
• 95,440 points
2,786 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP