Repository navigation
nextcloud does not use s3 external storrage #5516
Description
Activity
I have the same problem with Swift storage configured as primary storage. I'm not using docker but Nextcloud 12 in /var/www/html on Ubuntu 16.04 with Apache2.
Swift storage is working fine for me with Nextcloud version 11.0.3.
Found the "solution" this week.
You have to clear first all files from the account. Then make the config change and it will work. There is not migration or detection that you have switched the primary storage backend.This might be more clearly documented thats why I leave this ticket open. Hope @tompinzler this info is helpful.
Hm, I'm trying to activate Swift storage on a brand new installation without existing files. At this point there is only one existing user which was generated during installation and that user has never logged in.
When I try to login I get "Internal Server Error" all the time.But there are always some generated files to "welcome" the user. Delete all these files and empty the trash. And then give it a try.
Tried that. No luck. I deleted the files on the file system but the "Internal Server Error" persists.
@johansmitsnl Thanks for your effort!
I have the same problem trying to set up S3 on Nextcloud 12, I get an error 500. The logs reveal:
{"reqId":"XE5C9YB46DGFuZuqhfyP","level":3,"time":"2017-08-17T15:30:32+00:00","remoteAddr":"192.168.0.1","user":"--","app":"objectstore","method":"GET","url":"\/login","message":"Could not create object urn:oid:6633 for appdata_ocqp2z83n7ro\/js\/core\/merged-share-backend.js.deps: {\"Exception\":\"Aws\\\\S3\\\\Exception\\\\MissingContentLengthException\",\"Message\":\"You must provide the Content-Length HTTP header.\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_external\\\/3rdparty\\\/aws-sdk-php\\\/Aws\\\/Common\\\/Exception\\\/NamespaceExceptionFactory.php(76): Aws\\\\Common\\\\Exception\\\\NamespaceExceptionFactory->createException('Aws\\\\\\\\S3...Searching for the "You must provide the Content-Length HTTP header" error reveals a bug in the AWS SDK due to an old version of Guzzle:
So I guess unless the files_external app is updated to a new AWS SDK version, it won't work :(
Any progress on this? Running into this too...
- addedstaleTicket or PR with no recent activityTicket or PR with no recent activity
on Jun 20, 2018 Seems like this is still an issue. The proposed solution worked for me, but I figure this certainly isn't desired behavior.
- added0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmap
on Jun 12, 2019 - ghost removedstaleTicket or PR with no recent activityTicket or PR with no recent activity
on Jun 12, 2019 I was able to get my instance (mostly) working by using this solution, but it really shouldn't be necessary. I'd really appreciate more documentation in general on using object storage as primary in Nextcloud.
Is this Issue still valid? If not, please close this issue. Thanks! :)
I don't know. The S3 backend was to slow for me so I stopped using it.
Will close it since the last person only comment it almost 2 years ago.
Reacted by Simon L.Reacted by Armando Lüscher
Steps to reproduce
Expected behaviour
The page should load
Actual behaviour
Internal Server Error on the login page
Server configuration
Operating system:
docker nextcloud 12-apache 7b2ad2ebe922
Web server:
docker nextcloud 12-apache 7b2ad2ebe922
Database:
mariadb
PHP version:
docker nextcloud 12-apache 7b2ad2ebe922
Nextcloud version: (see Nextcloud admin page)
12
Updated from an older Nextcloud/ownCloud or fresh install:
fresh
Where did you install Nextcloud from:
docker
Unable to login
List of activated apps:
App list
External storrage + ldap ``` If you have access to your command line run e.g.: sudo -u www-data php occ app:list from within your Nextcloud installation folder ```Nextcloud configuration:
Config report
Are you using external storage, if yes which one: S3
Are you using encryption: no
Are you using an external user-backend, if yes which one: LDAP
Client configuration
Browser:
chrome
Operating system:
Logs
Nextcloud log (data/nextcloud.log)
Nextcloud log