# テーマエラーによりビルドに失敗し、サイトが起動しません

**URL:** <https://meta.discourse.org/t/rebuild-fails-from-theme-error-site-wont-start/108713>\
**Category:** Support\
**Created:** [2019 年 2 月 8 日午後 8:30 UTC](https://meta.discourse.org/t/rebuild-fails-from-theme-error-site-wont-start/108713 "2019-02-08T20:30:55Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![FoohonPie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/foohonpie/32/119648_2.png) [@FoohonPie](https://meta.discourse.org/u/FoohonPie)\
**Post date:** [2019 年 2 月 8 日午後 8:30 UTC](https://meta.discourse.org/t/rebuild-fails-from-theme-error-site-wont-start/108713/1 "2019-02-08T20:30:55Z")

</div>

Hello, this morning my Discourse failed for me mid-usage, and rebuilding has me stuck. Initially I had the “Oops!” page, but after my first rebuild it won’t start at all.

- I’ve removed _all_ plugins, official or otherwise, leaving only `docker_manager.git`
- I’ve `git pull`ed from within `/var/discourse` and am `Already up-to-date.`
- I’ve tried `./launcher cleanup`, but `./launcher rebuild app` still fails

The error shown is:

```plaintext
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile' failed with return #<Process::Status: pid 17092 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --verbose --without test --without development --retry 3 --jobs 4'", "su discourse -c 'bundle exec rake db:migrate'", "su discourse -c 'bundle exec rake assets:precompile'"]}
f3a13e3833fdc05123d7232621e11b0a0abdcfadad416474f12ee87f319e0f1e
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one

```

Going up, I see a `rake aborted!` error:

> **Log**
>
> ```plaintext
> Start compiling CSS: 2019-02-08 20:21:39 UTC
> Compiling css for default 2019-02-08 20:21:39 UTC
> precompile target: desktop Dark
> rake aborted!
> ArgumentError: comparison of Integer with nil failed
> /var/www/discourse/app/models/theme.rb:132:in `sort!'
> /var/www/discourse/app/models/theme.rb:132:in `block in transform_ids'
> /var/www/discourse/app/models/theme.rb:88:in `get_set_cache'
> /var/www/discourse/app/models/theme.rb:123:in `transform_ids'
> /var/www/discourse/app/models/theme.rb:332:in `all_theme_variables'
> /var/www/discourse/lib/stylesheet/importer.rb:43:in `block in <class:Importer>'
> /var/www/discourse/lib/stylesheet/importer.rb:151:in `instance_eval'
> /var/www/discourse/lib/stylesheet/importer.rb:151:in `imports'
> /var/www/discourse/vendor/bundle/ruby/2.5.0/gems/sassc-1.11.4/lib/sassc/import_handler.rb:29:in `block in import_function'
> /var/www/discourse/vendor/bundle/ruby/2.5.0/gems/sassc-1.11.4/lib/sassc/engine.rb:40:in `compile_data_context'
> /var/www/discourse/vendor/bundle/ruby/2.5.0/gems/sassc-1.11.4/lib/sassc/engine.rb:40:in `render'
> /var/www/discourse/lib/stylesheet/compiler.rb:38:in `compile'
> /var/www/discourse/lib/stylesheet/compiler.rb:20:in `compile_asset'
> /var/www/discourse/lib/stylesheet/manager.rb:162:in `compile'
> /var/www/discourse/lib/stylesheet/manager.rb:96:in `block (2 levels) in precompile_css'
> /var/www/discourse/lib/stylesheet/manager.rb:89:in `each'
> /var/www/discourse/lib/stylesheet/manager.rb:89:in `block in precompile_css'
> /var/www/discourse/lib/stylesheet/manager.rb:88:in `each'
> /var/www/discourse/lib/stylesheet/manager.rb:88:in `precompile_css'
> /var/www/discourse/lib/tasks/assets.rake:60:in `block (2 levels) in <top (required)>'
> /var/www/discourse/vendor/bundle/ruby/2.5.0/gems/rails_multisite-2.0.6/lib/rails_multisite/connection_management.rb:63:in `with_connection'
> /var/www/discourse/vendor/bundle/ruby/2.5.0/gems/rails_multisite-2.0.6/lib/rails_multisite/connection_management.rb:73:in `each_connection'
> /var/www/discourse/lib/tasks/assets.rake:53:in `block in <top (required)>'
> /var/www/discourse/lib/tasks/assets.rake:235:in `block in <top (required)>'
> /var/www/discourse/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
> 
> ```

I gather there may be a theme and/or component error, but I cannot enter [safe mode](https://meta.discourse.org/t/53504?silent=true) to disable anything because my site won’t start at all.

What do you recommend to do next in this scenario?

Thank you.

---

_[View the full topic](https://meta.discourse.org/t/rebuild-fails-from-theme-error-site-wont-start/108713)._
