!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

857 Members
Declaratively manage your switching, routing, wireless, tunneling and more. | Don't rely on `networking.*` use systemd-networkd and NetworkManager instead. | Set `SYSTEMD_LOG_LEVEL=debug` to debug networking issues with networkd | No bad nft puns, please. | Room recommendations: #sysops:nixos.org245 Servers

Load older messages


SenderMessageTime
1 Aug 2025
@adam:robins.wtfadamcstephensima_a39bd14.jpeg
Download ima_a39bd14.jpeg
01:38:52
@hexa:lossy.networkhexa (clat on linux when)now where does that link go 😄 01:39:42
@adam:robins.wtfadamcstephensThey were going to drop the realtek target completely for 24.10 until it was updated past 5.1501:40:01
@hexa:lossy.networkhexa (clat on linux when)yeah01:40:06
@hexa:lossy.networkhexa (clat on linux when)or at least make it source-only01:40:14
@adam:robins.wtfadamcstephenslooks like it's actually on 6.12 now in main https://github.com/openwrt/openwrt/pull/1913901:41:35
@hexa:lossy.networkhexa (clat on linux when)ok, that's decent01:42:45
2 Aug 2025
@saiko:knifepoint.netKatalin 🔪 changed their profile picture.00:28:14
3 Aug 2025
@adrielus:matrix.orgprescientmoon changed their display name from Adriel to prescientmoon.14:31:40
@x10an14:matrix.orgx10an14 joined the room.19:38:36
@x10an14:matrix.orgx10an14

Anyone familiar with this NGINX error?

aug. 03 20:49:52 nas-2024 systemd[1]: nginx.service: Scheduled restart job, restart counter is at 4.
aug. 03 20:49:52 nas-2024 systemd[1]: Starting Nginx Web Server...
aug. 03 20:49:52 nas-2024 nginx-pre-start[2806389]: nginx: [emerg] cannot load certificate "/persist/var/lib/tailscale/certs/cert.pem": BIO_new_file() failed (SSL: error:8000000D:system library::Permission denied:calling fopen(/persist/var/lib/tailscale/certs/cert.pem, r) error:10080002:BIO routines::system lib)
aug. 03 20:49:52 nas-2024 nginx-pre-start[2806389]: nginx: configuration file /nix/store/s4f1q4wpfzq07rlp1pkbcavzrgn31lyi-nginx.conf test failed
aug. 03 20:49:52 nas-2024 systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
aug. 03 20:49:52 nas-2024 systemd[1]: nginx.service: Failed with result 'exit-code'.
aug. 03 20:49:52 nas-2024 systemd[1]: Failed to start Nginx Web Server.

I'm trying to start services.immich w/SSL corts through my services.tailscale, as illustrated in this paste: https://paste.sr.ht/~x10an14/6dc6db515a8695a3a7722b86ff26f2a6aa171af8

I've tried:

  1. Copying certs manually into path
  2. Chowning them from root to nginx ownership
  3. Testet the nginx config file in online browser validators (it passes)
  4. Searchin after the error online (can't really find anything w/mention of tailscale, only SELinux/AppArmor really, neither in use on this machine)
19:48:48
@x10an14:matrix.orgx10an14*SSL certs19:53:13
@x10an14:matrix.orgx10an14** tested19:53:29
@magic_rb:matrix.redalder.orgmagic_rb

Can you send the output of:

  1. systemctl show nginx | grep -E 'User|Group' (hopefully i got this right, if not, you know what i meant)
  2. ls -lah /persist/var/lib/tailscale/certs
22:03:45
@x10an14:matrix.orgx10an14
In reply to @magic_rb:matrix.redalder.org

Can you send the output of:

  1. systemctl show nginx | grep -E 'User|Group' (hopefully i got this right, if not, you know what i meant)
  2. ls -lah /persist/var/lib/tailscale/certs
Sure, both of these are in the paste link though
22:09:31
@x10an14:matrix.orgx10an14

Here you go:

[2025-08-04 00:10:54] 0 x10an14@nas-2024:~/Documents/sr.ht/nix-configs
-> $ systemctl show nginx | grep -Ei '(user|group)=' && sudo ls -lah /persist/var/lib/tailscale/certs
User=nginx
Group=nginx
DynamicUser=no
SameProcessGroup=no
total 40K
drwxr-xr-x 2 root  root     7 aug.   3 20:29 .
drwx------ 4 root  root     9 aug.   3 20:29 ..
-rw------- 1 root  root   227 aug.   3 20:29 acme-account.key.pem
-rw-r--r-- 1 nginx nginx 2,9K aug.   3 20:29 cert.pem
-rw------- 1 nginx nginx  227 aug.   3 20:29 key.pem
22:11:27
@magic_rb:matrix.redalder.orgmagic_rb
In reply to @x10an14:matrix.org
Sure, both of these are in the paste link though
oh are they? sorry 😅
22:14:40
@magic_rb:matrix.redalder.orgmagic_rb okay then, try to debug it by becoming nginx :P do nix shell nixpkgs#runit and then chpst -u nginx:nginx bash then try to access it yourself 22:15:50
@magic_rb:matrix.redalder.orgmagic_rbif youre able to repro it from a shell its easier to debug22:15:59
@x10an14:matrix.orgx10an14
In reply to @magic_rb:matrix.redalder.org
if youre able to repro it from a shell its easier to debug
Gimmie 10min =)
22:16:33
@magic_rb:matrix.redalder.orgmagic_rbim going to sleep in 2 minutes :(22:16:49
@hexa:lossy.networkhexa (clat on linux when)doubt22:17:06
@magic_rb:matrix.redalder.orgmagic_rbi can help tomorrow in the eve if no-one else steps up, also over vc so that youre not typing22:17:11
@magic_rb:matrix.redalder.orgmagic_rb
In reply to @hexa:lossy.network
doubt
oi, quiet over there
22:17:20
@magic_rb:matrix.redalder.orgmagic_rb(did i spell it right?)22:17:34
@magic_rb:matrix.redalder.orgmagic_rb(yes i did)22:17:44
@hexa:lossy.networkhexa (clat on linux when)not sure what language you were aiming for22:17:49
@x10an14:matrix.orgx10an14
In reply to @magic_rb:matrix.redalder.org
i can help tomorrow in the eve if no-one else steps up, also over vc so that youre not typing
Aight, thanks for tip, I'll try and take a gander at it =) I'll report any progress!
22:18:36
@magic_rb:matrix.redalder.orgmagic_rb:)22:18:56
@x10an14:matrix.orgx10an14
In reply to @magic_rb:matrix.redalder.org
okay then, try to debug it by becoming nginx :P do nix shell nixpkgs#runit and then chpst -u nginx:nginx bash then try to access it yourself
Managed to switch user like this, as well as triggering the same error through running the service's ExecStartPre nix store script (basically just nginx -c <conf file> -t)
22:57:38

Show newer messages


Back to Room ListRoom Version: 6