Cant enable zrok no matter what I do

After the update zrok has been totally unusable i even went on and started using another tunneling service just because the condition of zrok is so bad its impossible to enable the service no matter what i do i change the endpoint back and forward again and again still cant activate the endpoint whats the problem is there any fix for this or is this sevice just done for?

my attempts enabling zrok:
(c) Microsoft Corporation. All rights reserved.

C:\Users***\Downloads\zrok_1.1.3_windows_amd64>zrok enable ***
⣟ the zrok service returned an error: [POST /enable][401] enableUnauthorized

there was a problem enabling your environment!

you are trying to use the zrok service at: https://api.zrok.io

you can change your zrok service endpoint using this command:

$ zrok config set apiEndpoint

(where newEndpoint is something like: https://some.zrok.io)

C:\Users***\Downloads\zrok_1.1.3_windows_amd64>zrok config set apiEndpoint https://api-v1.zrok.io/
zrok configuration updated

C:\Users***\Downloads\zrok_1.1.3_windows_amd64>zrok enable ***
⣟ the zrok service returned an error: [POST /enable][401] enableUnauthorized

there was a problem enabling your environment!

you are trying to use the zrok service at: https://api-v1.zrok.io/

you can change your zrok service endpoint using this command:

$ zrok config set apiEndpoint

(where newEndpoint is something like: https://some.zrok.io)

C:\Users***\Downloads\zrok_1.1.3_windows_amd64>zrok config set apiEndpoint api-v1.zrok.io
[ERROR] invalid apiEndpoint; please make sure URL starts with http:// or https://

C:\Users***\Downloads\zrok_1.1.3_windows_amd64>zrok config set apiEndpoint https://api-v1.zrok.io
zrok configuration updated

C:\Users***\Downloads\zrok_1.1.3_windows_amd64>zrok enable ***
⣟ the zrok service returned an error: [POST /enable][401] enableUnauthorized

there was a problem enabling your environment!

you are trying to use the zrok service at: https://api-v1.zrok.io

you can change your zrok service endpoint using this command:

$ zrok config set apiEndpoint

(where newEndpoint is something like: https://some.zrok.io)

C:\Users***\Downloads\zrok_1.1.3_windows_amd64>zrok config set apiEndpoint https://api.zrok.io
zrok configuration updated

C:\Users***\Downloads\zrok_1.1.3_windows_amd64>zrok enable ***
⣯ the zrok service returned an error: [POST /enable][401] enableUnauthorized

there was a problem enabling your environment!

you are trying to use the zrok service at: https://api.zrok.io

you can change your zrok service endpoint using this command:

$ zrok config set apiEndpoint

(where newEndpoint is something like: https://some.zrok.io)

C:\Users***\Downloads\zrok_1.1.3_windows_amd64>zrok disable
[ERROR] no environment found; nothing to disable!

C:\Users***\Downloads\zrok_1.1.3_windows_amd64>zrok config reset
Configure your zrok environment

Usage:
zrok config [command]

Available Commands:
get Get a value from the environment config
set Set a value into the environment config
unset Unset a value from the environment config

Flags:
-h, --help help for config

Global Flags:
-p, --panic Panic instead of showing pretty errors
-v, --verbose Enable verbose logging

Use "zrok config [command] --help" for more information about a command.

C:\Users***\Downloads\zrok_1.1.3_windows_amd64>zrok config set apiEndpoint https://api.zrok.io
zrok configuration updated

C:\Users***\Downloads\zrok_1.1.3_windows_amd64>zrok disable
[ERROR] no environment found; nothing to disable!

Is there any fix to this or should i just totally give up on it

On Windows, if you delete %USERPROFILE%\.zrok you will completely reset the configuration on your system.

still cant enable it:
⣟ the zrok service returned an error: [POST /enable][401] enableUnauthorized

there was a problem enabling your environment!

you are trying to use the zrok service at: https://api.zrok.io

you can change your zrok service endpoint using this command:

$ zrok config set apiEndpoint

(where newEndpoint is something like: https://some.zrok.io)

i did change the endpoint to v1 and back to the api one both wont work

Are you able to access https://api-v1.zrok.io in a web browser and log in?

Are you sure you’re using the correct account token with your zrok enable command? The correct account token is availble in a couple of places in the web console.

I’m having the same issue. when I try to rebase the account token from an enabled enviroment I get
”ben@jellyfinmedia:~$ zrok rebase accountToken **********

[ERROR] environment not enabled; 'zrok enable' your environment instead”

It is really frustrating because I tried zrok disable and tried to delete the enviroments via ui but the reserved shares are regenerating after I delete them in the ui. I deleted ~/.zrok but I’m still getting the
”you are trying to use the zrok service at: https://api-v1.zrok.io

you can change your zrok service endpoint using this command:

$ zrok config set apiEndpoint ”
I tried to set it to the api endpoint I have acces to over the ui at https://api-v1.zrok.io/. I’m looking for some assisstance I’ve read the documentation forwards and backwards but I can’t seem to solve this issue.
P.S. If this is a separate issue let me know and I will make a new post. Thanks in advance!

Ok so I didn’t have a typical setup because I wasn’t considering the docker-compose to easily connect my reserved shares and I made system services that were causing the problem. I was able to enble my account no problem after diablling the services

1 Like