Jenkins instance when opened using public address of AWS is giving permission denied

0 votes

image Error

java.io.IOException: Permission denied
	at java.io.UnixFileSystem.createFileExclusively(Native Method)
	at java.io.File.createTempFile(File.java:2026)
	at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:142)
Caused: java.io.IOException: Failed to create a temporary file in /var/lib/jenkins
	at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:144)
	at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:109)
	at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:84)
	at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:74)
	at hudson.util.TextFile.write(TextFile.java:116)
	at jenkins.model.Jenkins.<init>(Jenkins.java:910)
	at hudson.model.Hudson.<init>(Hudson.java:85)
	at hudson.model.Hudson.<init>(Hudson.java:81)
	at hudson.WebAppMain$3.run(WebAppMain.java:282)
Caused: hudson.util.HudsonFailedToLoad
	at hudson.WebAppMain$3.run(WebAppMain.java:299)
Oct 7, 2020 in DevOps & Agile by kavitha
• 120 points
298 views

1 answer to this question.

0 votes

Hi@Kavita,

You need to create a rule in your instance security group. Jenkins work on port 8080. So you need to allow this port no. Then only you can able to connect to your Jenkins instance.

answered Oct 7, 2020 by MD
• 95,060 points

Related Questions In DevOps & Agile

0 votes
1 answer

What OS is Jenkins installed on Azure Virtual Machine?

Under Managed Jenkins there's a section called ...READ MORE

answered Apr 4, 2018 in DevOps & Agile by DareDev
• 6,890 points
131 views
+1 vote
3 answers

How can I connect an app with an aws ec2 instance?

This is how you deploy a web ...READ MORE

answered Oct 18, 2018 in DevOps & Agile by Hannah
• 18,550 points
341 views
+13 votes
2 answers
0 votes
1 answer

Is there any difference between jenkins ssh publishers and ansible?

In a Layman’s language they're the same ...READ MORE

answered Apr 9, 2018 in DevOps & Agile by shubham
• 7,320 points
392 views
0 votes
1 answer

update $PATH of guest vm using vagrantfile

You can try the following command: I ...READ MORE

answered Apr 13, 2018 in DevOps & Agile by shubham
• 7,320 points
127 views
0 votes
1 answer

Is it possible to to create IIS Site and application Pool using Web Deploy

You can try and use the ServerManager ...READ MORE

answered Apr 20, 2018 in DevOps & Agile by ajs3033
• 7,280 points
736 views
0 votes
1 answer

Changing a computer IP address using fabric freezing

I used the following script to make ...READ MORE

answered Jul 20, 2018 in DevOps & Agile by ajs3033
• 7,280 points
132 views
0 votes
1 answer

CSS formatting getting stripped out when viewing on jenkins

CSS is stripped out because of the ...READ MORE

answered Aug 14, 2018 in DevOps & Agile by Kalgi
• 52,290 points
1,602 views
0 votes
1 answer

Permission denied when executing module using ansible on host machine

Hi@Shamsher, This error usually occurs when their is ...READ MORE

answered May 28, 2020 in DevOps & Agile by MD
• 95,060 points
570 views
0 votes
1 answer

what is api token in jenkins and how to use for github webhook

Hi@Anil, GitHub webhook is used to trigger jenkins ...READ MORE

answered May 27, 2020 in DevOps & Agile by MD
• 95,060 points
477 views