留言板

Server get shutdown command every day at specific time

Becas Kostas,修改在10 年前。

Server get shutdown command every day at specific time

Junior Member 帖子: 28 加入日期: 12-8-30 最近的帖子
Hey,

I am facing a problem with my liferay server. Every day at 01:06 the server gets a valid shutdown command.
I host it on a vps running ubuntu. My liferay instance is 6.1 ce ga2.

How can i avoid that? Or what to check to find the origin of the problem.


Oct 14, 2013 1:06:13 AM org.apache.catalina.core.StandardServer await
INFO: A valid shutdown command was received via the shutdown port. Stopping the Server instance.
Oct 14, 2013 1:06:13 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8080"]
Oct 14, 2013 1:06:13 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["ajp-bio-8009"]
Oct 14, 2013 1:06:13 AM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Oct 14, 2013 1:06:13 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Oct 14, 2013 1:06:13 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Oct 14, 2013 1:06:13 AM org.apache.coyote.AbstractProtocol init
SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-bio-8080"]
java.net.BindException: Address already in use <null>:8080
	at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:406)
	at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610)
	at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429)
	at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
	at org.apache.catalina.connector.Connector.initInternal(Connector.java:981)
	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
	at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
	at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814)
	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:633)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:658)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Caused by: java.net.BindException: Address already in use
	at java.net.PlainSocketImpl.socketBind(Native Method)
	at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
	at java.net.ServerSocket.bind(ServerSocket.java:376)
	at java.net.ServerSocket.<init>(ServerSocket.java:237)
	at java.net.ServerSocket.<init>(ServerSocket.java:181)
	at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
	at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:393)
	... 17 more

</init></init></null>



Thanks
thumbnail
David H Nebinger,修改在10 年前。

RE: Server get shutdown command every day at specific time

Liferay Legend 帖子: 14916 加入日期: 06-9-2 最近的帖子
I guess to block it you could change the shutdown port in the server.xml file.

At the very least you should not be accepting any internet traffic on the specific port (to block remote shutdown requests).

You need to check your cron tasks to see if you have anything that's happening at that time. One culprit may be logrotate, as this process will sometimes shut down other processes to rotate the logs.
Becas Kostas,修改在10 年前。

RE: Server get shutdown command every day at specific time

Junior Member 帖子: 28 加入日期: 12-8-30 最近的帖子
I have created a cron job every 10 minute to check if the server is up, and if not to restart it. But i do not think that it causes the problem.
The only evidence, i just found that runs some seconds before the shutdown command is
CRON[17761]: (root) CMD ([ -x /opt/psa/admin/sbin/backupmng ] && /opt/psa/admin/sbin/backupmng >/dev/null 2>&1)

but that runs every now and then.
thumbnail
David H Nebinger,修改在10 年前。

RE: Server get shutdown command every day at specific time

Liferay Legend 帖子: 14916 加入日期: 06-9-2 最近的帖子
You tend to get clean backups (especially of databases) if processes are shutdown, so it could be your backup process.

But you're really outside of Liferay, so it's not really appropriate to work through your issues on a Liferay forum.