[GH-ISSUE #574] Logging out doesn't bring up log in dialogue #447

Closed
opened 2026-02-25 21:31:56 +03:00 by kerem · 6 comments
Owner

Originally created by @thndrbck on GitHub (Jan 4, 2024).
Original GitHub issue: https://github.com/ciur/papermerge/issues/574

Originally assigned to: @ciur on GitHub.

In case you experience issues with docker image provided by linuxserver.io/papermerge, please open bug report in their repository.

Description
When the admin user logs out, there is a blank screen with a single word: "error".

Expected
The standard Papermerge login screen

Actual
a blank screen with a single word: "error" at the top left

Info:

  • OS: server: Ubuntu 20.04 LTS] docker, desktop: Linuxmint
  • Browser Chrome
  • Database SQLite
  • Papermerge Version 3
    Screenshot from 2024-01-04 18-35-34
    Screenshot from 2024-01-04 18-35-22
    Screenshot from 2024-01-04 18-35-10
Originally created by @thndrbck on GitHub (Jan 4, 2024). Original GitHub issue: https://github.com/ciur/papermerge/issues/574 Originally assigned to: @ciur on GitHub. **In case you experience issues with docker image provided by [linuxserver.io/papermerge, please open bug report in their repository.](https://github.com/linuxserver/docker-papermerge/issues)** **Description** When the admin user logs out, there is a blank screen with a single word: "error". **Expected** The standard Papermerge login screen **Actual** a blank screen with a single word: "error" at the top left **Info:** - OS: server: Ubuntu 20.04 LTS] docker, desktop: Linuxmint - Browser Chrome - Database SQLite - Papermerge Version 3 ![Screenshot from 2024-01-04 18-35-34](https://github.com/ciur/papermerge/assets/16791618/4c5a6d10-cc2b-43da-91c0-a46c6657a3c0) ![Screenshot from 2024-01-04 18-35-22](https://github.com/ciur/papermerge/assets/16791618/025b1d25-fdde-4b59-88ad-5df715a9a124) ![Screenshot from 2024-01-04 18-35-10](https://github.com/ciur/papermerge/assets/16791618/4291bbce-7aab-4e44-b01c-a67326a9c341)
kerem 2026-02-25 21:31:56 +03:00
Author
Owner

@ciur commented on GitHub (Jan 6, 2024):

@thndrbck could you please attach containers logs? (web app logs would suffice)

<!-- gh-comment-id:1879683609 --> @ciur commented on GitHub (Jan 6, 2024): @thndrbck could you please attach containers logs? (web app logs would suffice)
Author
Owner

@puhamihai commented on GitHub (Jan 8, 2024):

Hi @ciur I am facing the same issue.
Need to mention that if you reload the page with 'Error" message it redirects to the log dialog and it is working again.

Info:
OS: server: Ubuntu 22.04 LTS] docker, desktop: Windows
Mozilla Firefox
Database PostgreSQL 14.4.0
papermerge/papermerge:3.0

Web app container logs:
2024-01-08 15:57:43 INFO: 127.0.0.1:50174 - "GET /token-validator HTTP/1.0" 401 Unauthorized
2024-01-08 15:57:43 INFO 2024-01-08 13:57:43,902 auth Database based authentication for 'john'
2024-01-08 15:57:43 INFO 2024-01-08 13:57:43,933 auth Authentication succeded for 'john'
2024-01-08 15:57:43 172.20.0.1 - - [08/Jan/2024:13:57:43 +0000] "POST /api/token HTTP/1.1" 200 229 "http://localhost:12000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
2024-01-08 15:57:43 INFO: 127.0.0.1:50186 - "GET /token-validator HTTP/1.0" 200 OK
2024-01-08 15:57:43 172.20.0.1 - - [08/Jan/2024:13:57:43 +0000] "GET / HTTP/1.1" 200 680 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
2024-01-08 15:57:44 INFO: 127.0.0.1:50194 - "GET /token-validator HTTP/1.0" 200 OK
2024-01-08 15:57:44 INFO: 127.0.0.1:50200 - "GET /token-validator HTTP/1.0" 200 OK
2024-01-08 15:57:44 172.20.0.1 - - [08/Jan/2024:13:57:44 +0000] "GET /api/users/me HTTP/1.1" 200 290 "http://localhost:12000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
2024-01-08 15:57:44 172.20.0.1 - - [08/Jan/2024:13:57:44 +0000] "GET /images/papermerge1.svg HTTP/1.1" 499 0 "http://localhost:12000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
2024-01-08 15:57:44 INFO: 127.0.0.1:50224 - "GET /token-validator HTTP/1.0" 200 OK
2024-01-08 15:57:44 172.20.0.1 - - [08/Jan/2024:13:57:44 +0000] "GET /api/users/me HTTP/1.1" 200 290 "http://localhost:12000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
2024-01-08 15:57:44 INFO: 127.0.0.1:50230 - "GET /token-validator HTTP/1.0" 200 OK
2024-01-08 15:57:44 INFO: 127.0.0.1:50236 - "GET /token-validator HTTP/1.0" 200 OK
2024-01-08 15:57:44 172.20.0.1 - - [08/Jan/2024:13:57:44 +0000] "GET /api/nodes/aa5b5e85-0de1-44ab-9c14-9948a1d93489?page_number=1&page_size=10&order_by=-title HTTP/1.1" 200 57 "http://localhost:12000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
2024-01-08 15:57:44 172.20.0.1 - - [08/Jan/2024:13:57:44 +0000] "GET /api/folders/aa5b5e85-0de1-44ab-9c14-9948a1d93489 HTTP/1.1" 200 293 "http://localhost:12000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
2024-01-08 15:57:55 172.20.0.1 - - [08/Jan/2024:13:57:55 +0000] "GET /ws/ocr HTTP/1.1" 101 4 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
2024-01-08 15:57:55 INFO: 127.0.0.1:59946 - "GET /token-validator HTTP/1.0" 401 Unauthorized
2024-01-08 15:57:55 172.20.0.1 - - [08/Jan/2024:13:57:55 +0000] "GET /ws/ocr HTTP/1.1" 200 702 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
2024-01-08 15:57:55 INFO: 127.0.0.1:59958 - "GET /token-validator HTTP/1.0" 401 Unauthorized
2024-01-08 15:57:55 172.20.0.1 - - [08/Jan/2024:13:57:55 +0000] "GET /api/users/me HTTP/1.1" 401 12 "http://localhost:12000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"

<!-- gh-comment-id:1881066360 --> @puhamihai commented on GitHub (Jan 8, 2024): Hi @ciur I am facing the same issue. Need to mention that if you reload the page with 'Error" message it redirects to the _log dialog_ and it is working again. Info: OS: server: Ubuntu 22.04 LTS] docker, desktop: Windows Mozilla Firefox Database PostgreSQL 14.4.0 papermerge/papermerge:3.0 Web app container logs: 2024-01-08 15:57:43 INFO: 127.0.0.1:50174 - "GET /token-validator HTTP/1.0" 401 Unauthorized 2024-01-08 15:57:43 INFO 2024-01-08 13:57:43,902 auth Database based authentication for 'john' 2024-01-08 15:57:43 INFO 2024-01-08 13:57:43,933 auth Authentication succeded for 'john' 2024-01-08 15:57:43 172.20.0.1 - - [08/Jan/2024:13:57:43 +0000] "POST /api/token HTTP/1.1" 200 229 "http://localhost:12000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0" 2024-01-08 15:57:43 INFO: 127.0.0.1:50186 - "GET /token-validator HTTP/1.0" 200 OK 2024-01-08 15:57:43 172.20.0.1 - - [08/Jan/2024:13:57:43 +0000] "GET / HTTP/1.1" 200 680 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0" 2024-01-08 15:57:44 INFO: 127.0.0.1:50194 - "GET /token-validator HTTP/1.0" 200 OK 2024-01-08 15:57:44 INFO: 127.0.0.1:50200 - "GET /token-validator HTTP/1.0" 200 OK 2024-01-08 15:57:44 172.20.0.1 - - [08/Jan/2024:13:57:44 +0000] "GET /api/users/me HTTP/1.1" 200 290 "http://localhost:12000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0" 2024-01-08 15:57:44 172.20.0.1 - - [08/Jan/2024:13:57:44 +0000] "GET /images/papermerge1.svg HTTP/1.1" 499 0 "http://localhost:12000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0" 2024-01-08 15:57:44 INFO: 127.0.0.1:50224 - "GET /token-validator HTTP/1.0" 200 OK 2024-01-08 15:57:44 172.20.0.1 - - [08/Jan/2024:13:57:44 +0000] "GET /api/users/me HTTP/1.1" 200 290 "http://localhost:12000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0" 2024-01-08 15:57:44 INFO: 127.0.0.1:50230 - "GET /token-validator HTTP/1.0" 200 OK 2024-01-08 15:57:44 INFO: 127.0.0.1:50236 - "GET /token-validator HTTP/1.0" 200 OK 2024-01-08 15:57:44 172.20.0.1 - - [08/Jan/2024:13:57:44 +0000] "GET /api/nodes/aa5b5e85-0de1-44ab-9c14-9948a1d93489?page_number=1&page_size=10&order_by=-title HTTP/1.1" 200 57 "http://localhost:12000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0" 2024-01-08 15:57:44 172.20.0.1 - - [08/Jan/2024:13:57:44 +0000] "GET /api/folders/aa5b5e85-0de1-44ab-9c14-9948a1d93489 HTTP/1.1" 200 293 "http://localhost:12000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0" 2024-01-08 15:57:55 172.20.0.1 - - [08/Jan/2024:13:57:55 +0000] "GET /ws/ocr HTTP/1.1" 101 4 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0" 2024-01-08 15:57:55 INFO: 127.0.0.1:59946 - "GET /token-validator HTTP/1.0" 401 Unauthorized 2024-01-08 15:57:55 172.20.0.1 - - [08/Jan/2024:13:57:55 +0000] "GET /ws/ocr HTTP/1.1" 200 702 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0" 2024-01-08 15:57:55 INFO: 127.0.0.1:59958 - "GET /token-validator HTTP/1.0" 401 Unauthorized 2024-01-08 15:57:55 172.20.0.1 - - [08/Jan/2024:13:57:55 +0000] "GET /api/users/me HTTP/1.1" 401 12 "http://localhost:12000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
Author
Owner

