Skip to content

[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

@module0x90

Description

@module0x90

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • I agree to follow Nextcloud's Code of Conduct.

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

  1. docker stop c19cb7c219e0 # stop existing nextcloud container
  2. docker rm c19cb7c219e0 # delete nextcloud container
  3. docker-compose up -d # up it again per recommended docker-compose

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?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

docker-compose exec -u www-data nextcloud php occ config:list system

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...')

Same output for the other two commands.

List of activated Apps

Same error as above.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions