What type of hardware are you using: Raspberry Pi 3, 4+ What YunoHost version are you running: 12.1.12.1 How are you able to access your server: Direct access via physical keyboard/screen
Describe your issue
I woke up this morning unable to access the server via ssh nor web admin. I had the physically walk over and none of the users worked, only root. Swapping the localhost line from the slapd config got the service running but now I cannot get it to get an ipv4 address. It’s been running on a static dhcp lease (configured on router) and everything else in my network is getting addresses after flushing the router. I’m completely lost.
Hmmmokay but that seems unrelated to YunoHost itself like, YunoHost basically does not handle the network stack (except cases where you may have installed VPN/wireguard apps or similar) … Not sure what’s the relation with slapd exactly, maybe it was not happy that the system doesnt have an IPv4 idk
What if you just switch back to “regular” DHCP somehow ? (You can try forcing the system to get an IP from DHCP with dhclient <the interface name >
Thanks for the replies guys. I don’t know what finally fixed the IP issue, but getting the IP back let me finally open the logs and see what went wrong: failed migration that I don’t remember running (I do have unattended-upgrades but got no e-mail about it).
It broke some apps too it seems–there’s no more nextcloud service listed even though the app is in the installed apps list. I’ll have to dig through everything later to see what’s actually still there.
After the failure, if I try anything over ssh I’m met with sudo: you do not exist in the passwd database. Reading out the shadow file confirms that’s true. I then have to physically go to the server, open /etc/default/slapd, swap out the localhost:389 line for the one commented out right above it. Then I get my users back. Obviously, the migration is going to keep making that change.
I do have some edits to my hosts file, but I can ping localhost from the server no problem.
I nuked the ipv6 stuff while I was troubleshooting this morning, could that be the problem? Most of the entries are from ~5 years ago before I had my DNS situation sorted. Even after fixing my DNS everything still worked so I never touched the hosts file again until today.
EDIT: every app wants to redirect to SSO now and all the SSO says is There is no app to list here, either because no web app yet is installed on the server, or because you don't have access to any. Please check with the admins of the server for more infos!
I assure you that is the case, hence my not questioning it. I figured my undertsanding of 0.0.0.0 meaning block MUST be wrong since yes, I was using it like this forever and I just pinged localhost and it worked like I said earlier.
My infrastructure was very different back then. Router with limited config, no DNS inside the network itself. Must have been something I copy/pasted to deal with double NAT maybe. I’m forcing all port 53 traffic to my DNs no matter what, maybe that’s what’s been obscuring the misconfig for so long?
This is exact thing is happening to me! Out of the blue too, things where working earlier this week and now all of sudden no apps are listed, but I do see them in the admin area.
(I do have unattended-upgrades but got no e-mail about it).
Coincidentally I’m also using unattended-upgrades.
Happy to start a new issue if that’s preferred too.
Well, here it is. Although I have no idea how to determine if it’s correct (the way it’s supposed to be) or not… EDIT: Also, to the best of my knowledge, I have never manually edited this file and I’m positive I didn’t edit this file recently.