Zrok agent: [POST /share][409] shareConflict

Hello, first of all thanks for this project :heart_eyes:

I am having the following issue, maybe I am not doing it properly or misunderstood something about the agent.

My workflow is the following i create a name:

zrok2 create name git

I start the agent:

zrok2 agent start

Then i do the share:

zrok2 share public 127.0.0.1:8181 -n public:git --headless

That works without issues, my problem is, i have a .service that starts zrok2 agent starton boot
and after reboot i get this error, the only fix so far is do the process all over again, delete name -> create name -> share with the name.

I assume i am doing this wrong? what is the proper way of doing this?

Basically what i want is to always re-share the tunnels on reboot

zrok2 v2.0.4 [6ff92039]

I would take a look at your shutdown behavior. This is the symptom you get when your share has an unclean shutdown or crash without a proper sigterm. If this is a docker container, docker doesn't care about clean shutdowns if you stop the container, you need to issue the zrok command to stop the share before shutdown.