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

AuthFailedException: Insert userIpSessionCount to local cache failed #4374

Closed
doublex opened this issue Apr 26, 2022 · 10 comments
Closed

AuthFailedException: Insert userIpSessionCount to local cache failed #4374

doublex opened this issue Apr 26, 2022 · 10 comments
Assignees
Labels
severity/minor Severity of bug type/bug Type: something is unexpected
Milestone

Comments

@doublex
Copy link

doublex commented Apr 26, 2022

After updating from 3.02 -> 3.1
We have a multi-threaded environment - I don't understand this error message:

Traceback (most recent call last):
File "/home/mastermind/harmony/nebulaapi.py", line 32, in execute
with connection.session_context(config.nebula['user'], config.nebula['pass']) as session:
File "/usr/local/lib/python3.9/contextlib.py", line 117, in __enter__
return next(self.gen)
File "/home/user/.local/lib/python3.9/site-packages/nebula3/gclient/net/ConnectionPool.py", line 130, in session_context
session = self.get_session(*args, **kwargs)
File "/home/user/.local/lib/python3.9/site-packages/nebula3/gclient/net/ConnectionPool.py", line 109, in get_session
auth_result = connection.authenticate(user_name, password)
File "/home/user/.local/lib/python3.9/site-packages/nebula3/gclient/net/Connection.py", line 112, in authenticate
raise AuthFailedException(resp.error_msg)
nebula3.Exception.AuthFailedException: b'Insert userIpSessionCount to local cache failed.'
@doublex
Copy link
Author

doublex commented Apr 26, 2022

This happens with nebula-python 3.0 and nebula-python 3.1 (server always nebula-graph 3.1)

@doublex
Copy link
Author

doublex commented Apr 30, 2022

This is what nebula-graphd.dbspace.root.log.ERROR reports:

E20220430 16:53:39.828351 22125 GraphService.cpp:97] Create session for userName: nebulauser, ip: ::ffff:1.2.3.4 failed: Insert userIpSessionCount to local cache failed.
E20220430 16:53:44.745187 22127 GraphService.cpp:97] Create session for userName: nebulauser, ip: ::ffff:1.2.3.4 failed: Insert userIpSessionCount to local cache failed.

@doublex
Copy link
Author

doublex commented Jul 1, 2022

I forgot to mention: We use short living connections

@wey-gu
Copy link
Contributor

wey-gu commented Jul 2, 2022

Looks like this is a nebula graph core related, am trying to transfer it there for more exposure.

userName: nebulauser, ip: ::ffff:1.2.3.4 failed: Insert userIpSessionCount to local cache failed.

For some reason userIpSessionCount_.emplace(key, std::make_shared<SessionCount>()); failed?

@wey-gu wey-gu transferred this issue from vesoft-inc/nebula-python Jul 2, 2022
@doublex
Copy link
Author

doublex commented Jul 22, 2022

I think this issue is gone in nebula 3.2

@doublex doublex closed this as completed Jul 22, 2022
@doublex
Copy link
Author

doublex commented Jul 22, 2022

Happens also with nebula 3.2:

E20220722 19:11:24.176733 13831 GraphService.cpp:105] Create session for userName: nebulauser, ip: ::ffff:2.3.4 failed: Insert userIpSessionCount to local cache failed.

@doublex doublex reopened this Jul 22, 2022
@wey-gu
Copy link
Contributor

wey-gu commented Jul 25, 2022

hi @doublex , I am suspecting that could this be an issue in the ipv6 env? could you help confirm you are on/configuring with ipv6 environment?

@wey-gu wey-gu added the type/bug Type: something is unexpected label Jul 25, 2022
@wey-gu
Copy link
Contributor

wey-gu commented Jul 25, 2022

cc @Sophie-Xie

@Sophie-Xie Sophie-Xie added this to the v3.3.0 milestone Jul 25, 2022
@doublex
Copy link
Author

doublex commented Jul 25, 2022

Would surprise me. The server network interface has an IPv6 configured.
But the python-client connects via an IPv4.

@Aiee
Copy link
Contributor

Aiee commented Sep 14, 2022

This PR tests the compatibility of ipv6 vesoft-inc/nebula-python#224
Feel free to reopen the issue if the problem remains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/minor Severity of bug type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

5 participants