after pulling the new Docker images with Docker-Compose I got an error while recreating my Nextcloud instance. I’m using the Compose-File based on this Github-Repo. My file looks like this:
After starting the instance the output will give me something like this over and over again:
...
cron_1 | Warning: include(/var/www/html/lib/composer/composer/../../../lib/private/AppFramework/Http/RequestId.php): Failed to open stream: No such file or directory in /var/www/html/lib/composer/composer/ClassLoader.php on line 571
cron_1 |
cron_1 | Warning: include(): Failed opening '/var/www/html/lib/composer/composer/../../../lib/private/AppFramework/Http/RequestId.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/lib/composer/composer/ClassLoader.php on line 571
cron_1 |
cron_1 | Fatal error: Uncaught Error: Call to a member function getLogger() on null in /var/www/html/cron.php:189
cron_1 | Stack trace:
cron_1 | #0 {main}
cron_1 | thrown in /var/www/html/cron.php on line 189
cron_1 | crond: wakeup dt=10
cron_1 | crond: wakeup dt=50
cron_1 | crond: file www-data:
cron_1 | crond: line php -f /var/www/html/cron.php
cron_1 | crond: wakeup dt=60
...
All other containers of the stack are up and running, nextcloud_app is waiting for cron the be finished, which will not happen. The website itself has error 502 (Bad Gateway).
I see no reason why “app” should wait for “cron”… they are expected to run in parallel. and you don’t need cron to achieve basic functionality… most likely the issue is somewhere else. review the logs of “app” an “web” and maybe try starting the containers one by one so it’s easier to understand where the issue starts…
I remember redis requires password [from|for] some version - I’m not sure this is still true or not but could be a problem as well…
I startet every container one by one (except cron, as you mentioned it’s not necessary atm.) and all containers started up successfully. App just gives me the following output:
app_1 | Configuring Redis as session handler
app_1 | Initializing nextcloud 24.0.1.1 ...
app_1 | Upgrading nextcloud from 24.0.0.12 ...
app_1 | Another process is initializing Nextcloud. Waiting 10 seconds...
app_1 | Another process is initializing Nextcloud. Waiting 20 seconds...
app_1 | Another process is initializing Nextcloud. Waiting 30 seconds...
app_1 | Another process is initializing Nextcloud. Waiting 40 seconds...
app_1 | Another process is initializing Nextcloud. Waiting 50 seconds...
app_1 | Another process is initializing Nextcloud. Waiting 60 seconds...
app_1 | Another process is initializing Nextcloud. Waiting 70 seconds...
app_1 | Another process is initializing Nextcloud. Waiting 80 seconds...
...
…what process?
Nothing happens… website is not reachable, web-container just says “connection failed”…
… and the website itself shows the following text:
Warning: include(/var/www/html/lib/composer/composer/../../../lib/private/AppFramework/Http/RequestId.php): Failed to open stream: No such file or directory in /var/www/html/lib/composer/composer/ClassLoader.php on line 571
Warning: include(): Failed opening '/var/www/html/lib/composer/composer/../../../lib/private/AppFramework/Http/RequestId.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/lib/composer/composer/ClassLoader.php on line 571
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/lib/composer/composer/ClassLoader.php:571) in /var/www/html/index.php on line 80
Internal Server Error The server encountered an internal error and was unable to complete your request. Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report. More details can be found in the webserver log.
Fatal error: Uncaught Error: Class "OC\AppFramework\Http\RequestId" not found in /var/www/html/lib/base.php:166 Stack trace: #0 /var/www/html/lib/base.php(583): OC::initPaths() #1 /var/www/html/lib/base.php(1104): OC::init() #2 /var/www/html/index.php(34): require_once('/var/www/html/l...') #3 {main} thrown in /var/www/html/lib/base.php on line 166