Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zfs-zed.service broken when building native-deb #15638

Open
Maxr1998 opened this issue Dec 5, 2023 · 0 comments
Open

zfs-zed.service broken when building native-deb #15638

Maxr1998 opened this issue Dec 5, 2023 · 0 comments
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)

Comments

@Maxr1998
Copy link

Maxr1998 commented Dec 5, 2023

System information

Type Version/Name
Distribution Name Ubuntu (Server)
Distribution Version 22.04.3
Kernel Version #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2
Architecture amd64
OpenZFS Version zfs-2.2.2-1 / zfs-kmod-2.2.2-1

Describe the problem you're observing

When installing ZFS 2.2.2 from source using the native-deb target, the /lib/systemd/system/zfs-zed.service file uses an incorrect path for zed (/sbin/zed instead of /usr/sbin/zed). Because zed is moved during the installation process, the path specified in the zfs-zed.service file is incorrect. It should probably be patched in the packaging step as well.

Describe how to reproduce the problem

  • Reboot after installing the zfs versions as specified above
  • Start zfs-zed.service
  • Watch it fail due to No such file or directory

Include any warning/errors/backtraces from the system logs

Dez 05 23:44:26 iridium systemd[1]: Started ZFS Event Daemon (zed).
Dez 05 23:44:26 iridium systemd[2232]: zfs-zed.service: Failed to locate executable /sbin/zed: No such file or directory
Dez 05 23:44:26 iridium systemd[2232]: zfs-zed.service: Failed at step EXEC spawning /sbin/zed: No such file or directory
Dez 05 23:44:26 iridium systemd[1]: zfs-zed.service: Main process exited, code=exited, status=203/EXEC
Dez 05 23:44:26 iridium systemd[1]: zfs-zed.service: Failed with result 'exit-code'.
Dez 05 23:44:26 iridium systemd[1]: zfs-zed.service: Scheduled restart job, restart counter is at 1.
Dez 05 23:44:26 iridium systemd[1]: Stopped ZFS Event Daemon (zed).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant