nextcloud / app_api

Nextcloud AppAPI
https://apps.nextcloud.com/apps/app_api
GNU Affero General Public License v3.0
82 stars 7 forks source link

Test Deploy fails with Error 500 or Error 504 #419

Closed telepath closed 3 weeks ago

telepath commented 3 weeks ago

Describe the bug

I have a fresh install of NC30i (all-in-one) with some minimal configuration (oidc login). When I try to test the AppAPI deployment, it always fails, either with the error "500 Internal Server Error" or "504 Gateway Time-out"

Steps/Code to Reproduce

  1. Install Nextcloud AIO
  2. Enable optional containers: - Collabora
    • (Nextcloud Office)
    • Nextcloud Talk
    • Docker Socket Proxy
    • Whiteboard
  3. Setup OIDC user with admin role
  4. Log in via oidc
  5. Go to AppID Settings
  6. Run "Test Deploy"

Expected Results

Successful deployment.

Actual Results

Image Image

nextcloud.log:


{"reqId":"5iSZty7mJf5CFDfh1dQt","level":1,"time":"2024-10-14T14:54:38+00:00","remoteAddr":"","user":"--","app":"app_api","method":"","url":"--","message":"Failed to pull \"extended\" image(ghcr.io/cloud-py-api/test-deploy:release-cpu), GuzzleException occur: Server error: `POST http://nextcloud-aio-docker-socket-proxy:2375/v1.41/images/create?fromImage=ghcr.io%2Fcloud-py-api%2Ftest-deploy%3Arelease-cpu` resulted in a `504 Gateway Time-out` response","userAgent":"--","version":"30.0.0.14","data":{"app":"app_api"}}
{"reqId":"5iSZty7mJf5CFDfh1dQt","level":1,"time":"2024-10-14T14:54:55+00:00","remoteAddr":"","user":"--","app":"app_api","method":"","url":"--","message":"Failed to pull \"extended\" image(ghcr.io/cloud-py-api/test-deploy-cpu:release), GuzzleException occur: Server error: `POST http://nextcloud-aio-docker-socket-proxy:2375/v1.41/images/create?fromImage=ghcr.io%2Fcloud-py-api%2Ftest-deploy-cpu%3Arelease` resulted in a `504 Gateway Time-out` response","userAgent":"--","version":"30.0.0.14","data":{"app":"app_api"}}
{"reqId":"5iSZty7mJf5CFDfh1dQt","level":1,"time":"2024-10-14T14:54:55+00:00","remoteAddr":"","user":"--","app":"app_api","method":"","url":"--","message":"Pulling \"base\" image: ghcr.io/cloud-py-api/test-deploy:release","userAgent":"--","version":"30.0.0.14","data":{"app":"app_api"}}

