OnlyOffice app configuration problems

Hi all,
I’m writing here 'cause I’m trying to configure my OwnCloud to use OnlyOffice Document Server.

I did a lot on trying to solve problems on configuration and related to use self-signed certificate and now I’m hanging on a “Access denied” when the converter callback OwnCloud to download the empty file.
The url that has the problem is:
https://www.ourcloud.it/index.php/apps/onlyoffice/empty?doc=NVRzc216WmpmdjBrVU9zN3YybnZSVDRtUDhxQnJFb2JaM0FIVlR6NDNMQT0/eyJhY3Rpb24iOiJlbXB0eSJ9
and the whole stacktace from the converter is:
[2018-07-25 12:58:22.000] [ERROR] nodeJS - error downloadFile:url=https://www.ourcloud.it/index.php/apps/onlyoffice/empty?doc=NVRzc216WmpmdjBrVU9zN3YybnZSVDRtUDhxQnJFb2JaM0FIVlR6NDNMQT0/eyJhY3Rpb24iOiJlbXB0eSJ9;attempt =3;code:undefined;connect:undefined;(id=conv_check_1637546493_docx)
Error: Error response: statusCode:403 ;body:
{"message":"Access denied"}
at Request._callback (/var/www/onlyoffice/documentserver/server/Common/sources/utils.js:250:18)
at Request.self.callback (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:185: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:1157: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:1079:12)
at IncomingMessage.g (events.js:292:16)
at emitNone (events.js:91:20)

After some tests I found that I’m not able to reach the url https://www.ourcloud.it/index.php/apps/onlyoffice/empty also putting it in the browser address bar and when I try to reach the url https://www.ourcloud.it/index.php/apps/onlyoffice I’m redirected to https://www.ourcloud.it/index.php/apps/files/?dir=/&fileid=3.

I’m thinking that it has something related to the .htaccess or something similar. How can I configure correctly to let the OnlyOffice app in OwnCloud be linkable by Document Server callback?

I hope I was clear on explaining my problem.

My system configuration:
Installed:
nodejs 6.14.3-1nodesource1
onlyoffice-documentserver 5.1.4-22
postgresql-9.0 9.0.23-1.pgdg80+2
mono-runtime 5.12.0.226-0xamarin3+debian8b1
nginx 1.6.2-5+deb8u5
rabbitmq-server 3.7.6-1
owncloud-files 10.0.8-1+1.1

Operating system:
Linux <SERVER_NAME> 3.16.0-6-amd64 #1 SMP Debian 3.16.56-1+deb8u1 (2018-05-08) x86_64 GNU/Linux

OwnCloud app:
OnlyOffice app for OwnCloud is at release 1.3.0

TIA for help and ideas

knife-grinder,
If I was you I would try and redo the whole thing again. I usually refer to this one https://www.howtoforge.com/tutorial/onlyoffice-centos/. However, these is one other link https://stackoverflow.com/questions/13170819/what-is-htaccess-file which maybe useful and helpful for you. Do let me know.

Best regards,
BCITSNM

1 Like