All images broken after adding Amazon S3 keys

Hello there,

We have a self hosted Razuna instance and there were already some folders with images uploaded to razuna. Once I added the Amazon S3 keys all the images now appear to be broken. The error when looking at any file in particular says that the file did not upload correctly. This is the same for both newly uploaded files as well as older files which were local.

Ive done a bit of troubleshooting and research already so I know the following things to be true.

  • The keys validate successfully when clicking the validate button
  • uploading with s3cmd cli from the server directly to s3 works
  • no error is given when uploading new files. but only the name of the file appears, not the image itself (main image or preview/thumbnail)
  • the bucket name is “some-bucket” (all lowercase, no special characters)
  • i cannot find any documentation about how to migrate from a locally stored asset pool to s3 anywhere
  • I have added the keys both in the main admin and the tenant as well (with the bucket)

any help would be wonderful

Cheers,

-G

Database in use	                - h2
Server Operating System	- Linux (ubuntu)
Operating System Version	- 3.13.0-24-generic
CFML Engine                        - BlueDragon
CFML Version                       - 8

UPDATE: Restored from backup.

Are there any instructions on how to migrate the existing assets to S3?

Not sure what happening from your site now , but you can try to flush the database cache then check the image upload again to see how.

Thanks

If you use the local storage and then decide to move the storage to S3, it
obviously does not have your local storage, i.e. files, on S3. You need to
go into your local storage and move all the files within the host-id to the
bucket.

Then within Razuna go to maintenance and re-create all the URLs.

Thanks, Nitai!

So can you confirm the process below for me?

  1. Navigate on the local server to where all assets are stored and move them “as is” to the S3 bucket for that tenant
  2. Add S3 Keys to admin, add S3 keys and bucket name to tenant.
  3. Rebuild URLs

?

Regarding 1, I’ve said:

You need to go into your local storage and move all the files within the
host-id to the bucket.