-
Notifications
You must be signed in to change notification settings - Fork 902
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
Host changes to localhost after first login #671
Comments
we need to improve the rpm install script, perhaps setting up hostname detection. the "localhost" value i set in the /etc/rundeck/rundeck-config.properties file, and is used as in the generation of external URLs. This has to manually changed to the appropriate hostname. There's not a good default to use in the rpm's config file we deliver. Perhaps Rundeck can internally change the external URL to use the hostname |
also we could use a first-run install config screen! |
I see, thanks |
Still, why running it from the rundeck-launcher-2.0.1.jar works fine? |
the launcher jar generates the config file with the hostname more dynamically |
I am facing same issue with my rundeck installation on Debian. Rundeck version: 2.0.1 |
I just comment the #grails.serverURL=http://localhost:4440 good luck! |
this is still an active issue on 2.2.1 any ETA on this? |
Can rundeck honour the "Host:" header and use that as the base or only use relative urls and redirects? Some form of default like grails.serverURL is still useful for external things like notification emails |
FYI the CLI relies on access to this too. I set the grails.serverURL to a public ip and had to allow access to that ip from the host (on AWS a security group with port 4440 access to the public ip from the public ip) |
Same issue on Ubuntu 14.04, installing 2.4.2-1 from deb |
Still having the same issue with 2.5.0 on CentOS 7. Any ETA on this issue please? I can't move ahead with using Rundeck with my existing ansible infrastructure until this is fixed. |
Hello, it's not version 2.5.0 fault, neither centos one. You need to customize your setup /etc/framework.properties Append :xxx if not on default port (:4440 by default) Cordialement, 2015-04-30 15:31 GMT+02:00 ashish235 notifications@github.com:
|
Thanks @mathieuchateau saved me a lot of troubles, I did some sanity and it seems to be working. |
As already mentioned, just deleting grails.serverURL also works - at least for me. |
As of 2.5.2 this is an open issue.
N.B. I am running under reverse proxy, with prefix /rundeck added via -Dserver.web.context=/rundeck parameter on Ubuntu 14.04. |
Hello, why /rundeck/ in url and serverurl? Cordialement, 2015-08-12 0:23 GMT+02:00 Ruslan Gainutdinov notifications@github.com:
|
Hi Mathieu! |
netstat shows listening on 0.0.0.0:4440 but remote hosts cannot connect. iptables is clear... anyone have any ideas? |
Couldn't connect to port 4440 , this port is open in security group , but still couldn't telnet to it [root@PDXA-DEV-FAB01 rundeck]# netstat -ane |grep 4440 2016-02-02 20:17:38.337:INFO:/:Initializing Spring FrameworkServlet 'grails' |
Same issue - anyone had any luck fixing this? |
I am having a similar issue in that I can connect via localhost to port 4440 and can curl 'http://127.0.0.1:4440' but no content is returned. When telnetting, I am seeing I am hitting Jetty.
|
Thanks for info dude. @gschueler Appreciate it :) |
Issue still persists for Debian 7 OS, Rundeck version 2.6.7-1-GA. |
+1 I'm on CentOS 7, using yum. I first tried updating framework.server.name = my.exampleserver.com
framework.server.hostname = my.exampleserver.com
framework.server.port = 4440
framework.server.url = http://my.exampleserver.com:4440 Then I tried updating the only other reference to grails.serverURL=http://my.exampleserver.com:4440 Neither worked. Commenting the above out like others have recommended was the only fix. |
In order to let rundeck work behind an Apache reverse-proxy, you should set the
|
For those installing from .jar file, this thread (post by Wyx on May 27,2015) will be useful: http://stackoverflow.com/questions/37389717/how-to-install-rundeck-in-ubuntu |
This is still an issue as of v2.7.3 For now going to comment it out as noted above and move on. If it's going to remain busted, may be worth at least mentioning it in the docs. |
I have tried ubuntu 16.04 with Rundeck 1.8.3 . I tried everything stated here but with no luck |
Did you try to delete grails.serverURL? |
I tried it commented it out @vega113 |
I am facing the same issue on CetnOS 7 (latest). I can comment out the grails.serverURL but ti braeks RunDeck. `INFO BootStrap: Rundeck is ACTIVE: executions can be run. Session terminated, killing shell...2017-07-17 19:06:11.556:INFO:oejs.ServerConnector:Thread-1: Stopped ServerConnector@10ab976b{HTTP/1.1}{0.0.0.0:4440} |
Would love to see hostname detection with the yum rpm install so we don't have to manually update grails.serverURL. Manually updating it works fine, but cleaning that up would make for a seamless install. Just adding myself as a "+1" on this. |
Hi All,
Thanks in Advance... |
Geez! 4 years without resolving this simple issue? |
Would be nice if it was at least mentioned in the manual. Where to change the "localhost". |
In your rundeck-config.properties file try setting the |
I am running rundeck using docker. Using the docker image from hub 3.0.13. Its having same redirection issue and inside /etc/ no rundeck folder is present. Can anyone please help me with this? |
docker exec -it tst_rundeck_1 /bin/bash docker restart tst_rundeck_1 Firefox:http://myhost.domain:4440 admin/admin |
Hi @kishan-1234 , The environment variable This configuration setting maps to the I'm going to go ahead and close this for now as the discussion has wandered a bit and the issue has become a catch-all for configuration questions :) Please direct any usage and configuration questions to the Rundeck Discussion Group. |
I am facing the following error: Connection refused (Connection refused) when I am running a rundeck job to 5 Windows Nodes. Please help if possible anyone. |
I got around the same problem (of rundeck running behind nginx) by using the application setting: |
I Can't believe this issue still exists! Almost gave up using Rundeck. |
@fdansey-ostmodern It worked for me when you put your external hostname |
See rundeck/rundeck#671. Upon first login, the page is redirected to localhost, which fails. Set grails.serverURL to use the ip address of the vm. This resolves the issue.
This comment is off the topic. What the "A" represent in the hostname PDXA-DEV-FAB01 (specifically in PDXA). PDX is the airport code which I am familiar with. What does "A" signify? |
I ran to this issue when using docker-compose.yml here. To solve the problem, I added The whole version: '3'
services:
rundeck:
image: rundeck/rundeck:SNAPSHOT
# links:
# - mysql
depends_on:
- mysql
environment:
RUNDECK_DATABASE_DRIVER: org.mariadb.jdbc.Driver
RUNDECK_DATABASE_USERNAME: ${RUNDECK_DATABASE_USERNAME:-rundeck}
RUNDECK_DATABASE_PASSWORD: ${RUNDECK_DATABASE_PASSWORD:-rundeck}
RUNDECK_DATABASE_URL: ${RUNDECK_DATABASE_URL:-jdbc:mysql://mysql/rundeck?autoReconnect=true&useSSL=false}
# Add 'RUNDECK_GRAILS_URL' to avoid host changing to localhost (see more : https://github.com/rundeck/rundeck/issues/671)
# 'RUNDECK_GRAILS_URL' can be remote IP address, such as 43.133.23.165 or hostname, like https://mywebsite.com
RUNDECK_GRAILS_URL: ${RUNDECK_GRAILS_URL:-localhost:4440}
# volumes:
# - ${RUNDECK_LICENSE_FILE:-/dev/null}:/home/rundeck/etc/rundeckpro-license.key
ports:
- 4440:4440
mysql:
image: mysql:5.7
# expose:
# - 3306
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-root}
MYSQL_DATABASE: ${MYSQL_DATABASE:-rundeck}
MYSQL_USER: ${MYSQL_USER:-rundeck}
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-rundeck}
volumes:
- dbdata:/var/lib/mysql
volumes:
dbdata: Also, this is the RUNDECK_DATABASE_USERNAME=rundeck
RUNDECK_DATABASE_PASSWORD=rundeck
RUNDECK_DATABASE_URL=jdbc:mysql://mysql/rundeck?autoReconnect=true&useSSL=false
RUNDECK_GRAILS_URL=https://mywebsite.com
MYSQL_ROOT_PASSWORD=root
MYSQL_DATABASE=rundeck
MYSQL_USER=rundeck
MYSQL_PASSWORD=rundeck Feel free to change the value of You can have a look here to check them all, including how to run the docker-compose and its setup : |
Added RUNDECK_GRAILS_URL to fix rundeck/rundeck#671 and rundeck#4 on development powered by docker-compose.
Added RUNDECK_GRAILS_URL to fix rundeck/rundeck#671 and rundeck#4 on development powered by docker-compose.
I have just logged in in github to say thank you, you are a hero. |
it's off topic but projects is empty while I have created two, does anyone know where to find it? Environment docker |
I installed rundeck using docker and this worked for me: You need to set RUNDECK_GRAILS_URL as envirorment variable. |
How to reproduce:
Expected result: The login is successful and the dashboard is displayed.
Actual result: the host is changed to http://localhost:4440/menu/home (instead of http://yourhost.com:4440/menu/home) and there's obviously "page cannot be displayed" browser error.
Please note that running rundeck by downloading the rundeck-launcher-2.0.1.jar and running with "java -jar rundeck-launcher-2.0.1.jar" works fine.
The text was updated successfully, but these errors were encountered: