this post was submitted on 22 Feb 2024
66 points (95.8% liked)

Selfhosted

40296 readers
252 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Edit2: Thanks all for your responses! I have checked the logs, https://lemmy.nz/comment/6192604, and based on that removed tracker-miner-fs as it's a search/index tool which I don't need. No idea why it took over all memory. I'll also get a WiFi Smartplug as a kill switch. Hopefully that solves it. Thanks again heaps!


I've got a HP ProDesk G3 which I'm using as home server, I've installed Ubuntu on it. Earlier this week the services I host on it stopped (Immich & Frigate). I tried to SSH, but it just hung after asking for a password. I could ping it, but it was just unresponsive.

I had to force reboot it manually. This is fine, but I'm not always at home.

The chip has Intel vPro as far as I know, which could be an option, but I have no idea how this works. The documentation on the Intel site seems focused on enterprises. I tried to connect with RealVNC which does not work, so I think I've got to install/configure something on the server first.

I also asked Bing Chat but it came up with non existing packages & commands. Welcome your thoughts!

/edit: I just found this, which seems to be exactly what I need: https://manpages.ubuntu.com/manpages/focal/en/man7/amt-howto.7.html

you are viewing a single comment's thread
view the rest of the comments
[–] pete@lemmy.world 21 points 9 months ago (3 children)

Check if your motherboard has a watchdog function. If the OS can't ping the watchdog every 5 min or whatever you set it to, the board resets.

[–] astraeus@programming.dev 7 points 9 months ago (2 children)

This is how we handled camera servers at one of my former jobs, we just setup HP SFF desktops with Windows and the software and turned on the watchdog timer, always did the trick when power outages or system hangups happened.

[–] jkrtn@lemmy.ml 18 points 9 months ago (1 children)

There's a tale from long ago where someone set up a CD drive tray so that opening it would tap the reset button on a server.

[–] BCsven@lemmy.ca 6 points 9 months ago (1 children)
[–] Revan343@lemmy.ca 3 points 9 months ago (2 children)
[–] BCsven@lemmy.ca 3 points 9 months ago

Awesome, thanks for the link

[–] BCsven@lemmy.ca 2 points 9 months ago

Awesome, thanks for the link

[–] sylverstream 2 points 9 months ago (2 children)

Thanks, I've got a HP SFF as well. Not 100% sure how to turn it on though from Ubuntu. There's a software based version: https://manpages.ubuntu.com/manpages/xenial/en/man8/watchdog.8.html

But I guess that's not the one using the motherboard watchdog function.

[–] pete@lemmy.world 1 points 9 months ago* (last edited 9 months ago)

You need an OS app to run and a setting in the BIOS. The app at the OS level gives a heartbeat to the watchdog module on the mother board. If you miss some heartbeats, the firmware on the motherboard sends the reset command.

[–] astraeus@programming.dev 1 points 9 months ago

You can set it in the BIOS, regardless of OS.

[–] PlutoniumAcid@lemmy.world 4 points 9 months ago (1 children)

This is how you lose data. Hope you have a good backup on a NAS?

[–] pete@lemmy.world 3 points 9 months ago* (last edited 9 months ago)

No, this is a tool that can be used in a well designed architecture. Would I do this with a single database server, probably not. Would I ever run a single database server? Also probably not.

Also, by this point, you've probably already kernel panicked or something. There's not much left that can be saved and you probably needed that backup five minutes before the host came up.

[–] sylverstream 4 points 9 months ago

Thanks! That should work.