I have error when try to upgrade/rebuild my discourse

Is this a standard install? What version is the installation at according to a view-source, or the dashboard?

What does this bit of your *.yml file look like?

  ## Which Git revision should this container use? (default: tests-passed)
  #version: tests-passed

Please post much more of your log file: the last several hundred lines should be enough.