For a some time Zrok Agent behaves as expected, it starts shares (i have a number of them in zrok-start-services.sh) and maintaining access to them
And for some reason, at random moment of time Zrok Agent just drops all shares, until I access agent console or restart a whole machine it is running on
So I need some advice on troubleshooting this and accessing more detailed logs of Zrok Agent than zrok agent status provides, because I heavily rely on zrok as a proxy to access my homelab stuff, and also need it all to work after system start, not a big fan of staring at screen 5 seconds after waking up
Hi @kazekagyee, welcome to the community and to zrok (and OpenZiti)!
I wouldn't be a fan of restarting the machine either. Can you capture the logs and inspect them to see if anything stands out that is causing the error? This sounds like a strange problem indeed, we'll need to see if there are any logs that can help figure out what the problem might be. Can you share the output of the agent when it's running and then when it goes 'bad'?
There is a limitation in the v1 version of the zrok agent that when a share or access it is managing encounters an error, the share/access is removed from the agent… it has no notion of a share or access process in an “error” state, and no mechanism for retries.
We’ve soft-launched the new v2 version of zrok in production on zrok.io. The new v2 agent fully supports errored shares and handles retries.
Some of the semantics of how things work in v2 are different… specifically, reserved shares are handled in a completely new way.
There is a video available that demonstrates the new v2 features:
Thanks for the reply!
After updating zrok-agent package to 1.1.10-1 it seems to work flawlessly (-ish, sometimes I get 502 error, but I thinks it’s my zrok’s node fault), and I got no problems with it so far
I’ll keep an eye on the agent’s behavior for a while and update this post if the issue happens again
P.S. I absolutely love this tool and your work for the community!