Discourse_docker: launcher boostrap fails (workaround included)

Bootstraping a fresh container image fails. Some days ago it worked, “nothing changed”, today it fails. Log:

[0:02:27] Still working on:
[0:02:27]   v8
________ running 'vpython third_party/depot_tools/update_depot_tools_toggle.py
--disable' in
could not resolve options: failed to resolve Python script: stat
no such file or directory
Error: Command 'vpython third_party/depot_tools/update_depot_tools_toggle.py
--disable' returned non-zero exit status 1 in


** 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.

Digging into it: For libv8 there is already a similar problem reported on github, related to a version change in the ruby builder. During bootstraping, an upgrade of builder is performed. I think the problem seems to be related to the version 2.2.15 of bundler (released yesterday). To be honest: I’m not a ruby guy, so maybe the real issue is slightly different.

However, the following workaround worked for me: Change line 148 in templates/web.template.yml from
- gem update bundler
- gem install bundler -v 2.2.14



Was this when trying to build on the stable branch?


Good point! master branch from discourse_docker, params: version: stable in app.yml

Unless you have a reason to run stable and are willing to pay extra attention to some stuff (like this problem) you’ll be better off on tests-passed, it’s much better tested and the one that Discourse uses for their hosting.

This is certainly worth debugging, if bundler just released a bug we want a workaround in place quickly.

@kris.kotlarek can you repro the issue on digital ocean?


There are a number of issues at play here. For now, the smoothest solution is to bump the Gemfile version in stable. See the commit message for more details:


@m.abi please try rebuilding again - it should work work now

1 Like

I expect that one running on the stable to get more, well, stability — ideally security fixes and little else. At least that’s our interpretation of the stable branch. And not that one needs to pay more attention on stable because it might break more often that the bleeding edge.

1 Like

Well, as this case shows, it’s somewhat less like that than you might expect. They do a good job of fixing stuff up quickly (like this one), but they (mostly?) don’t stable on their own hosting, so it’s somewhat less well tested than tests-passed, so except right when there’s a new stable release, I consider tests-passed a somewhat “safer” bet. Not everyone agrees.

@david Build works! Thank you!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.