Try the fastest and simplest way to install ONLYOFFICE

DocumentServer isnt saving

Issues during installation, usage and configuring

DocumentServer isnt saving

Postby ftaut » Wed Apr 05, 2017 9:52 am

Hey guys,
i have OnlyOffice Docker-DocumentServer integrated to my Nextcloud.
I am creating a new Document and edit it with OnlyOffice.
But the content i entered is not saved to the File.
When i open the File locally its empty.
Do i have to change some configuration in api.js?
Where can i find the File?
Thank you for your help!

Hi Maxim,
because, i dont know why, i cant reply to your post in my latest topic im creating a new one.
I used this instruction to install my Docker-DocumentServer: https://github.com/onlyoffice/docker-documentserver
Then i integrated it to my NextCloud.
My DocumentServer is running on port 443.
I didnt change any configuration yet.
Please send me a private Message to which i can answer next time.

Regards
ftaut
 
Posts: 2
Joined: Wed Apr 05, 2017 9:48 am

Re: DocumentServer isnt saving

Postby Maxim » Wed Apr 05, 2017 12:37 pm

Hello ftaut!
If you cannot save the file it means that you integrated DocumentServer wrong way. I don't know your configuration to offer you any solution. Please specify what instraction you used to integrate.
Maxim
 
Posts: 1003
Joined: Tue Oct 11, 2016 2:34 pm

Re: DocumentServer isnt saving

Postby Maxim » Wed Apr 05, 2017 1:32 pm

So here you can find some useful info.
Both servers run with SSL certs?
Maxim
 
Posts: 1003
Joined: Tue Oct 11, 2016 2:34 pm

Re: DocumentServer isnt saving

Postby ftaut » Wed Apr 05, 2017 1:38 pm

Yes both Servers are using self-signed certs.
Which Info is relevant for me?

Do i have to change/add configuration parameters anywhere?
ftaut
 
Posts: 2
Joined: Wed Apr 05, 2017 9:48 am

Re: DocumentServer isnt saving

Postby Maxim » Thu Apr 06, 2017 2:46 pm

Specify your configuration in details please.
You can enable detailed logging and after that we can analyze what's wrong with your configuration. Don't forget to update your OwnCloud/NextCloud app.
Maxim
 
Posts: 1003
Joined: Tue Oct 11, 2016 2:34 pm

Re: DocumentServer isnt saving

Postby progressguide » Mon May 29, 2017 9:47 pm

Hello, I am having a similar issue.

I installed NextCloud on a VPS machine and OnlyOffice on a separate machine, then I used the integration app to connect both services. When I login to NextCloud, I can create a file and view it using OnlyOffice. But when I download the file from NextCloud and open it on my computer locally, the file is blank. When I open the file in NextCloud in a browser, I see all my edits in the file. It seems like the edited version of the file is stored on the OnlyOffice server but it is not posting back to my NextCloud server. How can I fix this?
progressguide
 
Posts: 3
Joined: Mon May 29, 2017 9:37 pm

Re: DocumentServer isnt saving

Postby Maxim » Tue May 30, 2017 7:18 am

Hello progressguide!
We need to analyze your logs of NC and DS /app/onlyoffice/DocumentServer/logs - for Docker; /var/log/onlyoffice - for Linux
Maxim
 
Posts: 1003
Joined: Tue Oct 11, 2016 2:34 pm

Re: DocumentServer isnt saving

Postby progressguide » Tue May 30, 2017 6:19 pm

This is the output when I run tail -n100 /var/log/onlyoffice/documentserver/docservice/out.log on my OnlyOffice server.

Code: Select all
[2017-05-29 17:36:32.887] [ERROR] nodeJS - sendServerRequest error: docId = 221201496093155;url = https://progressguide.com/nextcloud/index.php/apps/onlyoffice/track?doc=TDNESU1JRnNVdXprK2FlN0ZwSjhCSlFkK2dVZzdYbHo4dDVuek13UmFjaz0/eyJmaWxlSWQiOjIyMTIwLCJvd25lcklkIjoiYWRtaW4iLCJhY3Rpb24iOiJ0cmFjayJ9;data = {"key":"221201496093155","status":2,"url":"https://onlyoffice.virtualassistantcloud.com/cache/files/221201496093155_6170/output.docx/output.docx?md5=odpUVxwfn5G1hBCMggc8Cg==&expires=1498685793&disposition=attachment&ooname=output.docx","changesurl":"https://onlyoffice.virtualassistantcloud.com/cache/files/221201496093155_6170/changes.zip/changes.zip?md5=B2EnOKTT4YIX18yciyRYjg==&expires=1498685793&disposition=attachment&ooname=output.zip","history":{"serverVersion":"4.3.4","changes":[{"created":"2017-05-29 21:26:18","user":{"id":"admin","name":"admin"}}]},"users":["admin"],"actions":[{"type":0,"userid":"admin"}],"lastsave":"2017-05-29T21:26:35.625Z","notmodified":false}
Error: Error response: statusCode:400 ;body:
{"error":1}
    at Request._callback (/var/www/onlyoffice/documentserver/server/Common/sources/utils.js:260:18)
    at Request.self.callback (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:188:22)
    at emitTwo (events.js:106:13)
    at Request.emit (events.js:191:7)
    at Request.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1171:10)
    at emitOne (events.js:96:13)
    at Request.emit (events.js:188:7)
    at IncomingMessage.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1091:12)
    at IncomingMessage.g (events.js:292:16)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:185:7)



This is the output I get when I run ls -l /app/onlyoffice/DocumentServer/logs/ on my NextCloud server. There does not seem to be a log file there. Only a documentserver folder.

Code: Select all
total 12
drwxrwxrwx 3 root root 4096 Apr  7 15:05 ./
drwxrwxrwx 4 root root 4096 Apr  7 15:05 ../
drwxrwxrwx 7 root root 4096 Apr  7 15:05 documentserver/



This is what I get when I run ls -l /app/onlyoffice/DocumentServer/logs/documentserver/ to see the contents of the documentserver folder. All of those sub-folders are empty though.

Code: Select all
total 28
drwxrwxrwx 7 root root 4096 Apr  7 15:05 ./
drwxrwxrwx 3 root root 4096 Apr  7 15:05 ../
drwxrwxrwx 2 root root 4096 Apr  7 15:05 CoAuthoringService/
drwxrwxrwx 2 root root 4096 Apr  7 15:05 DocService/
drwxrwxrwx 2 root root 4096 Apr  7 15:05 FileConverterService/
drwxrwxrwx 2 root root 4096 Apr  7 15:05 LibreOfficeService/
drwxrwxrwx 2 root root 4096 Apr  7 15:05 SpellCheckerService/


Any help would be very appreciated. Thank you.
progressguide
 
Posts: 3
Joined: Mon May 29, 2017 9:37 pm

Re: DocumentServer isnt saving

Postby Maxim » Wed May 31, 2017 12:59 pm

Hello progressguide!
Unfortunately there is no NextCloud logs and we cannot analyze what this error means "Error: Error response: statusCode:400". This error Document Server recieves from NextCloud server.
Maxim
 
Posts: 1003
Joined: Tue Oct 11, 2016 2:34 pm

Re: DocumentServer isnt saving

Postby progressguide » Wed May 31, 2017 5:51 pm

Hi Maxim, I logged into my NextCloud account and found a log in the admin page. This is what it shows:

Code: Select all
Error   PHP   file_get_contents(https://onlyoffice.virtualassistantcloud.com/cache/files/221201496093155_1480/output.docx/output.docx?md5=gR3GEVTBviEvCXiDog7pTg==&amp;expires=1498760448&amp;disposition=attachment&amp;ooname=output.docx): failed to open stream: operation failed at /home/progressguide/public_html/nextcloud/apps/onlyoffice/controller/callbackcontroller.php#315   2017-05-30T12:20:42-0600

Error   PHP   file_get_contents(): Failed to enable crypto at /home/progressguide/public_html/nextcloud/apps/onlyoffice/controller/callbackcontroller.php#315   2017-05-30T12:20:42-0600

Error   PHP   file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed at /home/progressguide/public_html/nextcloud/apps/onlyoffice/controller/callbackcontroller.php#315   2017-05-30T12:20:42-0600

Error   PHP   file_get_contents(https://onlyoffice.virtualassistantcloud.com/cache/files/221201496093155_6170/output.docx/output.docx?md5=odpUVxwfn5G1hBCMggc8Cg==&amp;expires=1498685793&amp;disposition=attachment&amp;ooname=output.docx): failed to open stream: operation failed at /home/progressguide/public_html/nextcloud/apps/onlyoffice/controller/callbackcontroller.php#315   2017-05-29T15:36:27-0600

Error   PHP   file_get_contents(): Failed to enable crypto at /home/progressguide/public_html/nextcloud/apps/onlyoffice/controller/callbackcontroller.php#315   2017-05-29T15:36:27-0600

Error   PHP   file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed at /home/progressguide/public_html/nextcloud/apps/onlyoffice/controller/callbackcontroller.php#315


Does this point to anything?
progressguide
 
Posts: 3
Joined: Mon May 29, 2017 9:37 pm

Next

Return to ownCloud/Nextcloud ONLYOFFICE integration app

Who is online

Users browsing this forum: No registered users and 1 guest

cron