We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When setting a port with services.cockpit.port, the port stays on the default tcp/9090.
Steps to reproduce the behavior:
{ pkgs, ... }: { environment.systemPackages = with pkgs; [ cockpit ]; services.cockpit = { enable = true; port = 80; }; }
switch to config
Observe "Listen" in systemd status
[root@nixos:~]# systemctl status cockpit.socket ● cockpit.socket - Cockpit Web Service Socket Loaded: loaded (/etc/systemd/system/cockpit.socket; enabled; preset: ignored) Drop-In: /nix/store/zagkwj3h5aa5795qi46xjx64bkmwgqd1-system-units/cockpit.socket.d └─overrides.conf Active: active (listening) since Sun 2025-01-05 21:03:14 CET; 26min ago Invocation: 55263513ec454452b811c5d9ace07735 Triggers: ● cockpit.service Docs: man:cockpit-ws(8) Listen: [::]:9090 (Stream) IP: 0B in, 0B out IO: 0B read, 0B written Tasks: 0 (limit: 9425) Memory: 8K (peak: 1.8M) CPU: 33ms CGroup: /system.slice/cockpit.socket
Cockpit socket should listen on the port assigned in the configuration.
Changes in PR 369266 removed some generators, see also here in detail.
Workaround:
systemd.sockets."cockpit" = { socketConfig = { ListenStream = 80; }; };
Does not overwrite the listen on 9090 but at least adds another extra listening socket.
- system: `"x86_64-linux"` - host os: `Linux 6.12.8, NixOS, 24.11 (Vicuna), 24.11.712431.cbd8ec4de446` - multi-user?: `yes` - sandbox: `yes` - version: `nix-env (Nix) 2.24.11` - channels(root): `"nixos-24.11"` - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@lucasew
Note for maintainers: Please tag this issue in your PR.
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When setting a port with services.cockpit.port, the port stays on the default tcp/9090.
Steps To Reproduce
Steps to reproduce the behavior:
switch to config
Observe "Listen" in systemd status
Expected behavior
Cockpit socket should listen on the port assigned in the configuration.
Additional context
Changes in PR 369266 removed some generators, see also here in detail.
Workaround:
Does not overwrite the listen on 9090 but at least adds another extra listening socket.
Metadata
Notify maintainers
@lucasew
Note for maintainers: Please tag this issue in your PR.
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: