Login not working #3422

Closed
opened 2025-11-02 05:12:29 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @PKizzle on GitHub (Jun 3, 2019).

  • Gitea version (or commit ref): 1.8.2
  • Git version: 2.19.2
  • Operating system: GNU/Linux (arm7l)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Running the arm6 build on arm7 I am unable to login.
I receive the following error messages:

[Macaron] PANIC: session(release): dial unix /opt/Gitea/gitea/data/sessions: connect: connection refused
/go/src/code.gitea.io/gitea/vendor/github.com/go-macaron/session/session.go:199 (0x5432af)
/go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/context.go:79 (0x527d4f)
/go/src/code.gitea.io/gitea/vendor/github.com/go-macaron/inject/inject.go:157 (0x4ffc1f)
/go/src/code.gitea.io/gitea/vendor/github.com/go-macaron/inject/inject.go:135 (0x4ff9c7)
/go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/context.go:121 (0x527e8f)
/go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/context.go:112 (0x536c8f)
/go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/recovery.go:161 (0x536c74)
/go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/logger.go:40 (0x52b41b)
/go/src/code.gitea.io/gitea/vendor/github.com/go-macaron/inject/inject.go:157 (0x4ffc1f)
/go/src/code.gitea.io/gitea/vendor/github.com/go-macaron/inject/inject.go:135 (0x4ff9c7)
/go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/context.go:121 (0x527e8f)
/go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/context.go:112 (0x53620f)
/go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/logger.go:52 (0x5361f4)
/go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/logger.go:40 (0x52b41b)
/go/src/code.gitea.io/gitea/vendor/github.com/go-macaron/inject/inject.go:157 (0x4ffc1f)
/go/src/code.gitea.io/gitea/vendor/github.com/go-macaron/inject/inject.go:135 (0x4ff9c7)
/go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/context.go:121 (0x527e8f)
/go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/router.go:187 (0x537d33)
/go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/router.go:294 (0x5326df)
/go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/macaron.go:220 (0x52c67b)
/go/src/code.gitea.io/gitea/vendor/github.com/gorilla/context/context.go:141 (0x7e7307)
/usr/local/go/src/net/http/server.go:1995 (0x2a40d7)
/usr/local/go/src/net/http/server.go:2774 (0x2a6b33)
/usr/local/go/src/net/http/server.go:1878 (0x2a30f3)
/usr/local/go/src/runtime/asm_arm.s:868 (0x6f2e3)
2019/06/03 17:56:01 http: superfluous response.WriteHeader call from code.gitea.io/gitea/vendor/gopkg.in/macaron%2ev1.(*responseWriter).WriteHeader (response_writer.go:59)
[Macaron] 2019-06-03 17:56:01: Completed POST /user/login 500 Internal Server Error in 1.013625513s
Originally created by @PKizzle on GitHub (Jun 3, 2019). - Gitea version (or commit ref): 1.8.2 - Git version: 2.19.2 - Operating system: GNU/Linux (arm7l) - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description Running the arm6 build on arm7 I am unable to login. I receive the following error messages: ``` [Macaron] PANIC: session(release): dial unix /opt/Gitea/gitea/data/sessions: connect: connection refused /go/src/code.gitea.io/gitea/vendor/github.com/go-macaron/session/session.go:199 (0x5432af) /go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/context.go:79 (0x527d4f) /go/src/code.gitea.io/gitea/vendor/github.com/go-macaron/inject/inject.go:157 (0x4ffc1f) /go/src/code.gitea.io/gitea/vendor/github.com/go-macaron/inject/inject.go:135 (0x4ff9c7) /go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/context.go:121 (0x527e8f) /go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/context.go:112 (0x536c8f) /go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/recovery.go:161 (0x536c74) /go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/logger.go:40 (0x52b41b) /go/src/code.gitea.io/gitea/vendor/github.com/go-macaron/inject/inject.go:157 (0x4ffc1f) /go/src/code.gitea.io/gitea/vendor/github.com/go-macaron/inject/inject.go:135 (0x4ff9c7) /go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/context.go:121 (0x527e8f) /go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/context.go:112 (0x53620f) /go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/logger.go:52 (0x5361f4) /go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/logger.go:40 (0x52b41b) /go/src/code.gitea.io/gitea/vendor/github.com/go-macaron/inject/inject.go:157 (0x4ffc1f) /go/src/code.gitea.io/gitea/vendor/github.com/go-macaron/inject/inject.go:135 (0x4ff9c7) /go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/context.go:121 (0x527e8f) /go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/router.go:187 (0x537d33) /go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/router.go:294 (0x5326df) /go/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/macaron.go:220 (0x52c67b) /go/src/code.gitea.io/gitea/vendor/github.com/gorilla/context/context.go:141 (0x7e7307) /usr/local/go/src/net/http/server.go:1995 (0x2a40d7) /usr/local/go/src/net/http/server.go:2774 (0x2a6b33) /usr/local/go/src/net/http/server.go:1878 (0x2a30f3) /usr/local/go/src/runtime/asm_arm.s:868 (0x6f2e3) 2019/06/03 17:56:01 http: superfluous response.WriteHeader call from code.gitea.io/gitea/vendor/gopkg.in/macaron%2ev1.(*responseWriter).WriteHeader (response_writer.go:59) [Macaron] 2019-06-03 17:56:01: Completed POST /user/login 500 Internal Server Error in 1.013625513s ``` <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the type/question label 2025-11-02 05:12:29 -06:00
Author
Owner

@techknowlogick commented on GitHub (Jun 3, 2019):

Seems like there is an error with connecting to whichever session storage you are using, can you post your (appropriately sanitized) session config?

@techknowlogick commented on GitHub (Jun 3, 2019): Seems like there is an error with connecting to whichever session storage you are using, can you post your (appropriately sanitized) session config?
Author
Owner

@PKizzle commented on GitHub (Jun 3, 2019):

[session]
PROVIDER      = memcache
COOKIE_SECURE = true
@PKizzle commented on GitHub (Jun 3, 2019): ``` [session] PROVIDER = memcache COOKIE_SECURE = true ```
Author
Owner

@techknowlogick commented on GitHub (Jun 4, 2019):

You don't need to post it, but do you have PROVIDER_CONFIG under [session]?

@techknowlogick commented on GitHub (Jun 4, 2019): You don't need to post it, but do you have `PROVIDER_CONFIG` under `[session]`?
Author
Owner

@PKizzle commented on GitHub (Jun 4, 2019):

Okay. So I installed redis and changed the gitea configuration accordingly. Now it is working.
Answering your question, before there was no PROVIDER_CONFIG entry.
All versions 1.7.x were running without issues using memcache.

@PKizzle commented on GitHub (Jun 4, 2019): Okay. So I installed redis and changed the gitea configuration accordingly. Now it is working. Answering your question, before there was no `PROVIDER_CONFIG` entry. All versions 1.7.x were running without issues using memcache.
Author
Owner

@techknowlogick commented on GitHub (Jun 4, 2019):

It could be that because between 1.7.x & 1.8.x the session providers (an external library) were update to patch some issues, upstream may have changed the default value.

@techknowlogick commented on GitHub (Jun 4, 2019): It could be that because between 1.7.x & 1.8.x the session providers (an external library) were update to patch some issues, upstream may have changed the default value.
Author
Owner

@PKizzle commented on GitHub (Jun 5, 2019):

Just wanted to add that this was a configuration mistake. Memcache requires a PROVIDER_CONFIG entry. I should have used memory as session provider instead, which works with the default PROVIDER_CONFIG value. Now why did it work for gitea versions 1.7.x? It should not have worked for these versions either.
Anyway thanks for your support @techknowlogick

@PKizzle commented on GitHub (Jun 5, 2019): Just wanted to add that this was a configuration mistake. Memcache requires a `PROVIDER_CONFIG` entry. I should have used memory as session provider instead, which works with the default `PROVIDER_CONFIG` value. Now why did it work for gitea versions 1.7.x? It should not have worked for these versions either. Anyway thanks for your support @techknowlogick
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3422