pydio / pydio-booster

Empower your Pydio server with this golang-based dedicated tool.
GNU Affero General Public License v3.0
8 stars 5 forks source link

Upload fails to S3 workspace #6

Open acb-it opened 7 years ago

acb-it commented 7 years ago

Uploading any file to S3 workspace fails with "[s3io] MissingRegion: could not find region configuration" error.

After some debugging, seems booster don't get the parameters defined for the S3 bucket access. The request-options api call is done correctly, but the node.Options.S3Options struct is empty after the succesful http request.

Calling the api from curl with exactly the same url, headers and parameters (same auth tokens also), returns a correct JSON with all the workspace parameters.

acb-it commented 7 years ago

Here comes a little patch i've made to solve the issue. This patch also checks if S3 bucket has upload acceleration enabled and uses it if true.

booster-s3-patch.zip

kingfisher77 commented 6 years ago

Is that patch part of the current version 1.2? We experience the same error. Don't want to build the binary... Could you assist me in applying this patch?

kingfisher77 commented 6 years ago

Finally we got it managed. Applied the patch and compiled for linux|amd64. Now S3 upload works.

BTW - Booster is running as nginx and secured with tls. Therefore the ssl keyfile has to be readable for nginx. This is not best practice and potentially unsecure. Booster running as root results in wrong permissions for files. What do you think?