Nextcloud Errors in Logs 404

I’ve only just installed Nextcloud on my Synology docker server and every few mins I get an error saying it’s unable to find a file… But not sure where this error is coming from:

GuzzleHttp\Exception\ClientException: Client error: `GET https://nas.bh.com:444/apps/richdocumentscode/proxy.php?req=/hosting/capabilities` 
resulted in a `404 Not Found` response: 
<html> <head><title>404 Not Found</title></head> <body> <center><h1>404 Not Found</h1></center> <hr><center>nginx</c (truncated...)

What could be causing this?

I have changed the external docker port to 444 as the reverse proxy is using 443.

/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php - line 69:

GuzzleHttp\Exception\RequestException::create("*** sensiti ... *")

/config/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 204:

GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensiti ... *")

/config/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 153:

GuzzleHttp\Promise\Promise::callHandler()

/config/www/nextcloud/3rdparty/guzzlehttp/promises/src/TaskQueue.php - line 48:

GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}("*** sensiti ... *")

/config/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 248:

GuzzleHttp\Promise\TaskQueue->run()

/config/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 224:

GuzzleHttp\Promise\Promise->invokeWaitFn()

/config/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 269:

GuzzleHttp\Promise\Promise->waitIfPending()

/config/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 226:

GuzzleHttp\Promise\Promise->invokeWaitList()

/config/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 62:

GuzzleHttp\Promise\Promise->waitIfPending()

/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php - line 187:

GuzzleHttp\Promise\Promise->wait()

/config/www/nextcloud/lib/private/Http/Client/Client.php - line 226:

GuzzleHttp\Client->request()

/config/www/nextcloud/apps/richdocuments/lib/Service/CapabilitiesService.php - line 135:

OC\Http\Client\Client->get()

/config/www/nextcloud/apps/richdocuments/lib/Service/CapabilitiesService.php - line 73:

OCA\Richdocuments\Service\CapabilitiesService->refetch()

/config/www/nextcloud/apps/richdocuments/lib/AppInfo/Application.php - line 80:

OCA\Richdocuments\Service\CapabilitiesService->getCapabilities()

/config/www/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php - line 66:

OCA\Richdocuments\AppInfo\Application->OCA\Richdocuments\AppInfo\{closure}("*** sensiti ... *")

/config/www/nextcloud/lib/private/AppFramework/Bootstrap/BootContext.php - line 50:

OC\AppFramework\Bootstrap\FunctionInjector->injectFn()

/config/www/nextcloud/apps/richdocuments/lib/AppInfo/Application.php - line 135:

OC\AppFramework\Bootstrap\BootContext->injectFn()

/config/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php - line 200:

OCA\Richdocuments\AppInfo\Application->boot()

/config/www/nextcloud/lib/private/legacy/OC_App.php - line 213:

OC\AppFramework\Bootstrap\Coordinator->bootApp()

/config/www/nextcloud/lib/private/legacy/OC_App.php - line 141:

OC_App::loadApp()

/config/www/nextcloud/lib/base.php - line 1031:

OC_App::loadApps()

/config/www/nextcloud/index.php - line 36:

OC::handleRequest()

share your docker compose or docker run. Also provide FULL container logs, they begin with our ascii logo. You should probably also mention what reverse proxy you use and whether you can reach nextcloud without the error when you bypass whatever the proxy is. We do not support or recommend deploying containers with the synology ui as it breaks things.

Syno Docker does some things differently… is this what you are after?:
image
GUID - 1000
DNS - 192.168.x.x

I’m don’t actually accessing the next cloud instance through the reverse proxy right now to get these errors so it’s irrelevant to this error.

