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

bug: nixos/autossh: Failed to determine user credentials: No such process #373024

Open
WillPower3309 opened this issue Jan 11, 2025 · 0 comments
Open
Labels
0.kind: bug Something is broken

Comments

@WillPower3309
Copy link
Contributor

WillPower3309 commented Jan 11, 2025

Describe the bug

The autossh module has the following issue when building, if setting user to the name of a non pre-existing user:

Jan 11 15:15:54 server systemd[1]: Started AutoSSH session (plex-tunnel).
Jan 11 15:15:54 server (autossh)[288520]: autossh-plex-tunnel.service: Failed to determine user credentials: No such process
Jan 11 15:15:54 server (autossh)[288520]: autossh-plex-tunnel.service: Failed at step USER spawning /nix/store/hklrrlwx6j75ba6pidkw13qq7dy5djix-autossh-1.4g/bin/autossh: No such process
Jan 11 15:15:54 server systemd[1]: autossh-plex-tunnel.service: Main process exited, code=exited, status=217/USER
Jan 11 15:15:54 server systemd[1]: autossh-plex-tunnel.service: Failed with result 'exit-code'.
the following new units were started: local-fs.target, remote-fs.target
warning: the following units failed: autossh-plex-tunnel.service

Steps to reproduce

Steps to reproduce the behavior:

  1. use a basic autossh config, with a new user, such as:
    autossh.sessions = [{
      extraArguments = "";
      monitoringPort = 32400;
      name = "plex-tunnel";
      user = "plex-tunnel";
    }];
  1. try to build the config

Metadata

  • system: "x86_64-linux"
  • host os: Linux 6.6.52, NixOS, 24.11 (Vicuna), 24.11.20240925.fe866c6
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.18.7
  • nixpkgs: /nix/store/p278fw1vxcvf6vp93bd8sqmimvl9b5ws-source

Notes

Related fix for immich module: #345126

The fix for this is likely just to create the user if it doesn't exist as is done in other modules

@WillPower3309 WillPower3309 added the 0.kind: bug Something is broken label Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

1 participant