ciur / papermerge

Open Source Document Management System for Digital Archives (Scanned Documents)
https://papermerge.com
Apache License 2.0
2.41k stars 257 forks source link

Logging out doesn't bring up log in dialogue #574

Closed thndrbck closed 4 months ago

thndrbck commented 6 months ago

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:

ciur commented 6 months ago

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

puhamihai commented 6 months ago

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"

thndrbck commented 6 months ago

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

n2qcn commented 5 months ago

confirmed in 3.0.2

ciur commented 5 months ago

This PR fixes the problem.

Signing out before the fix: before

Signing out after the fix: after

ciur commented 5 months ago

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