You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What Operating System are you using (both controller, and any agents involved in the problem)?
Debian 12
Reproduction steps
Add Environment="JENKINS_UNIX_DOMAIN_PATH=/run/jenkins/jenkins.socket" to /etc/systemd/system/jenkins.service.d/override.conf
Restart Jenkins
Expected Results
Clean restart, with a new socket in /run/jenkins/jenkins.socket
Actual Results
Fails, because /run/jenkins does not exist:
jenkins[351226]: java.io.IOException: Failed to start Jetty
jenkins[351226]: at winstone.Launcher.<init>(Launcher.java:209)
jenkins[351226]: at winstone.Launcher.main(Launcher.java:496)
jenkins[351226]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jenkins[351226]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
jenkins[351226]: at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
jenkins[351226]: at java.base/java.lang.reflect.Method.invoke(Unknown Source)
jenkins[351226]: at executable.Main.main(Main.java:351)
jenkins[351226]: Caused by: java.io.IOException: Could not bind UnixDomainServerConnector to /run/jenkins/jenkins.socket
jenkins[351226]: at org.eclipse.jetty.unixdomain.server.UnixDomainServerConnector.bindServerSocketChannel(UnixDomainServerConnector.java:267)
jenkins[351226]: at org.eclipse.jetty.unixdomain.server.UnixDomainServerConnector.openServerSocketChannel(UnixDomainServerConnector.java:234)
jenkins[351226]: at org.eclipse.jetty.unixdomain.server.UnixDomainServerConnector.open(UnixDomainServerConnector.java:205)
jenkins[351226]: at org.eclipse.jetty.unixdomain.server.UnixDomainServerConnector.doStart(UnixDomainServerConnector.java:153)
jenkins[351226]: at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
jenkins[351226]: at org.eclipse.jetty.server.Server.doStart(Server.java:428)
jenkins[351226]: at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
jenkins[351226]: at winstone.Launcher.<init>(Launcher.java:205)
jenkins[351226]: ... 6 more
jenkins[351226]: Caused by: java.net.BindException: Permission denied
jenkins[351226]: at java.base/sun.nio.ch.UnixDomainSockets.bind0(Native Method)
jenkins[351226]: at java.base/sun.nio.ch.UnixDomainSockets.bind(Unknown Source)
jenkins[351226]: at java.base/sun.nio.ch.ServerSocketChannelImpl.unixBind(Unknown Source)
jenkins[351226]: at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
jenkins[351226]: at org.eclipse.jetty.unixdomain.server.UnixDomainServerConnector.bindServerSocketChannel(UnixDomainServerConnector.java:261)
jenkins[351226]: ... 13 more
Anything else?
AFAICS, #442 should have added a tmpfiles file to the Debian package, but it didn't?!?
Are you interested in contributing a fix?
Yes
The text was updated successfully, but these errors were encountered:
Thanks for being willing to contribute the fix @TobiX .
@darinpope has more experience with Unix domain socket configurations for Jenkins than I do. I'd love to have him be a reviewer of the pull request that you submit @TobiX.
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
Debian 12
Reproduction steps
Environment="JENKINS_UNIX_DOMAIN_PATH=/run/jenkins/jenkins.socket"
to /etc/systemd/system/jenkins.service.d/override.confExpected Results
Clean restart, with a new socket in /run/jenkins/jenkins.socket
Actual Results
Fails, because
/run/jenkins
does not exist:Anything else?
AFAICS, #442 should have added a tmpfiles file to the Debian package, but it didn't?!?
Are you interested in contributing a fix?
Yes
The text was updated successfully, but these errors were encountered: