# How to debug S3 uploads

**URL:** <https://meta.discourse.org/t/how-to-debug-s3-uploads/213616>\
**Category:** Self-hosting\
**Created:** [January 2, 2022, 2:06am UTC](https://meta.discourse.org/t/how-to-debug-s3-uploads/213616 "2022-01-02T02:06:07Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Andro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andro/32/173721_2.png) [@Andro](https://meta.discourse.org/u/Andro)\
**Post date:** [January 2, 2022, 2:08pm UTC](https://meta.discourse.org/t/how-to-debug-s3-uploads/213616/4 "2022-01-02T14:08:27Z")

</div>

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.

---

_[View the full topic](https://meta.discourse.org/t/how-to-debug-s3-uploads/213616)._
