Before and/or After scripts exit with error 255

I’m using on Debian Linux succsefully so far.

When i start using before or after scripts i got warnings back and my scripts did not run.
I need some help solving this issue. I need to run my actual script as this is only a test script.

Duplicati is ruuning as a service on the host.

● duplicati.service - Duplicati web-server
Loaded: loaded (/lib/systemd/system/duplicati.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2019-03-02 09:36:52 CET; 24h ago
Main PID: 460 (mono)
Tasks: 15 (limit: 4915)
CGroup: /system.slice/duplicati.service
├─460 DuplicatiServer /usr/lib/duplicati/Duplicati.Server.exe
└─557 /usr/bin/mono-sgen /usr/lib/duplicati/Duplicati.Server.exe

Mar 02 09:36:52 duplicati systemd[1]: Started Duplicati web-server.

this is what I got back from the logs:

2019-03-03 09:14:00 +01 - [Error-Duplicati.Library.Modules.Builtin.RunScript-InvalidExitCode]: The script “/home/robert/” returned with exit code 255


“Errors”: [ “2019-03-03 09:14:00 +01 - [Error-Duplicati.Library.Modules.Builtin.RunScript-InvalidExitCode]: The script “/home/robert/” returned with exit code 255” ],

This is my script:

date > /home/robert/vmtest.log
exit 0

The script succesfully runs when started from the commandline on the host.

What is going wrong here ?

After some additional testing this script seems to run fine :

date > /home/robert/vmtest.log
exit 0

Seems that I’ve overlooked the exclamation mark, silly me :blush: