-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Nextcloud 24.0.0, Docker image for aarch64: Warning: require(/var/www/html/3rdparty/composer/../symfony/deprecation-contracts/function.php): Failed to open stream: No such file or directory in /var/www/html/3rdparty/composer/autoload_real.php on line 60 #1744
Comments
This affects x86 as well, ran into it today trying to update, however, mine seemed to be up, not sure which step failed. I manually ran the post-update steps and seems fine for me but the initial update was certainly alarming. Warning: require(/var/www/html/3rdparty/composer/../symfony/deprecation-contracts/function Warning: require(/var/www/html/3rdparty/composer/../symfony/deprecation-contracts/function |
Which "post-update steps" are you referring to please? Have you used Docker on x86 or have you tried to upgrade on a 'native' installation? I would expect when using Docker at least that there are no manual steps required. After all, you should 'just' be able to replace the app container with the next one seemlessly - upgrade steps should be run automatically depending on the version it is upgraded from. |
Maybe these aren't necessary, but this is what I do after upgrades (in my rebuild script..) docker="podman" I will likely add some echo's between each so I can identify what's doing what. |
I can't even execute any "php occ" command inside the container, it is always showing 'file not found'. |
Sorry for polluting this issue then, we're likely not facing the same issue, I was able to restart my container and manually clean up a bit (as in re-run my rebuild script steps manually) and mine is okay. |
Any thoughts, ideas please? |
I assume you've tried doing a clean rebuild of your container? I assume you have volumes, config etc all external so the container is ephemeral, if it's not then please don't blow away any data ;) But assuming you do, I'd try that if you have not, and if you have tried it and it didn't help, have you tried pulling down the previous version, ie instead of nextcloud:latest try nextcloud:23 or such? I don't know exactly which container you use, but the hub page lists all the available tags. |
I didn't do a clean rebuild, I always just pulled :latest, on my RPi4. I basically followed https://hub.docker.com/_/nextcloud#running-this-image-with-docker-compose, with the only addition I am using nextcloud:latest. |
I have no idea how to fix this thing. I haven't touched anything there. When the container was updated it all fell apart. Could well be gone in ages and as it wasn't restarted I never noticed. |
"symfony/deprecation-contracts" is referenced in 3rdparty/composer/autoload_static.php but there isn't a 3rdparty/symfony/deprecation-contracts/ at all on my volume for /var/www/html/. |
I had the same issue yesterday. Here's what I did:
|
@rovo89: You're my Nextcloud-saver! Thanks! I noticed that I did had a nextcloud-init-sync.lock file yesterday. So I basically did your steps from the 5th one onwards. The underlaying reason in my case was that the SD card in my RPi 4B is a 'slow' one - Samsung Evo. It's known to be 'slow' with RPis: https://forums.raspberrypi.com/viewtopic.php?t=308428. The upgrade process doesn't copy the data, but it updates Nextcloud itself from /usr/src/nextcloud/ and that's "only" 405MB in size. Enough to have the rsync running for quite a while (like 10 minutes!) due to the slow SD card. I have ordered just a few days ago faster SD cards. Nextcloud is then one of many RPis to benefit from them. |
Bug description
Hi,
since the upgrade to NC 24.0.0 my Docker installation on an RPi4 on aarch64 throwing these errors on cron execution:
Warning: require(/var/www/html/3rdparty/composer/../symfony/deprecation-contracts/function.php): Failed to open stream: No such file or directory in /var/www/html/3rdparty/composer/autoload_real.php on line 60
Fatal error: Uncaught Error: Call to a member function getLogger() on null in /var/www/html/cron.php:189
Stack trace:
#0 {main}
thrown in /var/www/html/cron.php on line 189
When I try to do a "docker-compose exec -u www-data nextcloud php occ" I am getting:
Warning: require(/var/www/html/3rdparty/composer/../symfony/deprecation-contracts/function.php): Failed to open stream: No such file or directory in /var/www/html/3rdparty/composer/autoload_real.php on line 60
An unhandled exception has been thrown:
Error: Failed opening required '/var/www/html/3rdparty/composer/../symfony/deprecation-contracts/function.php' (include_path='/var/www/html/3rdparty/pear/archive_tar:/var/www/html/3rdparty/pear/console_getopt:/var/www/html/3rdparty/pear/pear-core-minimal/src:/var/www/html/3rdparty/pear/pear_exception:/var/www/html/apps:/var/www/html/custom_apps') in /var/www/html/3rdparty/composer/autoload_real.php:60
Stack trace:
#0 /var/www/html/3rdparty/composer/autoload_real.php(43): composerRequire2f23f73bc0cc116b4b1eee1521aa8652('6e3fae29631ef28...', '/var/www/html/3...')
nextcloud/server#1 /var/www/html/3rdparty/autoload.php(12): ComposerAutoloaderInit2f23f73bc0cc116b4b1eee1521aa8652::getLoader()
nextcloud/server#2 /var/www/html/lib/base.php(581): require_once('/var/www/html/3...')
nextcloud/server#3 /var/www/html/lib/base.php(1089): OC::init()
nextcloud/server#4 /var/www/html/console.php(48): require_once('/var/www/html/l...')
nextcloud/server#5 /var/www/html/occ(11): require_once('/var/www/html/c...')
I have deleted the container, forced a re-download - but I am still getting the same error.
Steps to reproduce
Expected behavior
Nextcloud should be running seemlessly as with <24.0.0
Installation method
Official Docker image
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.0
Web server
Other
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud instance doesn't run and Traefik can't talk to it.
Nextcloud Logs
No response
Additional info
traefik:
depends_on:
- dockerproxy
container_name: traefik
hostname: traefik
image: traefik:latest
restart: always
The text was updated successfully, but these errors were encountered: