I was testing using Minio as the backend for the amazon-s3 storage engine.
I configured all of the settings, and first tried to migrate a file to amazon-s3 (with
--copy) and it failed, ok, configuration error in Minio (turns out if the bucket doesn’t exist beforehand, there is no error returned and Phabricator thinks the file got uploaded correctly).
So then I created the bucket, tried migrate again, and this time it worked.
Now, happy with my tests, I wanted to disable S3 storage. I deleted the
storage.s3.bucket key from the config, thinking that it will not use S3.
When I upload an image to a comment box by pasting from my clipboard the image buffer (take a screenshot with printscreen, paste), the image itself uploads fine to the
blob engine, but the
image-preview.png which is autogenerated is broken, and when trying to view the file in the web interface I just get:
Unhandled Exception ("PhabricatorFileStorageConfigurationException") No 'storage.s3.bucket' specified!
And now all image thumbnails are trying to get to S3, and I don’t know how to stop S3 from being used! I deleted the
amazon-s3.endpoint key as well, but it isn’t changing anything.
So, for my corrupt files (where the migrate failed) I can just delete it and re-upload it, but I’d love to have thumbnails back.
One more note: I restarted the webserver and phd, then I saw a small setup error saying “incomplete S3 configuration”, and the page said “S3 is disabled until you fill in missing details” (cool, I thought, maybe its fixed). To be safe, I deleted all amazon-s3 keys, reload page, OK error gone.
Paste image from clipboard to comment: preview still broken with
No 'storage.s3.bucket' specified!