I have hit what looks like the same error message during an attempted update.
Everything had been working until I was prompted that a critical update was needed.
After clicking to update Docker Manager via my forum updates webpage (before updating the rest) - I got this result
You are running an old version of the Discourse image
Updates via the web UI are disabled until you run the latest image. To do so log in to your server using SSH and run:
cd /var/discourse
./launcher rebuild app
Following those instructions got me this result in PuTTy at the second step:
Errno::ENOENT: No such file or directory @ rb_sysopen - /etc/runit/1.d/letsencrypt
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.3.0/lib/pups/replace_command.rb:11:in `read'
replace failed with the params {"filename"=>"/etc/runit/1.d/letsencrypt", "from"=>"/--keylength/", "to"=>"-d www.nzarchitecture.net.nz --keylength"}
bootstrap failed with exit code 1
I am not trying to change anything to do with certificates. I am also not trying to set up multiple domains or redirects
like the original poster, my app.yml file also shows this currently
after_ssl:
- replace:
filename: "/etc/runit/1.d/letsencrypt"
from: /--keylength/
to: "-d www.nzarchitecture.net.nz --keylength"
I followed your suggestion
apt update;apt install -y vim
but result was
vim is already the newest version (2:9.1.0016-1ubuntu7.8).
As for the second suggested step, I have no idea what certificates I want, having had no intention of changing anything.
I Iooked in /usr/local/bin/letsencrypt - but this is an empty folder.
Sorry about my absolute ignorance here!
How can I get my forum back on line, without resorting to restoring a backup that then just needs to be updated again?
A simple series of commands I can paste into PuTTY would be ideal, if this is possible?
Since I am obviously not the only one striking this, is it possible that something needs to be tweaked in the standard docker manager update script invoked from forum websites to avoid this error for other users?