Skip to content

Cron schedule #175

Answered by matus1604
matus1604 asked this question in Q&A
Dec 23, 2021 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Thanks @ppbrown for your advices.

So the problem was SSH connection (in my case, password auth is disable, only publickey is allowed). Solved with generating ssh keys. Zrep was working fine in terminal, because zrep was forwarding ssh key from my session to second server, so I was able to connect without problem. I didn't realize this. Cron cannot use my ssh key, so it was rejected.
There was also second problem, the need of running zrep with sudo in cron with root privileges. This is almost certainly environment setup problem, because zrep run by cron was probably looking for zfs in /usr/bin, but zfs in my case is located in /usr/sbin and it puts error below. I fixed it with symlink.

std…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@matus1604
Comment options

@ppbrown
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by matus1604
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants