jjethwa / rundeck

GNU General Public License v3.0
123 stars 137 forks source link

Trying to use with mesos - marathon - Redirect to localhost:4440 #67

Open mcortinas opened 7 years ago

mcortinas commented 7 years ago

Hello,

After login rundeck application redirect to localhost:4440 I reviewed a lot of times and values the environment variables: EXTERNAL_SERVER_URL and SERVER_URL

I'm trying to use this docker image in mesos platform launched with marathon-ui, but i don't why i'm doing wrong, let me explain. The rundeck container is usin haproxy in frontend, i read i should use EXTERNAL_SERVER_URL

Let me share more info: inside the docker the proces of rundeck is with PID 48 and a soon with 49. Both of them i'm so sure they are loaded in environ the variables EXTERNAL_SERVER_URL and SERVER_URL, p.e.:

root@13daf53919bc:/# cat /proc/49/environ 
MARATHON_APP_LABEL_SERVICE=rundeckHOSTNAME=13daf53919bcSHELL=/bin/bashHOST=baremetal_nameMARATHON_APP_LABEL_ENVIRONMENT=labPORT0=19706MESOS_TASK_ID=services_rundeck.69d62bf1-569c-11e7-9f10-0242fe073da0USER=rundeckLOGIN_MODULE=RDpropertyfileloginTRUSTSTORE_PASS=adminadminMAIL=/var/mail/rundeckPATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games_=/usr/bin/javaSUPERVISOR_GROUP_NAME=rundeckPWD=/var/log/rundeckMARATHON_APP_RESOURCE_DISK=0.0RUNDECK_PROJECT_STORAGE_TYPE=fileMARATHON_APP_RESOURCE_MEM=2048.0MARATHON_APP_LABEL_HAPROXY_0_VHOST=rundeck.lab.SUFIX_FQDNPORTS=19706KEYSTORE_PASS=adminadminMARATHON_APP_RESOURCE_GPUS=0MESOS_CONTAINER_NAME=mesos-a529d962-9835-48a0-836a-0ff408798e7d-S0.ce717cc6-eaf7-4972-81c7-91b0942a8063SUPERVISOR_ENABLED=1MARATHON_APP_LABELS=HAPROXY_0_MODE ENVIRONMENT HAPROXY_0_BALANCE HAPROXY_0_GROUP SERVICE HAPROXY_0_VHOSTHOME=/var/lib/rundeckSHLVL=3MARATHON_APP_ID=/services/rundeckRUNDECK_STORAGE_PROVIDER=fileMARATHON_APP_DOCKER_IMAGE=registry-test.SUFIX_FQDN/rundeck:0.3MARATHON_APP_LABEL_HAPROXY_0_BALANCE=roundrobinEXTERNAL_SERVER_URL=http://rundeck.lab.SUFIX_FQDN:80PORT_4440=19706MARATHON_APP_LABEL_HAPROXY_0_GROUP=lab-appsLOGNAME=rundeckMARATHON_APP_VERSION=2017-06-21T16:12:24.841ZJAAS_CONF_FILE=jaas-loginmodule.confSUPERVISOR_SERVER_URL=unix:///var/run/supervisor.sockDEBIAN_FRONTEND=noninteractiveSUPERVISOR_PROCESS_NAME=rundeckSERVER_URL=http://rundeck.lab.SUFIX_FQDN:80MARATHON_APP_LABEL_HAPROXY_0_MODE=httpPORT=19706MARATHON_APP_RESOURCE_CPUS=0.1NO_LOCAL_MYSQL=falseRDECK_JVM_SETTINGS=-Xmx1024m -Xms256m -XX:MaxMetaspaceSize=256mMESOS_SANDBOX=/mnt/mesos/sandboxroot@13daf53919bc:/

In the PID 48 i can see the same SERVER_URL and EXTERNAL_SERVER_URL I can acces to FQDN and the login page is loaded succesfully , but, the problem is after i put the credentials, rundeck redirect to localhost:4440

I think i hace a stupid mistake, but, today i'm not a lucky guy! I checked values in SERVER_URL and EXTERNAL_SERVER_URL

jjethwa commented 7 years ago

Hi @mcortinas

It looks like some properties in the framework.properties file are not getting set correctly. In the /etc/rundeck/framework.properties file in one of the containers, can you check the values of:

framework.server.name
framework.server.hostname
framework.server.port
framework.server.url

Also /etc/rundeck/rundeck-config.properties

grails.serverURL