pydio / pydio-sync-java

[DEPRECATED] Synchronization Client of the Pydio project. Based on the Java SDK.
GNU General Public License v3.0
35 stars 15 forks source link

Synchronisation failed: "null" #29

Closed lamarios closed 10 years ago

lamarios commented 11 years ago

Hi,

I'm facing the "null" error message when the application is requesting for remote changes.

I was hitting java heap space which I fixed by changing the java virtual machine parameters so now i'm hitting the null error, but unfortunately, I don't have any logs coming out on the ajxp_errors.out or even ajxp_log.out except:

1918339 [AjaXplorerScheduler_Worker-1] INFO root - This pass took 88081 milliSeconds (Local : true)

My client is on OSX 10.8.4, the folder I'm trying to synchronise is around 8 GB with 100 000 files, and is already on my server (was using btsync before, but my office blocked it, so i decided to use the Ajaxplorer client as it seems to be all through port 80).

My server is an Ubuntu server running apache2 and I have the php rsync lib installed properly (appears in my phpinfo). And no error appears in server side logs.

Is there any special configuration or plugin to enable on the server beside PHP rsync ?

Thanks

cdujeu commented 11 years ago

Hi Paul would you have some debugging facility ? All you would need is an Eclipse + Git .

lamarios commented 11 years ago

Yeah i have all this.

cdujeu commented 11 years ago

So I would suggest starting the synchro from ecplise and put some debugger to see if you can get close to the error. You also need maven plugin. You have to checkout both ajaxplorer-sdk-java and ajaxplorer-sync projects, and Maven will just scream for the "swt.version" . Replacing it with the artefactId org.eclipse.swt.cocoa.macosx.x86_64 will work and the stuff should compile Tell me if you have problems or other stuff to do, I will write a paragraph for developers based on this.

lamarios commented 11 years ago

Unfortunately, i'm really not familiar with Maven, so I'm not so sure how to run the project, I modified the swt.version and put a path link to the sdk .jar.

On Thursday, September 5, 2013 at 6:12 PM, Charles du Jeu wrote:

So I would suggest starting the synchro from ecplise and put some debugger to see if you can get close to the error. You also need maven plugin. You have to checkout both ajaxplorer-sdk-java and ajaxplorer-sync projects, and Maven will just scream for the "swt.version" . Replacing it with the artefactId org.eclipse.swt.cocoa.macosx.x86_64 will work and the stuff should compile Tell me if you have problems or other stuff to do, I will write a paragraph for developers based on this.

— Reply to this email directly or view it on GitHub (https://github.com/ajaxplorer/ajaxplorer-sync/issues/29#issuecomment-23857705).

cdujeu commented 11 years ago

No worries: maven is just managing the dependencies. So if you have the plugin installed in eclispe, when you checkout the project and set the right artefactId, Maven will download all necessary dependencies and if your project compiles, well, you're good to go ( run the Manager class)

lamarios commented 11 years ago

Hmm, I tried again at home, now on lan with my server and with the version from github I get this error:

org.xml.sax.SAXParseException: Premature end of file.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:246) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284) at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124) at info.ajaxplorer.client.http.XMLDocEntity.(XMLDocEntity.java:74) at info.ajaxplorer.client.http.RestRequest.getDocumentContent(RestRequest.java:467) at info.ajaxplorer.client.http.RestRequest.getDocumentContent(RestRequest.java:444) at info.ajaxplorer.synchro.SyncJob.takeRemoteSnapshot(SyncJob.java:1144) at info.ajaxplorer.synchro.SyncJob.loadRemoteChanges(SyncJob.java:1166) at info.ajaxplorer.synchro.SyncJob.run(SyncJob.java:326) at info.ajaxplorer.synchro.SyncJob.execute(SyncJob.java:164) at org.quartz.core.JobRunShell.run(JobRunShell.java:213) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)

I checked my server log, actually last time i was hitting maximum execution time, now seems that the PHP server reaches maximum memory allocation allowed. I'll edit my php.ini

On Thursday, September 5, 2013 at 8:25 PM, Charles du Jeu wrote:

No worries: maven is just managing the dependencies. So if you have the plugin installed in eclispe, when you checkout the project and set the right artefactId, Maven will download all necessary dependencies and if your project compiles, well, you're good to go ( run the Manager class)

— Reply to this email directly or view it on GitHub (https://github.com/ajaxplorer/ajaxplorer-sync/issues/29#issuecomment-23863785).

cdujeu commented 11 years ago

That's interesting, so that was this exception that was displayed as "null" on the user side?

lamarios commented 11 years ago

Seems like it, maybe the 0.8.3 released error handling was not so accurate as the repository one ?

Well not seems to be syncing. I'll try again from released version from office tomorrow to see how.

On Thursday, September 5, 2013, Charles du Jeu wrote:

That's interesting, so that was this exception that was displayed as "null" on the user side?

— Reply to this email directly or view it on GitHubhttps://github.com/ajaxplorer/ajaxplorer-sync/issues/29#issuecomment-23865734 .

cdujeu commented 10 years ago

actually sorry to come back so late, but very surely it's a server issue: when we load the reload snapshot, we load the full tree of the server, and this must die as there are so many files.

lamarios commented 10 years ago

Yeah. That was a server configuration problem, I had to increase the php maximum execution time and maximum memory.

The problem was that the error handling scope in the code is too wide so it make it difficult when the error message appear to know what's really going on.

Thanks for your help.

On Tuesday, October 15, 2013, Charles du Jeu wrote:

actually sorry to come back so late, but very surely it's a server issue: when we load the reload snapshot, we load the full tree of the server, and this must die as there are so many files.

— Reply to this email directly or view it on GitHubhttps://github.com/ajaxplorer/ajaxplorer-sync/issues/29#issuecomment-26290130 .

dflahaut commented 10 years ago

Hello, I'd the same problem. I tried to use eclipse but I can't manage such a thing !! So according your comment, I increased maximum execution time from 30 to 60 ; maximum memory was already at 128Mo And : it works again ! Very good job ! Thanks a lot. Denis

cdujeu commented 10 years ago

hi @dflahaut @lamarios, could you all try http://dl.ajaxplorer.info/nightly/sync/0.8.4-SNAPSHOT/Pydio-0.8.4-Windows-Setup.exe or http://dl.ajaxplorer.info/nightly/sync/0.8.4-SNAPSHOT/Pydio-0.8.4-MacOSX-Setup.dmg ? Thx!

cdujeu commented 10 years ago

Now look directly into http://dl.ajaxplorer.info/nightly/sync/0.8.4-SNAPSHOT/Installers/