No shutdown after cron automatic backup

Get help for specific problems
Posts: 2
Joined: 18 Sep 2024

SAMI

Hi,
on a Ubuntu 22.04 64 bits machine, I planed a cron job to backup my files on an external HDD with FreeFileSync (last version 13.7).
I created my cron job with Zeit. The cron job launch well the backup and I checked in FreeFileSync batch "Shutdown at the end", but...
There's no shutdown at the end, but this message :

Impossible d'arrêter le système. (can't stop system)

Failed to set wall message, ignoring: Interactive authentication required.
Failed to power off system via logind: Interactive authentication required.
Failed to start poweroff.target: Interactive authentication required.
See system logs and 'systemctl status poweroff.target' for details.

So, my question is : what is the problem ? where is the problem ? How to solve it ?
Thank you for your answer.

I tried this : launching manually the batch ; backup is OK and Shutdown at the end is OK.
User avatar
Posts: 3909
Joined: 11 Jun 2019

xCSxXenon

See system logs and 'systemctl status poweroff.target' for details.
Seems like it might tell you there
Posts: 2
Joined: 18 Sep 2024

SAMI

poweroff.target is in disabled status (as state and vendor preset)
But
Am I the only one with this problem ? Never happen before ?...