Foros de discusión

Server does not show web pages after some time

thumbnail
Oleg Chistokhvalov, modificado hace 15 años.

Server does not show web pages after some time

New Member Mensajes: 4 Fecha de incorporación: 20/05/08 Mensajes recientes
I am using liferay-portal-jboss-tomcat-4.0-4.4.2 bundle.
And noticed, that after some time (several days or even weeks) the server stop showing web pages.
Though the server is running and the are no problems in the log:

...
2008-12-09 10:04:11,263 DEBUG [org.jboss.resource.connectionmanager.IdleRemover]
run: IdleRemover notifying pools, interval: 450000
2008-12-09 10:11:41,239 DEBUG [org.jboss.resource.connectionmanager.IdleRemover]
run: IdleRemover notifying pools, interval: 450000
2008-12-09 10:19:11,214 DEBUG [org.jboss.resource.connectionmanager.IdleRemover]
run: IdleRemover notifying pools, interval: 450000
2008-12-09 10:26:41,238 DEBUG [org.jboss.resource.connectionmanager.IdleRemover]
run: IdleRemover notifying pools, interval: 450000
...

But when I try to hit the server in browser, like: http://myserver.domain.com:8080 it shows "Directory Listing For /" webpage.

When I try directly hit http://myserver.domain.com:8080/web/guest/home it shows empty page.

After the server is restarted everything works fine.
It's hard to reproduce the problem as I don't know what happens, and it takes quite a long time to see it again.

Could you help me here?
thumbnail
Victor Zorin, modificado hace 15 años.

RE: Server does not show web pages after some time

Liferay Legend Mensajes: 1228 Fecha de incorporación: 14/04/08 Mensajes recientes
We were running the same version for over 12 months without restart, did not experience anything like this. Turn on access log, and when problem occurs have a look at latest domain_access_log.xxxx file.
thumbnail
Oleg Chistokhvalov, modificado hace 15 años.

RE: Server does not show web pages after some time

New Member Mensajes: 4 Fecha de incorporación: 20/05/08 Mensajes recientes
Thanks for reply. I have hope now. Will turn on the access log and lets see.

But it stroke again today. The server is working but it doesn't show the web page.
When I manually go to /web/guest/home location I can see the empty page.
When I try to get the sources of the webpage Error Console in Firefox (Ctrl-Shift-J) shows an error:

Error: [Exception... "Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name]" nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)" location: "JS frame :: file:///C:/Program%20Files/Web%20Browsing/Firefox/components/nsLoginManager.js :: anonymous :: line 282" data: no]
Source File: file:///C:/Program%20Files/Web%20Browsing/Firefox/components/nsLoginManager.js
Line: 282

The lines from nsLoginManager.js are:
281 this._pwmgr.log("onStateChange accepted: req = " +
282 (aRequest ? aRequest.name : "(null)") +
283 ", flags = 0x" + aStateFlags.toString(16));


When I hit webserver directly, like http://server:8080/ I have directory listing:

Directory Listing For /
Filename Size Last Modified
html/ Mon, 01 Dec 2008 18:59:04 GMT
layouttpl/ Mon, 01 Dec 2008 18:59:03 GMT
wap/ Mon, 01 Dec 2008 18:59:05 GMT
Apache Tomcat/5.5.20

Still see no reasons in the log file.
thumbnail
Oleg Chistokhvalov, modificado hace 14 años.

RE: Server does not show web pages after some time

New Member Mensajes: 4 Fecha de incorporación: 20/05/08 Mensajes recientes
The problem was in temporary folder in linux. It automatically cleans up files after some time.
When I redirected temporary folder by using java option:
-Djboss.server.temp.dir.overrideJavaTmpDir=true
it all started to work normally.