New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jenkins startup is not detected when Jenkins security is enabled #25
Comments
Could you give more details what kind of security you have configured? I don't really understand how removing the -k option helps because that option should allow curl to skip SSL certificate verification. |
I removed the -f option and not the -k option. Sorry for the confusion. |
Yes, that would explain it. Without the -f option curl will exit with 0 2015-02-02 15:32 GMT+02:00 Ted Cihak notifications@github.com:
|
We are using: This configuration causes the Jenkins front page to be a login page. Let me know if need more detailed instructions than this. |
Hi, first of all thank you for great tool for MacOS users! It really saves life :) We also have role-based security. And me also have see this message about timeout, after 90 second. In fact it is just annoying and never harm. but exists one more trouble related to when exists security. If try to copy command into terminal, You can see error In terminal I can add to resolve this, but I was not able way to fix this in Jenkins.app. And may be this is serious trouble, because if Jenkins.app cannot correctly see if Jenkins is busy, it do not set caffeine ... And we have some troubles with -- slave go offline last days... This is why I have start to look into this more deeply. Does exists any way, to provide login/password into Jenkins.app? Or other workaround? |
Hi, #!/bin/bash
timeout=$(($(date +%s) + 90))
statuscode=$(curl -s --output /dev/null --write-out "%{http_code}" "$1")
logger -t Jenkins.app "Jenkins is not responding yet, sleeping... " and "$statuscode"
while [ $(date +%s) -lt $timeout ] && [ $statuscode -eq 000 ] ; do
logger -t Jenkins.app "Jenkins is not responding yet, sleeping... " and "$statuscode"
sleep 1
statuscode=$(curl -s --output /dev/null --write-out "%{http_code}" "$1")
done
logger -t Jenkins.app "Not waiting any longer Jenkins" and "$statuscode"
statuscode=$(curl -s --output /dev/null --write-out "%{http_code}" "$1")
if [ $statuscode -eq 000 ]
then
exit 1
else
exit 0
fi |
The "Timed out waiting for Jenkins to start." message is displayed after 90 seconds even though Jenkins has started up successfully.
The root cause is in the "wait_for_jenkins.sh" bash script.
The "curl" command always returns a value of 22 since the page returns a 403.
To fix this, I removed the -k option from both "curl" calls.
The text was updated successfully, but these errors were encountered: