However the deployment fails at the "Wait for Jenkins to start" stage after having exhausted all the retries. If at this point if I try access Jenkins on 127.0.0.1:8080 I am met with an error page presenting the following exception:
java.io.IOException: Permission denied at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.createTempFile(File.java:2063) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:143) Caused: java.io.IOException: Failed to create a temporary file in /data/jenkins at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:145) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:110) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:75) at hudson.util.TextFile.write(TextFile.java:116) at jenkins.model.Jenkins.<init>(Jenkins.java:906) at hudson.model.Hudson.<init>(Hudson.java:86) at hudson.model.Hudson.<init>(Hudson.java:82) at hudson.WebAppMain$3.run(WebAppMain.java:295) Caused: hudson.util.HudsonFailedToLoad at hudson.WebAppMain$3.run(WebAppMain.java:312)
Hence it seems to be a permissions issue. Please advice me on what to do to get around this.
Hi!
I am attempting install Jenkins on a brand new Ubuntu 20.04 machine using your role.
My playbook looks like this: `- hosts: test
vars: jenkins_version: "2.289.2" jenkins_hostname: "127.0.0.1" jenkins_port: 8080 jenkins_install_via: "apt" jenkins_plugins:
blueocean
roles:
However the deployment fails at the "Wait for Jenkins to start" stage after having exhausted all the retries. If at this point if I try access Jenkins on 127.0.0.1:8080 I am met with an error page presenting the following exception:
java.io.IOException: Permission denied at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.createTempFile(File.java:2063) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:143) Caused: java.io.IOException: Failed to create a temporary file in /data/jenkins at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:145) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:110) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:75) at hudson.util.TextFile.write(TextFile.java:116) at jenkins.model.Jenkins.<init>(Jenkins.java:906) at hudson.model.Hudson.<init>(Hudson.java:86) at hudson.model.Hudson.<init>(Hudson.java:82) at hudson.WebAppMain$3.run(WebAppMain.java:295) Caused: hudson.util.HudsonFailedToLoad at hudson.WebAppMain$3.run(WebAppMain.java:312)
Hence it seems to be a permissions issue. Please advice me on what to do to get around this.
Thank you in advance!