Infos:
- Used Zammad version: 6.4.1
- Used Zammad installation type: package
- Operating system: CentOS Stream 8
- Browser + version: FireFox 135.0b5 (64-біт)
Expected behavior:
- Files saving to S3 storage bucket
Actual behavior:
- Files are saving localy. Empty S3 bucket.
Steps to reproduce the behavior:
- Edited file storage.yaml in /opt/zammad/config/zammad
- Tested with
rails r 'Rails.logger = Logger.new(STDOUT); pp Store::Provider::S3.ping?'→ true - Set in the WebUI Simple Storage (S3) → no errors
- Restart Zammad
- Check in cli:
puts Setting.get('storage_provider')→ S3 - Uploaded new attachment to a newly created ticket (id = 110874, that I took from console)
[37] pry(main)> puts Setting.get(‘storage_provider’)
S3
=> nil
[38] pry(main)> yourfile = Store.find_by(id: 110874)
=> #<Store:0x00007f3e2698bf50
id: 110874,
store_object_id: 2,
store_file_id: 96657,
o_id: “137977”,
preferences: {“Content-Type”=>“image/jpeg”, “resizable”=>true, “content_preview”=>true},
size: “140317”,
filename: “photo_2025-01-22_15-39-10.jpg”,
created_by_id: 3,
created_at: Thu, 23 Jan 2025 04:04:42.306000000 UTC +00:00,
updated_at: Thu, 23 Jan 2025 04:04:42.306000000 UTC +00:00>
[39] pry(main)> puts Store::Provider::File.get_location(yourfile.store_file.sha)
/opt/zammad/storage/fs/f9ba/6345/8239d/84eb5/6e91d80/77dc6a5/3c28113fb8a1cf89253613ea79416944
=> nil