# Unable to rebuild discourse

**URL:** <https://meta.discourse.org/t/unable-to-rebuild-discourse/344214>\
**Category:** Product Support\
**Created:** [December 24, 2024, 2:33pm UTC](https://meta.discourse.org/t/unable-to-rebuild-discourse/344214 "2024-12-24T14:33:01Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![amsaal](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@amsaal](https://meta.discourse.org/u/amsaal)\
**Post date:** [December 24, 2024, 2:33pm UTC](https://meta.discourse.org/t/unable-to-rebuild-discourse/344214/1 "2024-12-24T14:33:01Z")

</div>

when ever i try to ./launcher rebuild app it gives an error.

root@amsaal:~# cd /var/discourse/  
root@amsaal:/var/discourse# ./launcher rebuild app  
x86\_64 arch detected.  
fatal: No such ref: HEAD  
fatal: No such ref: HEAD  
Stopping old container

- /usr/bin/docker stop -t 600 app  
app  
2.0.20241203-0251: Pulling from discourse/base  
Digest: sha256:d5d4e6d361d56745e37f2609db58a6970cc9b3fcd26d0b2dcba23d0cb581f067  
Status: Image is up to date for discourse/base:2.0.20241203-0251  
[docker.io/discourse/base:2.0.20241203-0251](http://docker.io/discourse/base:2.0.20241203-0251)  
/usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups.rb  
/usr/local/bin/pups --stdin  
docker: invalid reference format: repository name (library/#\<NoMethodError) must be lowercase.  
See ‘docker run --help’.  
cat: cids/app\_bootstrap.cid: No such file or directory  
bootstrap failed with exit code 125  
\*\* 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.  
Container name cannot be empty  
root@amsaal:/var/discourse#

---

_[View the full topic](https://meta.discourse.org/t/unable-to-rebuild-discourse/344214)._
