Not able to connect to Document Server

Published also in Github dont know the best way
Related to #161

Ive been working in a different approach…Bjut stills doesnt work…
Two different virtual machines in my local computer, ubuntu 18.4. ping between machines works ok. Both using virtualbox on bridge mode.
Document Server 5.4.1
Nextcloud 16.0.4 and now 17.0.1
Both machines using nginx in Ubuntu 18.04

One virtual mahine with Nextcloud 16.0.4 and now updated to 17.0.1, both failing…
Nextcloud works ok, installed and enable Onlyoffice integration app.
Error:
Log level 0 of nextcloud:

eduardo@eduardo-VirtualBox:~$ sudo tail -30 /var/log/nextcloud16.log
[sudo] contraseña para eduardo:

{"reqId":"JJ5jdXRw7A4gHJfUNMLT","level":0,"time":"November 17, 2019 16:45:11","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"CommandRequest on check: {\"error\":0,\"version\":\"5.4.1.39\"}","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"JJ5jdXRw7A4gHJfUNMLT","level":3,"time":"November 17, 2019 16:45:11","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"GetConvertedUri on check error: Se ha producido un error en el servicio de documentos: Unknown error","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"aL6MBJzRJ1ANlDS0QcHH","level":1,"time":"November 17, 2019 16:45:14","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"Select demo: false","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"aL6MBJzRJ1ANlDS0QcHH","level":1,"time":"November 17, 2019 16:45:14","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetDocumentServerUrl: https:\/\/192.168.1.51\/localhost\/","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"aL6MBJzRJ1ANlDS0QcHH","level":1,"time":"November 17, 2019 16:45:14","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetDocumentServerInternalUrl: http:\/\/onlyoffice.eduardo.com\/","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"aL6MBJzRJ1ANlDS0QcHH","level":1,"time":"November 17, 2019 16:45:14","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"Clear secret key","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"aL6MBJzRJ1ANlDS0QcHH","level":1,"time":"November 17, 2019 16:45:14","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetStorageUrl: ","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"aL6MBJzRJ1ANlDS0QcHH","level":0,"time":"November 17, 2019 16:45:14","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"CommandRequest on check: {\"error\":0,\"version\":\"5.4.1.39\"}","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"aL6MBJzRJ1ANlDS0QcHH","level":3,"time":"November 17, 2019 16:45:14","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"GetConvertedUri on check error: Se ha producido un error en el servicio de documentos: Unknown error","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"6MNibMB8cHF7OaAMg2Ga","level":1,"time":"November 17, 2019 16:45:24","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"Select demo: false","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"6MNibMB8cHF7OaAMg2Ga","level":1,"time":"November 17, 2019 16:45:24","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetDocumentServerUrl: https:\/\/192.168.1.51\/l\/","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"6MNibMB8cHF7OaAMg2Ga","level":1,"time":"November 17, 2019 16:45:24","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetDocumentServerInternalUrl: http:\/\/onlyoffice.eduardo.com\/","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"6MNibMB8cHF7OaAMg2Ga","level":1,"time":"November 17, 2019 16:45:24","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"Clear secret key","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"6MNibMB8cHF7OaAMg2Ga","level":1,"time":"November 17, 2019 16:45:24","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetStorageUrl: ","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"6MNibMB8cHF7OaAMg2Ga","level":0,"time":"November 17, 2019 16:45:24","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"CommandRequest on check: {\"error\":0,\"version\":\"5.4.1.39\"}","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"6MNibMB8cHF7OaAMg2Ga","level":3,"time":"November 17, 2019 16:45:24","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"GetConvertedUri on check error: Se ha producido un error en el servicio de documentos: Unknown error","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"uT6zzmuYTksST1c8AAYU","level":1,"time":"November 17, 2019 16:45:25","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"Select demo: false","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"uT6zzmuYTksST1c8AAYU","level":1,"time":"November 17, 2019 16:45:25","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetDocumentServerUrl: https:\/\/192.168.1.51\/","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"uT6zzmuYTksST1c8AAYU","level":1,"time":"November 17, 2019 16:45:25","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetDocumentServerInternalUrl: http:\/\/onlyoffice.eduardo.com\/","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"uT6zzmuYTksST1c8AAYU","level":1,"time":"November 17, 2019 16:45:25","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"Clear secret key","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"uT6zzmuYTksST1c8AAYU","level":1,"time":"November 17, 2019 16:45:25","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetStorageUrl: ","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"uT6zzmuYTksST1c8AAYU","level":0,"time":"November 17, 2019 16:45:25","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"CommandRequest on check: {\"error\":0,\"version\":\"5.4.1.39\"}","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"uT6zzmuYTksST1c8AAYU","level":3,"time":"November 17, 2019 16:45:25","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"GetConvertedUri on check error: Se ha producido un error en el servicio de documentos: Unknown error","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"lAJtgpKx1anQSXDFRYLM","level":1,"time":"November 17, 2019 16:50:22","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"Select demo: false","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"lAJtgpKx1anQSXDFRYLM","level":1,"time":"November 17, 2019 16:50:22","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetDocumentServerUrl: https:\/\/192.168.1.51\/","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"lAJtgpKx1anQSXDFRYLM","level":1,"time":"November 17, 2019 16:50:22","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetDocumentServerInternalUrl: ","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"lAJtgpKx1anQSXDFRYLM","level":1,"time":"November 17, 2019 16:50:22","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"Clear secret key","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"lAJtgpKx1anQSXDFRYLM","level":1,"time":"November 17, 2019 16:50:22","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetStorageUrl: ","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"lAJtgpKx1anQSXDFRYLM","level":0,"time":"November 17, 2019 16:50:22","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"CommandRequest on check: {\"error\":0,\"version\":\"5.4.1.39\"}","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}
{"reqId":"lAJtgpKx1anQSXDFRYLM","level":3,"time":"November 17, 2019 16:50:22","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/index.php\/apps\/onlyoffice\/ajax\/settings\/address","message":"GetConvertedUri on check error: Se ha producido un error en el servicio de documentos: Unknown error","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.1.1"}

Then i have another virtual machine with Document Server runnig ok, with http and https in localhost self-signed SSL using openssl
imagen

Here many logs on Document Server:
https://pastebin.com/qnT1u5eL

I also configured the config.php with
‘onlyoffice’ => array (
‘verify_peer_off’ => true
)

Any help would be apreciated.
I ideally would like to have both Document server and nextcloud in same virtual machine as declared in #611

are you sure that any of the service needed by onlyoffice are up and running?
this looks like rabbitmq, redis and postgres are not working.

[2019-11-17T14:10:25.421] [ERROR] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
[2019-11-17T14:00:00.112] [ERROR] nodeJS - sqlQuery error sqlCommand: SELECT * FROM task_result WHERE last_open_date <= : error: permission denied for relation task_result
[2019-11-17T14:10:22.314] [ERROR] nodeJS - redisClient error Error: Redis connection to localhost:6379 failed - connect ECONNREFUSED 127.0.0.1:6379

if your nextcloud instance is using also a selfsigned cert you have to tell onlyoffice to accept it. it’s explained here:thomass4t · GitHub

I have answered here:

In short yes, all sevice are running as far as i know, and you can see in the link

Thanks for you help

By the way nice tutorials about nextcloud and onlyoffice, my first purpose was trying to put all in the same server, but i cant get it to work. Installing both servers not using docker. In a ubuntu 18.04 with nginx. As i didnt get it then im trying with different virtual machines. We can give a try and make a tutorial if we get finally to work…

first of all you should test the connection to onlyoffice from a client.

https://localhost/ is not a good idea because you need a remote connection.

grafik

after nextcloud and onlyoffice are reachable from your client. you ave to make sure the onlyoffice app is installed and conifgured. (e.g. ‘verify_peer_off’ => true and services.CoAuthoring.requestDefaults.rejectUnauthorized=false)

after that you should be able to create an office document and open it with onlyoffice. or you have to make a screen shot of the error in your browser.

you’ll find it in the playbook. :wink: i have to add rejectUnauthorized=false which is easy. and remove docker for onlyoffice. which will take a while.

Reiner_Nippes are you dev of nextcloud and onlyoffice-nextcloud app ? Just curious…

Just to be clearer:
i have one virtual machine with address 192.168.1.51, with document server installed as official DS documentation:
include /etc/nginx/includes/http-common.conf;

    ## Normal HTTP host
    server {
      listen 0.0.0.0:80;
      listen [::]:80 default_server;
      server_name _;
      server_tokens off;

      ## Redirects all traffic to the HTTPS host
      root /nowhere; ## root doesn't have to be a valid path since we are redirecting
      rewrite ^ https://$host$request_uri? permanent;
    }

    #HTTP host for internal services
    server {
      listen 127.0.0.1:80;
      listen [::1]:80;
      server_name localhost;
      server_tokens off;
      
      include /etc/nginx/includes/ds-common.conf;
      include /etc/nginx/includes/ds-docservice.conf;
    }

    ## HTTPS host
    server {
      listen 0.0.0.0:443 ssl;
      listen [::]:443 ssl default_server;
      server_tokens off;
      root /usr/share/nginx/html;

      ## Strong SSL Security
      ## https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html
      ssl on;
      ssl_certificate /usr/share/ssl-cert/nginx-selfsigned.crt;
      ssl_certificate_key /usr/share/ssl-cert/nginx-selfsigned.key;
      ssl_verify_client off;

      ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";

      ssl_protocols  TLSv1 TLSv1.1 TLSv1.2;
      ssl_session_cache  builtin:1000  shared:SSL:10m;

      ssl_prefer_server_ciphers   on;

      add_header Strict-Transport-Security max-age=31536000;
      # add_header X-Frame-Options SAMEORIGIN;
      add_header X-Content-Type-Options nosniff;

      ## [Optional] If your certficate has OCSP, enable OCSP stapling to reduce the overhead and latency of running SSL.
      ## Replace with your ssl_trusted_certificate. For more info see:
      ## - https://medium.com/devops-programming/4445f4862461
      ## - https://www.ruby-forum.com/topic/4419319
      ## - https://www.digitalocean.com/community/tutorials/how-to-configure-ocsp-stapling-on-apache-and-nginx
      # ssl_stapling on;
      # ssl_stapling_verify on;
      # ssl_trusted_certificate /etc/nginx/ssl/stapling.trusted.crt;
      # resolver 208.67.222.222 208.67.222.220 valid=300s; # Can change to your DNS resolver if desired
      # resolver_timeout 10s;

      ## [Optional] Generate a stronger DHE parameter:
      ##   cd /etc/ssl/certs
      ##   sudo openssl dhparam -out dhparam.pem 4096
      ##
      ssl_dhparam /etc/nginx/dhparam.pem;

      include /etc/nginx/includes/ds-*.conf;

    }

( as installed package, nginx/conf.d/ds.conf, following this tuto: https://helpcenter.onlyoffice.com/server/linux/document/linux-installation.aspx
and this to make it https: https://helpcenter.onlyoffice.com/server/linux/document/switch-to-https.aspx

I connect from real machine ( host) and works: https://192.168.1.51/welcome/
So i have redirected also onlyoffice.eduardo.com and https://onlyoffice.eduardo.com from same machine.

Note: Id prefer not to use https, because im on local machines, in my institute i have proxy and certificates complicate things to my students. Working with http would be ok to me, and perhaps leave https to optional work.

Then i have another virtual machine : 192.168.1.52 which i have nextcloud 16.0.6. First of all it gave me error of Libcurl60 sssl, it doesnt matter if i connected using http:/192.168.1.51 or https, the same error. I have all the virtual machines in bridge mode and i can ping between them
i changed as suggested in nextcloud vm (e.g. ‘verify_peer_off’ => true

So i guess services.CoAuthoring.requestDefaults.rejectUnauthorized=false have to be in the document server virtual machine in local.json right ???

Now it seems that curl error 60 has gone, but i have the
So now if i put: https://192.168.1.51 ( address from Nexcloud virtula machine to connect to Document server is) it gives me error :{"reqId":"KH8kwwD7QSZaR4Cgdq3t","level":3,"time":"2019-11-19T17:47:57+00:00","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"/index.php/apps/onlyoffice/ajax/settings/address","message":"GetConvertedUri on check error: Se ha producido un error en el servicio de documentos: Unknown error","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0","version":"16.0.6.1","id":"5dd42b5f4a43b"}

If i put http://192.168.1.51 then the error is:
{"reqId":"Ls5upW2fhBlgd93DgW74","level":3,"time":"2019-11-19T17:47:51+00:00","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"/index.php/apps/onlyoffice/ajax/settings/address","message":"HealthcheckRequest on check error: cURL error 60: SSL certificate problem: self signed certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0","version":"16.0.6.1","id":"5dd42c035beef"}

Perhaps another clue, if i activated the Demo onlyoffice Document server i get the error:

{“reqId”:“wwblpdpawD7plejBOajz”,“level”:3,“time”:“2019-11-19T18:35:14+00:00”,“remoteAddr”:“127.0.0.1”,“user”:“nextcloudadmin”,“app”:“onlyoffice”,“method”:“PUT”,“url”:“/apps/onlyoffice/ajax/settings/address”,“message”:“GetConvertedUri on check error: Se ha producido un error en el servicio de documentos: Error while downloading the document file to be converted.”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0”,“version”:“16.0.6.1”,“id”:“5dd435f6621a6”}
So dont know what else can i do…

nope. just wrote a playbook to install both.

I never tested with http. but you can’t mix the two protocols. so make sure that it’s always http but better https. on both sides nextcloud and onlyoffice.

and please don’t use ip addresses. if you have a working dns stick to fqdns.

all traffik to http port 80 should be redirected to https port 443. to avoid the error message in curl try curl --insecure https://onlyoffice.eduardo.com

‘verify_peer_off’ => true this tells nextcloud to accept the selfsigned certificate of onlyoffice.eduardo.com.

services.CoAuthoring.requestDefaults.rejectUnauthorized=false this tells onlyoffice to accept the selfsigned certificate of nextcloud.eduardo.com and yes you have to put into local.json.

More tests:

eduardo@eduardo-VirtualBox:~$ curl https://192.168.1.51/
<html>
<head><title>302 Found</title></head>
<body bgcolor="white">
<center><h1>302 Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
eduardo@eduardo-VirtualBox:~$ curl https://192.168.1.51/
<html>
<head><title>302 Found</title></head>
<body bgcolor="white">
<center><h1>302 Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
eduardo@eduardo-VirtualBox:~$ curl http://192.168.1.51/
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
eduardo@eduardo-VirtualBox:~$ curl http://192.168.1.51/onlyoffice.eduardo.com
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
eduardo@eduardo-VirtualBox:~$ curl https://192.168.1.51/onlyoffice.eduardo.com
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /onlyoffice.eduardo.com</pre>
</body>
</html>
eduardo@eduardo-VirtualBox:~$ curl https://192.168.1.51/welcome
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Redirecting</title>
</head>
<body>
<pre>Redirecting to <a href="/welcome/">/welcome/</a></pre>
</body>
</html>
eduardo@eduardo-VirtualBox:~$ curl https://192.168.1.51/welcome/index.html
<!DOCTYPE html>
<html>
<head>
    <title>ONLYOFFICE™</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=IE8"/>
    <link href="img/favicon.ico" rel="icon" type="image/x-icon">

    <style type="text/css">
        html {
            height: 100%;
        }

        body {
            height: 100%;
            min-width: 600px;
            margin: 0;
            padding: 0;
            overflow: hidden;
            font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
            color: #333333;
        }

        #doc-server-header {
            height: 80px;
            font-size: 18px;
            color: #adadad;
        }

        #doc-server-footer {
            height: 100px;
            font-size: 12px;
            line-height: 20px;
        }

        #doc-server-status {
            font-size: 24px;
            font-weight: bold;
        }

        #doc-server-status > div {
            display: inline-block;
            vertical-align: middle;
            text-align: left;
        }

        #doc-server-status > div:first-child {
            height: 48px;
        }

        #status-ok-icon {
            width:48px;
            margin-right: 15px;
            background: url(img/icon-done.png) center no-repeat;
        }

        #status-err-icon {
            width:48px;
            margin-right: 15px;
            background: url(img/icon-cross.png) center no-repeat;
        }

        #status-err-help {
            font-size: 18px;
            font-weight: normal;
            margin-top: 5px;
        }
    </style>
</head>
<body>
    <script>
        document.write(
            '<table width="100%" height="100%">' +
                '<tr><td id="doc-server-header" valign="bottom" align="center">Thank you for choosing ONLYOFFICE!</td></tr>' +
                '<tr><td align="center">' +
                    '<div id="doc-server-status"><div></div>Please, wait...</div>' +
                '</td></tr>' +
                '<tr><td id="doc-server-footer" valign="top" align="center">' +
                    '<div>Any questions?</div>' +
                    '<div>Explore ONLYOFFICE™ Document Server <a href="https://api.onlyoffice.com/editors/basic" target="_blank">API Documentation</a></div>' +
                    '<div>or visit our <a href="http://dev.onlyoffice.org/viewforum.php?f=44&sid=505c86017ee42e6005d24fc5b8c6818c" target="_blank">developers forum.</a></div>' +
                '</td></tr>' +
            '</table>'
        );

        var _createXMLHTTPObject = function() {
            var xmlhttp;
            try {
                xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
            }
            catch (e) {
                try {
                    xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
                }
                catch (E) {
                    xmlhttp = false;
                }
            }
            if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
                xmlhttp = new XMLHttpRequest();
            }
            return xmlhttp;
        };

        (function(){
            try {
                var xhrObj = _createXMLHTTPObject();
                if (xhrObj) {
                    var index_html = window["location"]["href"];
                    var healthcheck_url = index_html.substring(0, index_html.lastIndexOf("/") + 1) + '../healthcheck';
                    xhrObj.open('GET', healthcheck_url);
                    xhrObj.onreadystatechange = function() {
                        if (xhrObj.readyState == 4) {
                            var serverstatus = document.getElementById('doc-server-status');
                            if (xhrObj.status == 200 && xhrObj.responseText=="true") {
                                serverstatus.innerHTML = '<div id="status-ok-icon"></div>Document Server is running';
                            } else {
                                serverstatus.innerHTML = '<div id="status-err-icon"></div><div>'+
                                '<div>Something went wrong during installation</div>' +
                                '<div id="status-err-help">Make sure that you have followed the <a href="http://helpcenter.onlyoffice.com/server/document.aspx" target="_blank">installation instructions</a></div></div>';
                            }
                        }
                    };
                    xhrObj.send('');
                }
            }
            catch (e) {}
        })();
        
    </script>
</body>
</html>
eduardo@eduardo-VirtualBox:~$ curl http://192.168.1.51/welcome/index.html
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
eduardo@eduardo-VirtualBox:~$ curl http://192.168.1.51/onlyoffice.eduardo.com/welcome/index.html
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
eduardo@eduardo-VirtualBox:~$ curl https://192.168.1.51/onlyoffice.eduardo.com/welcome/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /onlyoffice.eduardo.com/welcome/index.html</pre>
</body>
</html>

Somehow it seems i can get to document server from nc virtual machine. Seems it redirects well.

I have tried botth
‘verify_peer_off’ => true this tells nextcloud to accept the selfsigned certificate of in virtualmahine with nextcloud

services.CoAuthoring.requestDefaults.rejectUnauthorized=false virtual machine of document server

Also tried to change in local.json in onlyoffice/documentserver…
AuthorizationJwt; “inbox”: {
“header”: “AuthorizationJwt”
},
“outbox”: {
“header”: “AuthorizationJwt”
}

And about this,

and please don’t use ip addresses. if you have a working dns stick to fqdns

.i dont know how to use dns or fqdn
I dont have any DNS, i only have configured nginx to work with localhost as default and onlyoffice.eduardo.com as second option…Im working all in local…
The only thing is in /etc/hosts added:
127.0.0.1 localhost onlyoffice.eduardo.com
and the sites avalaible in nginx…

