# Recompilación fallida - FAILED TO BOOTSTRAP

**URL:** <https://meta.discourse.org/t/rebuild-failed-failed-to-bootstrap/289514>\
**Category:** Self-hosting\
**Created:** [22 Diciembre, 2023 05:21 UTC](https://meta.discourse.org/t/rebuild-failed-failed-to-bootstrap/289514 "2023-12-22T05:21:25Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)\
**Post date:** [22 Diciembre, 2023 06:00 UTC](https://meta.discourse.org/t/rebuild-failed-failed-to-bootstrap/289514/3 "2023-12-22T06:00:47Z")

</div>

> [@AstonJ](#):
>
> Parece que el error es:
> 
> ```plaintext
> I, [2023-12-22T05:08:47.106408 #1] INFO -- : 
> I, [2023-12-22T05:08:47.106576 #1] INFO -- : > su postgres -c 'createdb discourse' || true
> 2023-12-22 05:08:47.147 UTC [55] postgres@postgres ERROR: database "discourse" already exists
> 2023-12-22 05:08:47.147 UTC [55] postgres@postgres STATEMENT: CREATE DATABASE discourse;
> createdb: error: database creation failed: ERROR: database "discourse" already exists
> I, [2023-12-22T05:08:47.148162 #1] INFO -- : 
> I, [2023-12-22T05:08:47.148325 #1] INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
> 2023-12-22 05:08:47.298 UTC [59] postgres@discourse ERROR: role "discourse" already exists
> 2023-12-22 05:08:47.298 UTC [59] postgres@discourse STATEMENT: create user discourse;
> ERROR: role "discourse" already exists
> 
> ```

No, ¡eso es perfectamente normal!

Aquí está la causa del fallo:

> [@AstonJ](#):
>
> ```plaintext
> I, [2023-12-22T05:09:48.456818 #1] INFO -- : > cd /var/www/discourse &amp;&amp; su discourse -c 'bundle install --retry 3 --jobs 4'
> Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
> 
> current directory:
> /var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.1/ext
> /usr/local/bin/ruby extconf.rb
> -- tar zxvfo msgpack-1.1.0.tar.gz
> -- env CFLAGS=nil LDFLAGS=nil CC=nil
> -- ./configure --disable-dependency-tracking --disable-shared --with-pic
> --prefix=/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.1/ext/dst/
> --libdir=/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.1/ext/dst/lib
> ***extconf.rb failed***
> Could not create Makefile due to some reason, probably lack of necessary
> libraries and/or headers. Check the mkmf.log file for more details. You may
> need configuration options.
> 
> Provided configuration options:
> --with-opt-dir
> --without-opt-dir
> --with-opt-include
> --without-opt-include=${opt-dir}/include
> --with-opt-lib
> --without-opt-lib=${opt-dir}/lib
> --with-make-prog
> --without-make-prog
> --srcdir=.
> --curdir
> --ruby=/usr/local/bin/$(RUBY_BASE_NAME)
> extconf.rb:6:in `sys': ./configure --disable-dependency-tracking
> --disable-shared --with-pic
> --prefix=/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.1/ext/dst/
> --libdir=/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.1/ext/dst/lib
> failed, please report to https://github.com/tmm1/rbtrace/issues (RuntimeError)
> from extconf.rb:42:in `block (2 levels) in <main>'
> from extconf.rb:34:in `chdir'
> from extconf.rb:34:in `block in <main>'
> from extconf.rb:30:in `chdir'
> from extconf.rb:30:in `<main>'
> 
> To see why this extension failed to compile, please check the mkmf.log which can
> be found here:
> 
> /var/www/discourse/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/rbtrace-0.5.1/mkmf.log
> 
> extconf failed, exit code 1
> 
> Gem files will remain installed in
> /var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.1 for inspection.
> Results logged to
> /var/www/discourse/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/rbtrace-0.5.1/gem_make.out
> 
> /usr/local/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:125:in `run'
> /usr/local/lib/ruby/site_ruby/3.2.0/rubygems/ext/ext_conf_builder.rb:28:in
> `build'
> /usr/local/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:193:in
> `build_extension'
> /usr/local/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:227:in `block in
> build_extensions'
> /usr/local/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:224:in `each'
> /usr/local/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:224:in
> `build_extensions'
> /usr/local/lib/ruby/site_ruby/3.2.0/rubygems/installer.rb:852:in
> `build_extensions'
> /usr/local/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/rubygems_gem_installer.rb:72:in
> `build_extensions'
> /usr/local/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/rubygems_gem_installer.rb:28:in
> `install'
> /usr/local/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/source/rubygems.rb:198:in
> `install'
> /usr/local/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/installer/gem_installer.rb:54:in
> `install'
> /usr/local/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/installer/gem_installer.rb:16:in
> `install_from_spec'
> /usr/local/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/installer/parallel_installer.rb:156:in
> `do_install'
> /usr/local/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/installer/parallel_installer.rb:147:in
> `block in worker_pool'
> /usr/local/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/worker.rb:62:in
> `apply_func'
> /usr/local/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/worker.rb:57:in
> `block in process_queue'
> /usr/local/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/worker.rb:54:in
> `loop'
> /usr/local/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/worker.rb:54:in
> `process_queue'
> /usr/local/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/worker.rb:90:in
> `block (2 levels) in create_threads'
> 
> An error occurred while installing rbtrace (0.5.1), and Bundler cannot continue.
> 
> In Gemfile:
> rbtrace
> 
> ```

---

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