What type of hardware are you using: Raspberry Pi 3, 4+
What YunoHost version are you running: YunoHost 12.0.17 (stable)
What app is this about: Watchdog
Describe your issue
Hi,
I tried to install the Watchdog app GitHub - YunoHost-Apps/watchdog_ynh: Service to automagically reboot your server in case of freeze, packaged for YunoHost on my Pi 5 (as I sometimes have freeze problems), but it failed.
Thank you for any help.
Share relevant logs or error messages
https://paste.yunohost.org/raw/catelulavu
Can you try running sudo apt install watchdog
then sudo ls -ld /dev/watchdog
?
1 Like
Thank you. It seems it was installed although when I first tried it said the installaion was not successful.
When I tried your command I had:
sudo apt install watchdog
[sudo] password for arnauld:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
watchdog is already the newest version (5.16-2~rpt2).
watchdog set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
and
sudo ls -ld /dev/watchdog
crw------- 1 root root 10, 130 Jun 29 12:02 /dev/watchdog
Does it mean it is installed and running? How can I check it is working as the docs say:
It better (only?) works if your server has a hardware watchdog device.
And I don’t have such a hardware device.
The dependency is installed and running. You may try to install the app again.
1 Like
OK I see! There is a bug in the install script. You may try to install the app in a few hours after the catalog is updated.
1 Like
I don’t know if the catalogue was updated, but I just tried, and it failed again, here is the installation log: https://paste.yunohost.org/raw/ebubibuhoz
That’s weird… can you try this in a terminal ?
bash
YNH_HELPERS_VERSION=2.1 source /usr/share/yunohost/helpers
if ! ynh_in_ci_tests; then echo "fail1"; fi
if [ ! -f /dev/watchdog ]; then echo "fail2"; fi
if ! ynh_in_ci_tests && [ ! -f /dev/watchdog ]; then echo "fail3"; fi
arnauld@arnauld:~ $ YNH_HELPERS_VERSION=2.1 source /usr/share/yunohost/helpers
if ! ynh_in_ci_tests; then echo "fail1"; fi
if [ ! -f /dev/watchdog ]; then echo "fail2"; fi
if ! ynh_in_ci_tests && [ ! -f /dev/watchdog ]; then echo "fail3"; fi
fail1
fail2
fail3