Cloak icon indicating copy to clipboard operation
Cloak copied to clipboard

"UID does not correspond to a user"

Open AndreaOrru opened this issue 6 years ago • 9 comments

I set up everything according to the guide (master branch).

However, when I try to connect, the server errors out:

WARN[0011] +1 unauthorised UID    UID="..............=="
error="UID does not correspond to a user" remoteAddr="..........:11175"

I'm positive the AdminUID is correct.

AndreaOrru avatar Aug 03 '19 14:08 AndreaOrru

oops sorry I forgot to delete some info from README that's not longer relevant in v2.x. I'll update it

ATM you'll have to manually add new users through https://cbeuw.github.io/Cloak-panel/ (yes it's a bit crude. All numbers you type in are in the units of byte or byte/s). In the future though I'll add the feature of adding unlimited users in the config file directly without having to go through the api

cbeuw avatar Aug 03 '19 15:08 cbeuw

That's cool, however I can't even use the panel - I get the same unauthorized message :(

AndreaOrru avatar Aug 03 '19 20:08 AndreaOrru

Indeed some code are wrong way round. The latest commit should have fixed it. Also I added unit symbols to the panel so it's less confusing

cbeuw avatar Aug 03 '19 21:08 cbeuw

@cbeuw I tested your source code patched two hours ago. still exist the above problem.

WARN[0347] +1 unauthorised UID UID="...." error="UID does not correspond to a user" remoteAddr="....:48898"

alexkatanda avatar Aug 03 '19 23:08 alexkatanda

Indeed some code are wrong way round. The latest commit should have fixed it. Also I added unit symbols to the panel so it's less confusing

Tested, it works! Shadowsocks is very fast, but OpenVPN performance is significantly worse, are you getting a similar experience?

AndreaOrru avatar Aug 04 '19 17:08 AndreaOrru

I just compiled and tested latest cloak2 source

Still can not connect to server.

alexkatanda avatar Aug 04 '19 18:08 alexkatanda

using ck-server -k generated private key and public key. using ck-server -u generated user ID. then set it into config file.

I can not find anything wrong.

alexkatanda avatar Aug 04 '19 18:08 alexkatanda

@alexkatanda Did you try to connect with the AdminUID? ATM you'll have to manually add a user through https://cbeuw.github.io/Cloak-panel/. I'm working on a feature to let you add an arbitrary amount of UID in the config file directly without going through the web page. It should be done in a couple of hours

cbeuw avatar Aug 04 '19 18:08 cbeuw

Thanks for the hard work man, much appreciated!

AndreaOrru avatar Aug 04 '19 18:08 AndreaOrru