No such file or directory /etc/pam.d/sshd on rebuild

This is the error I am getting when I did the upgrade via putty command line as shown in the image

THE ERROR!

--------------------
Errno::ENOENT: No such file or directory @ rb_sysopen - /etc/pam.d/sshd
Location of failure: /pups/lib/pups/replace_command.rb:8:in `read'
replace failed with the params {"filename"=>"/etc/pam.d/sshd", "from"=>"session    required     pam_loginuid.so", "to"=>""}
ddb62e0d345db09cb179a21b8d32f8e8eebff02e1fa612885a42a4f8cdece4cd
** 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.
root@maya:/var/discourse#
3 Likes

I have the same problem. After executing ./launcher rebuild app the rebuild stops on the given error.

4 Likes

Hmmm /etc/pam.d/sshd

This is a old Discourse install right?

Can you please show which templates appear at the top of the app.yml file?

2 Likes

I just pushed a fix for that problem - if you pull again and rebuild you should be fine.

7 Likes

Still receiving an error…

remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 7 (delta 2), reused 6 (delta 2), pack-reused 0
Unpacking objects: 100% (7/7), 2.71 KiB | 693.00 KiB/s, done.
From https://github.com/discourse/discourse_docker
   4177d57..8c8dbd0  master     -> origin/master
Updating 4177d57..8c8dbd0
Fast-forward
 templates/sshd.template.yml | 49 -------------------------------------------------
 1 file changed, 49 deletions(-)
 delete mode 100644 templates/sshd.template.yml
root@maya:/var/discourse# ./launcher rebuild app
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
cat: templates/sshd.template.yml: No such file or directory
cd /pups && git pull && /pups/bin/pups --stdin
/usr/bin/docker: invalid reference format: repository name must be lowercase.
See '/usr/bin/docker run --help'.
cat: cids/app_bootstrap.cid: No such file or directory
"docker rm" requires at least 1 argument.
See 'docker rm --help'.
Usage:  docker rm [OPTIONS] CONTAINER [CONTAINER...]
Remove one or more containers
rm: cannot remove 'cids/app_bootstrap.cid': No such file or directory
** 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.
1 Like

Yeah this is me, that will break it even further.

You do not want the sshd template, no reason to be running sshd in your container.

Look at your container config, (app.yml), delete the line with sshd it is legacy you do not need. We stopped using this pattern 3 or so years ago but forgot to remove it properly.

5 Likes

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