Closed autoantwort closed 7 months ago
probably related: https://github.com/nextcloud/calendar/issues/5247
Hm I already get the following at startup
``` 2024-02-23 23:12:41 occ app:enable calendar 2024-02-23 23:12:41 An unhandled exception has been thrown: 2024-02-23 23:12:41 Error: Failed opening required '/var/www/html/apps-extra/calendar/composer/../vendor/autoload.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/apps-extra:/var/www/html/apps-shared:/var/www/html/apps-writable') in /var/www/html/apps-extra/calendar/composer/autoload.php:5 2024-02-23 23:12:41 Stack trace: 2024-02-23 23:12:41 #0 /var/www/html/lib/private/legacy/OC_App.php(161): require_once() 2024-02-23 23:12:41 #1 /var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php(119): OC_App::registerAutoloading('calendar', '/var/www/html/a...') 2024-02-23 23:12:41 #2 /var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php(94): OC\AppFramework\Bootstrap\Coordinator->registerApps(Array) 2024-02-23 23:12:41 #3 /var/www/html/lib/private/Installer.php(128): OC\AppFramework\Bootstrap\Coordinator->runLazyRegistration('calendar') 2024-02-23 23:12:41 #4 /var/www/html/core/Command/App/Enable.php(110): OC\Installer->installApp('calendar', false) 2024-02-23 23:12:41 #5 /var/www/html/core/Command/App/Enable.php(80): OC\Core\Command\App\Enable->enableApp('calendar', Array, false, Object(Symfony\Component\Console\Output\ConsoleOutput)) 2024-02-23 23:12:41 #6 /var/www/html/3rdparty/symfony/console/Command/Command.php(298): OC\Core\Command\App\Enable->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) 2024-02-23 23:12:41 #7 /var/www/html/3rdparty/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) 2024-02-23 23:12:41 #8 /var/www/html/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand(Object(OC\Core\Command\App\Enable), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) 2024-02-23 23:12:41 #9 /var/www/html/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) 2024-02-23 23:12:41 #10 /var/www/html/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) 2024-02-23 23:12:41 #11 /var/www/html/console.php(100): OC\Console\Application->run() 2024-02-23 23:12:41 #12 /var/www/html/occ(11): require_once('/var/www/html/c...') 2024-02-23 23:12:41 #13 {main} ```
We don't perform any build steps automatically. The error tells you taht it could not find the expected autoload file which is generated by composer, so make sure to follow the build steps as related to the calendar issue you linked.
Usually those work across most Nextcloud app repos.
composer install --no-dev
npm ci
npm run build
Ok, so
docker exec -it master-nextcloud-1 /bin/bash
cd apps-extra/calendar/
composer install --no-dev
npm ci
npm run build
did work. Thank you a lot!
I wanted to fix https://github.com/nextcloud/server/issues/43609. Therefore i cloned the repo and executed
./bootstrap.sh calendar
anddocker compose up -d nextcloud
, but I can't activate the calendar app because of the following error: (I unfortunately have no idea if this is related to this repo, I have searched for this error but did not found a solution)Full log
``` { "reqId": "CfR731jgDPRIKzeXwwTl", "level": 3, "time": "2024-02-23T21:38:08+00:00", "remoteAddr": "192.168.65.1", "user": "admin", "app": "PHP", "method": "POST", "url": "/index.php/settings/apps/enable", "message": "require_once(/var/www/html/apps-extra/calendar/composer/../vendor/autoload.php): Failed to open stream: No such file or directory at /var/www/html/apps-extra/calendar/composer/autoload.php#5", "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:122.0) Gecko/20100101 Firefox/122.0", "version": "29.0.0.5", "data": { "app": "PHP" } } { "reqId": "CfR731jgDPRIKzeXwwTl", "level": 3, "time": "2024-02-23T21:38:08+00:00", "remoteAddr": "192.168.65.1", "user": "admin", "app": "index", "method": "POST", "url": "/index.php/settings/apps/enable", "message": "Failed opening required '/var/www/html/apps-extra/calendar/composer/../vendor/autoload.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/apps-extra:/var/www/html/apps-shared:/var/www/html/apps-writable') in file '/var/www/html/apps-extra/calendar/composer/autoload.php' line 5", "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:122.0) Gecko/20100101 Firefox/122.0", "version": "29.0.0.5", "exception": { "Exception": "Exception", "Message": "Failed opening required '/var/www/html/apps-extra/calendar/composer/../vendor/autoload.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/apps-extra:/var/www/html/apps-shared:/var/www/html/apps-writable') in file '/var/www/html/apps-extra/calendar/composer/autoload.php' line 5", "Code": 0, "Trace": [ { "file": "/var/www/html/lib/private/AppFramework/App.php", "line": 184, "function": "dispatch", "class": "OC\\AppFramework\\Http\\Dispatcher", "type": "->", "args": [ [ "OCA\\Settings\\Controller\\AppSettingsController" ], "enableApps" ] }, { "file": "/var/www/html/lib/private/Route/Router.php", "line": 338, "function": "main", "class": "OC\\AppFramework\\App", "type": "::", "args": [ "OCA\\Settings\\Controller\\AppSettingsController", "enableApps", [ "OC\\AppFramework\\DependencyInjection\\DIContainer" ], [ "settings.appsettings.enableapps" ] ] }, { "file": "/var/www/html/lib/base.php", "line": 1059, "function": "match", "class": "OC\\Route\\Router", "type": "->", "args": [ "/settings/apps/enable" ] }, { "file": "/var/www/html/index.php", "line": 49, "function": "handleRequest", "class": "OC", "type": "::", "args": [] } ], "File": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php", "Line": 170, "Previous": { "Exception": "Error", "Message": "Failed opening required '/var/www/html/apps-extra/calendar/composer/../vendor/autoload.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/apps-extra:/var/www/html/apps-shared:/var/www/html/apps-writable')", "Code": 0, "Trace": [ { "file": "/var/www/html/lib/private/legacy/OC_App.php", "line": 161, "function": "require_once" }, { "file": "/var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php", "line": 119, "function": "registerAutoloading", "class": "OC_App", "type": "::", "args": [ "calendar", "/var/www/html/apps-extra/calendar" ] }, { "file": "/var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php", "line": 94, "function": "registerApps", "class": "OC\\AppFramework\\Bootstrap\\Coordinator", "type": "->", "args": [ [ "calendar" ] ] }, { "file": "/var/www/html/lib/private/Installer.php", "line": 128, "function": "runLazyRegistration", "class": "OC\\AppFramework\\Bootstrap\\Coordinator", "type": "->", "args": [ "calendar" ] }, { "file": "/var/www/html/apps/settings/lib/Controller/AppSettingsController.php", "line": 454, "function": "installApp", "class": "OC\\Installer", "type": "->", "args": [ "calendar" ] }, { "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php", "line": 232, "function": "enableApps", "class": "OCA\\Settings\\Controller\\AppSettingsController", "type": "->", "args": [ [ "calendar" ], [] ] }, { "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php", "line": 138, "function": "executeController", "class": "OC\\AppFramework\\Http\\Dispatcher", "type": "->", "args": [ [ "OCA\\Settings\\Controller\\AppSettingsController" ], "enableApps" ] }, { "file": "/var/www/html/lib/private/AppFramework/App.php", "line": 184, "function": "dispatch", "class": "OC\\AppFramework\\Http\\Dispatcher", "type": "->", "args": [ [ "OCA\\Settings\\Controller\\AppSettingsController" ], "enableApps" ] }, { "file": "/var/www/html/lib/private/Route/Router.php", "line": 338, "function": "main", "class": "OC\\AppFramework\\App", "type": "::", "args": [ "OCA\\Settings\\Controller\\AppSettingsController", "enableApps", [ "OC\\AppFramework\\DependencyInjection\\DIContainer" ], [ "settings.appsettings.enableapps" ] ] }, { "file": "/var/www/html/lib/base.php", "line": 1059, "function": "match", "class": "OC\\Route\\Router", "type": "->", "args": [ "/settings/apps/enable" ] }, { "file": "/var/www/html/index.php", "line": 49, "function": "handleRequest", "class": "OC", "type": "::", "args": [] } ], "File": "/var/www/html/apps-extra/calendar/composer/autoload.php", "Line": 5 }, "message": "Failed opening required '/var/www/html/apps-extra/calendar/composer/../vendor/autoload.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/apps-extra:/var/www/html/apps-shared:/var/www/html/apps-writable') in file '/var/www/html/apps-extra/calendar/composer/autoload.php' line 5", "exception": {}, "CustomMessage": "Failed opening required '/var/www/html/apps-extra/calendar/composer/../vendor/autoload.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/apps-extra:/var/www/html/apps-shared:/var/www/html/apps-writable') in file '/var/www/html/apps-extra/calendar/composer/autoload.php' line 5" } } ```