Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
gerald hemmers
[Resolved] Tranfser to linux images not showing 6.1
10 de julio de 2012 11:49
Respuesta

gerald hemmers

Ranking: Junior Member

Mensajes: 92

Fecha de incorporación: 13 de mayo de 2008

Mensajes recientes

Hi there,

I'm kind of new to linux but i worked with it before. I have the following problem.

I installed liferay locally on a windows machine 6.1... everything is working fine ... I just created a zip files of liferay home dir and backupped my db.
Imported the db into mysql on my linux server.... extracted the zip file and started the server and then the magic happens. (this always worked on previous versions)

If i look to my catalina.out i see a lot of erros on showing images ... for example [404_jsp:109] /html/css/taglib/@theme_image_path@/common/button_bg.png or 17:38:31,376 ERROR [ImageImpl:66] Error reading image 34303
com.liferay.portlet.documentlibrary.NoSuchFileException: D:/liferay61-source/6.1.x/bundles/data/document_library/0/0/34303.png/1.0

None of my images are showing ... and when i try to download images from the control panel in liferay it tells me that the are not there .... while i can see then in the file system in the data dir ...

Does any one has any clues on what this can be? I think all the read access on the data dir is correct but what should it be on Linux ?

Thanks for all your help..
Greets, Gerald
David H Nebinger
RE: Tranfser to linux images not showing 6.1
10 de julio de 2012 11:37
Respuesta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensajes: 11770

Fecha de incorporación: 1 de septiembre de 2006

Mensajes recientes

Yep. You extracted the data directory but did not update the permissions on it. I'm guessing that they are such that the tomcat process cannot read either the files and/or the directories.
gerald hemmers
RE: Tranfser to linux images not showing 6.1
10 de julio de 2012 11:48
Respuesta

gerald hemmers

Ranking: Junior Member

Mensajes: 92

Fecha de incorporación: 13 de mayo de 2008

Mensajes recientes

Thanks David, but that went ok ...

the difference is with previous versions ..(by better reading my log files) that there is a portal-setup-wizard.properties file in the root of liferay.. and in that file there is a line with the liferay.home= with the home dir of liferay.

so changing this to my linux home solved my issue ... the weird thing .. when i uploaded a new image to liferay it was working fine ...

any way thanks for your response ... issue is solved !
greets gerald
Hitoshi Ozawa
RE: Tranfser to linux images not showing 6.1
10 de julio de 2012 14:28
Respuesta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensajes: 7949

Fecha de incorporación: 23 de marzo de 2010

Mensajes recientes

I usually recommend everyone to turn off the setup wizard because it causes more trouble than it's worth.

If you're going to do another setup, set setup.wizard.enabled=false in portal-ext.properties.
gerald hemmers
RE: Tranfser to linux images not showing 6.1
10 de julio de 2012 23:23
Respuesta

gerald hemmers

Ranking: Junior Member

Mensajes: 92

Fecha de incorporación: 13 de mayo de 2008

Mensajes recientes

Nice tip thanks !