question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bad Request or timeout within Nextcloud 13.0.1

See original GitHub issue

I made a fresh installation of Ubuntu 16.04.4 LTS 64Bit and OO-Document Server following your instructions: Link

The document server is working properly and reachable using SSL:

grafik

https://cloudsoffice.luft-it.de IP: 192.x.y.24

The modified “onlyoffice-documentserver.conf”

include /etc/nginx/includes/onlyoffice-http.conf;
server {
  listen 0.0.0.0:80;
  listen [::]:80 default_server;
  server_name cloudsoffice.luft-it.de cloudsoffice;
  server_tokens off;
  root /nowhere;
  rewrite ^ https://$host:443$request_uri? permanent;
}
server {
  listen 127.0.0.1:80;
  listen [::1]:80;
  server_name localhost;
  server_tokens off;
  include /etc/nginx/includes/onlyoffice-documentserver-common.conf;
  include /etc/nginx/includes/onlyoffice-documentserver-docservice.conf;
}
server {
  listen 0.0.0.0:443 ssl;
  listen [::]:443 ssl default_server;
  server_name cloudsoffice.luft-it.de cloudsoffice;
  server_tokens off;
  root /usr/share/nginx/html;
  ssl_certificate /etc/ssl/luft-it.de/fullchain.pem;
  ssl_certificate_key /etc/ssl/luft-it.de/privkey.pem;
  ssl_protocols TLSv1.2;
  ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256';
  ssl_prefer_server_ciphers on;
  add_header Strict-Transport-Security max-age=15768000;
  ssl_session_cache builtin:1000 shared:SSL:10m;
  add_header X-Content-Type-Options nosniff;
  location ~ /.well-known/acme-challenge {
     root /var/www/onlyoffice/;
     allow all;
  }
  include /etc/nginx/includes/onlyoffice-documentserver-*.conf;
}

On a separate server IP IP: 192.x.y.25 a Nextcloud 13.0.1 with the latest OO-App from Nextcloud App-Repository is running properly either.

But trying to connect Nextcloud to the OO-DS failed:

grafik

The following errors were thrown in the nextcloud.log:

grafik

{"reqId":"n7OPb869e74vb70rfK5n","level":3,"time":"2018-04-26T14:39:48+02:00","remoteAddr":"x.y.z.a","user":"MYUSER","app":"PHP","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings","message":"file_get_contents(https:\/\/cloudsoffice.luft-it.de\/coauthoring\/CommandService.ashx): failed to open stream: Connection timed out at \/var\/www\/cloud.luft-it.de\/apps\/onlyoffice\/lib\/documentservice.php#351","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"} {"reqId":"n7OPb869e74vb70rfK5n","level":3,"time":"2018-04-26T14:39:48+02:00","remoteAddr":"46.253.79.107","user":"MYUSER","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings","message":"CommandRequest on check error: Bad Request oder Timeout Fehlermeldung","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"} {"reqId":"ICRSmH9ZcmQ5d8q6A2tu","level":3,"time":"2018-04-26T14:41:48+02:00","remoteAddr":"46.253.79.107","user":"MYUSER","app":"PHP","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings","message":"file_get_contents(https:\/\/cloudsoffice.luft-it.de\/coauthoring\/CommandService.ashx): failed to open stream: Connection timed out at \/var\/www\/cloud.luft-it.de\/apps\/onlyoffice\/lib\/documentservice.php#351","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"} {"reqId":"ICRSmH9ZcmQ5d8q6A2tu","level":3,"time":"2018-04-26T14:41:48+02:00","remoteAddr":"46.253.79.107","user":"MYUSER","app":"onlyoffice","method":"PUT","url":"\/apps\/onlyoffice\/ajax\/settings","message":"CommandRequest on check error: Bad Request oder Timeout Fehlermeldung","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}

Nextcloud is built of: PHP 7.2 (fpm) MariaDB Ubuntu 16.04.4 LTS 64 Bit

I would really appreciate your assistance. Cheers, Carsten!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Apr 26, 2018

I also added

‘onlyoffice’ => array ( ‘verify_peer_off’ => true, ),

to /var/www/nextcloud/config.php

0reactions
jocarrencommented, Jul 3, 2018

I also added

    'onlyoffice' =>
    array (
    'verify_peer_off' => true,
    ),

to /var/www/nextcloud/config.php

This worked for me, thanks @riegercloud

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is OnlyOffice working with Nextcloud 13.0.1?
I upgraded to 13.0.1 and the upgrade installation was smooth (as usual). ... getting an "Error when trying to connect (Bad Request or...
Read more >
Nextcloud 13.0.1 stable - External Storage fails
Hi! I'm experiencing an issue with this app (external_storage). No external storage can be added (even local ones).
Read more >
Error when trying to connect (Bad Request or timeout error). in ...
Error when trying to connect (Bad Request or timeout error). in HTTPS · Hold and Press CTRL + SHIFT + K · Then...
Read more >
Nc 13 + onlyoffice? - Nextcloud community
Error onlyoffice CommandRequest on check error: Bad Request oder Timeout Fehlermeldung. access.log from nextcloud:
Read more >
Nextcloud Server Administration Manual
You can choose to install Nextcloud in a directory on an existing webserver, for example ... connection request timeout 3600.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found