d4l3k / WebSync

WebSync is a document editing tool similar to Google Drive or Office 365.
https://websyn.ca
MIT License
301 stars 68 forks source link

Upload Failed #173

Open shrekmaxi opened 8 years ago

shrekmaxi commented 8 years ago

After I've done the setup, the project in my VM is running now. But I could not use the Upload function yet. When I try to upload anyfile(multiple types) into the platform, it returns with the messege:"Internal Server Error". I just want to know how to trace the problem? I've already installed all the dependenices( I believe it myself)

thanks a lot

d4l3k commented 8 years ago

Are there any errors on the command line? For file uploading you typically need unoconv installed and available on the command line.

shrekmaxi commented 8 years ago

I am sure I've installed unoconv already

[root@localhost WebSync]# unoconv -V unoconv 0.7 Written by Dag Wieers dag@wieers.com Homepage at http://dag.wieers.com/home-made/unoconv/

I use tail -f to check the log of server3003.log (the port I access with)

I found this:

NameError - undefined local variable or method `file' for #WebSync::Routes::UploadDownload:0x000000035b5f60:

shrekmaxi commented 8 years ago

/usr/lib64/libreoffice/program/soffice.bin X11 error: Can't open display: Set DISPLAY environment variable, use -display option or check permissions of your X-Server (See "man X" resp. "man xhost" for details) Error: Unable to connect or start own listener. Aborting. I, [2016-09-27T22:36:21.549765 #21156] INFO -- : Unoconv failed, filetype: text/plain 2016-09-27 22:36:21 - NameError - undefined local variable or method `content' for #WebSync::Routes::UploadDownload:0x00000003bb5348:

shrekmaxi commented 8 years ago

I just realized that maybe is beacause of the X windows? Does this project depend on X windows env?

d4l3k commented 8 years ago

It shouldn't. Kind of depends whether you have a headless version of libre office installed. On some distros that's the default.

On Fri, Sep 30, 2016, 02:37 shrekmaxi notifications@github.com wrote:

I just realized that maybe is beacause of the X windows? Does this project depend on X windows env?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/d4l3k/WebSync/issues/173#issuecomment-250702787, or mute the thread https://github.com/notifications/unsubscribe-auth/AA3fMINQtl5kmbd0l9cghYYxeTxW2nXSks5qvNhugaJpZM4KClKy .