Fórumok

Liferay sync not working

Marc-Michel Rohé, módosítva 9 év-val korábban

Liferay sync not working

New Member Bejegyzés: 1 Csatlakozás dátuma: 2014.03.14. Legújabb bejegyzések
Hello,

I am using Liferay Sync version 1.2.2-b3 with Fedora 17. I set up the parameters and the server URL and it seemed to work as it shows "Test connection successfull" in the properties window.

But the sync does not work. It has been able to sync all the "hierarchy" of the target server (ie. I have all the folders well synched) but the files themselves are not synched and all the folders are just empty.

On the taskbar I just have the lifesync icon with a red cross with no error message.

Thanks for your help

Kind regards
thumbnail
Dennis Ju, módosítva 9 év-val korábban

RE: Liferay sync not working

Regular Member Bejegyzések: 228 Csatlakozás dátuma: 2010.09.30. Legújabb bejegyzések
Are you trying to sync against a large site? Try running it against a smaller site (just a few files and folders) and see if that works first.

If that still doesn't work, can you attach or send me the logs found in ~/.liferay-sync/logs?
Alla Sapozhnikova, módosítva 9 év-val korábban

RE: Liferay sync not working

Junior Member Bejegyzések: 81 Csatlakozás dátuma: 2012.03.02. Legújabb bejegyzések
I am having the same issue. Folders are synced, but no files. I am using 1.2.2 GA3 Win(32 bit), Liferay 6.1 GA2. And no log from today in ~/.liferay-sync/logs directory.
thumbnail
Dennis Ju, módosítva 9 év-val korábban

RE: Liferay sync not working

Regular Member Bejegyzések: 228 Csatlakozás dátuma: 2010.09.30. Legújabb bejegyzések
Alla, can you try the same test? Try selecting a small site with just a few files and folders. Leave all other sites unchecked.
Alla Sapozhnikova, módosítva 9 év-val korábban

RE: Liferay sync not working

Junior Member Bejegyzések: 81 Csatlakozás dátuma: 2012.03.02. Legújabb bejegyzések
Dennis, I looked at the Liferay log, and here is what I found:

for each of the files I was trying to upload there was an error message like the one below:

ERROR [ajp-8109-4][render_portlet_jsp:154] com.liferay.portal.kernel.exception.SystemException: java.io.FileNotFoundException: /data/webapps/public/liferay/WEB-INF/data/document_library/603976/788324/27938/1.0 (No such file or directory)

When i looked into /data/webapps/public/liferay/WEB-INF/data/document_library/603976/ there were no sub-directories with the numbers the error messages were referring to. (example: for the message above sub-folder 788324 did not exist).

If I create a sub-folder myself, then the sync will sync the files for which I created sub-directories, and will fail for the other ones. How can I make sure that the sub-folders are created by liferay-sync? how can I get the liferay-sync log to be created?

Thank you,
Alla
thumbnail
Jack Bakker, módosítva 9 év-val korábban

RE: Liferay sync not working

Liferay Master Bejegyzések: 978 Csatlakozás dátuma: 2010.01.03. Legújabb bejegyzések
Alla Sapozhnikova:

for each of the files I was trying to upload there was an error message like the one below:

ERROR [ajp-8109-4][render_portlet_jsp:154] com.liferay.portal.kernel.exception.SystemException: java.io.FileNotFoundException: /data/webapps/public/liferay/WEB-INF/data/document_library/603976/788324/27938/1.0 (No such file or directory)

When i looked into /data/webapps/public/liferay/WEB-INF/data/document_library/603976/ there were no sub-directories with the numbers the error messages were referring to. (example: for the message above sub-folder 788324 did not exist).

If I create a sub-folder myself, then the sync will sync the files for which I created sub-directories, and will fail for the other ones. How can I make sure that the sub-folders are created by liferay-sync? how can I get the liferay-sync log to be created?


/data/webapps/public/liferay/WEB-INF/data/document_library/603976/... is a strange path, do you know what your liferay.home is set to ?
thumbnail
Dennis Ju, módosítva 9 év-val korábban

RE: Liferay sync not working

Regular Member Bejegyzések: 228 Csatlakozás dátuma: 2010.09.30. Legújabb bejegyzések
Alla, are you using a non-default file system store for your document library? What's the value of dl.store.impl under portal.properties?
Alla Sapozhnikova, módosítva 9 év-val korábban

RE: Liferay sync not working

Junior Member Bejegyzések: 81 Csatlakozás dátuma: 2012.03.02. Legújabb bejegyzések
No, this is a Linux file system. I have a couple of instances, and I am seeing the problem with liferay-sync only on one of them, the other one works fine. They share the same database and the same file system.
thumbnail
Dennis Ju, módosítva 9 év-val korábban

RE: Liferay sync not working

Regular Member Bejegyzések: 228 Csatlakozás dátuma: 2010.09.30. Legújabb bejegyzések
So adding files to the root directory works without problems?

When you're manually creating the folder, do you mean you're creating them directly through the file system? Or are you creating them through the documents/media portlet through the web UI?
Alla Sapozhnikova, módosítva 9 év-val korábban

RE: Liferay sync not working

Junior Member Bejegyzések: 81 Csatlakozás dátuma: 2012.03.02. Legújabb bejegyzések
No, none of the directories on the second instance worked.
Yes, I was creating folders on the file system directly using Linux commands. The "Add document" through the Lifeary GUI failed with the same error message.FYI, the database entries for the folders were fine.
thumbnail
Dennis Ju, módosítva 9 év-val korábban

RE: Liferay sync not working

Regular Member Bejegyzések: 228 Csatlakozás dátuma: 2010.09.30. Legújabb bejegyzések
Sounds like there's a problem in the way you set up your second instance if you're experiencing the same with the web UI. Once you get it working through the web UI, it should work with Sync as well. You'll have better luck trying the portal deployment/setup forum for troubleshooting your configuration.