New install but after login, I get 404

841 views
Skip to first unread message

Gilberto Valentin

unread,
Feb 2, 2016, 9:32:47 PM2/2/16
to rundeck-discuss
Hi,

I just installed Rundeck on CentOS 7. I modified my framework.properties and rundeck-config.properties file. After I login, I get a 404:

HTTP ERROR: 404

Problem accessing /menu/home. Reason:

    Not Found


Powered by Jetty://

Looking at the logs file from /var/log/rundeck/*, I don't have any errors. I only have a warning about not using SSL yet. rundeck.server.log only shows when I try to hit the page. No other log files reveal anything at all. I enabled debug in log4j.properties for Grails. I still don't see anything coming back in the logs about that error. I have tried looking around to see where in the directory structure ../menu/home should live but didn't find anything. I didn't even find ../menu anywhere but I did find /var/lib/rundeck/exp/webapp/WEB-INF/grails-app/views/menu/home.gsp

Thanks in advance

Gilberto Valentin

unread,
Feb 3, 2016, 10:04:41 AM2/3/16
to rundeck-discuss
Ok, I figured it out. Here is what I had before and then what I did to fix it:

-------------------------------------------------------------------------------------------------------------
rundeck-config.properties BEFORE


AFTER:

grails.serverURL=http://sub.domain.tld:4440/rundeck

framework.properties BEFORE

framework.server.url = http://sub.domain.tld:4440

AFTER:

framework.server.url = http://sub.domain.tld:4440/rundeck
-------------------------------------------------------------------------------------------------------------


I forgot that my install is at URL/rundeck, which is why it would never find /menu/home. It was looking for /menu/home in the root or the URL instead of looking in URL/rundeck

Thanks

Haseeb Mirza

unread,
Nov 13, 2017, 2:42:25 PM11/13/17
to rundeck-discuss
Awesome, you just saved my day, was just scratching my head. 

Haseeb

rajesh....@gmail.com

unread,
Jan 4, 2018, 11:42:20 AM1/4/18
to rundeck-discuss
HI All,

even after changing the below mentioned places iam still unable to access the url

below is what i have done
Installed rundeck and changed from local host to ipaddress in below two places but still i get the "this site can't be reached" error, not sure whats going on, can someone help me with this issue ?

  1. rundeck-config.properties
  2. framework.properties
    Error when i tried to login using http://ipaddress:4440/
    This site can’t be reached
    "ipaddress took too long to respond."
    ERR_CONNECTION_TIMED_OUT

Thanks in Advance...

Alex Honor

unread,
Jan 4, 2018, 11:49:03 AM1/4/18
to rundeck-discuss
Hi Rajesh,

What kind of install is it? deb? rpm? launcher?

Rajesh Kolla

unread,
Jan 4, 2018, 11:50:28 AM1/4/18
to rundeck...@googlegroups.com
HI,

Thanks for responding..

It is RPM i used below way to install from below URL


Yum RPM Install

Execute:

yum install java-1.8.0 
rpm -Uvh http://repo.rundeck.org/latest.rpm 
yum install rundeck 
service rundeckd start

Thanks,
Rajesh

--
You received this message because you are subscribed to a topic in the Google Groups "rundeck-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rundeck-discuss/MRF0AbafFeI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rundeck-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to rundeck-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/3154682f-bd1e-46a4-961d-1d40817a82bb%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Alex Honor

unread,
Jan 4, 2018, 11:57:16 AM1/4/18
to rundeck...@googlegroups.com
Hi Rajesh,

Check the /var/log/service.log and be sure there are no errors there. It should have a line showing something like:

2018-01-04 16:50:58.287:INFO:oejs.ServerConnector:main: Started ServerConnector@261ba6d7{HTTP/1.1}{0.0.0.0:4440}

Use the netstat command to verify that the port bound to and is indeed listening:.

netstat -an|grep 4440
tcp        0      0 0.0.0.0:4440            0.0.0.0:*               LISTEN

From the local host where rundeck is installed try connecting to that port:

--2018-01-04 16:55:32--  http://ipaddress:4440/


If those checks succeed then the rundeck install is ok but something is blocking access to that IP and port from your browser.

Thanks

--
You received this message because you are subscribed to the Google Groups "rundeck-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discuss+unsubscribe@googlegroups.com.

To post to this group, send email to rundeck-discuss@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Alex Honor

[Rundeck | a...@rundeck.com ]

Rajesh Kolla

unread,
Jan 4, 2018, 12:21:45 PM1/4/18
to rundeck...@googlegroups.com
HI Alex,

Below are the outputs i see 

1. 
/var/log/rundeck/service.log has below warning :

WARNING: HTTPS is not enabled, specify -Drundeck.ssl.config=/var/lib/rundeck/server/config/ssl.properties to enable.
2018-01-04 15:49:14.805:INFO:oejs.Server:main: jetty-9.0.7.v20131107
2018-01-04 15:49:27.670:INFO:oejw.StandardDescriptorProcessor:main: NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet
2018-01-04 15:49:35.716:INFO:/:main: Initializing Spring root WebApplicationContext
INFO  BootStrap: Starting Rundeck 2.10.2-1 (2017-12-19) ...
INFO  BootStrap: using rdeck.base config property: /var/lib/rundeck
INFO  BootStrap: loaded configuration: /etc/rundeck/framework.properties
INFO  BootStrap: RSS feeds disabled
INFO  BootStrap: Preauthentication is disabled
INFO  BootStrap: Rundeck is ACTIVE: executions can be run.
INFO  BootStrap: Rundeck startup finished in 1646ms
2018-01-04 15:50:33.385:INFO:/:main: Initializing Spring FrameworkServlet 'grails'
2018-01-04 15:50:33.457:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@7f1ef916{/,file:/var/lib/rundeck/exp/webapp/,AVAILABLE}{/var/lib/rundeck/exp/webapp}
2018-01-04 15:50:33.494:INFO:oejs.ServerConnector:main: Started ServerConnector@524418a2{HTTP/1.1}{0.0.0.0:4440}


2. 
netstat -an|grep 4440
tcp6       0      0 :::4440                 :::*                    LISTEN


3. 
--2018-01-04 17:12:34--  http://ipaddress:4440/
Connecting to ippaddress:4440... failed: Connection timed out.
Retrying.

--2018-01-04 17:14:42--  (try: 2)  http://ippaddress:4440/
Connecting to ippaddress:4440...


Thanks,
Rajesh

Alex Honor

unread,
Jan 4, 2018, 12:26:56 PM1/4/18
to rundeck...@googlegroups.com
Hi Rajesh,

I see the netstat output indicates tcp6. You will need to force it to use tcp4. Modify your /etc/rundeck/profile and add "-Djava.net.preferIPv4Stack=true" to the RDECK_JVM variable. Restart after.

Thanks


For more options, visit https://groups.google.com/d/optout.

Rajesh Kolla

unread,
Jan 4, 2018, 1:34:09 PM1/4/18
to rundeck...@googlegroups.com
HI Alex,

changed but nothing is going on not even rundeck is running now.

Added in the below location in the last line under /etc/rundeck/profile : ( -Djava.net.preferIPv4Stack=true)

RDECK_JVM="-Djava.security.auth.login.config=$JAAS_CONF \
           -Dloginmodule.name=$LOGIN_MODULE \
           -Drdeck.config=$RDECK_CONFIG \
           -Drundeck.server.configDir=$RDECK_SERVER_CONFIG \
           -Dserver.datastore.path=$RDECK_SERVER_DATA/rundeck \
           -Drundeck.server.serverDir=$RDECK_INSTALL \
           -Drdeck.projects=$RDECK_PROJECTS \
           -Drdeck.runlogs=$RUNDECK_LOGDIR \
           -Drundeck.config.location=$RDECK_CONFIG_FILE \
           -Djava.io.tmpdir=$RUNDECK_TEMPDIR \
           -Drundeck.server.workDir=$RUNDECK_WORKDIR \
           -Dserver.http.port=$RDECK_HTTP_PORT
           -Djava.net.preferIPv4Stack=true"

and tested below after that but not even showing that rundeck is running:
1.
netstat -an|grep 4440 giving output nothing
2.
ps -ef | grep rundeck
root      2589  2044  0 18:27 pts/1    00:00:00 grep --color=auto rundeck

3.
service rundeckd restart 

log under :
less /var/log/rundeck/service.log

WARNING: HTTPS is not enabled, specify -Drundeck.ssl.config=/var/lib/rundeck/server/config/ssl.properties to enable.
2018-01-04 15:49:14.805:INFO:oejs.Server:main: jetty-9.0.7.v20131107
2018-01-04 15:49:27.670:INFO:oejw.StandardDescriptorProcessor:main: NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet
2018-01-04 15:49:35.716:INFO:/:main: Initializing Spring root WebApplicationContext
INFO  BootStrap: Starting Rundeck 2.10.2-1 (2017-12-19) ...
INFO  BootStrap: using rdeck.base config property: /var/lib/rundeck
INFO  BootStrap: loaded configuration: /etc/rundeck/framework.properties
INFO  BootStrap: RSS feeds disabled
INFO  BootStrap: Preauthentication is disabled
INFO  BootStrap: Rundeck is ACTIVE: executions can be run.
INFO  BootStrap: Rundeck startup finished in 1646ms
2018-01-04 15:50:33.385:INFO:/:main: Initializing Spring FrameworkServlet 'grails'
2018-01-04 15:50:33.457:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@7f1ef916{/,file:/var/lib/rundeck/exp/webapp/,AVAILABLE}{/var/lib/rundeck/exp/webapp}
2018-01-04 15:50:33.494:INFO:oejs.ServerConnector:main: Started ServerConnector@524418a2{HTTP/1.1}{0.0.0.0:4440}

Session terminated, killing shell...2018-01-04 18:06:21.211:INFO:oejs.ServerConnector:Thread-1: Stopped ServerConnector@524418a2{HTTP/1.1}{0.0.0.0:4440}
2018-01-04 18:06:21.211:INFO:/:Thread-1: Destroying Spring FrameworkServlet 'grails'
2018-01-04 18:06:21.529:INFO:/:Thread-1: Closing Spring root WebApplicationContext
2018-01-04 18:06:21.532:INFO:oejsh.ContextHandler:Thread-1: Stopped o.e.j.w.WebAppContext@7f1ef916{/,file:/var/lib/rundeck/exp/webapp/,UNAVAILABLE}{/var/lib/rundeck/exp/webapp}
 ...killed.


Thanks,
Rajesh

Alex Honor

unread,
Jan 4, 2018, 1:54:46 PM1/4/18
to rundeck-discuss
Looks like you missed the trailing backslash. Eg 

           -Dserver.http.port=$RDECK_HTTP_PORT \

Rajesh Kolla

unread,
Jan 4, 2018, 2:30:54 PM1/4/18
to rundeck...@googlegroups.com
yeah got you made change but still i see the below error when i tried, iam too tierd of these changes read so many blogs and made changes as per the comments but nothing looks like working.

changes made :
-Dserver.http.port=$RDECK_HTTP_PORT  \
-Djava.net.preferIPv4Stack=true"

output:
1. 
netstat -an|grep 4440
tcp        0      0 0.0.0.0:4440            0.0.0.0:*               LISTEN

2.

Error :
Inline image 1

3. log output 
-bash: line 1: -Djava.net.preferIPv4Stack=true: command not found
WARNING: HTTPS is not enabled, specify -Drundeck.ssl.config=/var/lib/rundeck/server/config/ssl.properties to enable.
2018-01-04 19:07:49.341:INFO:oejs.Server:main: jetty-9.0.7.v20131107


Reply all
Reply to author
Forward
0 new messages