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

Error 500 can't open an issue or a pr #22809

Closed
0xOdy opened this issue Feb 7, 2023 · 7 comments
Closed

Error 500 can't open an issue or a pr #22809

0xOdy opened this issue Feb 7, 2023 · 7 comments
Labels

Comments

@0xOdy
Copy link

0xOdy commented Feb 7, 2023

Description

The problem happen when opening a new issue i get the error 500 page. The same thing happen when i try to open a PR.
It's a brand new installation.

Gitea Version

1.18.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

https://gist.githubusercontent.com/0xOdy/071bdd821fca7dfb6a75bc564e4ccc1f/raw/699fae4753f8be9b620df802c0d2dd62d10e64c2/gitea.log

Screenshots

Screenshot from 2023-02-07 14-32-21

Git Version

No response

Operating System

linux centos

How are you running Gitea?

from a docker image ( gitea/gitea )

Database

PostgreSQL

@0xOdy 0xOdy added the type/bug label Feb 7, 2023
@jolheiser
Copy link
Member

What version of postgres do you have? Also are there postgres logs?

@wxiaoguang
Copy link
Contributor

The answer is clear: the postgresql verson is too old.

I have talked with @lunny about this problem long ago, about adding database version checks

@0xOdy
Copy link
Author

0xOdy commented Feb 7, 2023

Thanks you,
Will be upgrading postgresql

@lunny
Copy link
Member

lunny commented Feb 8, 2023

The answer is clear: the postgresql verson is too old.

I have talked with @lunny about this problem long ago, about adding database version checks

XORM now supported returning the database version, but I think many users maybe use a customized database. So we cannot prevent users to use Gitea according to that versions.

@wxiaoguang
Copy link
Contributor

So we cannot prevent users to use Gitea according to that versions.

  1. Then Gitea doesn't run well, how would the users think? It just hurts users.
  2. Gitea itself already declared that "PostgreSQL (>=10)", https://docs.gitea.io/en-us/database-prep/

@0xOdy
Copy link
Author

0xOdy commented Feb 8, 2023

Working great after installing postgresql-server-12 on my system.
THnaks a lot.

@zeripath
Copy link
Contributor

zeripath commented Feb 8, 2023

Perhaps we can use SHOW server_version; and parse the output in someway in order to tell people they're running too old a version of Postgres?

@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants