Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install fails if SSH server not present #2257

Open
nikolajsheller opened this issue May 12, 2023 · 0 comments
Open

Install fails if SSH server not present #2257

nikolajsheller opened this issue May 12, 2023 · 0 comments

Comments

@nikolajsheller
Copy link

nikolajsheller commented May 12, 2023

Problem:

Fresh install of v61.1 fails on fresh ubuntu 22.04 if openssh-server not installed.

Symptom:

No error is shown and no indication is given as to the cause of installation failure.

Specifically this line fails:

setup/system.sh
SSH_PORT=$(sshd -T 2>/dev/null | grep "^port " | sed "s/port //") #NODOC

Root cause:

I saw this on an LXD container, where I accessed the console though LXD, without needing SSH.
openssh-server is not installed during MIAB setup, and no check is performed to see if openssh-server is present, causing installation to break in a very non-obvious manner.

Solution proposal:

I think installing openssh-server by default, prior to detecting the SSH port, would solve the issue.

It would e.g have prevented these problems:
https://discourse.mailinabox.email/t/installation-quits-at-initializing-system-random-number-generator/4581
https://discourse.mailinabox.email/t/installing-miab-v61-1-on-ubuntu-22-04-hostinger-vps-1/10283/3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant