-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Token is not valid: Token does not exist #30394
Comments
Also seeing this. Would be useful to get a comment on the status of this. I can't even determine if it's actually causing any problems or not (yet). |
I've been debugging into my case, and could find the reason: My server id using HttpAuth for other non nextcloud parts, so nextcloud tried to use the http-auth user to login the next cloud instance. However, those users are different, so that cannot work. (the server is using user "Foo" while my nextcloud user account is "bar"). NC: Nextcloud Hub II (23.0.0) |
We have the same issue after update to 23.0.2.1:
|
I'm also seeing this on carddav requests and they've gone from being quite fast to taking 4+ seconds to respond with multiple entries similar to the initial report. In my case the client is RoundCube webmail.
|
Same here. |
Can relate. I use calendars in thunderbird via caldav. Thunderbird tells me most of the time, that the calendars are not available atm. Found this log now and assume this is the problem. |
Same problem here. My mariadb-usage goes up to 50%-60% CPU. |
Same here. Cannot login with some users over LDAP. Nothing specific in the logs. |
Solved it by deleting all entries from oc_authtoken related to my user (>5900 entries). |
I also cleared the bruteforce table and now the caldav login worked on my side. |
Thanks for the hint. I suddenly couldn't login into only one of my users on 24.0.4snap1.
|
This comment was marked as outdated.
This comment was marked as outdated.
@szaimen I am having the same issue with version 25.0.3. |
Same for me with NC 25.0.3, Postgresql 14 database and PHP 8.1. Using Davx5 to sync on an Android phone. |
Huh, OK I guess I hit the same problem in nextcloud/calendar#5048 |
This logged error is not necessarily a problem. During DAV login we check if the provided password is an app password. That is done by checking if a matching token exists. Code is at server/lib/private/User/Session.php Line 436 in 394ad98
server/lib/private/User/Session.php Lines 526 to 531 in 394ad98
If you logged in with an actual app password this is a problem. If you logged in with the login password (like on the login page) then this log message can be safely ignored. It is expected that your password does not match a token in the database. |
Btw. I have a fresh install with about 160 LDAP users (no migrations whatsoever) and so far nobody managed to sync LDAP on a macOS or iOS calendar. I see "Token is not valid" messages when trying to sign in. The workaround with clearing the |
@ChristophWurst thanks, I think I understand. But this means that nextcloud/calendar#5048 is a different issue, doesn't it? |
I said before I faced this issue. But I was wrong. Indeed these warning about the token appears in the log file, but the real error was in fact the one of this issue: nextcloud/contacts#2638 |
I'm going to toss my name in here. I've been having the same problem since doing a fresh installation several months ago. Updated to v27.0.2 yestereday, and the problem still persists. I can syncronise contacts from Next Cloud to my phone using Davx5, however contacts that are edited or newly created on the phone cause a 418 and 500 error in Davx5. Calendars sync as expected in both directions. |
Observing the same behavior as @okkine here. Running 27.0.2 (via podman using docker.io nextcloud:latest image if it matters) . I can pull down my contacts via Davx5, but any adds/modifications trying to make it back to the server fail with these "Token is not valid" errors in nextcloud.log. I tried clearing the oc_authtoken table entries as noted above with no success. Happy to provide any relevant logs if helpful. Edit: Bi-directional sync appears to be working for me now. Not sure what happened, but I'm still sitting at 27.0.2 and don't think davx5 was updated so I'm at a loss as to what changed and why things are working as expected now :/ |
I thought I would add my two cents in here that I am also seeing this error in the latest version 27.1.3. I'm deploying via docker. This is a bone stock fresh install with no addons or plugins. Just file management.
It doesn't seem to affect anything as my site runs fine. But it definitely generates a TON of these messages. |
I ran into this while trying to debug failed syncing with RSS Guard and Nextcloud News (running Nextcloud 27.1.4). It makes multiple parallel connections, and they were clogging up and essentially DDOSing my Nextcloud server. I tried switching it to an app-specific password and instead of taking 30+ seconds to fail, it started syncing completely in only 3 seconds. Fluent Reader had the same problem: unreliable sync when using the primary login, works just fine with an app-specific password. I haven't had trouble with Dav5x or Floccus Bookmark Sync, but switching them to app-specific passwords sped up sync performance dramatically. My suspicion is that throwing the exception adds enough overhead per connection that it's noticeable when a client makes multiple serial connections, and can't keep up with multiple parallel connections. |
NC stable22, MariaDB 1.5 and PHP 7.3 on CentOS 8 Stream.
NC logs shows a lot of the following exceptions:
Is this expected with loglevel set to 0?
The text was updated successfully, but these errors were encountered: