zfsnap does not work under systemd - errors writing to /dev/stderr
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zfsnap (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
This issue is reported upstream at https:/
The issue is that when running zfSnap under cron which is managed by systemd-cron we get errors like these and snapshots are not created.
```
$ sudo systemctl status cron-daily-
○ cron-daily-
Loaded: loaded (/etc/cron.
Active: inactive (dead) since Sat 2024-05-11 01:02:32 JST; 8min ago
TriggeredBy: ● cron-daily-
Docs: man:systemd-
Process: 57556 ExecStart=
Main PID: 57556 (code=exited, status=0/SUCCESS)
CPU: 1.144s
May 11 01:02:31 neo systemd[1]: Starting cron-daily-
May 11 01:02:31 neo zfSnap[57557]: /usr/sbin/zfSnap: 365: cannot create /dev/stderr: No such device or address
May 11 01:02:31 neo zfSnap[57557]: /usr/sbin/zfSnap: 365: cannot create /dev/stderr: No such device or address
May 11 01:02:32 neo systemd[1]: cron-daily-
May 11 01:02:32 neo systemd[1]: Finished cron-daily-
May 11 01:02:32 neo systemd[1]: cron-daily-
May 11 01:02:32 neo systemd[1]: cron-daily-
```
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: zfsnap 1.11.1-8.1
Uname: Linux 5.15.146.
ApportVersion: 2.28.1-0ubuntu3
Architecture: amd64
CasperMD5CheckR
CloudArchitecture: x86_64
CloudBuildName: server
CloudID: none
CloudName: none
CloudPlatform: none
CloudSerial: 20190521
CloudSubPlatform: config
Date: Sat May 11 01:05:09 2024
PackageArchitec
ProcEnviron:
LANG=C.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=tmux-256color
XDG_RUNTIME_
SourcePackage: zfsnap
UpgradeStatus: Upgraded to noble on 2024-05-09 (1 days ago)