# 500 error when creating an issue

**URL:** <https://forum.gitea.com/t/500-error-when-creating-an-issue/3757>\
**Category:** Uncategorized\
**Created:** [September 13, 2021, 8:59am UTC](https://forum.gitea.com/t/500-error-when-creating-an-issue/3757 "2021-09-13T08:59:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![artu72](https://avatars.discourse-cdn.com/v4/letter/a/57b2e6/32.png) [@artu72](https://forum.gitea.com/u/artu72)\
**Post date:** [September 13, 2021, 8:59am UTC](https://forum.gitea.com/t/500-error-when-creating-an-issue/3757/1 "2021-09-13T08:59:06Z")

</div>

Hi, I have gitea 1.15.2 running. With this version, in every repository when I try to create an issue, it gives me 500 error. Any clue?

---

<div class="post-metadata">

**Author:** ![artu72](https://avatars.discourse-cdn.com/v4/letter/a/57b2e6/32.png) [@artu72](https://forum.gitea.com/u/artu72)\
**Post date:** [September 14, 2021, 2:17pm UTC](https://forum.gitea.com/t/500-error-when-creating-an-issue/3757/2 "2021-09-14T14:17:26Z")

</div>

Update: in the log there is following error:

2021/09/14 16:15:30 …rs/web/repo/issue.go:980:NewIssuePost() [E] NewIssue: generate issue index failed: pq: syntax error at or near “ON”

---

<div class="post-metadata">

**Author:** ![techknowlogick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/techknowlogick/32/4706_2.png) [@techknowlogick](https://forum.gitea.com/u/techknowlogick)\
**Post date:** [September 25, 2021, 3:37pm UTC](https://forum.gitea.com/t/500-error-when-creating-an-issue/3757/3 "2021-09-25T15:37:15Z")

</div>

Which version of postgres are you using?

---

<div class="post-metadata">

**Author:** ![eeyrjmr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/eeyrjmr/32/1095_2.png) [@eeyrjmr](https://forum.gitea.com/u/eeyrjmr)\
**Post date:** [September 27, 2021, 6:25am UTC](https://forum.gitea.com/t/500-error-when-creating-an-issue/3757/4 "2021-09-27T06:25:51Z")

</div>

Is it this?

> <https://github.com/go-gitea/gitea/issues/16961>
>
> \- Gitea version (or commit ref): 1.15.2
> \- Git version: 2.33.0
> \- Operating syst…em: Ubuntu 20.04.2 using systemd and Gitea downloaded from the github releases page (amd64 build)
> \- Database (use \`\[x\]\`):
> - \[\] PostgreSQL
> - \[x\] MySQL
> - \[\] MSSQL
> - \[\] SQLite
> \- Can you reproduce the bug at https://try.gitea.io:
> - \[\] Yes (provide example URL)
> - \[x\] No
> \- Log gist:
> \`2021/09/05 09:58:23 ...ules/context/repo.go:343:repoAssignment() \[E\] GetUserRepoPermission: skipObjectDecoder: expect object or null, error found in #0 byte of ...|&\\003d{\\003d}\\003d|..., bigger context ...|&\\003d{\\003d}\\003d|...
> 2021/09/05 09:54:32 ...ters/private/serv.go:293:ServCommand() \[E\] Unable to get permissions for 3:REMOVED with key 8 in 2:ORG/myrepo Error: skipObjectDecoder: expect object or null, error found in #0 byte of ...|&\\003d{\\003d}\\003d|..., bigger context ...|&\\003d{\\003d}\\003d|...
> 2021/09/05 09:54:33 modules/ssh/ssh.go:140:sessionHandler() \[E\] SSH: Wait: exit status 1
> \`
> 
> \## Description
> When logging in, I am able to see all commits on the dashboard to repos I have access to, but the right side repos card is empty and missing all repos that I have access to. When selecting to view a repo, I get a 500 error with the error above logged. Rolling back to 1.15.0 and everything returns to normal.
> 
> SSH access also fails with errors as well as shown above.
