Replies: 11 comments 45 replies
-
I just updated my Docker container from 2.5.? to 2.7.4 as I had exactly this error: Unfortunately it did not change, the error is still showing up. |
Beta Was this translation helpful? Give feedback.
-
Could there possibly be additional logging added around this area of the
code to help troubleshoot? Looking at the code it's unclear if any
usernames came back at all, or if there was just no match. Maybe log a list
of usernames returned?
…On Mon, Mar 10, 2025, 12:34 PM Your friendly nerd ***@***.***> wrote:
The username matches 100%. I changed the name of the admin paperless-ngx
account and used the new name. Is there possibly an issue with updating the
username, or using an admin account that could lead to this error?
I dont know, the version is stable and has no known ground breaking bugs.
So there is as I said an error on your side 99%.
Sorry, but I dont know how to help here as this could have many issues
related to many reasons.
—
Reply to this email directly, view it on GitHub
<#392 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZNUGIKFNXGCNCURMCIWX32TXSLLAVCNFSM6AAAAABYE6AKUOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENBVGM2TSMY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I too have this error:
It is indeed hard to debug without more logging (loglevel=DEBUG would be great). EDIT: The complete log: Current config TAGS: []
Current config PROMPT_TAGS: []
Validating Paperless config for: https://EXAMPLE.COM/api/documents/
Validating Paperless config for: https://EXAMPLE.COM/api/documents/
AI provider: ollama
2025-03-20T22:12:38: PM2 log: App name:paperless-ai id:0 disconnected
2025-03-20T22:12:38: PM2 log: App [paperless-ai:0] exited with code [0] via signal [SIGINT]
2025-03-20T22:12:38: PM2 log: App [paperless-ai:0] will restart in 100ms
2025-03-20T22:12:38: PM2 log: 0 application online, retry = 3
2025-03-20T22:12:38: PM2 log: App [paperless-ai:0] starting in -cluster mode-
2025-03-20T22:12:38: PM2 log: App [paperless-ai:0] online
Loading .env from: /app/data/.env
Loaded environment variables: {
PAPERLESS_API_URL: 'https://EXAMPLE.COM',
PAPERLESS_API_TOKEN: '******',
LIMIT_FUNCTIONS: {
activateTagging: 'yes',
activateCorrespondents: 'yes',
activateDocumentType: 'yes',
activateTitle: 'yes',
activateCustomFields: 'no'
}
}
OpenAPI specification saved to /app/OPENAPI/openapi.json
Server running on port 4568
Validating Paperless config for: https://EXAMPL.COM/api/documents/
AI provider: ollama
Failed to get own user ID. Abort scanning.
Current config TAGS: []
Current config PROMPT_TAGS: []
Failed to get own user ID. Abort scanning. |
Beta Was this translation helpful? Give feedback.
-
In my case, the solution was to use the actual user name instead of my user's e-mail address. I always use the email address to log in, so I used it out of habit. Perhaps both username and e-mail address should be possible, as they can easily be confused by the user (I think the change needs to be made here: paperless-ai/services/paperlessService.js Line 1098 in fb816f3 |
Beta Was this translation helpful? Give feedback.
-
I use the OIDC login method for Paperless-ngx with my email address as ID, but the So, time to look at the source where these messages are generated. At first glance, there are 3 places that can log this error. I suppose I'll have to run the program in development mode to figure out where it actually fails. |
Beta Was this translation helpful? Give feedback.
-
Had the same problem and it automatically got solved by updating Paperless NGX as (my) version 1.xx didn't have the /api/users/ model, so the function getOwnId failed. |
Beta Was this translation helpful? Give feedback.
-
This issue is always an end user produced error. Many people had this in history. Sometimes it was a wrong username, sometimes an rights issue with the api key, sometimes it was because of some custom Reverse Proxy Nightmare system. |
Beta Was this translation helpful? Give feedback.
-
Hi have the same issue. Paperless AI (Version 2.7.6) has it's own local Paperless user to access the API with full rights. The Paperless API works but Paperless AI has trouble to get the users ID. I'm running all Paperless services in a docker stack, using Authenik as identity provider (but not for the Paperless AI API user) and also nginx as reverse proxy (also not relevant for this issue, as the connection is directly via IP). I've also a made a fresh Paperless AI installation resulting in the same problem. Thanks in advance for any suggestions! |
Beta Was this translation helpful? Give feedback.
-
@clusterzx Can you please check this? I modified in the container the code of the paperless initialize to:
When I attach myself the "/api" as it seems you also did for example during the testing of the URL during Setup - then suddenly it works: I also see now documents in the Dashboard - and can even select a document manually... Can you please check yourself and fix? As this change will revert after restart of the container... |
Beta Was this translation helpful? Give feedback.
-
In summary, only choose 1 place to define PAPERLESS_API_URL either in .env or in UI during setup. Tested with both local and traefik routing: Method 1: defining in .env: Method 2: defining in UI (during setup): |
Beta Was this translation helpful? Give feedback.
-
I don't want to seem unappreciative of all the hard work that has gone into this opensource project. I really do appreciate it but I just spent a few hours troubleshooting this issue
In the setup wizard I'd specified the paperless URL as This seems like a really simple fix, that would save users like myself grief. May I recommend to the author to strip the final / if one is entered during the setup? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is the only thing I see in the logs, what am I missing?
ollama, paperless-ngx, and paperless-ai are all running in docker containers and setup went smoothly. I can see the documents in paperless-ai, but they show as unprocessed.
UPDATE:
My solution was updating from v1.8 -> 2.14.7
Beta Was this translation helpful? Give feedback.
All reactions