S3 Storage

ou812

Member
Nov 2, 2016
97
12
8
63
I have setup S3 storage as per Fspbx documents, how can I tell if it is connected, I used "aws s3 ls" "s3cmd ls" but I no response.

I know the bucket is working as I have many old Centos Asterisk servers backing up to it using s3cmd.


Thanks,
 
When you try to send mms, does it give you a blue outline around the picture? if you have it instead of an error complaining about missing s3 and the mms came to your cell, most likely it worked, and the PBX will create a folder structure in your S3 bucket that will look like this:
bucketname-->1774635681416.png
Inside today's date folder, you should see your picture.
 
When I send a mms with a image it has a blue box around it and a error message, the cell receives no message. If I send with no image the message is delivered. No file is created in bucket.
 
I have not set an endpoint address, Docs say

For AWS, the endpoint field should usually be left blank.
SettingExample
access_keyAWS_ACCESS_KEY
secret_keyAWS_SECRET_KEY
bucket_namefspbx-message-media
regionus-west-2
endpoint(blank)
 
@ou812 do the following. Enable advanced messaging debug by adding this to your .env file
Code:
MESSAGING_WEBHOOK_DEBUG=true

run this to apply
Code:
php artisan config:cache

Then tail the log. This is a continuous command that you'll need to keep running while trying to send a message.

Code:
tail -f /var/lwww/fspbx/storage/logs/laravel.log


Send a test message and watch the log. It will spit out a very detailed debug. You will see where the message fails.
 
[2026-03-28 01:20:59] production.DEBUG: Error: No s3_storage settings found for domain f5ebca81-f82f-4691-8a3f-ec1535457550 at /var/www/fspbx/app/Services/MessageMediaObjectStorageService.php:33
 
Code:
[2026-03-28 01:20:59] production.DEBUG: CreateOutboundMessageService create() started {"domain_uuid":"f5ebca81-f82f-4691-8a3f-ec1535457550","extension_uuid":"f51b475b-bc00-4d17-bf52-8e12fb20a190","source":"+1905xxxxxxx","destination":"+1416xxxxxxx","origin":"portal","carrier":"voipms","media_count":0,"media_files_count":1,"media_remote_urls_count":0}
[2026-03-28 01:20:59] production.DEBUG: Processing outbound media file {"domain_uuid":"f5ebca81-f82f-4691-8a3f-ec1535457550","is_uploaded_file":true}
[2026-03-28 01:20:59] production.DEBUG: storeBinary started {"domain_uuid":"f5ebca81-f82f-4691-8a3f-ec1535457550","original_name":"Screenshot 2026-01-21 122125.png","provider":"portal","provided_mime_type":"image\/png","binary_size":58932}
[2026-03-28 01:20:59] production.DEBUG: Resolved S3 settings for domain {"domain_uuid":"f5ebca81-f82f-4691-8a3f-ec1535457550","settings_found":false,"bucket":null}
[2026-03-28 01:20:59] production.DEBUG: Error: No s3_storage settings found for domain f5ebca81-f82f-4691-8a3f-ec1535457550 at /var/www/fspbx/app/Services/MessageMediaObjectStorageService.php:33
 
There it is. It can't find the settings you set up. It checks the tenant settings, then defaults to the default settings. Make sure you added them all correctly and that you don't have duplicate settings with empty values. I use AWS S3
1774672382365.png