-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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]: S3 Primary Storage broken after PHP upgrade to 8.3 #48807
Comments
Sounds like something you wanna check. |
Is this what your Since you're not using AWS, you should be able to leave But this isn't new behavior. |
Thank you for the responses. I removed the 'region' parameter entirely and it works now. Please note that this is changed behaviour: The region parameter has been set to ' |
Then I would considered tjis a bug fixed, not a bug introduced, becasue it should never work as is. |
It's a little confusing, but the DO docs state it must be set to a valid AWS region. They're own example says "Due to an AWS-specific behavior in all versions of the SDK except Python 3, to successfully create a new bucket, you must specify an AWS region, such as us-east-1, in your configuration. This is because, when creating a bucket, the SDK sends an entirely different payload if a custom region is specified, which results in an error." We haven't changed our handling of the Perhaps an earlier version of the AWS SDK ignored your value of What version of Nextcloud did you upgrade from? (I'm presuming you upgraded Nextcloud too recently since 30.0.1 just came out). |
According to DO docs, the region only has to be valid AWS region when creating a bucket (which was not required in this case as I had created the bucket manually beforehand). I was running version NC 29 when I upgraded the server from Ubuntu 22.04 to 24.04, after which the S3 connectivity was broken. I then updated to NC 30.0 (using update/updater.phar which still worked fine) and then 30.0.1 a few days later when it was released in case that would fix the issue. My best guess is that parameter handling has somehow changed between PHP 8.1 and 8.3 (they did introduce sensitive parameters in 8.2) but I'm just happy it all works now. |
Bug description
After upgrading Ubuntu from 22.04 to 24.04 (which also upgrades PHP from 8.1 to 8.3) the AWS S3 ObjectStore is unable to connect to S3 compatible backend (DigitalOcean Spaces). The S3 ObjectStore is configured as the primary storage.
The server worked perfectly with this setup before the OS (and PHP) upgrade, no other changes were performed.
I have downloaded latest AWS PHP SDK into test folder and performed connection tests from same Apache/PHP server and connection works correctly.
Steps to reproduce
1 .Run a nextcloud server with primary storage attached to S3 compatible backend
2. Upgrade server to PHP 8.3
3. Server can no longer access primary storage backend
Expected behavior
The nextcloud server should continue to be able to access the backend.
Nextcloud Server version
30
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.3
Web server
Apache (supported)
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
No login possible
Nextcloud Logs
Additional info
No response
The text was updated successfully, but these errors were encountered: