- Gitea version (or commit ref): 1.13.0
- Git version: 2.20.1
- Operating system: Debian GNU/Linux 10.7 (Buster)
- Database (use
[x]):
- Can you reproduce the bug at https://try.gitea.io:
- Log gist:
Description
I'm trying to install Gitea using a PostgreSQL database. I've chosen a schema different from public, one called main. Then, after the installation finishes seemingly fine, the application takes me to a screen that shows a big error 500.
If I click on Dashboard, I still get the same error. In general, the same occurs with the following buttons:
- Dashboard
- Issues
- Pull Requests
- Milestones
The button Explore seems to work fine, though.
If I navigate through the options of Profile and Settings... the results are similar: some sections work, others don't.
By checking the logs, I've came to the conclusion that some tables are not found when using a custom schema:
Dec 21 09:10:08 my-server gitea[9701]: [Macaron] 2020-12-21 09:10:08: Completed GET /user/events 200 OK in 5.065552253s
Dec 21 09:10:08 my-server gitea[9701]: [Macaron] 2020-12-21 09:10:08: Started GET /issues for 192.168.6.196
Dec 21 09:10:08 my-server gitea[9701]: 2020/12/21 09:10:08 routers/user/home.go:60:getDashboardContextUser() [E] GetOrganizations: pq: relation "repository" does not exist
Dec 21 09:10:08 my-server gitea[9701]: [Macaron] 2020-12-21 09:10:08: Completed GET /issues 500 Internal Server Error in 5.477482ms
Dec 21 09:10:08 my-server gitea[9701]: [Macaron] 2020-12-21 09:10:08: Started GET /user/avatar/administrator/-1 for 192.168.6.196
Dec 21 09:10:08 my-server gitea[9701]: [Macaron] 2020-12-21 09:10:08: Completed GET /user/avatar/administrator/-1 302 Found in 2.823642ms
Dec 21 09:10:08 my-server gitea[9701]: [Macaron] 2020-12-21 09:10:08: Started GET /user/events for 192.168.6.196
If I use the public schema, everything seems to work fine.
[x]):Description
I'm trying to install Gitea using a PostgreSQL database. I've chosen a schema different from
public, one calledmain. Then, after the installation finishes seemingly fine, the application takes me to a screen that shows a big error 500.If I click on
Dashboard, I still get the same error. In general, the same occurs with the following buttons:The button
Exploreseems to work fine, though.If I navigate through the options of
Profile and Settings...the results are similar: some sections work, others don't.By checking the logs, I've came to the conclusion that some tables are not found when using a custom schema:
If I use the
publicschema, everything seems to work fine.