Closed mbigras closed 6 years ago
Hi @mbigras
Thanks for reporting the issue. I believe it's because of a change from https://github.com/jjethwa/rundeck/pull/93
I'll do some analysis and see if I can get that fixed ASAP 😄
Hi @jjethwa,
Thank you for getting back to me so fast!
I hadn't seen #93.
I took a look at it, seems EXTERNAL_SERVER_URL
was added and the behavior of SERVER_URL
was changed.
Going through that PR helped solve my issue.
docker run -d -p 4440:4440 -e SERVER_URL=http://$IP:4440 -e EXTERNAL_SERVER_URL=http://$IP:4440 --name rundeck jordan/rundeck
Below is the lines from #93 that helped me.
After change
$ docker run -p 4440:4440 -e SERVER_URL=http://localhost:4440
$ docker exec -it ... cat /etc/rundeck/rundeck-config.properties
...
#grails.serverURL=
...
# With grails.serverURL commented out, rundeck will no longer forcibly redirect and fall back to relative pathing.
$ docker run -p 4440:4440 -e SERVER_URL=http://localhost:4440 -e EXTERNAL_SERVER_URL=http://test:4440
$ docker exec -it ... cat /etc/rundeck/rundeck-config.properties
...
grails.serverURL=http://test:4440
...
# We are able to provide EXTERNAL_SERVER_URL when applicable
Do you think the change is worth a bigger version bump than a patch?
(tagging @ddavison for visibility)
Hi @mbigras
Don't think we'll do a version bump for this so the container version stays consistent with the Rundeck release version 😃
I think it may be safe enough to have users move over to using the EXTERNAL_SERVER_URL var instead of SERVER_URL so I'll update the readme and tagged release for other users. Some of the logic that uses the old SERVER_URL variable might need to be updated or can be removed. I'll have to look into closer tomorrow.
good catch. yep! i think it's a better idea to have the EXTERNAL_SERVER_URL and SERVER_URL vars divorced. having that specific variable being set explicitly seems safer. glad you were able to get it resolved :)
Hi Jordan,
Not too much experience with Rundeck here; however, I've been using your image to tinker around and am very grateful for your work.
Seems like this latest image fails to set the
grails.serverURL
option in/etc/rundeck/rundeck-config.properties
.When attempting to run an ad hoc command on a remote node the command will fail with the following error message:
Not sure if I should open a rundeck 2.10.1 issue or if this is a good spot.
Below is a terminal dump of my hacking sessions. In each case I'm daemonizing the
jordan/rundeck
container and then stepping in to poke around.You can see in the first case there is an error and grails.serverURL is not set. In the second case there is no error and the job finished successfully.