[rudder-users] Rudder Root Service Periodic Restart
Francois Armand
francois.armand at normation.com
Tue Oct 7 10:52:26 CEST 2014
Hello,
OK, so it seems that your server is restarted after ~5 minutes. That
really looks like an action of the agent on the server.
Before anything else, could you please give us:
* OS of the server on which Rudder is installed (type (Linux, etc),
distribution, version...)
* Version of Rudder
Now, for the possible explanation: we have a configuration rule on the
server that's saying "the rudder server must be up and accessible. If
not, try to restart it".
The rule is checked by accessing URL
http://localhost:8080/rudder/api/status and expecting a "OK" text
response with 200 OK status.
So, could you please try:
* to execute the following command as rood on the Rudder server:
$ /var/rudder/cfengine-community/bin/cf-agent -KI
And ckeck if there is something like that in the output:
2014-10-07T10:06:03+0200 info:
/default/root_component_check/methods/'any'/default/generic_alive_check/commands/'/usr/bin/curl
-s http://localhost:8080/rudder/api/status |/bin/grep -q OK'[0]:
Executing 'no timeout' ... '/usr/bin/curl -s
http://localhost:8080/rudder/api/status |/bin/grep -q OK'
2014-10-07T10:06:03+0200 error:
/default/root_component_check/methods/'any'/default/generic_alive_check/commands/'/usr/bin/curl
-s http://localhost:8080/rudder/api/status |/bin/grep -q OK'[0]:
Finished command related to promiser '/usr/bin/curl -s
http://localhost:8080/rudder/api/status |/bin/grep -q OK' -- *an
error occurred, returned 1*
2014-10-07T10:06:03+0200 info:
/default/root_component_check/methods/'any'/default/generic_alive_check/commands/'/usr/bin/curl
-s http://localhost:8080/rudder/api/status |/bin/grep -q OK'[0]:
Completed execution of '/usr/bin/curl -s
http://localhost:8080/rudder/api/status |/bin/grep -q OK'
R:
@@server-roles@@result_error@@server-roles@@server-roles-directive@@0@@Check
rudder status@@None@@2014-10-07 08:06:02+00:00##root@#The
http://localhost:8080/rudder/api/status *web application failed to
respond for the second time. Restarting jetty NOW !*
If so, after Rudder restarted, execute the following command by hand:
curl -v -X GET http://localhost:8080/rudder/api/status
If that fails to return "HTTP/1.1 200 OK" and "OK", there is something
forbidding the test to succeed. Did you change the
"rudder.rest.allowNonAuthenticatedUser" value in config file
/opt/rudder/etc/rudder-web.properties ? Do you have some firewall
filtering connection from localhost to itself ? Or perhaps it is
something about IPv6 localhost not resolving correctly.
For that last case: Java try very hard to use IPv6 over IPv4, so if you
have in /etc/hosts:
::1 localhost
It will leads to problem.
Try changing that to:
::1 ip6-localhost
And check that you have a line looking like:
127.0.0.1 localhost
Hope it helps,
On 07/10/2014 07:03, John Robert MENDOZA wrote:
> Hello Francois,
>
> Thank you for your response. Once in a while, I encounter an error
> message "Cannot contact the server at this time." which refreshes the
> page I'm on and shows an animation "Rudder is loading, please wait".
> After then, I end up on the login page. Upon investigation of the log
> files, I found that the application might be triggering a "graceful"
> shutdown. I've enclosed the relevant log file for your closer inspection.
>
> Thanks,
> Bert
>
>
>
>
>
> On Monday, 06 October, 2014 08:59 PM, Francois Armand wrote:
>> On 05/10/2014 06:40, John Robert T. Mendoza wrote:
>>> Hello,
>>>
>>> I'm encountering periodic restarts of the rudder root service. This results of me being dropped from my current web session and prompts me to log in again. Is this an intentional behaviour or did I misconfigure something?
>>>
>>> Thanks,
>>>
>>
>>
>> Hello,
>>
>> Periodic restart are not an intentional behavior, so there seems to
>> have something not cool is happening.
>>
>> First, perhaps the application is not really restarting. Do you see
>> any wainting screen ("Rudder is loading, plea wait") befor being
>> redirected to the login screen ?
>> Does the PID of the application is changing during these events ?
>> You can know the PID of Rudder server with command:
>>
>> $ ps aux | grep rudder | grep java
>>
>> If Rudder is not restarting, perhaps the problem is on the
>> authentication part (for example, at some point, the server is
>> loosing your authentication cookie and so ask you a new authentication).
>>
>> If the application is restarting, could you please tell us if there
>> is any errors in the log: /var/log/rudder/webapp/xxxx_stderrout.log ?
>>
>> Thanks,
>>
>> --
>> ------------------------------------------------------------------------
>> *François ARMAND*
>> /Directeur de la R&D/
>> Normation <http://www.normation.com>
>> ------------------------------------------------------------------------
>> *87 rue de Turbigo, 75003 Paris, France*
>> Telephone: +33 (0)1 83 62 99 23
>> Mobile: +33 (0)6 63 37 60 55
>> ------------------------------------------------------------------------
>>
>
--
------------------------------------------------------------------------
*François ARMAND*
/Directeur de la R&D/
Normation <http://www.normation.com>
------------------------------------------------------------------------
*87 rue de Turbigo, 75003 Paris, France*
Telephone: +33 (0)1 83 62 99 23
Mobile: +33 (0)6 63 37 60 55
------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.rudder-project.org/pipermail/rudder-users/attachments/20141007/ba920fcc/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 3503 bytes
Desc: not available
URL: <http://www.rudder-project.org/pipermail/rudder-users/attachments/20141007/ba920fcc/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sig-normation-logo-square.png
Type: image/png
Size: 3503 bytes
Desc: not available
URL: <http://www.rudder-project.org/pipermail/rudder-users/attachments/20141007/ba920fcc/attachment-0001.png>
More information about the rudder-users
mailing list