After updating Discourse via SSH using the manual update guide kynic encountered a container startup failure with the error sethostname: invalid argument. tobiaseigen suggested running git pull followed by ./launcher rebuild app, but the same error persisted kynic. tobiaseigen then recommended running discourse doctor, which revealed hostname resolution issues — specifically, a long hostname causing problems kynic. Following this, kynic manually edited /etc/hostname and /etc/hosts to simplify the hostname to discourse-ubuntu, rebooted, and successfully rebuilt the app — resolving the issue. The site was restored, and kynic expressed gratitude for the assistance.
Just did after you said this what I get in end lines:
sudo: unable to resolve host discourse-ubuntu-s-1vcpu-1gb-nyc1-01-1606640043912-s-2vcpu-4gb-n: Name or service not known
Error response from daemon: Container 387d78b520911e93647a157c578f479a9b4ceaf4fef60b19c638a03de162444c is not running
Replacing: SMTP_PASSWORD
Replacing: LETSENCRYPT_ACCOUNT_EMAIL
Replacing: DEVELOPER_EMAILS
Replacing: DISCOURSE_DB_PASSWORD
Replacing: Sending mail to
==================== DONE! ====================