Nextcloud Docs is DOSing my server?

Nextcloud version: 23.0.2
Operating system and version: Ubuntu 20.04
Apache or nginx version: Nginx
PHP version : 7.4

I tried to install Nextcloud docs, then in the settings it prompted to install the CODA server. I installed it using sudo -u www-data php -d memory_limit=512M occ app:install richdocumentscode

After that, my nextcloud install returns error 504.

I thought that maybe my server it’s too underpowered for it (it’s an old amd a4) and anyway i run this for fun, so i removed the CODE server using occ.

I still got the error 504

What I see in the access logs is thousands of lines like this

127.0.0.1 - - [17/Feb/2022:10:33:01 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:01 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:01 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:02 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:02 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:02 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:02 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:02 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:02 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:03 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:03 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:03 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:03 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:03 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:03 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:04 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:04 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:04 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:04 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:04 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:04 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:05 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:05 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:05 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:05 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:06 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:06 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:06 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:06 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:06 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:06 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:07 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"
127.0.0.1 - - [17/Feb/2022:10:33:07 +0100] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.0" 499 0 "-" "Nextcloud Server Crawler"

so it looks like nextcloud office is trying to get if the CODE server is running too often and this hogs all the resources of my server… I’m DOSing myself :slight_smile:

How can I avoid this? I would like to try running CODE in docker, but as soon as i enable nextcloud office, nextcloud is unreachable. Maybe resetting its settings? How can i do that?

To delete the settings of nextcloud office and restore the functionality of (my) server, the command is:

sudo -u www-data php occ config:app:delete richdocuments wopi_url
2 Likes

to who edited the title from “Nextcloud Docs is DOSing my server” to “Collabora CODE is…”, it’s wrong. It’s a bug of Nextcloud Docs as it happens whatever the CODE server docker is running or stopped. I managed to delete settings of nextcloud docs and now, without any changes to the collabora code server, it does not hog resources. Definitely a bug of nextcloud docs then, not collabora.

I have had such case.
Someone tried to optimize the NC and disabled ‘\OC\Memcache\APCu’

There is Buil-in URL in the log in first post. This same with “own server”.

The count of the record depends of count active users and apps which are used.
“Desktop app” a bit but “Logs”, “Files” a lot of records. Also, the records are generated “cron”, “sync” and others.