@thndrbck commented on GitHub (Jan 8, 2024):

Here's some further info and the file you requested
7d27fc1b3247c48781fe05df19dbab152aba7be4ff0b23c356ef9d5446117d5f-json.log
Screenshot from 2024-01-08 10-53-31
Screenshot from 2024-01-08 10-56-28
viewpagesource.txt
consoleSource.txt
consoleElements.txt

<!-- gh-comment-id:1881409070 --> @thndrbck commented on GitHub (Jan 8, 2024): Here's some further info and the file you requested [7d27fc1b3247c48781fe05df19dbab152aba7be4ff0b23c356ef9d5446117d5f-json.log](https://github.com/ciur/papermerge/files/13863617/7d27fc1b3247c48781fe05df19dbab152aba7be4ff0b23c356ef9d5446117d5f-json.log) ![Screenshot from 2024-01-08 10-53-31](https://github.com/ciur/papermerge/assets/16791618/1ce61a18-6a5c-4d9a-932e-08f177694b4a) ![Screenshot from 2024-01-08 10-56-28](https://github.com/ciur/papermerge/assets/16791618/c78aab93-7098-4ba8-a90d-a83203ef83de) [viewpagesource.txt](https://github.com/ciur/papermerge/files/13863683/viewpagesource.txt) [consoleSource.txt](https://github.com/ciur/papermerge/files/13863684/consoleSource.txt) [consoleElements.txt](https://github.com/ciur/papermerge/files/13863685/consoleElements.txt)
Author
Owner

@n2qcn commented on GitHub (Jan 26, 2024):

confirmed in 3.0.2

<!-- gh-comment-id:1911268777 --> @n2qcn commented on GitHub (Jan 26, 2024): confirmed in 3.0.2
Author
Owner

@ciur commented on GitHub (Jan 28, 2024):

This PR fixes the problem.

Signing out before the fix:
before

Signing out after the fix:
after

<!-- gh-comment-id:1913476095 --> @ciur commented on GitHub (Jan 28, 2024): This [PR](https://github.com/papermerge/papermerge-core/pull/316) fixes the problem. Signing out **before** the fix: ![before](https://github.com/ciur/papermerge/assets/24827601/15456444-464d-4438-bd04-6b20f50d5e13) Signing out **after** the fix: ![after](https://github.com/ciur/papermerge/assets/24827601/7d3d6386-948d-4e36-9559-90105be1df9f)
Author
Owner

@ciur commented on GitHub (Feb 4, 2024):

@thndrbck could you please confirm that issue was solved in 3.0.3 ?

<!-- gh-comment-id:1925592463 --> @ciur commented on GitHub (Feb 4, 2024): @thndrbck could you please confirm that issue was solved in 3.0.3 ?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/papermerge#447
No description provided.