Also i only have document server secured, i dont have https in nextcloud virtualmachine, but the problem i think is connection between nextcloud and document server, serving things to nextcloud…

Any ideas ??

change this to

127.0.0.1 localhost
192.168.1.51 onlyoffice.eduardo.com
192.168.1.52 nextcloud.eduardo.com

on both machines. and on the machine were you’re browser is running.

nope. don’t work. both sides https. please.

Thanks for your help…id try this afternoon, now i have to work…
Just to let you know that i want to connect from NC virtual machine to Document Server virtual machine. And the tests above where from 192.168.1.52 ( nextcloud machine ) to 192.168.1.51 ( document server virtual machine). As in the browser of nextcloud vm, i go to nextcloud.eduardo.com, enter in nextcloud and want to activate onlyoffice app, setting the address of docuement server…

Just for now the browser in real machine would let me enter in nextcloud from host machine ( remote machine)

as i mentioned before: if you access nextcloud via http you have to configure the onlyoffice server also with http. but your nginx.conf (from above) would redirect everything to https. i’m sure but i guess that would cause problems.

in fact a drawing would be helpful. too many remote and localhosts. :slight_smile:
there is a draw.io app in nextcloud appstore to draw servers. :wink:

Sorry:

https://pastebin.com/riC9T1TH