2023-03-20T11:35:00.641246268Z	stdout	crond[222]: USER root pid 247 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T11:35:00.105606203Z	stdout	[20-Mar-2023 22:05:00] NOTICE: ready to handle connections
2023-03-20T11:35:00.101831005Z	stdout	[20-Mar-2023 22:05:00] NOTICE: fpm is running, pid 219
2023-03-20T11:34:59.717936671Z	stdout	[ls.io-init] done.
2023-03-20T11:34:59.638407140Z	stdout	crond[222]: crond (busybox 1.35.0) started, log level 5
2023-03-20T11:34:59.588126022Z	stdout	[custom-init] No custom files found, skipping...
2023-03-20T11:34:55.187717706Z	stdout	using keys found in /config/keys
2023-03-20T11:34:54.796238487Z	stdout	
2023-03-20T11:34:54.796182437Z	stdout	───────────────────────────────────────
2023-03-20T11:34:54.796129898Z	stdout	User GID:    1000
2023-03-20T11:34:54.796061297Z	stdout	User UID:    1000
2023-03-20T11:34:54.795895419Z	stdout	
2023-03-20T11:34:54.784201329Z	stdout	───────────────────────────────────────
2023-03-20T11:34:54.784121265Z	stdout	GID/UID
2023-03-20T11:34:54.784046377Z	stdout	───────────────────────────────────────
2023-03-20T11:34:54.783979325Z	stdout	
2023-03-20T11:34:54.783899874Z	stdout	https://www.linuxserver.io/donate/
2023-03-20T11:34:54.783789622Z	stdout	To support LSIO projects visit:
2023-03-20T11:34:54.783544356Z	stdout	
2023-03-20T11:34:54.782533490Z	stdout	───────────────────────────────────────
2023-03-20T11:34:54.782471314Z	stdout	   Brought to you by linuxserver.io
2023-03-20T11:34:54.782422838Z	stdout	
2023-03-20T11:34:54.782366799Z	stdout	      ╚══════╝╚══════╝╚═╝ ╚═════╝ 
2023-03-20T11:34:54.782310573Z	stdout	      ███████╗███████║██║╚██████╔╝
2023-03-20T11:34:54.782250735Z	stdout	      ██║     ╚════██║██║██║   ██║      
2023-03-20T11:34:54.782105483Z	stdout	      ██║     ███████╗██║██║   ██║
2023-03-20T11:34:54.782043132Z	stdout	      ██║     ██╔════╝██║██╔═══██╗
2023-03-20T11:34:54.781972055Z	stdout	      ██╗     ███████╗██╗ ██████╗ 
2023-03-20T11:34:54.781916354Z	stdout	
2023-03-20T11:34:54.781738052Z	stdout	───────────────────────────────────────
2023-03-20T11:34:54.779785045Z	stdout	usermod: no changes
2023-03-20T11:34:54.685514474Z	stdout	[migrations] done
2023-03-20T11:34:54.685329696Z	stdout	[migrations] 01-nginx-site-confs-default: skipped
2023-03-20T11:34:54.639357923Z	stdout	[migrations] started
2023-03-20T11:31:36.141340111Z	stdout	[20-Mar-2023 22:01:36] NOTICE: exiting, bye-bye!
2023-03-20T11:31:36.116861925Z	stdout	[20-Mar-2023 22:01:36] NOTICE: Terminating ...
2023-03-20T11:30:00.948318989Z	stdout	crond[222]: USER root pid 5079 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T11:30:00.947582127Z	stdout	crond[222]: USER root pid 5078 cmd run-parts /etc/periodic/hourly
2023-03-20T11:30:00.946845115Z	stdout	crond[222]: USER root pid 5077 cmd run-parts /etc/periodic/15min
2023-03-20T11:25:00.942873023Z	stdout	crond[222]: USER root pid 5070 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T11:20:00.941715472Z	stdout	crond[222]: USER root pid 5062 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T11:15:00.940833579Z	stdout	crond[222]: USER root pid 5055 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T11:15:00.939996415Z	stdout	crond[222]: USER root pid 5054 cmd run-parts /etc/periodic/15min
2023-03-20T11:10:00.936250126Z	stdout	crond[222]: USER root pid 5049 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T11:05:00.934896328Z	stdout	crond[222]: USER root pid 5040 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T11:00:00.933974695Z	stdout	crond[222]: USER root pid 5031 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T11:00:00.932826714Z	stdout	crond[222]: USER root pid 5030 cmd run-parts /etc/periodic/15min
2023-03-20T10:55:00.929056807Z	stdout	crond[222]: USER root pid 5022 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T10:50:00.927457378Z	stdout	crond[222]: USER root pid 5015 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T10:45:00.924491705Z	stdout	crond[222]: USER root pid 5010 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T10:45:00.922990193Z	stdout	crond[222]: USER root pid 5009 cmd run-parts /etc/periodic/15min
2023-03-20T10:40:00.920123100Z	stdout	crond[222]: USER root pid 5003 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T10:35:00.919419025Z	stdout	crond[222]: USER root pid 4995 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T10:30:00.916903144Z	stdout	crond[222]: USER root pid 4989 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T10:30:00.916758742Z	stdout	crond[222]: USER root pid 4988 cmd run-parts /etc/periodic/hourly
2023-03-20T10:30:00.915873565Z	stdout	crond[222]: USER root pid 4987 cmd run-parts /etc/periodic/15min
2023-03-20T10:25:24.303054320Z	stdout	[20-Mar-2023 20:55:24] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
2023-03-20T10:25:00.912337045Z	stdout	crond[222]: USER root pid 4978 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T10:24:22.244088491Z	stdout	[20-Mar-2023 20:54:22] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
2023-03-20T10:20:00.911564395Z	stdout	crond[222]: USER root pid 4970 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T10:15:00.911067941Z	stdout	crond[222]: USER root pid 4963 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T10:15:00.910197002Z	stdout	crond[222]: USER root pid 4962 cmd run-parts /etc/periodic/15min
2023-03-20T10:10:00.907049917Z	stdout	crond[222]: USER root pid 4955 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T10:05:00.905044842Z	stdout	crond[222]: USER root pid 4950 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T10:00:00.902703745Z	stdout	crond[222]: USER root pid 4945 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T10:00:00.900027201Z	stdout	crond[222]: USER root pid 4944 cmd run-parts /etc/periodic/15min
2023-03-20T09:58:46.749182981Z	stdout	[20-Mar-2023 20:28:46] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
2023-03-20T09:55:00.894530104Z	stdout	crond[222]: USER root pid 4933 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T09:50:00.890803728Z	stdout	crond[222]: USER root pid 4927 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T09:45:00.888831394Z	stdout	crond[222]: USER root pid 4925 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T09:45:00.887125204Z	stdout	crond[222]: USER root pid 4924 cmd run-parts /etc/periodic/15min
2023-03-20T09:40:00.884406398Z	stdout	crond[222]: USER root pid 4920 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T09:35:00.882225036Z	stdout	crond[222]: USER root pid 4914 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T09:30:00.880992982Z	stdout	crond[222]: USER root pid 4909 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T09:30:00.880833079Z	stdout	crond[222]: USER root pid 4908 cmd run-parts /etc/periodic/hourly
2023-03-20T09:30:00.879637272Z	stdout	crond[222]: USER root pid 4907 cmd run-parts /etc/periodic/15min
2023-03-20T09:25:00.875425310Z	stdout	crond[222]: USER root pid 4902 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T09:20:00.872807374Z	stdout	crond[222]: USER root pid 4897 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T09:15:00.871444997Z	stdout	crond[222]: USER root pid 4893 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T09:15:00.868919406Z	stdout	crond[222]: USER root pid 4892 cmd run-parts /etc/periodic/15min
2023-03-20T09:10:00.865334434Z	stdout	crond[222]: USER root pid 4885 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T09:05:00.862663918Z	stdout	crond[222]: USER root pid 4880 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T09:00:00.860729419Z	stdout	crond[222]: USER root pid 4875 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T09:00:00.857486942Z	stdout	crond[222]: USER root pid 4874 cmd run-parts /etc/periodic/15min
2023-03-20T08:55:00.853175854Z	stdout	crond[222]: USER root pid 4870 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T08:50:00.850242307Z	stdout	crond[222]: USER root pid 4865 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T08:45:00.849624193Z	stdout	crond[222]: USER root pid 4860 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T08:45:00.848697528Z	stdout	crond[222]: USER root pid 4859 cmd run-parts /etc/periodic/15min
2023-03-20T08:40:00.836934884Z	stdout	crond[222]: USER root pid 4855 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T08:35:00.836058537Z	stdout	crond[222]: USER root pid 4851 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T08:30:00.833366050Z	stdout	crond[222]: USER root pid 4846 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T08:30:00.830571105Z	stdout	crond[222]: USER root pid 4845 cmd run-parts /etc/periodic/hourly
2023-03-20T08:30:00.829815605Z	stdout	crond[222]: USER root pid 4844 cmd run-parts /etc/periodic/15min
2023-03-20T08:25:00.821436027Z	stdout	crond[222]: USER root pid 4839 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T08:20:00.817850240Z	stdout	crond[222]: USER root pid 4835 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T08:15:00.813264076Z	stdout	crond[222]: USER root pid 4831 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T08:15:00.812195671Z	stdout	crond[222]: USER root pid 4830 cmd run-parts /etc/periodic/15min
2023-03-20T08:11:14.717697367Z	stdout	[20-Mar-2023 18:41:14] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
2023-03-20T08:10:00.808952572Z	stdout	crond[222]: USER root pid 4825 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T08:05:00.807271057Z	stdout	crond[222]: USER root pid 4819 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T08:00:00.805198178Z	stdout	crond[222]: USER root pid 4815 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T08:00:00.802202016Z	stdout	crond[222]: USER root pid 4814 cmd run-parts /etc/periodic/15min
2023-03-20T07:55:00.799405624Z	stdout	crond[222]: USER root pid 4809 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T07:50:00.798712548Z	stdout	crond[222]: USER root pid 4805 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T07:45:00.796463615Z	stdout	crond[222]: USER root pid 4801 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T07:45:00.794714611Z	stdout	crond[222]: USER root pid 4800 cmd run-parts /etc/periodic/15min
2023-03-20T07:40:00.791714535Z	stdout	crond[222]: USER root pid 4794 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T07:35:00.790578556Z	stdout	crond[222]: USER root pid 4789 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T07:30:00.786575481Z	stdout	crond[222]: USER root pid 4783 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T07:30:00.785049869Z	stdout	crond[222]: USER root pid 4782 cmd run-parts /etc/periodic/hourly
2023-03-20T07:30:00.784426159Z	stdout	crond[222]: USER root pid 4781 cmd run-parts /etc/periodic/15min
2023-03-20T07:25:00.781365344Z	stdout	crond[222]: USER root pid 4774 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T07:20:00.782514774Z	stdout	crond[222]: USER root pid 4770 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T07:15:00.775875889Z	stdout	crond[222]: USER root pid 4764 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T07:15:00.773084768Z	stdout	crond[222]: USER root pid 4763 cmd run-parts /etc/periodic/15min
2023-03-20T07:10:00.769990519Z	stdout	crond[222]: USER root pid 4758 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T07:05:00.767626012Z	stdout	crond[222]: USER root pid 4752 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T07:00:00.765276901Z	stdout	crond[222]: USER root pid 4746 cmd s6-setuidgid abc php -f /config/www/nextcloud/cron.php
2023-03-20T07:00:00.760636151Z	stdout	crond[222]: USER root pid 4745 cmd run-parts /etc/periodic/15min

I think you missed the comment We do not support or recommend deploying containers with the synology ui as it breaks things.
I suggest you create these with docker compose or docker run (compose is obviously going to be much better and simpler)

You also didn’t answer what reverse proxy you’re using , we support our reverse proxy SWAG.

Your new logs don’t show any errors, since you said those logs are when NOT using the reverse proxy, I can only conclude the issue is your reverse proxy or the fact that you used the broken syno ui to deploy the containers.

The reverse proxy is running on a different machine… only reference was to the port it was using 444 instead of 443 but it is Nginx Proxy Manager, not running on Synology therefore not even related to the issue. The reason I bought it up, was because it showed 444 in the next cloud logs.

I thought possibly that the port number could be causing issues in next cloud?

The port was changed due to a conflicting port on the NAT routing rules into my network from the internet.

I will try figuring out how to use docker compose, never done that before because I was only ever shown how to use the syno UI.

Unfortunately, since you show no errors in the logs when not using NPM, I can only assume the issue is with NPM. We don’t offer support for NPM. From the compose perspective, our readme’s all have a sample you can use, for nextcloud it’s https://github.com/linuxserver/docker-nextcloud#docker-compose-recommended-click-here-for-more-info

version: "2.1"
services:
  nextcloud:
    image: lscr.io/linuxserver/nextcloud:latest
    container_name: nextcloud
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
    volumes:
      - /path/to/appdata:/config
      - /path/to/data:/data
    ports:
      - 443:443
    restart: unless-stopped

if you need to change the port, you could just do 444:443 which is probably the same as what you have. You didn’t show your bind mounts, so you’d need to adjust those in the above snippet. That just goes in a file called something like docker-compose.yml then you type docker-compose up -d and that’s pretty much it. much simpler than the UI and no surprises.

Here’s some info, though I don’t know if docker compose is installed in syno the same way, < Docker Compose - LinuxServer.io> I did find this though < How Do I Use Docker Compose with Synology? (linuxhint.com)>

If you need some help, you’re welcome to join our discord and ask in #other-support which is where we give best-effort help for things we don’t officially support.

So I created it the same way you asked me to with docker-compose and I’m still getting the same errors:

Docker-Compose.yaml

version: "2.1"
services:
  nextcloud:
    image: lscr.io/linuxserver/nextcloud:latest
    container_name: nextcloudv2
    environment:
      - PUID=1050
      - PGID=1000
      - TZ=Australia/Adelaide
    volumes:
      - /volume1/docker/nextcloudv2/config:/config
      - /volume1/docker/nextcloudv2/data:/data
      - /volume1/docker/SSL/nas/:/config/keys
    ports:
      - 444:443
    restart: unless-stopped

Are you using NPM in the screenshot?

I don’t know what NPM is? – As far as I am aware I am not using NPM. I never set it up, I simply followed the instructions you gave me above.

NPM ^
You blanked out what you accessed the system by, it should be an rfc1918 ip address which should not need to be blanked out.
https://<docker host ip>:444

that said, i can clearly see letters in what you blanked out i want you to ONLY use IP