The Basics
Nextcloud Server version (e.g., 29.x.x) :
Operating system and version (e.g., Ubuntu 24.04) :
debian 12 (running on TrueNAS)
Is this the first time youâve seen this error? (Yes / No):
I had this problem this week, when I tried to upgrade NextCloud AIO to the latest version
Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
Are you using CloudfIare, mod_security, or similar? (Yes / No)
Summary of the issue you are facing:
NextCloud was working fine until this week, when I started upgrading.
I upgraded the master container and reached this point:
When I click âstart and upgrade containersâ, it doesnât run and asks me to check the container logs
In the logs I see 2 errors:
Could not get digest of container nextcloud/all-in-one:latest
and
Could not pull image Package aio-postgresql ¡ GitHub
I tried everything I know (which is not much I have to be honest) but I donât know what is going on.
Full logs here
Important: do always use an ip-address if you access this port and not a domain as HSTS might block access to it later!
If your server has port 80 and 8443 open and you point a domain to your server, you can get a valid certificate automatically by opening the Nextcloud AIO Interface via:
https://your-domain-that-points-to-this-server.tld:8443
[Tue Apr 01 16:34:48.706560 2025] [mpm_event:notice] [pid 174:tid 174] AH00489: Apache/2.4.62 (Unix) OpenSSL/3.3.3 configured â resuming normal operations
[Tue Apr 01 16:34:48.706587 2025] [core:notice] [pid 174:tid 174] AH00094: Command line: âhttpd -D FOREGROUNDâ
INF INF INF INF INF INF INF INF ts=1743525288.7083814 INF INF INF INF INF INF INF INF ts=1743525288.7083814 msg=using config from file INF INF INF INF INF INF INF INF ts=1743525288.7083814 INF INF INF INF INF INF INF INF ts=1743525288.7083814 msg=using config from file file=/Caddyfile
INF INF INF INF INF INF INF INF ts=1743525288.7096403 INF INF INF INF INF INF INF INF ts=1743525288.7096403 msg=adapted config to JSON INF INF INF INF INF INF INF INF ts=1743525288.7096403 INF INF INF INF INF INF INF INF ts=1743525288.7096403 msg=adapted config to JSON adapter=caddyfile
[01-Apr-2025 16:34:48] NOTICE: fpm is running, pid 180
[01-Apr-2025 16:34:48] NOTICE: ready to handle connections
NOTICE: PHP message: Could not get digest of container nextcloud/all-in-one:latest cURL error 60: SSL: no alternative certificate subject name matches target hostname âauth.docker.io â (see libcurl - Error Codes ) for https://auth.docker.io/token?service=registry.docker.io&scope=repository:nextcloud/all-in-one:pull
NOTICE: PHP message: Slim Application Error
Type: Exception
Code: 0
Message: Could not pull image ghcr.io/nextcloud-releases/aio-postgresql:latest: {âmessageâ:âGet "https://ghcr.io/v2/\ â: dial tcp: lookup ghcr.io on 192.168.68.1:53: no such host"}
File: /var/www/docker-aio/php/src/Docker/DockerActionManager.php
3
Trace: #0 /var/www/docker-aio/php/src/Controller/DockerController.php(56): AIO\Docker\DockerActionManager->PullImage(Object(AIO\Container\Container))
#1 /var/www/docker-aio/php/src/Controller/DockerController.php(26): AIO\Controller\DockerController->PerformRecursiveContainerStart(ânextcloud-aio-dâŚâ, true)
#2 /var/www/docker-aio/php/src/Controller/DockerController.php(26): AIO\Controller\DockerController->PerformRecursiveContainerStart(ânextcloud-aio-nâŚâ, true)
#3 /var/www/docker-aio/php/src/Controller/DockerController.php(209): AIO\Controller\DockerController->PerformRecursiveContainerStart(ânextcloud-aio-aâŚâ, true)
#4 /var/www/docker-aio/php/src/Controller/DockerController.php(189): AIO\Controller\DockerController->startTopContainer(true)
#5 /var/www/docker-aio/php/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(38): AIO\Controller\DockerController->StartContainer(Object(GuzzleHttp\Psr7\ServerRequest), Object(GuzzleHttp\Psr7\Response), Array)
#6 /var/www/docker-aio/php/vendor/slim/slim/Slim/Routing/Route.php(363): Slim\Handlers\Strategies\RequestResponse->__invoke(Array, Object(GuzzleHttp\Psr7\ServerRequest), Object(GuzzleHttp\Psr7\Response), Array)
#7 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Slim\Routing\Route->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#8 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Slim\MiddlewareDispatcher->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#9 /var/www/docker-aio/php/vendor/slim/slim/Slim/Routing/Route.php(321): Slim\MiddlewareDispatcher->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#10 /var/www/docker-aio/php/vendor/slim/slim/Slim/Routing/RouteRunner.php(74): Slim\Routing\Route->run(Object(GuzzleHttp\Psr7\ServerRequest))
#11 /var/www/docker-aio/php/vendor/slim/csrf/src/Guard.php(482): Slim\Routing\RouteRunner->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#12 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(177): Slim\Csrf\Guard->process(Object(GuzzleHttp\Psr7\ServerRequest), Object(Slim\Routing\RouteRunner))
#13 /var/www/docker-aio/php/vendor/slim/twig-view/src/TwigMiddleware.php(117): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#14 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Slim\Views\TwigMiddleware->process(Object(GuzzleHttp\Psr7\ServerRequest), Object(Psr\Http\Server\RequestHandlerInterface@anonymous))
#15 /var/www/docker-aio/php/src/Middleware/AuthMiddleware.php(36): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#16 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(280): AIO\Middleware\AuthMiddleware->__invoke(Object(GuzzleHttp\Psr7\ServerRequest), Object(Psr\Http\Server\RequestHandlerInterface@anonymous))
#17 /var/www/docker-aio/php/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(77): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#18 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Slim\Middleware\ErrorMiddleware->process(Object(GuzzleHttp\Psr7\ServerRequest), Object(Psr\Http\Server\RequestHandlerInterface@anonymous))
#19 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#20 /var/www/docker-aio/php/vendor/slim/slim/Slim/App.php(209): Slim\MiddlewareDispatcher->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#21 /var/www/docker-aio/php/vendor/slim/slim/Slim/App.php(193): Slim\App->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#22 /var/www/docker-aio/php/public/index.php(189): Slim\App->run()
#23 {main}
Tips: To display error details in HTTP response set âdisplayErrorDetailsâ to true in the ErrorHandler constructor.
Hi, looks like ghcr.io is somehow not found in your dns server? Is your dns server configured correctly ro resolve ghcr.io ?
Well, if I ping ghcr.io , it resolves the IP and pings it.
Is there something else I should look into?
Can you run sudo docker exec -it nextcloud-aio-mastercontainer curl --no-progress-meter https://ghcr.io/v2/
and post the output here?
I get:
{âerrorsâ:[{âcodeâ:âUNAUTHORIZEDâ,âmessageâ:âauthentication requiredâ}]}
This looks good. Can you run sudo docker restart nextcloud-aio-mastercontainer
, then reload the aio interface on port 8080 and try to start and update the containers again?
I got exactly the same error:
the all log bellow:
Important: do always use an ip-address if you access this port and not a domain as HSTS might block access to it later!
If your server has port 80 and 8443 open and you point a domain to your server, you can get a valid certificate automatically by opening the Nextcloud AIO Interface via:
https://your-domain-that-points-to-this-server.tld:8443
[Tue Apr 01 21:17:57.568952 2025] [mpm_event:notice] [pid 175:tid 175] AH00489: Apache/2.4.62 (Unix) OpenSSL/3.3.3 configured â resuming normal operations
[Tue Apr 01 21:17:57.568977 2025] [core:notice] [pid 175:tid 175] AH00094: Command line: âhttpd -D FOREGROUNDâ
INF INF INF INF INF INF INF INF ts=1743542277.5781007 INF INF INF INF INF INF INF INF ts=1743542277.5781007 msg=using config from file INF INF INF INF INF INF INF INF ts=1743542277.5781007 INF INF INF INF INF INF INF INF ts=1743542277.5781007 msg=using config from file file=/Caddyfile
INF INF INF INF INF INF INF INF ts=1743542277.578788 INF INF INF INF INF INF INF INF ts=1743542277.578788 msg=adapted config to JSON INF INF INF INF INF INF INF INF ts=1743542277.578788 INF INF INF INF INF INF INF INF ts=1743542277.578788 msg=adapted config to JSON adapter=caddyfile
[01-Apr-2025 21:17:57] NOTICE: fpm is running, pid 181
[01-Apr-2025 21:17:57] NOTICE: ready to handle connections
Deleting duplicate sessions
NOTICE: PHP message: Slim Application Error
Type: Exception
Code: 0
Message: Could not pull image ghcr.io/nextcloud-releases/aio-postgresql:latest: {âmessageâ:âGet "https://ghcr.io/v2/\ â: dial tcp: lookup ghcr.io on 192.168.68.1:53: no such host"}
File: /var/www/docker-aio/php/src/Docker/DockerActionManager.php
3
Trace: #0 /var/www/docker-aio/php/src/Controller/DockerController.php(56): AIO\Docker\DockerActionManager->PullImage(Object(AIO\Container\Container))
#1 /var/www/docker-aio/php/src/Controller/DockerController.php(26): AIO\Controller\DockerController->PerformRecursiveContainerStart(ânextcloud-aio-dâŚâ, true)
#2 /var/www/docker-aio/php/src/Controller/DockerController.php(26): AIO\Controller\DockerController->PerformRecursiveContainerStart(ânextcloud-aio-nâŚâ, true)
#3 /var/www/docker-aio/php/src/Controller/DockerController.php(209): AIO\Controller\DockerController->PerformRecursiveContainerStart(ânextcloud-aio-aâŚâ, true)
#4 /var/www/docker-aio/php/src/Controller/DockerController.php(189): AIO\Controller\DockerController->startTopContainer(true)
#5 /var/www/docker-aio/php/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(38): AIO\Controller\DockerController->StartContainer(Object(GuzzleHttp\Psr7\ServerRequest), Object(GuzzleHttp\Psr7\Response), Array)
#6 /var/www/docker-aio/php/vendor/slim/slim/Slim/Routing/Route.php(363): Slim\Handlers\Strategies\RequestResponse->__invoke(Array, Object(GuzzleHttp\Psr7\ServerRequest), Object(GuzzleHttp\Psr7\Response), Array)
#7 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Slim\Routing\Route->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#8 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Slim\MiddlewareDispatcher->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#9 /var/www/docker-aio/php/vendor/slim/slim/Slim/Routing/Route.php(321): Slim\MiddlewareDispatcher->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#10 /var/www/docker-aio/php/vendor/slim/slim/Slim/Routing/RouteRunner.php(74): Slim\Routing\Route->run(Object(GuzzleHttp\Psr7\ServerRequest))
#11 /var/www/docker-aio/php/vendor/slim/csrf/src/Guard.php(482): Slim\Routing\RouteRunner->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#12 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(177): Slim\Csrf\Guard->process(Object(GuzzleHttp\Psr7\ServerRequest), Object(Slim\Routing\RouteRunner))
#13 /var/www/docker-aio/php/vendor/slim/twig-view/src/TwigMiddleware.php(117): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#14 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Slim\Views\TwigMiddleware->process(Object(GuzzleHttp\Psr7\ServerRequest), Object(Psr\Http\Server\RequestHandlerInterface@anonymous))
#15 /var/www/docker-aio/php/src/Middleware/AuthMiddleware.php(36): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#16 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(280): AIO\Middleware\AuthMiddleware->__invoke(Object(GuzzleHttp\Psr7\ServerRequest), Object(Psr\Http\Server\RequestHandlerInterface@anonymous))
#17 /var/www/docker-aio/php/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(77): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#18 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Slim\Middleware\ErrorMiddleware->process(Object(GuzzleHttp\Psr7\ServerRequest), Object(Psr\Http\Server\RequestHandlerInterface@anonymous))
#19 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#20 /var/www/docker-aio/php/vendor/slim/slim/Slim/App.php(209): Slim\MiddlewareDispatcher->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#21 /var/www/docker-aio/php/vendor/slim/slim/Slim/App.php(193): Slim\App->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#22 /var/www/docker-aio/php/public/index.php(189): Slim\App->run()
#23 {main}
Tips: To display error details in HTTP response set âdisplayErrorDetailsâ to true in the ErrorHandler constructor.
Hm⌠Can you configure an upstream dns server like 8.8.8.8 or 1.1.1.1 via daemon.json? See Configuring DNS | dockerlabs
Yes, I check that also⌠inside daemon.json I have:
{ âdnsâ : [ â8.8.8.8â , â8.8.4.4â ] }
and I also already did thisâŚ
After adding the entry did you already restarted the docker daemon via systemctl?
I reboot the all machine⌠(just in case)
Issue resolved.
After testing everything i could, in TrueNAS configuration I changed the order of the DNSs and put 8.8.8.8 as the first one (like image below) before it was in âNameserver 3â
it solved the issue
1 Like
system
Closed
April 10, 2025, 11:19pm
13
This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.