Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
Johan de jong
Strange errors? Look here ( An unexpected error occurred while )
19 de Junho de 2012 01:42

Johan de jong

Ranking: Junior Member

Mensagens: 41

Data de entrada: 6 de Fevereiro de 2012

Mensagens recentes

Since i'm a frequent Liferay user and administrator of several sites i just want to help anybody by writing this post.

Liferay can sometimes throw very strange errors when you want to use a certain part of the website.
Today for example, i wanted to upload a file to a document library and Liferay kept throwing the error "An unexpected error occurred while saving your document.".

When iwanted to upload the file by the WEBDAV url / "Access from my Desktop" it threw a "file to large" error.
I tried and changed every setting and increased the file limit to 100 TB but still no way i could upload the file.

Then at one point Liferay finaly wrote a descent error into my glassfish errorlog
1Caused by: /export/home/me/liferay/data/document_library/14458/15041/319/1.0 (No such file or directory)

As a last resort i went to my server and checked the filestructure.

and there i found what happens a lot to me. I have a dedicated user that SHOULD run Liferay on Glassfish, but during tests and so i sometimes forget this and start Liferay with my root-account. This renders a lot of directories unusable for the standard-user and results in an enormous list of strange errors.

So if you use a special user-account on your server to run Liferay on Glassfish (most Linux OS's have a dedicated Tomcat user) make sure it has all permissions (at least RW) to:

If it hasn't, make sure it gets it.
Hitoshi Ozawa
RE: Strange errors? Look here ( An unexpected error occurred while )
23 de Junho de 2012 05:06

Hitoshi Ozawa

Ranking: Liferay Legend

Mensagens: 7949

Data de entrada: 23 de Março de 2010

Mensagens recentes

I did the same thing in my JBoss installation once. Took me few hours to find the problem. :-)

I'm amazed that liferay even startup up in your environment. Mine didn't.

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!