Users with first-time PAM authentications cannot access profile page (HTTP 500) #760

Closed
opened 2025-11-02 03:35:28 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @ichrispa on GitHub (May 31, 2017).

  • Gitea version (or commit ref):
  • Git version: bfb44f8854 (master)
  • Operating system: Linux Debian 8
  • Database:
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Hi everyone,

I have an issue of late when users who have never logged into gitea before authenticate over PAM. The users are authenticated correctly and can access repos (explore) or create their own repos. They are shown in the admin "users" tab.

If these users try to access their dashboard, profile page or private repos page, they are confronted with an empty page and the server returns a statuscode 500 (without showing the usual error page). Any reference to the users profile - including avatars shown in "explore" - return a broken image link. The same applies if any other user attempts to access these users profiles/repos.

There are no error messages, neither in the logs (gitea.log, xorm.log or http.log). The page loaded is simply empty (no source). The HTTP 500 error code only becomes visible when debugging using firefoxes developer mode.

If the same users are created by an admin first, they can login and everything works as expected...

gitea uses HTTPS and was built with the tags "pam certs bindata".

Any advice on how to further debug this issue?

Best regards,

ichrispa

Originally created by @ichrispa on GitHub (May 31, 2017). - Gitea version (or commit ref): - Git version: bfb44f885468839259bc2ead999953cdd85654e1 (master) - Operating system: Linux Debian 8 - Database: - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - [ ] Not relevant - Log gist: ## Description Hi everyone, I have an issue of late when users who have never logged into gitea before authenticate over PAM. The users are authenticated correctly and can access repos (explore) or create their own repos. They are shown in the admin "users" tab. If these users try to access their dashboard, profile page or private repos page, they are confronted with an empty page and the server returns a statuscode 500 (without showing the usual error page). Any reference to the users profile - including avatars shown in "explore" - return a broken image link. The same applies if any other user attempts to access these users profiles/repos. There are no error messages, neither in the logs (gitea.log, xorm.log or http.log). The page loaded is simply empty (no source). The HTTP 500 error code only becomes visible when debugging using firefoxes developer mode. If the same users are created by an admin first, they can login and everything works as expected... gitea uses HTTPS and was built with the tags "pam certs bindata". Any advice on how to further debug this issue? Best regards, ichrispa
Author
Owner

@ichrispa commented on GitHub (May 31, 2017):

On a side note: I do not remember this error occuring when using the sqlite backend. I recently switched to MySQL (fresh install, the sqlite contents where not ported).

@ichrispa commented on GitHub (May 31, 2017): On a side note: I do not remember this error occuring when using the sqlite backend. I recently switched to MySQL (fresh install, the sqlite contents where not ported).
Author
Owner

@lunny commented on GitHub (Jun 1, 2017):

Maybe you can find the error information on console or file that will be helpful.

@lunny commented on GitHub (Jun 1, 2017): Maybe you can find the error information on console or file that will be helpful.
Author
Owner

@ichrispa commented on GitHub (Jun 29, 2018):

Retested after Upgrade to 1.4.1; issue appears to have been resolved.

@lunny: Sorry for the long lingering issue and thank you for your assistance.

@ichrispa commented on GitHub (Jun 29, 2018): Retested after Upgrade to 1.4.1; issue appears to have been resolved. @lunny: Sorry for the long lingering issue and thank you for your assistance.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#760