/srv/irclogs.ubuntu.com/2024/09/20/#ubuntu-server.txt

luna_workmorning08:11
=== sdeziel_ is now known as sdeziel
tewardsdeziel: you around?18:10
sdezielteward: I am18:10
tewardsdeziel: regarding bug #2081308 that sounds more like a problem with policy-rc.d or some other issue than the nginx package but you know more about policy-rc.d than I do, is this an nginx bug or a user-has-failed situation?18:11
-ubottu:#ubuntu-server- Bug 2081308 in nginx (Ubuntu) "open() '/etc/nginx/nginx.conf' failed (2: No such file or directory)" [Undecided, Incomplete] https://launchpad.net/bugs/208130818:11
tewardbecause it looks like their issue is they're changing policy-rc.d and it's breaking rather than an actual nginx package issue18:11
sdezielteward: that's a good question. I find the error report (missing `nginx.conf`) weird. How is that file's existence tied to the service starting or not is what I couldn'18:12
sdezielt figure18:12
tewardI know that bryyce has a request to include /etc/nginx/nginx.conf in the apport hooks, but that error sounds more like whatever underlying code is executed during setup is busted.  There is a note in Debian right now that `nginx` doesn't predepend on nginx-common which COULD suggest they somehow installed `nginx` without `nginx-common`18:13
tewardi'm going to set up a VM and see if i can replicate their complaint18:14
tewardbut i'm not 100% sure what 'file' they created in policy-rc.d18:14
tewardsdeziel: wanted to get your POV before I start deep diving :p18:14
tewardbecause this sounds like user has broken something xD18:14
sdeziel`/etc/nginx/nginx.conf.dpkg-new` is the only config I find when using a `exit 0` policy18:15
tewardit SOUNDS like whatever is being done in policy-rc.d is not changing the .dpkg-new config to a normal nginx.conf when nginx.conf doesn't exist18:16
tewardbut that sounds more like a policy-rc.d problem than nginx18:16
sdezielteward: for a reproducer: `lxc launch ubuntu-minimal-daily:24.04 n1` then `lxc exec n1 -- sh -c 'apt-get update -qq && echo exit 0 > /usr/sbin/policy-rc.d && chmod +x /usr/sbin/policy-rc.d && apt-get install -y nginx'`18:16
teward*sips coffee*18:16
tewardsdeziel: stuck on a Windows system right now so gonna just spin from the 24.04 ISO in VMware18:16
tewardi'm at work so i don't have my default linux build >.>18:17
sdezielyeah, that's also my understanding so far hence me asking why `exit 0` was used instead of the more common (to me at least) `exit 101`18:17
tewardsdeziel: it looks like they may be going off 2013 spec / documentation18:18
tewardso it's quite possible things changed since then.  They're quoting Debian specs, that may not apply to Ubuntu18:18
tewardnot sure if you saw their latest reply on that one18:18
tewardbut figured before I deep dive into this being an nginx problem I was going to poke to get your POV18:19
teward(and forgive me for setting it Incomplete, that's just me triaging xD)18:19
sdezielteward: I just found something interesting, with `0`, it fails at `invoke-rc.d --quiet nginx status` during postinst18:21
sdezielwhich feels like user-inflicted issue :)18:21
tewardthat sounds like an invoke-rc.d bug then18:21
tewardsdeziel: the vast majority of bugs I see filed are problems with other packages or user configurations on end systems18:21
tewardso this is either invoke-rc.d being broke or something else, but I don't think it's an nginx bug or we'd see it in a lot of other cases.18:22
sdezielteward: in that case, it seems the failure to be that `invoke-rc.d --quiet nginx status` tries to call the systemd service which then fails due to the `ExecStartPre` trying to validate the config while it's not there yet18:22
tewardsdeziel: this sounds like the debian bug i mentioend 1 momnet18:23
tewardffs i can't type18:23
teward1 moment while I dig18:23
teward#LotsOfEmail18:23
tewardwas this under 24.04?18:23
tewardyes it is18:24
sdeziel24.04, yes18:24
tewardwish people used ubuntu-bug to get the apport hooks triggering too18:24
tewardhttps://bugs.debian.org/cgi-bin/bugreport.cgi?bug=108237318:24
-ubottu:#ubuntu-server- Debian bug 1082373 in nginx "nginx: nginx missing pre-depends on nginx-common" [Important, Open]18:24
tewardthis is new from today, suggesting 1.26.0 doesn't predepend on nginx-common and *can* trigger a case where the config doesn't exist18:24
tewardi think in Debian this is a side effect of the change to the package18:24
tewardbut it may be related.18:25
gmachine24Hi running Ubuntu Server LTS 22.04.05 - my networking suddenly stopped working in the middle of the night last night - not sure of the time. I cannot connect to the Internet and networking software seems to have disappeared. Here's more: https://pastebin.com/QPvRTZ1t20:09
gmachine24Thank you in advance.20:09
tomreyngmachine24: ubuntu server (unlike desktop) defaults to netplan and systemd-networkd for network management20:15
tomreynyou can also use the "ip" command to configure and bring uo network interfaces20:17
gmachine24Any idea how/why this happens?20:19
gmachine24Also, as an aside, I'm being offered the upgrade to the latest version of ubuntu server - I don't normally rush into doing this. 20:21
tomreynnetwork interfaces don't go down by themselves normally. you will need to have system level access to review the logs to find out what happened.20:22
gmachine24Of course. Well - something changed and I again have network connectivity.20:23
gmachine24But I'll check the logs.20:23
gmachine24Thank you for your time.20:23
tomreynin the best case it was just an outage at your remote servers' network connectivity provider20:23
tomreynwhich http://status.THATORGANISATION.TLD would possibly be telling you about20:25
gmachine24I was just thinking something like that - it could have been a brief power outage. I live in a place with many electrical storms and occasional short-lived surges and grid failures.20:25
tomreynthat's what montiroing services are good for - at least you'll know what went down20:27
tomreynnetwork/service availability monitoring, i mean20:27
gmachine24yeah20:28
gmachine24it's so frustrating when you wake up and you think a job will be done and not only is the job not finished but there are more problems20:29
=== utkarsh18 is now known as utkarsh2102

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!