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 28.0.5 Upgrade - Fail post Install - Unable to load Composer Autoload related file #45076
Comments
That... doesn't make sense. The directory is literally provided by PHP. It's the And I can't find references to that typo anywhere. Can you try running Can confirm that line 25 from this file in your environment looks like the linked one above:
Can you provide the output of:
Did you do the entire update/upgrade from the web ui? Or did you do the code update manually then finish the upgrade via the web UI? |
Yes I couldn't figure out how the __DIR__was getting it wrong I also did a recursive grep across the whole nextcloud directory and couldn't found a reference to the mistype either. The occ integrity:check-core returned no output just a newline which I assume is OK I can confirm that I used the WebUI for the full upgrade. I did try the upgrade using occ after, but it just said that the system was already up to date. I am getting on a plane in a few hours so there will be delay in my subsequent replies.
|
I have also searched the whole filesystem and there is no directory called or which the contains "compnser" |
I also have other PHP applications on the server that use composer that are working just fine.: as was Nextcloud before the minor upgrade. I am running composer version 2.7.4. |
I found some time to focus on this issue as I now urgently need my NextCloud instance for a client related task. I first created a symbolic link 3rdparty/compnser to 3rdpary/composer . That didn't end well! I then updated all the apps (only Calendar had one available) using the cli command
And now everything works as it should. All very strange but there you go. I have subsequently reviewed the Upgrading notes on the NextCloud website and it does instruct that you check all apps are compatible with the latest version. To be honest I have been lax in updating apps before the main updates so I now know going forward. |
Bug description
After upgrading from 28.0.4 to 28.0.5 via the web upgrade interface all Nextcloud pages rerturn a server error.
Reviewing the Apache logs the error appears to be a type in the folder name composer. The cause is unclear, but causes the failure. The error log entry is below:
[Sat Apr 27 15:50:06.291751 2024] [php:error] [pid 3281627:tid 140551961876224] [remote 139.47.56.109:24799] PHP Fatal error: Uncaught Error: Failed opening required '/home/httpd/html/nextcloud/3rdparty/compnser/platform_check.php' (include_path='/home/httpd/html/nextcloud/apps') in /home/httpd/html/nextcloud/3rdparty/composer/autoload_real.php:25\nStack trace:\n#0 /home/httpd/html/nextcloud/3rdparty/autoload.php(25): ComposerAutoloaderInit2f23f73bc0cc116b4b1eee1521aa8652::getLoader()\n#1 /home/httpd/html/nextcloud/lib/base.php(622): require_once('...')\n#2 /home/httpd/html/nextcloud/lib/base.php(1200): OC::init()\n#3 /home/httpd/html/nextcloud/index.php(37): require_once('...')\n#4 {main}\n thrown in /home/httpd/html/nextcloud/3rdparty/composer/autoload_real.php on line 25
Steps to reproduce
Expected behavior
Nextcloud wepages would appear
Installation method
Community Manual installation with Archive
Nextcloud Server version
28
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated from a MINOR version (ex. 22.1 to 22.2)
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
No response
Nextcloud Logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: