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

Status Checks Change Notice: Missing privilege separation directory: /run/sshd #2462

Open
benbois opened this issue Nov 27, 2024 · 1 comment

Comments

@benbois
Copy link

benbois commented Nov 27, 2024

Hi there,
I received this email error [Status Checks Change Notice] this morning after a last commands in server yesterday: sudo apt update && sudo apt dist-upgrade

Missing privilege separation directory: /run/sshd
Traceback (most recent call last):
  File "/home/leoon/mailinabox/management/utils.py", line 193, in get_ssh_config_value
    output = shell('check_output', ['sshd', '-T'])
  File "/home/leoon/mailinabox/management/utils.py", line 127, in shell
    ret = getattr(subprocess, method)(cmd_args, **kwargs)
  File "/usr/lib/python3.10/subprocess.py", line 421, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['sshd', '-T']' returned non-zero exit status 255.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/leoon/mailinabox/management/status_checks.py", line 1099, in <module>
    run_and_output_changes(env, pool)
  File "/home/leoon/mailinabox/management/status_checks.py", line 940, in run_and_output_changes
    run_checks(True, env, cur, pool)
  File "/home/leoon/mailinabox/management/status_checks.py", line 50, in run_checks
    if not run_services_checks(env, output, pool):
  File "/home/leoon/mailinabox/management/status_checks.py", line 72, in run_services_checks
    ret = pool.starmap(check_service, ((i, service, env) for i, service in enumerate(get_services())), chunksize=1)
  File "/home/leoon/mailinabox/management/status_checks.py", line 33, in get_services
    { "name": "SSH Login (ssh)", "port": get_ssh_port(), "public": True, },
  File "/home/leoon/mailinabox/management/utils.py", line 183, in get_ssh_port
    port_value = get_ssh_config_value("port")
  File "/home/leoon/mailinabox/management/utils.py", line 197, in get_ssh_config_value
    except subprocess.CalledProcessError:
NameError: name 'subprocess' is not defined

What I have to do to fix this?

@downtownallday
Copy link
Contributor

I believe all that's needed is #2425

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

2 participants