Hope it helps…So i want to enter in Ubuntu NC virtual machine, launch browser, go to nextcloud.eduardo.com and set onlyoffice app to get the document server from 192.168.1.51 where is installed and working…

Is it clearer ?

Thanks for your effort and patience…but the way i dont know a playbook is …

Before i had all in the same virtual machine but i didnt get to work, so i decided to try in two separate virtual machines, but seems no luck…

Ive made some progress, but still doesnt work @Reiner_Nippes

Now i have as draw before post:
192.168.1.51 -> Document Server VM working with nginx…
http://localhost shows an standard page index.html page
https://localhost -> Document server is running ok
http://only.office.eduardo.com and https://only.office.eduardo.com -> Document sever is working ok
I think is a http redirecton or rewrite issue but i think important thing is that i can connect with self signed certificates.

192.168.1.52 -<>Nextcloud VM working with nginx
wherever i write localhost, https://localhost,http://nextcloud.eduardo.com, https://nextcloud.eduardo.com -> are redirect to https://nextcloud.eduardo.com with works ok

Ping between two machines, works ok in both directions.
I can also open
https://192.168.1.52 and go to nextcloud from browser in DocumentServer machine

here plenty of information i think…

https://drive.google.com/drive/folders/1I2ZiRUKqmm8u5U5TsqyoOKUvfTwY-SPA?usp=sharing
When i try to connect i find this error:

{"reqId":"74mqN84XPBzsVmReD3sK","level":1,"time":"November 23, 2019 16:14:36","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"Select demo: false","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"74mqN84XPBzsVmReD3sK","level":1,"time":"November 23, 2019 16:14:36","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetDocumentServerUrl: https:\/\/onlyoffice.eduardo.com\/","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"74mqN84XPBzsVmReD3sK","level":1,"time":"November 23, 2019 16:14:36","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetDocumentServerInternalUrl: ","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"74mqN84XPBzsVmReD3sK","level":1,"time":"November 23, 2019 16:14:36","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"Clear secret key","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"74mqN84XPBzsVmReD3sK","level":1,"time":"November 23, 2019 16:14:36","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetStorageUrl: ","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"74mqN84XPBzsVmReD3sK","level":0,"time":"November 23, 2019 16:14:36","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"CommandRequest on check: {\"error\":0,\"version\":\"5.4.1.39\"}","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"74mqN84XPBzsVmReD3sK","level":3,"time":"November 23, 2019 16:14:36","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"GetConvertedUri on check error: Se ha producido un error en el servicio de documentos: Unknown error","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"YDtQnXHHnLMaXWaT5iO3","level":1,"time":"November 23, 2019 16:14:39","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"Select demo: false","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"YDtQnXHHnLMaXWaT5iO3","level":1,"time":"November 23, 2019 16:14:39","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetDocumentServerUrl: https:\/\/onlyoffice.eduardo.com\/","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"YDtQnXHHnLMaXWaT5iO3","level":1,"time":"November 23, 2019 16:14:39","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetDocumentServerInternalUrl: ","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"YDtQnXHHnLMaXWaT5iO3","level":1,"time":"November 23, 2019 16:14:39","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"Clear secret key","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"YDtQnXHHnLMaXWaT5iO3","level":1,"time":"November 23, 2019 16:14:39","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetStorageUrl: ","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"YDtQnXHHnLMaXWaT5iO3","level":0,"time":"November 23, 2019 16:14:39","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"CommandRequest on check: {\"error\":0,\"version\":\"5.4.1.39\"}","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"YDtQnXHHnLMaXWaT5iO3","level":3,"time":"November 23, 2019 16:14:39","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"GetConvertedUri on check error: Se ha producido un error en el servicio de documentos: Unknown error","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"GusKeb5gNgooBh00vlDa","level":1,"time":"November 23, 2019 16:14:48","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"Select demo: false","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"GusKeb5gNgooBh00vlDa","level":1,"time":"November 23, 2019 16:14:48","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetDocumentServerUrl: https:\/\/192.168.1.51\/","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"GusKeb5gNgooBh00vlDa","level":1,"time":"November 23, 2019 16:14:48","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetDocumentServerInternalUrl: ","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"GusKeb5gNgooBh00vlDa","level":1,"time":"November 23, 2019 16:14:48","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"Clear secret key","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"GusKeb5gNgooBh00vlDa","level":1,"time":"November 23, 2019 16:14:48","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetStorageUrl: ","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"GusKeb5gNgooBh00vlDa","level":0,"time":"November 23, 2019 16:14:49","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"CommandRequest on check: {\"error\":0,\"version\":\"5.4.1.39\"}","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"GusKeb5gNgooBh00vlDa","level":3,"time":"November 23, 2019 16:14:49","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"GetConvertedUri on check error: Se ha producido un error en el servicio de documentos: Unknown error","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"NKm2nSkOPb8P2pRgMI2i","level":1,"time":"November 23, 2019 16:15:08","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"Select demo: false","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"NKm2nSkOPb8P2pRgMI2i","level":1,"time":"November 23, 2019 16:15:08","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetDocumentServerUrl: https:\/\/192.168.1.51\/","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"NKm2nSkOPb8P2pRgMI2i","level":1,"time":"November 23, 2019 16:15:08","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetDocumentServerInternalUrl: ","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"NKm2nSkOPb8P2pRgMI2i","level":1,"time":"November 23, 2019 16:15:08","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"Clear secret key","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"NKm2nSkOPb8P2pRgMI2i","level":1,"time":"November 23, 2019 16:15:08","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetStorageUrl: ","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"NKm2nSkOPb8P2pRgMI2i","level":0,"time":"November 23, 2019 16:15:08","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"CommandRequest on check: {\"error\":0,\"version\":\"5.4.1.39\"}","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"NKm2nSkOPb8P2pRgMI2i","level":3,"time":"November 23, 2019 16:15:08","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"GetConvertedUri on check error: Se ha producido un error en el servicio de documentos: Unknown error","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"jUGObPr5bdZW35OGV7NT","level":1,"time":"November 23, 2019 16:15:12","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"Select demo: false","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"jUGObPr5bdZW35OGV7NT","level":1,"time":"November 23, 2019 16:15:13","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetDocumentServerUrl: http:\/\/192.168.1.51\/","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"jUGObPr5bdZW35OGV7NT","level":1,"time":"November 23, 2019 16:15:13","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetDocumentServerInternalUrl: ","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"jUGObPr5bdZW35OGV7NT","level":1,"time":"November 23, 2019 16:15:13","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"Clear secret key","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"jUGObPr5bdZW35OGV7NT","level":1,"time":"November 23, 2019 16:15:13","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetStorageUrl: ","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"jUGObPr5bdZW35OGV7NT","level":3,"time":"November 23, 2019 16:15:13","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"Protocol on check error: Contenido Mixto Activo no est\u00e1 permitido. Se requiere la direcci\u00f3n HTTPS para Servidor de Documentos.","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"jn9yx34PGThyP106yJeT","level":1,"time":"November 23, 2019 16:15:16","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"Select demo: false","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"jn9yx34PGThyP106yJeT","level":1,"time":"November 23, 2019 16:15:16","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetDocumentServerUrl: http:\/\/192.168.1.51\/","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"jn9yx34PGThyP106yJeT","level":1,"time":"November 23, 2019 16:15:16","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetDocumentServerInternalUrl: ","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"jn9yx34PGThyP106yJeT","level":1,"time":"November 23, 2019 16:15:16","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"Clear secret key","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"jn9yx34PGThyP106yJeT","level":1,"time":"November 23, 2019 16:15:16","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"SetStorageUrl: ","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}
{"reqId":"jn9yx34PGThyP106yJeT","level":3,"time":"November 23, 2019 16:15:16","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings\/address","message":"Protocol on check error: Contenido Mixto Activo no est\u00e1 permitido. Se requiere la direcci\u00f3n HTTPS para Servidor de Documentos.","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"16.0.6.1"}

just to make sure: you are using always https? you can’t access nextcloud through http and connect to onlyoffice through https.

Yes i suppose thats the log with all the tests…
You can take a look to screenshots in drive, i have https://localhost/welcome working ok in UbuntuDs, so from nextcloud i should put https://192.168.1.51 or https://onlyoffice.eduardo.com, and should connect…

Then i was making some tests of changing names, and http just lookig for some luck…

Seems my problem is with nodejs ( i have updated to latest version in both sides), and this:

019-11-23T21:54:39.347] [ERROR] nodeJS - Error convert: docId = conv_check_122373378_docx
error: permission denied for relation task_result
    at Connection.parseE (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:604:11)
    at Connection.parseMessage (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:401:19)
    at Socket.<anonymous> (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:121:22)
    at Socket.emit (events.js:210:5)
    at addChunk (_stream_readable.js:308:12)
    at readableAddChunk (_stream_readable.js:289:11)
    at Socket.Readable.push (_stream_readable.js:223:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:182:23)
[2019-11-23T21:55:05.182] [ERROR] nodeJS - sqlQuery error sqlCommand: INSERT INTO task_result (id, status, status_info, :
error: permission denied for relation task_result
    at Connection.parseE (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:604:11)
    at Connection.parseMessage (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:401:19)
    at Socket.<anonymous> (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:121:22)
    at Socket.emit (events.js:210:5)
    at addChunk (_stream_readable.js:308:12)
    at readableAddChunk (_stream_readable.js:289:11)
    at Socket.Readable.push (_stream_readable.js:223:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:182:23)
[2019-11-23T21:55:05.182] [ERROR] nodeJS - Error convert: docId = conv_check_311331069_docx
error: permission denied for relation task_result
    at Connection.parseE (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:604:11)
    at Connection.parseMessage (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:401:19)
    at Socket.<anonymous> (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:121:22)
    at Socket.emit (events.js:210:5)
    at addChunk (_stream_readable.js:308:12)
    at readableAddChunk (_stream_readable.js:289:11)
    at Socket.Readable.push (_stream_readable.js:223:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:182:23)
[2019-11-23T21:55:07.958] [ERROR] nodeJS - sqlQuery error sqlCommand: INSERT INTO task_result (id, status, status_info, :
error: permission denied for relation task_result
    at Connection.parseE (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:604:11)
    at Connection.parseMessage (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:401:19)
    at Socket.<anonymous> (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:121:22)
    at Socket.emit (events.js:210:5)
    at addChunk (_stream_readable.js:308:12)
    at readableAddChunk (_stream_readable.js:289:11)
    at Socket.Readable.push (_stream_readable.js:223:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:182:23)
[2019-11-23T21:55:07.959] [ERROR] nodeJS - Error convert: docId = conv_check_345008362_docx
error: permission denied for relation task_result
    at Connection.parseE (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:604:11)
    at Connection.parseMessage (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:401:19)
    at Socket.<anonymous> (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:121:22)
    at Socket.emit (events.js:210:5)
    at addChunk (_stream_readable.js:308:12)
    at readableAddChunk (_stream_readable.js:289:11)
    at Socket.Readable.push (_stream_readable.js:223:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:182:23)
[2019-11-23T21:59:04.628] [ERROR] nodeJS - sqlQuery error sqlCommand: INSERT INTO task_result (id, status, status_info, :
error: permission denied for relation task_result
    at Connection.parseE (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:604:11)
    at Connection.parseMessage (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:401:19)
    at Socket.<anonymous> (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:121:22)
    at Socket.emit (events.js:210:5)
    at addChunk (_stream_readable.js:308:12)
    at readableAddChunk (_stream_readable.js:289:11)
    at Socket.Readable.push (_stream_readable.js:223:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:182:23)
[2019-11-23T21:59:04.628] [ERROR] nodeJS - Error convert: docId = conv_check_141357334_docx
error: permission denied for relation task_result
    at Connection.parseE (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:604:11)
    at Connection.parseMessage (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:401:19)
    at Socket.<anonymous> (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:121:22)
    at Socket.emit (events.js:210:5)
    at addChunk (_stream_readable.js:308:12)
    at readableAddChunk (_stream_readable.js:289:11)
    at Socket.Readable.push (_stream_readable.js:223:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:182:23)
[2019-11-23T21:59:10.045] [ERROR] nodeJS - sqlQuery error sqlCommand: INSERT INTO task_result (id, status, status_info, :
error: permission denied for relation task_result
    at Connection.parseE (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:604:11)
    at Connection.parseMessage (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:401:19)
    at Socket.<anonymous> (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:121:22)
    at Socket.emit (events.js:210:5)
    at addChunk (_stream_readable.js:308:12)
    at readableAddChunk (_stream_readable.js:289:11)
    at Socket.Readable.push (_stream_readable.js:223:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:182:23)
[2019-11-23T21:59:10.046] [ERROR] nodeJS - Error convert: docId = conv_check_1828598589_docx
error: permission denied for relation task_result
    at Connection.parseE (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:604:11)
    at Connection.parseMessage (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:401:19)
    at Socket.<anonymous> (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:121:22)
    at Socket.emit (events.js:210:5)
    at addChunk (_stream_readable.js:308:12)
    at readableAddChunk (_stream_readable.js:289:11)
    at Socket.Readable.push (_stream_readable.js:223:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:182:23)
[2019-11-23T22:00:52.641] [ERROR] nodeJS - sqlQuery error sqlCommand: INSERT INTO task_result (id, status, status_info, :
error: permission denied for relation task_result
    at Connection.parseE (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:604:11)
    at Connection.parseMessage (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:401:19)
    at Socket.<anonymous> (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:121:22)
    at Socket.emit (events.js:210:5)
    at addChunk (_stream_readable.js:308:12)
    at readableAddChunk (_stream_readable.js:289:11)
    at Socket.Readable.push (_stream_readable.js:223:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:182:23)
[2019-11-23T22:00:52.641] [ERROR] nodeJS - Error convert: docId = conv_check_1994634374_docx
error: permission denied for relation task_result
    at Connection.parseE (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:604:11)
    at Connection.parseMessage (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:401:19)
    at Socket.<anonymous> (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:121:22)
    at Socket.emit (events.js:210:5)
    at addChunk (_stream_readable.js:308:12)
    at readableAddChunk (_stream_readable.js:289:11)
    at Socket.Readable.push (_stream_readable.js:223:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:182:23)
[2019-11-23T22:00:55.461] [ERROR] nodeJS - sqlQuery error sqlCommand: INSERT INTO task_result (id, status, status_info, :
error: permission denied for relation task_result
    at Connection.parseE (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:604:11)
    at Connection.parseMessage (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:401:19)
    at Socket.<anonymous> (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:121:22)
    at Socket.emit (events.js:210:5)
    at addChunk (_stream_readable.js:308:12)
    at readableAddChunk (_stream_readable.js:289:11)
    at Socket.Readable.push (_stream_readable.js:223:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:182:23)
[2019-11-23T22:00:55.461] [ERROR] nodeJS - Error convert: docId = conv_check_1821816354_docx
error: permission denied for relation task_result
    at Connection.parseE (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:604:11)
    at Connection.parseMessage (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:401:19)
    at Socket.<anonymous> (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:121:22)
    at Socket.emit (events.js:210:5)
    at addChunk (_stream_readable.js:308:12)
    at readableAddChunk (_stream_readable.js:289:11)
    at Socket.Readable.push (_stream_readable.js:223:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:182:23)
[2019-11-23T22:00:58.275] [ERROR] nodeJS - sqlQuery error sqlCommand: INSERT INTO task_result (id, status, status_info, :
error: permission denied for relation task_result
    at Connection.parseE (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:604:11)
    at Connection.parseMessage (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:401:19)
    at Socket.<anonymous> (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:121:22)
    at Socket.emit (events.js:210:5)
    at addChunk (_stream_readable.js:308:12)
    at readableAddChunk (_stream_readable.js:289:11)
    at Socket.Readable.push (_stream_readable.js:223:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:182:23)
[2019-11-23T22:00:58.276] [ERROR] nodeJS - Error convert: docId = conv_check_1523594458_docx
error: permission denied for relation task_result
    at Connection.parseE (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:604:11)
    at Connection.parseMessage (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:401:19)
    at Socket.<anonymous> (/var/www/onlyoffice/documentserver/server/DocService/node_modules/pg/lib/connection.js:121:22)
    at Socket.emit (events.js:210:5)
    at addChunk (_stream_readable.js:308:12)
    at readableAddChunk (_stream_readable.js:289:11)
    at Socket.Readable.push (_stream_readable.js:223:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:182:23)
[2019-11-24T11:00:12.780] [WARN] nodeJS - Plugins watch exception (https://nodejs.org/docs/latest/api/fs.html#fs_availability).
[2019-11-24T11:00:12.880] [WARN] nodeJS - update cluster with 1 workers
[2019-11-24T11:00:12.892] [WARN] nodeJS - worker 3427 started.
[2019-11-24T11:00:12.893] [WARN] nodeJS - update cluster with 1 workers
[2019-11-24T11:00:13.178] [WARN] nodeJS - Express server starting...
[2019-11-24T11:00:14.936] [ERROR] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1128:14)
[2019-11-24T11:00:15.947] [ERROR] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1128:14)
[2019-11-24T11:00:16.949] [ERROR] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1128:14)
[2019-11-24T11:00:17.952] [ERROR] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1128:14)
[2019-11-24T11:00:18.952] [ERROR] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1128:14)
[2019-11-24T11:00:19.954] [ERROR] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1128:14)
[2019-11-24T11:00:20.956] [ERROR] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1128:14)
[2019-11-24T11:00:21.957] [ERROR] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1128:14)
[2019-11-24T11:00:22.964] [ERROR] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1128:14)
[2019-11-24T11:00:24.075] [WARN] nodeJS - Express server listening on port 8000 in production-linux mode

At cat /var/log/onlyoffice/documentserver/docservice/out.log-20191124

Thanks for your apreciated help…

OK. Well in this case your onlyoffice installation is broken. You should ask in the Onlyoffice forum. (Or use the docker image of OnlyOffice. :wink: )