Setting up docker for exapps/app_api

Nextcloud version : 29.0.2.2
Operating system and version : Ubuntu 22.04.4 LTS
Apache or nginx version : nginx/1.18.0 (Ubuntu)
PHP version : PHP 8.1.2-1ubuntu2.18

I have the docker container configured and it can access it, but it fails on step 1 of the deploy testing.

In all the logs I can find the only relevent peice of information seems to be below otherwise it is all status updates for regular usage.

{"reqId":"S1NZu5ZnMhhSUATDSljx","level":3,"time":"2024-06-22T08:49:46+00:00","remoteAddr":"181.214.164.203","user":"admin","app":"index","method":"POST","url":"/apps/app_api/daemons/docker_local/test_deploy","message":"Call to a member function getStatus() on null in file '/var/www/nextcloud/apps/app_api/lib/Controller/DaemonConfigController.php' line 145","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0","version":"29.0.2.2","exception":{"Exception":"Exception","Message":"Call to a member function getStatus() on null in file '/var/www/nextcloud/apps/app_api/lib/Controller/DaemonConfigController.php' line 145","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":170,"Previous":{"Exception":"Error","Message":"Call to a member function getStatus() on null","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"startTestDeploy","class":"OCA\\AppAPI\\Controller\\DaemonConfigController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/app_api/lib/Controller/DaemonConfigController.php","Line":145},"message":"Call to a member function getStatus() on null in file '/var/www/nextcloud/apps/app_api/lib/Controller/DaemonConfigController.php' line 145","exception":{},"CustomMessage":"Call to a member function getStatus() on null in file '/var/www/nextcloud/apps/app_api/lib/Controller/DaemonConfigController.php' line 145"}}

And then this from the browser console.


AxiosError", … }
​​
code: "ERR_BAD_RESPONSE"
​​
config: Object { timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", … }
​​
message: "Request failed with status code 500"
​​
name: "AxiosError"
​​
request: XMLHttpRequest { readyState: 4, timeout: 0, withCredentials: false, … }
​​
response: Object { data: {…}, status: 500, statusText: "Internal Server Error", … }
​​
stack: "r@[https://XXhostmachineXX/apps/app_api/js/app_api-main.js?v=fa70b74f-27:2:3637979\nr@https://XXhostmachineXX/apps/app_api/js/app_api-main.js?v=fa70b74f-27:2:3644810\nC@https://XXhostmachineXX/apps/app_api/js/app_api-main.js?v=fa70b74f-27:2:3631985\n](https://XXhostmachineXX/apps/app_api/js/app_api-main.js?v=fa70b74f-27:2:3637979%5Cnr@https://XXhostmachineXX/apps/app_api/js/app_api-main.js?v=fa70b74f-27:2:3644810%5CnC@https://XXhostmachineXX/apps/app_api/js/app_api-main.js?v=fa70b74f-27:2:3631985%5Cn)"
​​
: Object { constructor: r(e, t, n, a, r), toJSON: toJSON(), stack: "", … }

Please provide your

  • docker commands/config and which images you run.
  • Provide docker logs {container name} output when you start the container as well