{"reqId":"FE8LPjzpf2dsAHmffoIC","level":0,"time":"2024-10-18T12:37:29+00:00","remoteAddr":"","user":"bcc#############################################################","app":"app_api","method":"POST","url":"/apps/app_api/daemons/docker_aio/test_deploy","message":"ExApp \"test-deploy\" not found.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.1.2","data":{"app":"app_api"}}
{"reqId":"FE8LPjzpf2dsAHmffoIC","level":0,"time":"2024-10-18T12:37:30+00:00","remoteAddr":"","user":"bcc#############################################################","app":"app_api","method":"POST","url":"/apps/app_api/daemons/docker_aio/test_deploy","message":"ExApp \"test-deploy\" not found.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.1.2","data":{"app":"app_api"}}
{"reqId":"FE8LPjzpf2dsAHmffoIC","level":0,"time":"2024-10-18T12:37:30+00:00","remoteAddr":"","user":"bcc#############################################################","app":"app_api","method":"POST","url":"/apps/app_api/daemons/docker_aio/test_deploy","message":"ExApp \"test-deploy\" not found.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.1.2","data":{"app":"app_api"}}
{"reqId":"FE8LPjzpf2dsAHmffoIC","level":0,"time":"2024-10-18T12:37:30+00:00","remoteAddr":"","user":"bcc#############################################################","app":"app_api","method":"POST","url":"/apps/app_api/daemons/docker_aio/test_deploy","message":"ExApp \"test-deploy\" not found.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.1.2","data":{"app":"app_api"}}
{"reqId":"FE8LPjzpf2dsAHmffoIC","level":0,"time":"2024-10-18T12:37:30+00:00","remoteAddr":"","user":"bcc#############################################################","app":"app_api","method":"POST","url":"/apps/app_api/daemons/docker_aio/test_deploy","message":"ExApp \"test-deploy\" not found.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.1.2","data":{"app":"app_api"}}
{"reqId":"FE8LPjzpf2dsAHmffoIC","level":0,"time":"2024-10-18T12:37:31+00:00","remoteAddr":"","user":"bcc#############################################################","app":"app_api","method":"POST","url":"/apps/app_api/daemons/docker_aio/test_deploy","message":"ExApp \"test-deploy\" not found.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.1.2","data":{"app":"app_api"}}
{"reqId":"FE8LPjzpf2dsAHmffoIC","level":0,"time":"2024-10-18T12:37:31+00:00","remoteAddr":"","user":"bcc#############################################################","app":"app_api","method":"POST","url":"/apps/app_api/daemons/docker_aio/test_deploy","message":"ExApp \"test-deploy\" not found.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.1.2","data":{"app":"app_api"}}
{"reqId":"FE8LPjzpf2dsAHmffoIC","level":0,"time":"2024-10-18T12:37:31+00:00","remoteAddr":"","user":"bcc#############################################################","app":"app_api","method":"POST","url":"/apps/app_api/daemons/docker_aio/test_deploy","message":"ExApp \"test-deploy\" not found.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.1.2","data":{"app":"app_api"}}
{"reqId":"FE8LPjzpf2dsAHmffoIC","level":0,"time":"2024-10-18T12:37:31+00:00","remoteAddr":"","user":"bcc#############################################################","app":"app_api","method":"POST","url":"/apps/app_api/daemons/docker_aio/test_deploy","message":"ExApp \"test-deploy\" not found.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.1.2","data":{"app":"app_api"}}
{"reqId":"FE8LPjzpf2dsAHmffoIC","level":0,"time":"2024-10-18T12:37:31+00:00","remoteAddr":"","user":"bcc#############################################################","app":"app_api","method":"POST","url":"/apps/app_api/daemons/docker_aio/test_deploy","message":"ExApp \"test-deploy\" not found.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.1.2","data":{"app":"app_api"}}
{"reqId":"FE8LPjzpf2dsAHmffoIC","level":0,"time":"2024-10-18T12:37:32+00:00","remoteAddr":"","user":"bcc#############################################################","app":"app_api","method":"POST","url":"/apps/app_api/daemons/docker_aio/test_deploy","message":"ExApp \"test-deploy\" not found.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.1.2","data":{"app":"app_api"}}
{"reqId":"FE8LPjzpf2dsAHmffoIC","level":0,"time":"2024-10-18T12:37:32+00:00","remoteAddr":"","user":"bcc#############################################################","app":"app_api","method":"POST","url":"/apps/app_api/daemons/docker_aio/test_deploy","message":"ExApp \"test-deploy\" not found.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.1.2","data":{"app":"app_api"}}
{"reqId":"FE8LPjzpf2dsAHmffoIC","level":0,"time":"2024-10-18T12:37:32+00:00","remoteAddr":"","user":"bcc#############################################################","app":"app_api","method":"POST","url":"/apps/app_api/daemons/docker_aio/test_deploy","message":"ExApp \"test-deploy\" not found.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.1.2","data":{"app":"app_api"}}
{"reqId":"FE8LPjzpf2dsAHmffoIC","level":0,"time":"2024-10-18T12:37:32+00:00","remoteAddr":"","user":"bcc#############################################################","app":"app_api","method":"POST","url":"/apps/app_api/daemons/docker_aio/test_deploy","message":"ExApp \"test-deploy\" not found.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.1.2","data":{"app":"app_api"}}
{"reqId":"FE8LPjzpf2dsAHmffoIC","level":0,"time":"2024-10-18T12:37:32+00:00","remoteAddr":"","user":"bcc#############################################################","app":"app_api","method":"POST","url":"/apps/app_api/daemons/docker_aio/test_deploy","message":"ExApp \"test-deploy\" not found.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.1.2","data":{"app":"app_api"}}
{"reqId":"FE8LPjzpf2dsAHmffoIC","level":0,"time":"2024-10-18T12:37:32+00:00","remoteAddr":"","user":"bcc#############################################################","app":"app_api","method":"POST","url":"/apps/app_api/daemons/docker_aio/test_deploy","message":"ExApp \"test-deploy\" not found.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.1.2","data":{"app":"app_api"}}
{"reqId":"drH6seXAN3StD6IVY5XF","level":3,"time":"2024-10-18T12:37:32+00:00","remoteAddr":"","user":"--","app":"app_api","method":"","url":"--","message":"ExApp test-deploy deployment failed. Error: Failed to pull image, GuzzleException occur: Server error: `POST http://nextcloud-aio-docker-socket-proxy:2375/v1.41/images/create?fromImage=ghcr.io%2Fnextcloud%2Ftest-deploy%3Arelease` resulted in a `504 Gateway Time-out` response","userAgent":"--","version":"30.0.1.2","data":{"app":"app_api"}}
{"reqId":"FE8LPjzpf2dsAHmffoIC","level":0,"time":"2024-10-18T12:37:33+00:00","remoteAddr":"","user":"bcc#############################################################","app":"app_api","method":"POST","url":"/apps/app_api/daemons/docker_aio/test_deploy","message":"ExApp \"test-deploy\" not found.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.1.2","data":{"app":"app_api"}}
{"reqId":"FE8LPjzpf2dsAHmffoIC","level":0,"time":"2024-10-18T12:37:33+00:00","remoteAddr":"","user":"bcc#############################################################","app":"app_api","method":"POST","url":"/apps/app_api/daemons/docker_aio/test_deploy","message":"ExApp \"test-deploy\" not found.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.1.2","data":{"app":"app_api"}}
{"reqId":"FE8LPjzpf2dsAHmffoIC","level":0,"time":"2024-10-18T12:37:33+00:00","remoteAddr":"","user":"bcc#############################################################","app":"app_api","method":"POST","url":"/apps/app_api/daemons/docker_aio/test_deploy","message":"ExApp \"test-deploy\" not found.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.1.2","data":{"app":"app_api"}}
{"reqId":"FE8LPjzpf2dsAHmffoIC","level":0,"time":"2024-10-18T12:37:33+00:00","remoteAddr":"","user":"bcc#############################################################","app":"app_api","method":"POST","url":"/apps/app_api/daemons/docker_aio/test_deploy","message":"ExApp \"test-deploy\" not found.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.1.2","data":{"app":"app_api"}}
{"reqId":"YovJ4Zw5BxmkNfbgQS51","level":0,"time":"2024-10-18T12:37:39+00:00","remoteAddr":"","user":"bcc#############################################################","app":"no app in context","method":"GET","url":"/apps/logreader/api/poll?lastReqId=XB686mQxVSIRZBrzS4sT","message":"OCA\\LogReader\\Controller\\LogController::poll uses the @AuthorizedAdminSetting annotation and should use the #[OCP\\AppFramework\\Http\\Attribute\\AuthorizedAdminSetting] attribute instead","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.1.2","data":[]}
{"reqId":"zYYtZipuRMI0W4FsI1g5","level":1,"time":"2024-10-18T12:37:46+00:00","remoteAddr":"","user":"--","app":"app_api","method":"","url":"--","message":"Failed to pull \"extended\" image(ghcr.io/nextcloud/test-deploy:release-cpu), GuzzleException occur: Server error: `POST http://nextcloud-aio-docker-socket-proxy:2375/v1.41/images/create?fromImage=ghcr.io%2Fnextcloud%2Ftest-deploy%3Arelease-cpu` resulted in a `500 Internal Server Error` response","userAgent":"--","version":"30.0.1.2","data":{"app":"app_api"}}
{"reqId":"ot95zSEw2UwjNVxzbFH2","level":0,"time":"2024-10-18T12:37:51+00:00","remoteAddr":"51.195.49.116","user":"--","app":"no app in context","method":"GET","url":"/","message":"OC_App::registerLogIn() is deprecated, please register your alternative login option using the registerAlternativeLogin() on the RegistrationContext in your Application class implementing the OCP\\Authentication\\IAlternativeLogin interface","userAgent":"Uptime-Kuma/1.23.13","version":"30.0.1.2","data":[]}
{"reqId":"zoKEPrhxxTsEwZK9OptZ","level":0,"time":"2024-10-18T12:37:51+00:00","remoteAddr":"51.195.49.116","user":"--","app":"no app in context","method":"GET","url":"/apps/user_oidc/login/1","message":"OC_App::registerLogIn() is deprecated, please register your alternative login option using the registerAlternativeLogin() on the RegistrationContext in your Application class implementing the OCP\\Authentication\\IAlternativeLogin interface","userAgent":"Uptime-Kuma/1.23.13","version":"30.0.1.2","data":[]}
{"reqId":"XB686mQxVSIRZBrzS4sT","level":0,"time":"2024-10-18T12:37:51+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"CLI cron call has selected job OCA\\ContextChat\\BackgroundJobs\\IndexerJob (id: 159, arguments: {\"storageId\":1,\"rootId\":1})","userAgent":"--","version":"30.0.1.2","data":{"app":"cron"}}
{"reqId":"zoKEPrhxxTsEwZK9OptZ","level":0,"time":"2024-10-18T12:37:53+00:00","remoteAddr":"51.195.49.116","user":"--","app":"no app in context","method":"GET","url":"/apps/user_oidc/login/1","message":"OCA\\UserOIDC\\Controller\\LoginController::login uses the @PublicPage annotation and should use the #[OCP\\AppFramework\\Http\\Attribute\\PublicPage] attribute instead","userAgent":"Uptime-Kuma/1.23.13","version":"30.0.1.2","data":[]}
{"reqId":"zoKEPrhxxTsEwZK9OptZ","level":0,"time":"2024-10-18T12:37:53+00:00","remoteAddr":"51.195.49.116","user":"--","app":"no app in context","method":"GET","url":"/apps/user_oidc/login/1","message":"OCA\\UserOIDC\\Controller\\LoginController::login uses the @NoCSRFRequired annotation and should use the #[OCP\\AppFramework\\Http\\Attribute\\NoCSRFRequired] attribute instead","userAgent":"Uptime-Kuma/1.23.13","version":"30.0.1.2","data":[]}
{"reqId":"zoKEPrhxxTsEwZK9OptZ","level":0,"time":"2024-10-18T12:37:53+00:00","remoteAddr":"51.195.49.116","user":"--","app":"no app in context","method":"GET","url":"/apps/user_oidc/login/1","message":"OCA\\UserOIDC\\Controller\\LoginController::login uses the @NoCSRFRequired annotation and should use the #[OCP\\AppFramework\\Http\\Attribute\\NoCSRFRequired] attribute instead","userAgent":"Uptime-Kuma/1.23.13","version":"30.0.1.2","data":[]}
{"reqId":"zoKEPrhxxTsEwZK9OptZ","level":0,"time":"2024-10-18T12:37:53+00:00","remoteAddr":"51.195.49.116","user":"--","app":"no app in context","method":"GET","url":"/apps/user_oidc/login/1","message":"The loading of lazy AppConfig values have been requested","userAgent":"Uptime-Kuma/1.23.13","version":"30.0.1.2","exception":{"Exception":"RuntimeException","Message":"ignorable exception","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppConfig.php","line":1180,"function":"loadConfig","class":"OC\\AppConfig","type":"->","args":[null]},{"file":"/var/www/html/lib/private/AppConfig.php","line":100,"function":"loadConfigAll","class":"OC\\AppConfig","type":"->","args":[]},{"file":"/var/www/html/lib/private/AllConfig.php","line":169,"function":"getKeys","class":"OC\\AppConfig","type":"->","args":["bruteForce"]},{"file":"/var/www/html/lib/private/Security/Bruteforce/Throttler.php","line":95,"function":"getAppKeys","class":"OC\\AllConfig","type":"->","args":["bruteForce"]},{"file":"/var/www/html/lib/private/Security/Bruteforce/Throttler.php","line":175,"function":"isBypassListed","class":"OC\\Security\\Bruteforce\\Throttler","type":"->","args":["51.195.49.116"]},{"file":"/var/www/html/lib/private/Security/Bruteforce/Throttler.php","line":192,"function":"getAttempts","class":"OC\\Security\\Bruteforce\\Throttler","type":"->","args":["51.195.49.116","userOidcLogin"]},{"file":"/var/www/html/lib/private/Security/Bruteforce/Throttler.php","line":265,"function":"getDelay","class":"OC\\Security\\Bruteforce\\Throttler","type":"->","args":["51.195.49.116","userOidcLogin"]},{"file":"/var/www/html/lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php","line":52,"function":"sleepDelayOrThrowOnMax","class":"OC\\Security\\Bruteforce\\Throttler","type":"->","args":["51.195.49.116","userOidcLogin"]},{"file":"/var/www/html/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php","line":73,"function":"beforeController","class":"OC\\AppFramework\\Middleware\\Security\\BruteForceMiddleware","type":"->","args":[["OCA\\UserOIDC\\Controller\\LoginController"],"login"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":106,"function":"beforeController","class":"OC\\AppFramework\\Middleware\\MiddlewareDispatcher","type":"->","args":[["OCA\\UserOIDC\\Controller\\LoginController"],"login"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\UserOIDC\\Controller\\LoginController"],"login"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\UserOIDC\\Controller\\LoginController","login",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["1","user_oidc.login.login"]]},{"file":"/var/www/html/lib/base.php","line":1001,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/user_oidc/login/1"]},{"file":"/var/www/html/index.php","line":24,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppConfig.php","Line":1194,"message":"The loading of lazy AppConfig values have been requested","exception":{},"CustomMessage":"The loading of lazy AppConfig values have been requested"}}
{"reqId":"zYYtZipuRMI0W4FsI1g5","level":1,"time":"2024-10-18T12:37:56+00:00","remoteAddr":"","user":"--","app":"app_api","method":"","url":"--","message":"Failed to pull \"extended\" image(ghcr.io/nextcloud/test-deploy-cpu:release), GuzzleException occur: Server error: `POST http://nextcloud-aio-docker-socket-proxy:2375/v1.41/images/create?fromImage=ghcr.io%2Fnextcloud%2Ftest-deploy-cpu%3Arelease` resulted in a `504 Gateway Time-out` response","userAgent":"--","version":"30.0.1.2","data":{"app":"app_api"}}
{"reqId":"XB686mQxVSIRZBrzS4sT","level":0,"time":"2024-10-18T12:37:57+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"Starting job OCA\\ContextChat\\BackgroundJobs\\IndexerJob (id: 159, arguments: {\"storageId\":1,\"rootId\":1})","userAgent":"--","version":"30.0.1.2","data":{"app":"cron"}}
{"reqId":"zYYtZipuRMI0W4FsI1g5","level":1,"time":"2024-10-18T12:37:57+00:00","remoteAddr":"","user":"--","app":"app_api","method":"","url":"--","message":"Pulling \"base\" image: ghcr.io/nextcloud/test-deploy:release","userAgent":"--","version":"30.0.1.2","data":{"app":"app_api"}}

journalctl -feu docker.service:

Oct 18 12:37:32 next-dev dockerd[2798905]: time="2024-10-18T12:37:32.920767254Z" level=warning msg="error aborting content ingest" digest="sha256:fbf0f1e36bfc21ea9137d5588a9c286867c3adb5ef39348bd94b348e2b036119" error="Canceled: context canceled" remote="ghcr.io/nextcloud/test-deploy:release" spanID=cffa2b8b8838b81b traceID=032d22404b03ce2cf944d81002c92163
Oct 18 12:37:32 next-dev dockerd[2798905]: time="2024-10-18T12:37:32.920835976Z" level=warning msg="Error persisting manifest" digest="sha256:fbf0f1e36bfc21ea9137d5588a9c286867c3adb5ef39348bd94b348e2b036119" error="error committing manifest to content store: commit failed: context canceled" remote="ghcr.io/nextcloud/test-deploy:release" spanID=cffa2b8b8838b81b traceID=032d22404b03ce2cf944d81002c92163
Oct 18 12:37:33 next-dev dockerd[2798905]: time="2024-10-18T12:37:33.069703531Z" level=info msg="Pull session cancelled"
Oct 18 12:37:33 next-dev dockerd[2798905]: time="2024-10-18T12:37:33.250009138Z" level=error msg="Not continuing with pull after error: context canceled" spanID=cffa2b8b8838b81b traceID=032d22404b03ce2cf944d81002c92163
Oct 18 12:37:43 next-dev dockerd[2798905]: time="2024-10-18T12:37:43.711805111Z" level=info msg="Attempting next endpoint for pull after error: manifest unknown" spanID=67c21a28b9a4b175 traceID=95d366b96e2a818eca80689b41e63db1
Oct 18 12:37:46 next-dev dockerd[2798905]: time="2024-10-18T12:37:46.230658230Z" level=error msg="Handler for POST /v1.41/images/create returned error: manifest unknown" spanID=67c21a28b9a4b175 traceID=95d366b96e2a818eca80689b41e63db1
Oct 18 12:37:53 next-dev dockerd[2798905]: time="2024-10-18T12:37:53.408556629Z" level=info msg="Attempting next endpoint for pull after error: Head \"https://ghcr.io/v2/nextcloud/test-deploy-cpu/manifests/release\": denied" spanID=3e307b650f67c1c0 traceID=c9870f5025f2532569967cca8c487a80
Oct 18 12:37:56 next-dev dockerd[2798905]: time="2024-10-18T12:37:56.243973235Z" level=error msg="Handler for POST /v1.41/images/create returned error: Head \"https://ghcr.io/v2/nextcloud/test-deploy-cpu/manifests/release\": denied" spanID=3e307b650f67c1c0 traceID=c9870f5025f2532569967cca8c487a80
Oct 18 12:38:07 next-dev dockerd[2798905]: time="2024-10-18T12:38:07.707208110Z" level=warning msg="Could not update content distribution source" digest="sha256:fbf0f1e36bfc21ea9137d5588a9c286867c3adb5ef39348bd94b348e2b036119" error="Canceled: context canceled" ref="ghcr.io/nextcloud/test-deploy:release" remote="ghcr.io/nextcloud/test-deploy:release" spanID=bd148df7030efa56 traceID=41ce99cc833ac2a705945c1793c81e90
Oct 18 12:38:08 next-dev dockerd[2798905]: time="2024-10-18T12:38:08.006546972Z" level=info msg="Pull session cancelled"
Oct 18 12:38:08 next-dev dockerd[2798905]: time="2024-10-18T12:38:08.164927975Z" level=error msg="Not continuing with pull after error: context canceled" spanID=bd148df7030efa56 traceID=41ce99cc833ac2a705945c1793c81e90

Setup configuration

compose.yaml:

services:

  nextcloud-aio-mastercontainer:
    image: nextcloud/all-in-one:latest
    init: true
    restart: always
    container_name: nextcloud-aio-mastercontainer # This line is not allowed to be changed as otherwise AIO will not work correctly
    volumes:
      - nextcloud_aio_mastercontainer:/mnt/docker-aio-config # This line is not allowed to be changed as otherwise the built-in backup solution will not work
      - /var/run/docker.sock:/var/run/docker.sock:ro # May be changed on macOS, Windows or docker rootless. See the applicable documentation. If adjusting, don't forget to also set 'WATCHTOWER_DOCKER_SOCKET_PATH'!
    ports:
      - 8080:8080
    environment: # Is needed when using any of the options below
      - AIO_DISABLE_BACKUP_SECTION=true 
      - APACHE_PORT=11000 
      - APACHE_IP_BINDING=0.0.0.0 
      - NEXTCLOUD_DATADIR=/mnt/ncdata 
      - AIO_COMMUNITY_CONTAINERS=caddy fail2ban
      - SKIP_DOMAIN_VALIDATION=true
    security_opt: ["label:disable"]

  nextcloud_aio_mastercontainer:
    name: nextcloud_aio_mastercontainer # This line is not allowed to be changed as otherwise the built-in backup solution will not work

/etc/docker/daemon.json

{
    "dns-search": [],
    "log-driver": "journald"
}
bigcat88 commented 3 weeks ago

Sorry for this, maybe it is caused by actions from our side(we are moving all Ecosystem stuff) to the Nextcloud organization.

Can you try again please?

telepath commented 3 weeks ago

I have tried this many times over the last few weeks with the same result. I have tried again, still Error 504.

bigcat88 commented 3 weeks ago

Can you say which error you get when executing docker pull ghcr.io/nextcloud/test-deploy:release ?

telepath commented 3 weeks ago

pulling the image on the host works as expected:

# docker pull ghcr.io/nextcloud/test-deploy:release
release: Pulling from nextcloud/test-deploy
a480a496ba95: Pull complete 
d9b4e23c98f2: Pull complete 
ab2906373223: Pull complete 
6dd877cc33d7: Pull complete 
15b53132258e: Pull complete 
4f4fb700ef54: Pull complete 
1dd355e265d6: Pull complete 
ec46c8979f01: Pull complete 
2b62913d2b21: Pull complete 
5b8d0b28d4a4: Pull complete 
Digest: sha256:fbf0f1e36bfc21ea9137d5588a9c286867c3adb5ef39348bd94b348e2b036119
Status: Downloaded newer image for ghcr.io/nextcloud/test-deploy:release
ghcr.io/nextcloud/test-deploy:release
telepath commented 3 weeks ago

It looks like for some reason the deployment is just really slow. I increased the timeouts in HA proxy from 10s to 60s and now it works.

defaults
    timeout connect 60s
    timeout client 60s
    timeout server 60s

I'll look into the performance of my setup, but since nextcloud is working OK, maybe the timeouts are just too tight? I'd suggest increasing them, or maybe make them configurable.

bigcat88 commented 3 weeks ago

will 30 seconds be enough for connect_timeout on your setup, could you check?

I have already created a PR to raise the default value from 10s to 30s, - I wonder if 30s is enough or do we still need 60s? (I really wouldn't want to set such a high timeout for the connection process)

telepath commented 3 weeks ago

30s seems to work ok.