Skip to content

files_external: folders cannot be created in Amazon S3 mounts #10501

Closed

Description

@andrenarchy

In an Amazon S3 mount I cannot create folders in owncloud. The log shows the folloging error message:

files_external: A header you provided implies functionality that is not implemented

It's not related to permissions on the S3 side because the user is able to create folders in the AWS console.

Any idea about what's wrong?

Activity

  1. andrenarchy commented on Aug 18, 2014

    @andrenarchy
    ContributorAuthor

    This bug seems to be related to aws/aws-sdk-php/issues/72. I'll provide a PR which fixes the issue for me.

  2. paulstaab commented on Sep 11, 2014

    @paulstaab

    I'm also affected by this problem (OC 7.0.2; S3 external storage; encryption enabled). Creating files in the mounted folder via web-interface works, creating folders fails with the above error message.

    I don't know if it is related, but uploading both files and folders with the desktop sync client into the mounted folder also fails with

    {"app":"files_external","message":"A header you provided implies functionality that is not implemented","level":3,"time":"2014-09-11T18:24:46+00:00"}
    {"app":"remote","message":"Encryption library: Decryption (symmetric) of content failed","level":4,"time":"2014-09-11T18:24:57+00:00"}
    {"app":"PHP","message":"Session has been closed - no further changes to the session as allowed at \/var\/www\/virtual\/prs\/html\/owncloud\/lib\/private\/session\/memory.php#80","level":3,"time":"2014-09-11T18:24:57+00:00"}
    

    I'm happy to open a separate issue if you think that's something different.

  3. joseasrocha commented on Sep 16, 2014

    @joseasrocha

    Same problem here... can create files but not folders.

    This is a major issue if we want to use external storage with owncloud.

  4. added a commit that references this issue on Oct 2, 2014
    056b978
  5. PVince81 commented on Oct 6, 2014

    @PVince81
    Contributor
  6. butonic commented on Oct 6, 2014

    @butonic
    Contributor

    works with #11375

  7. rygo6 commented on Apr 22, 2015

    @rygo6

    I just created a new instance of ownCloud 8.0.2-0 through Bitnami and I cannot create folders on the S3 bucket. I can upload files through the web interface, but I upload, nor create folders. It gives me this error:
    Could not create folder
    Error when creating the folder

    Also when I try to sync a folder to the S3 mount through the owncloud desktop app on OSX it errors when it tries to upload the directors. But it uploads the files just fine.

    I've messed around with applying different policies to users and groups on AWS that I saw mentioned in forum posts but nothing works.

  8. rygo6 commented on Apr 23, 2015

    @rygo6

    Small update. So I resized the instance OwnCloud was on. Meaning a shut down and restart. Then it started to allow me to create folders on the S3 bucket and also sync everything just fine!

    But now I cannot delete folders on the S3 bucket!

    All it says is:
    Could not delete: folder name

    Folders can be deleted if it is synced through the desktop app.

  9. PVince81 commented on Apr 23, 2015

    @PVince81
    Contributor
  10. echo-devnull commented on Oct 9, 2015

    @echo-devnull

    It seems this problem only occurs when you add an S3 bucket in a different location from "US standard". For instance when one creates a bucket in "eu-central-1" (Frankfurt), you cannot create folders.

    This is a shame as using buckets in US Standard significantly lowers the upload and download speeds from Europe.

  11. PVince81 commented on Oct 9, 2015

    @PVince81
    Contributor

    @MarkMaas can you post details ? (logs, OC version, etc)

  12. beaspider commented on Nov 3, 2015

    @beaspider

    I get the same error @andrenarchy originally provided when trying to create folders in a region other than US Standard (I have also noticed you can't save when ticking the checkboxes to Enable SSL or Enable Path Style in settings for External Storage - Amazon S3 again with a region other than US Standard for your bucket)

    I am running ownCloud 8.2.0 via Docker e.g. $ docker run -d -p 80:80 owncloud:8.2

    files_external Exception: {"Exception":"Aws\S3\Exception\NotImplementedException","Message":"A header you provided implies functionality that is not implemented","Code":0,"Trace":"#0 /var/www/html/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Exception/NamespaceExceptionFactory.php(76): Aws\Common\Exception\NamespaceExceptionFactory->createException('Aws\S3\Exceptio...', Object(Guzzle\Http\Message\EntityEnclosingRequest), Object(Guzzle\Http\Message\Response), Array)\n#1 /var/www/html/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Exception/ExceptionListener.php(55):

  13. locked as resolved and limited conversation to collaborators on Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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