Skip to content
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

Cannot use CLI tool with EXTERNAL_SERVER_URL set #33

Open
ghost opened this issue Aug 31, 2016 · 6 comments
Open

Cannot use CLI tool with EXTERNAL_SERVER_URL set #33

ghost opened this issue Aug 31, 2016 · 6 comments

Comments

@ghost
Copy link

ghost commented Aug 31, 2016

Hi,
i'm using rundeck with an http proxy in front, so i use the EXTERNAL_SERVER_URL parameter. This works fine with the web UI but the CLI tools doesn't work. When i don't set the EXTERNAL_SERVER_URL parameter the CLI works fine but the Web UI don't work obviously.

Here are my settings:
profile

-Drundeck.jetty.connector.forwarded=true
-Dserver.web.context=/rundeck
-Dserver.https.port=4443

docker command

docker run --name rundeck  \
    -p 4443:4443 \
    -e EXTERNAL_SERVER_URL=https://my-external-domain.net/rundeck \
    -e SERVER_URL=https://my-internal-domain.net:4443/rundeck \
    -d jordan/rundeck

Did i something wrong or is this an known issue?

@stagrlee
Copy link
Contributor

stagrlee commented Sep 1, 2016

If you are hitting the same thing I did, its an upstream rundeck issue. The rd-jobs, rd-projects type commands don't work. However, the newer "rd jobs" from the rundeck CLI project work if you have JRE v8. https://github.com/rundeck/rundeck-cli

@jjethwa
Copy link
Owner

jjethwa commented Sep 1, 2016

@stagrlee nailed it 😄

For good measure, what do these entries look like in your framework.properties?

framework.server.port = ????
framework.server.url = ????

If they look OK, try commenting out this line in your profile and see if it helps:

-Dserver.https.port=4443

@ghost
Copy link
Author

ghost commented Sep 1, 2016

Hi,
this is my framework.properties

...
framework.server.name = my-internal-domain.net
framework.server.hostname = my-internal-domain.net
framework.server.port = 4443
framework.server.url = https://my-internal-domain.net:4443/rundeck
...

this is my rundeck-config.properties

...
grails.serverURL=https://my-external-domain.net/rundeck
grails.app.context=/rundeck
...

@jjethwa
Copy link
Owner

jjethwa commented Sep 1, 2016

Hi @ljmscx

Try

grails.serverURL=https://my-external-domain.net:4443/rundeck

If that doesn't work, then you'll need to use https://github.com/rundeck/rundeck-cli like @stagrlee pointed out. It's already installed in the container and ready to use 😃

@ghost
Copy link
Author

ghost commented Sep 1, 2016

Hi @jjethwa @stagrlee
thanks for your help. Unfortunately none of this works so i have to use the new cli tool. thanks :)

@jjethwa
Copy link
Owner

jjethwa commented Jan 25, 2017

@ghost

Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants