Updated from October 1.1 to 2, s3 filesystem no longer working

Hey all.

I have no experience with October CMS, but I was tasked with updating this website using October 1.1 to October 2 (later we will update to 3)

I followed this guide here:
https://octobercms.com/support/article/rn-13#database-backup

And manage to get the site working in no time, except images & user uploads are just not loading.

No error or anything, they just dont load.

Looking at the image urls, the CMS is trying to load them from localhost. like this:
http://localhost/storage/app/uploads/public/656/d26/ed9/656d26ed9a116035882293.png

Which does not works cause they on amazon S3

My .env seems to be correct, Ive copied the values from the 1.1, which was working.

I have AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION and FILESYSTEM_DRIVER all set (FILESYSTEM_DRIVER=s3), and also STORAGE_DISK=s3 (that was on the old .env)

Also tried setting AWS_URL to the bucket URL, but no change

In the old .env there was also a UPLOAD_PATH and MEDIA_PATH (both set to folders in the bucket), that I copied from the old .env, Im not sure if they are being used now with October 2

Im not sure how to debug this. Any hep will be much appreciated

edit: nevermind, I found the solution: I had to add the bucket URLs as paths on config/system.php on the “storage” section

1 Like