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

Zrok fails to execute any command with a version error #863

Closed
sol-villar opened this issue Feb 11, 2025 · 5 comments
Closed

Zrok fails to execute any command with a version error #863

sol-villar opened this issue Feb 11, 2025 · 5 comments

Comments

@sol-villar
Copy link

Hello everyone,

I'm getting an error when trying to execute any command with zrok, complaining about the version. Trying to update it also doesn't work. My system is a

sol@tl-9:~$ cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.2 LTS"
PRETTY_NAME="Ubuntu 24.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.2 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
sol@tl-9:~$ zrok version
               _    
 _____ __ ___ | | __
|_  / '__/ _ \| |/ /
 / /| | | (_) |   < 
/___|_|  \___/|_|\_\

v1.0.0-rc3 [229070c8]

sol@tl-9:~$ zrok update
zrok environment is already the latest version at 'v0.4'
sol@tl-9:~$ zrok disable
[ERROR]: could not create zrok client (expected a 'v1.0' version, received: 'v0.4.47 [030c87aa]')
sol@tl-9:~$ zrok share public http://localhost/webhook/callback/
[ERROR]: unable to create share (error getting zrok client: expected a 'v1.0' version, received: 'v0.4.47 [030c87aa]')
sol@tl-9:~$ 
@michaelquigley
Copy link
Collaborator

Please use a v0.4 version against zrok.io. There is a prominent message right on the releases page that explains this:

Image

@sol-villar
Copy link
Author

So I went to the releases page, downloaded the 0.4.47 binary, replaced mine and it fixed.

But, here is the issue, I didn't do the update to 1.0. I just went to create a share and started getting the message. So, at some point, the binary was automatically updated to version 1.0. Was it pushed for Debian/Ubuntu repos?

@michaelquigley
Copy link
Collaborator

michaelquigley commented Feb 11, 2025

So I went to the releases page, downloaded the 0.4.47 binary, replaced mine and it fixed.

But, here is the issue, I didn't do the update to 1.0. I just went to create a share and started getting the message. So, at some point, the binary was automatically updated to version 1.0. Was it pushed for Debian/Ubuntu repos?

zrok itself has no in-built mechanism to upgrade the software version on your system. So, something else on your system changed your software version.

The zrok update command might be slightly mislabled, but all it does is update the on-disk format for your ~/.zrok folder. It does not change your software version.

Again, zrok itself has no mechanism to update the software version.

As far as those repos go, I'm not sure that we do anything officially to vend to those repos. But I'll see what I can find out.

@michaelquigley
Copy link
Collaborator

Assuming you're running the zrok-share package? Evidently that does bundle zrok proper, and it is not properly set up to ignore pre-releases. I'll see what I can do to get that fixed up so future pre-releases don't cause issues.

@michaelquigley
Copy link
Collaborator

#864

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants