Try the fastest and simplest way to install ONLYOFFICE

Onlyoffice - Nextcloud app

Suggestions on Document Server Installation/Functionality

Re: Onlyoffice - Nextcloud app

Postby Maxim » Thu Mar 09, 2017 12:02 pm

Hello everybody!
Now OnlyOffice supports Nextcloud!
This is one plugin for Own Cloud and Nextcloud
Maxim
 
Posts: 1469
Joined: Tue Oct 11, 2016 2:34 pm

Re: Onlyoffice - Nextcloud app

Postby igsrv » Mon Mar 13, 2017 9:19 pm

hi, sorry for my bad english,

i have the same issue in this thread viewtopic.php?f=5&t=8662


the difference is that i have two separate server

fisrt server : nextcloud server only listen https

second server : documentserver with linux debian installation


but i know the problem, there is the output of /var/log/onlyoffice/documentserver/docservice/out.log


[ERROR] nodeJS - postData error: docId = 24007451489417152;url = http://MY-NEXTCLOUD-SERVER/index.php/ap ... ...........

and this part

Error: connect ECONNREFUSED MY-NEXT-CLOUD-IP:80


it seems that the documentserver cant communicate with nextcloud in this way

but i have my nextcloud server only in https mode through load balancer , i mean only port 443 is open, the 80 port is closed for security reasons

do i have to modify something on nextcloud-onlyoffice app, or on the documentserver to change the communication from http to https?

thanks
igsrv
 
Posts: 2
Joined: Mon Mar 13, 2017 8:59 pm

Re: Onlyoffice - Nextcloud app

Postby Maxim » Tue Mar 14, 2017 7:18 am

Hello
How to enable https on Document Server.
As i understand you should enable https on both servers NextCloud and Document server.
The default path that the onlyoffice application is configured to look for the SSL certificates is at /var/www/onlyoffice/Data/certs.
The /var/www/onlyoffice/Data/ path is the path of the data store, which means that you have to create a folder named certs inside /var/www/onlyoffice/Data/ and copy the files into it and as a measure of security you will update the permission on the onlyoffice.key file to only be readable by the owner.
Maxim
 
Posts: 1469
Joined: Tue Oct 11, 2016 2:34 pm

Re: Onlyoffice - Nextcloud app

Postby igsrv » Fri Mar 17, 2017 4:20 pm

Maxim wrote:Hello
How to enable https on Document Server.
As i understand you should enable https on both servers NextCloud and Document server.
The default path that the onlyoffice application is configured to look for the SSL certificates is at /var/www/onlyoffice/Data/certs.
The /var/www/onlyoffice/Data/ path is the path of the data store, which means that you have to create a folder named certs inside /var/www/onlyoffice/Data/ and copy the files into it and as a measure of security you will update the permission on the onlyoffice.key file to only be readable by the owner.




Hi thanks for you reply

I have already https on both servers and working well, but the problem i guess is with the callbackurl, because i tested opening the port 80 and redirect the connections to the port 443 on the firewall trying to establish a connection without any error, but the apps still display the warning "the document could noty be saved...." and the log file change the error message now is like this






[ERROR] nodeJS - postData error: docId = 24007411489415733;url = http://MYNEXTCLOUDSERVER/index.php/apps ... jayJ9;data = {"key":"24007411489415733","status":1,"users":["273f5066-1644-1033-96b6-c1d2ac419103"],"actions":[{"type":1,"userid":"273f5066-1644-1033-96b6-c1d2ac419103"}]}
Error: Error response: statusCode:302 ;body:

at Request._callback (/var/www/onlyoffice/documentserver/server/Common/sources/utils.js:255:18)
at Request.self.callback (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:187: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:1126: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:1046:12)
at IncomingMessage.g (events.js:291:16)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)



If you see the url at the begining shows an "http" link, but my server is only works with https, i dont know why happens this, and the error code 302 is an redirect of the firewall, but i can open the document after the warning message but sometimes saves the document, not all times, its very annoying
igsrv
 
Posts: 2
Joined: Mon Mar 13, 2017 8:59 pm

Re: Onlyoffice - Nextcloud app

Postby sebastien » Wed Apr 11, 2018 10:43 pm

Hi,

Onlyoffice works like à charm with Nextcloud 13. I love it ! The problem I have is that it does not works with external storage Iike samba shares. It says "download failed. Certainly because Document Server tries to write at the same place but did not inherit Samba credentials to do so and Samba rejects the request with no access right.

This is a big issue for me because all entities I am working for use Samba as main file storage and will not migrate data on a Nextcloud native storage. So the good combination for me is to set up Nextcloud as to be a web interface only allowing user to work with and share data. In the scheme, OnlyOffice would be the perfect solution for collaborative groups as well as user friendly environnement. Unfortunatly OnlyOffice does not work in these conditions. I really home that the dev team will be able to overcome this (tricky) sticking point.
sebastien
 
Posts: 8
Joined: Mon Mar 12, 2018 8:59 pm

Re: Onlyoffice - Nextcloud app

Postby sebastien » Fri Apr 13, 2018 4:58 pm

Hi,

Onlyoffice works like à charm with Nextcloud 13. I love it ! The problem I have is that it does not works with external storage Iike samba shares. It says "download failed. Certainly because Document Server tries to write at the same place but did not inherit Samba credentials to do so and Samba rejects the request with no access right.

This is a big issue for me because all entities I am working for use Samba as main file storage and will not migrate data on a Nextcloud native storage. So the good combination for me is to set up Nextcloud as to be a web interface only allowing user to work with and share data. In the scheme, OnlyOffice would be the perfect solution for collaborative groups as well as user friendly environnement. Unfortunatly OnlyOffice does not work in these conditions. I really home that the dev team will be able to overcome this (tricky) sticking point.
sebastien
 
Posts: 8
Joined: Mon Mar 12, 2018 8:59 pm

Re: Onlyoffice - Nextcloud app

Postby sebastien » Mon Apr 16, 2018 8:26 pm

Hi Maxim,

Unfortunatly the plugin still not allows OnlyOffice Document Server to share docs stored on a smb/cifs Nextcloud external storage. Looks like the current process requires access rights for file conversion which are not granted to OO doc server to do so.

Do you thing there is a chance to see a solution for this issue to come out ?
sebastien
 
Posts: 8
Joined: Mon Mar 12, 2018 8:59 pm

Re: Onlyoffice - Nextcloud app

Postby Maxim » Thu Apr 19, 2018 11:29 am

Hello sebastien!
Do you thing there is a chance to see a solution for this issue to come out ?

Did you see this?
Adding the storage using the External storages app has issues with the co-editing in some cases. If the connection is made using the same authorization keys (the Username and password or Global credentials authentication type is selected), then the co-editing is available for the users. If different authorization keys are used (Log-in credentials, save in database or User entered, store in database authentication options), the co-editing is not available. When the Log-in credentials, save in session authentication type is used, the files cannot be opened in the editor.
Maxim
 
Posts: 1469
Joined: Tue Oct 11, 2016 2:34 pm

Re: Onlyoffice - Nextcloud app

Postby sebastien » Thu Apr 19, 2018 3:41 pm

Did you see this?


https://api.onlyoffice.com/editors/owncloud#issue

Yes, I found this afterwards...

So I switched settings from "save in session authentication" to "store in database authentication". Now Document Server can indeed open document for editing. Good point. :)

I made couple tests and I'm not sure it is fully reliable though. The thing is if 2 users access the same file mostly around the same time, you never known what you will get. In the best case, the file is lock for edition for all users except one (this is the expected behaviour). But in some other cases, one user can take the lead on the file so that even if he logs out, others won't see either his modifications or leader won't see other's modifications, so this brings you in a rather messy situation.
sebastien
 
Posts: 8
Joined: Mon Mar 12, 2018 8:59 pm

Previous

Return to Document Server

Who is online

Users browsing this forum: No registered users and 2 guests

cron