Skip to content
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

Problems when integrate the S3 on project Symfony 5.1 #239

Open
andreguipeil opened this issue Aug 10, 2020 · 3 comments
Open

Problems when integrate the S3 on project Symfony 5.1 #239

andreguipeil opened this issue Aug 10, 2020 · 3 comments
Assignees

Comments

@andreguipeil
Copy link

Hello!
I receive a error when I was integrating the Gaufrette with S3 adapter, the error is:

You have requested a non-existent parameter "knp_gaufrette.stream_wrapper.protocol".

My config is:

knp_gaufrette:
  adapters:
    cavb_images_adapter:
      aws_s3:
        service_id: 'acme.aws_s3.client'
        bucket_name: ''%env(AWS_BUCKET)%''
        detect_content_type: true
  stream_wrapper: ~
  filesystems:
    cavb_images_fs:
      adapter: cavb_images_adapter

I'm installed VichImage and php-sdk to adapt to S3 but I receive this error and I don't know what I need to do.

My symfony version is: 5.1

@prathje
Copy link

prathje commented Sep 19, 2020

Hey,
I suppose that this is already sufficient:

knp_gaufrette:
    stream_wrapper: ~
    ...

See https://github.com/dustin10/VichUploaderBundle/blob/master/docs/storage/gaufrette.md

@Guuzen
Copy link

Guuzen commented Sep 21, 2020

In my case problem was in vich config filename extension. Symfony 5.1 default kernel code loads only yaml, not yml.

@maciekpaprocki
Copy link

This is probably caused by lack of proper credentials set on s3 client. Make sure you include credentials in your s3 client and that your credentials user have right permissions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants