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

The login page ceases to allow you to log in anymore #24

Open
alvisid opened this issue Sep 5, 2023 · 4 comments
Open

The login page ceases to allow you to log in anymore #24

alvisid opened this issue Sep 5, 2023 · 4 comments

Comments

@alvisid
Copy link

alvisid commented Sep 5, 2023

Good afternoon!
After starting the container, it turns out to enter the settings. You can also make a new user. But after 5 minutes there is an exit from the profile and it is not possible to log in under the login anymore. It is not possible to log in under another user and in another browser. Only restarting or restarting the container helps.

smcp-instance | 2023/09/05 15:45:09 redis pubsub is listening for alpr_service
mngr-instance exited with code 2
webapp-instance | 192.168.1.127 - - [05/Sep/2023:15:45:15 +0300] "GET / HTTP/1.1" 304 0 "http://192.168.1.110:8080/" "Mozilla/5.0 (X11; Linux x86_64) AppleWeb
nvr.log

@alvisid
Copy link
Author

alvisid commented Sep 5, 2023

Please tell me what I'm doing wrong and how I can fix this situation.

@alvisid
Copy link
Author

alvisid commented Sep 7, 2023

Good afternoon! It throws it out of the system only if you save the settings in the configuration.

@AVANG003
Copy link

AVANG003 commented Sep 9, 2023

Check log of mngr-instance container

@aniruddhkb
Copy link

aniruddhkb commented Oct 25, 2023

I faced something similar, here's the relevant logs from mngr-instance

`2023/10/25 17:56:56 Disk Usage has checked the disk and no action has been taken
[GIN] 2023/10/25 - 17:57:17 | 200 | 44.654µs | ::1 | GET "/isReadOnlyMode"
[GIN] 2023/10/25 - 17:57:17 | 200 | 26.881µs | ::1 | GET "/isReadOnlyMode"
[GIN] 2023/10/25 - 17:57:24 | 204 | 53.481µs | ::1 | OPTIONS "/login"
2023/10/25 17:57:24 a user with a token e3f44aa9 has been deleted

2023/10/25 17:57:25 [Recovery] 2023/10/25 - 17:57:25 panic recovered:
POST /login HTTP/1.1
Host: localhost:8072
Accept: application/json, text/plain, /
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Connection: keep-alive
Content-Length: 39
Content-Type: application/json
Dnt: 1
[GIN] 2023/10/25 - 17:57:25 | 500 | 1.063687341s | ::1 | POST "/login"
Origin: http://localhost:8080
Referer: http://localhost:8080/
Sec-Ch-Ua: "Chromium";v="118", "Google Chrome";v="118", "Not=A?Brand";v="99"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Linux"
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-site
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36

assignment to entry in nil map
/usr/local/go/src/runtime/map_faststr.go:205 (0x41506e)
mapassign_faststr: panic(plainError("assignment to entry in nil map"))
/app/reps/repo_bucket.go:74 (0xee5e99)
(*RepoBucket).AddUser: r.users[user.Token] = u
/app/api/user.go:37 (0xf272a4)
RegisterUserEndpoints.func2: rb.AddUser(u)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/context.go:168 (0x988106)
(*Context).Next: c.handlersc.index
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/logger.go:241 (0x9880e9)
LoggerWithConfig.func1: c.Next()
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/context.go:168 (0x988fe1)
(*Context).Next: c.handlersc.index
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/recovery.go:99 (0x988fcc)
CustomRecoveryWithWriter.func1: c.Next()
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/context.go:168 (0x988106)
(*Context).Next: c.handlersc.index
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/logger.go:241 (0x9880e9)
LoggerWithConfig.func1: c.Next()
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/context.go:168 (0x9871d0)
(*Context).Next: c.handlersc.index
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/gin.go:555 (0x986e38)
(*Engine).handleHTTPRequest: c.Next()
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/gin.go:511 (0x986971)
(*Engine).ServeHTTP: engine.handleHTTPRequest(c)
/usr/local/go/src/net/http/server.go:2916 (0x751fba)
serverHandler.ServeHTTP: handler.ServeHTTP(rw, req)
/usr/local/go/src/net/http/server.go:1966 (0x74cfb6)
(*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)
/usr/local/go/src/runtime/asm_amd64.s:1571 (0x465bc0)
goexit: BYTE $0x90 // NOP

2023/10/25 17:57:26 Heartbeat was beaten at Wed Oct 25 17:57:26 2023
2023/10/25 17:57:55 Session timeout has been checked`

What worked for me was restarting the mngr-instance container if this happens. I am looking for a more... automatic solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants