The error I see is
awk: fatal: cannot open file '/root/.ssh/authorized_keys'
Here’s the full output:
The site seems to still work. Anything to worry about? Should I do something?
The error I see is
awk: fatal: cannot open file '/root/.ssh/authorized_keys'
Here’s the full output:
The site seems to still work. Anything to worry about? Should I do something?
If I remember correctly that is a relic of an old template we used to had, in the days before docker exec -it bash
was a thing.
It’s safe to ignore, but you can also remove the related lines from your app.yml if it bothers you.
Which line may that be?
If you share your app.yml here we may be able to tell exactly which ones.
Hello again @Falco !
Here’s some of my app.yml without sensitive parts:
templates:
- "templates/redis.template.yml"
- "templates/postgres.template.yml"
- "templates/sshd.template.yml"
- "templates/web.template.yml"
- "templates/web.ssl.template.yml"
- "templates/web.letsencrypt.ssl.template.yml"
- "templates/web.ratelimited.template.yml"
expose:
- "2222:22" # fwd host port 2222 to container port 22 (ssh)
- "80:80" # fwd host port 80 to container port 80 (http)
- "443:443" # fwd host port 443 to container port 443 (https)
params:
db_default_text_search_config: "pg_catalog.english"
env:
DISCOURSE_REFRESH_MAXMIND_DB_DURING_PRECOMPILE_DAYS: 30
LANG: en_US.UTF-8
UNICORN_WORKERS: 2
DISCOURSE_DEVELOPER_EMAILS: "......................."
DISCOURSE_HOSTNAME: "lume.community"
DISCOURSE_SMTP_ADDRESS: "................." # (mandatory)
DISCOURSE_SMTP_USER_NAME: "....................." # (optional)
DISCOURSE_SMTP_PASSWORD: "...................." # (optional)
DISCOURSE_SMTP_ENABLE_START_TLS: true # (optional, default true)
LETSENCRYPT_ACCOUNT_EMAIL: ".............."
volumes:
- volume:
host: /var/discourse/shared/standalone
guest: /shared
- volume:
host: /var/discourse/shared/standalone/log/var-log
guest: /var/log
hooks:
after_code:
- exec:
cd: $home/plugins
cmd:
- mkdir -p plugins
- git clone https://github.com/discourse/docker_manager.git
after_web_config:
- replace:
filename: /etc/nginx/nginx.conf
from: /sendfile.+on;/
to: |
server_names_hash_bucket_size 64;
sendfile on;
- file:
path: /etc/nginx/conf.d/discourse_redirect_1.conf
contents: |
server {
listen 80;
server_name infamous.gadi.cc;
return 301 $scheme://forums.old-site.io$request_uri;
}
run:
- exec: echo "Beginning of custom commands"
- exec: awk -F\# '{print $1;}' ~/.ssh/authorized_keys | awk 'BEGIN { print "Authorized SSH keys for this container:"; } NF>=2 {print $NF;}'
- exec: echo "End of custom commands"
comment or remove this template and try rebuilding again. this is most probably the culprit.
EDIT:
The error is originating from this line:
You can comment the following line and try again, the error should then disappear
Thank you! Looks like I inherited that from the previous person that ran the instance. Sorry for wasting your time on this issue that turns out not related to Discourse.