Try the fastest and simplest way to install ONLYOFFICE

Integration Fails with _{"message":"Access denied"}_

Issues during installation, usage and configuring

Integration Fails with _{"message":"Access denied"}_

Postby knife-grinder » Wed Jul 25, 2018 10:44 am

Hi all,

Our server configuration is:
Code: Select all
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

OnlyOffice app for OwnCloud is at release 1.3.0


I solved some problems I had with self-signed errors and now I'm hanging on a
Code: Select all
{"message":"Access denied"}
when the converter is trying do download the empy file in the configuration steps.
The full stacktrace is:
Code: Select all
[2018-07-25 12:17:12.033] [ERROR] nodeJS - error downloadFile:url=https://www.ourcloud.it/index.php/apps/onlyoffice/empty?doc=TmlpaURaNU9MY2FUU2tKZnNxay8yVG9uTDZUdDZsdFlOYmRqZ3dZS3Azdz0/eyJhY3Rpb24iOiJlbXB0eSJ9;attempt
=3;code:undefined;connect:undefined;(id=conv_check_1769566394_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)

The callback url is:
Code: Select all
https://www.ourcloud.it/index.php/apps/onlyoffice/empty?doc=TmlpaURaNU9MY2FUU2tKZnNxay8yVG9uTDZUdDZsdFlOYmRqZ3dZS3Azdz0/eyJhY3Rpb24iOiJlbXB0eSJ9


The app configuration si:
  • Document Editing Service address: https://<IP_ADDRESS>:445/
  • Document Editing Service address for internal requests from the server:
  • Server address for internal requests from the Document Editing Service:
  • Secret key (leave blank to disable): ************

We didn't use dockers and Document Server and OwnCloud are on the same server.

I think I'm missing something on the configuration of the app on OwnCloud.

Any help is appreciated.

TIA
knife-grinder
 
Posts: 8
Joined: Wed Jul 11, 2018 11:40 am

Re: Integration Fails with _{"message":"Access denied"}_

Postby knife-grinder » Wed Jul 25, 2018 11:05 am

I also tried setting explicit values:

  • Document Editing Service address: https://<IP_ADDRESS>:445/
  • Document Editing Service address for internal requests from the server: https://<IP_ADDRESS>:445/
  • Server address for internal requests from the Document Editing Service: https://www.ourcloud.it/
  • Secret key (leave blank to disable): ************
knife-grinder
 
Posts: 8
Joined: Wed Jul 11, 2018 11:40 am

Re: Integration Fails with _{"message":"Access denied"}_

Postby knife-grinder » Wed Jul 25, 2018 1:35 pm

Hi again,
I'm trying to give you more information on the problem I'm hanging on.

Doing some test I got that putting in the browser the url
Code: Select all
https://www.ourcloud.it/index.php/apps/onlyoffice/empty
I get the error I posted before
Code: Select all
{"message":"Access denied"}
.
Could it be something related to the access to that path? How can I resolve it? With an .htaccess file or with some setting in our virtual host under Apache?

Any idea?
knife-grinder
 
Posts: 8
Joined: Wed Jul 11, 2018 11:40 am


Return to ownCloud/Nextcloud ONLYOFFICE integration app

Who is online

Users browsing this forum: No registered users and 2 guests