OCA / storage

GNU Affero General Public License v3.0
66 stars 148 forks source link

Module does not work with S3 when deployed in Odoo docker container image #350

Open archipell opened 4 months ago

archipell commented 4 months ago

Module

fs_storage

Describe the bug

Prerequisite : Odoo is deployed with a Docker container and so running on Ubuntu image, fs_storage is installed, configuring a S3 storage like in development environment. Behavior is different between development and docker-deployed environment. When attaching an ir_attachment to S3, it either does not work or Odoo runs until timeout.

To Reproduce

Affected versions: v16.0. Python: 3.9. Odoo docker image: v16.0 from 01/01/2024. fsspec: 2024.2.0

Steps to reproduce the behavior:

  1. Install docker image on web server (we use Scaleway provider to create an instance and install docker + docker-compose), contact me if any help is needed
  2. Install fs_storage module in Odoo and configure an S3 attachment storage for res.partner for example
  3. Add an attachment to a res.partner
  4. First try resolves to not adding the attachment at all (when refreshing with F5, attachment disappears). Second try, application runs with spinner indefinitely (until timeout)

Expected behavior Attachment should be created in S3 mentioned directory.

Additional context I use an Object storage (from Scaleway) (S3).