For a brief moment I had S3 uploads to a bucket working. Then I followed the several posts here to make sure it is all correct and now all uploads go local. I cant see any clues in the error log.
How does one go about debugging this complex setup?
One post suggests you have to do it with mostly environment variables, but the other does not, and the admin panel seems to have all the S3 parameters necessary. I am basically confused.
I have double checked all the values for S3 in the system.
The one to follow is Using Object Storage for Uploads (S3 & Clones). Things work a bit differently if you use those environment variables and that’s what you want. Don’t forget the part at the top about the rake task.
I think that there is some issue with knowing just how to create the bucket permissions.
Not looking so good. Launcher rebuild app after adding rake command as per instructions:
FAILED
Pups::ExecError: cd /var/www/discourse && sudo -E -u discourse bundle exec rake s3:upload_assets failed with return #<Process::Status: pid 1347 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn’
exec failed with the params {“cd”=>“$home”, “cmd”=>[“sudo -E -u discourse bundle exec rake s3:upload_assets”]}
c0b19d01faa8c6e1f217b209bdd5293c1a1dcd2016f286d17050c299f676256c
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.