Commit search shows a 500er error #5129

Closed
opened 2025-11-02 06:15:17 -06:00 by GiteaMirror · 8 comments
Owner

Originally created by @Bodenhaltung on GitHub (Mar 26, 2020).

Description

The commit search shows a 500er error consistently on any searchterm

Originally created by @Bodenhaltung on GitHub (Mar 26, 2020). - Gitea version (or commit ref): Gitea version 1.11.1 built with GNU Make 4.3, go1.13.8 : bindata, sqlite, pam - Git version: 2.26.0 - Operating system: ArchLinux - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - [ ] Not relevant - Log gist: https://gist.github.com/Bodenhaltung/4c2fae24a5879894f8cdba3cc48c3936 ## Description The commit search shows a 500er error consistently on any searchterm
GiteaMirror added the type/bug label 2025-11-02 06:15:17 -06:00
Author
Owner

@lafriks commented on GitHub (Mar 26, 2020):

What Gitea version are you using?

@lafriks commented on GitHub (Mar 26, 2020): What Gitea version are you using?
Author
Owner

@Bodenhaltung commented on GitHub (Mar 26, 2020):

What Gitea version are you using?

Sorry, stupid me, fixed in issue post: Gitea version 1.11.1 built with GNU Make 4.3, go1.13.8 : bindata, sqlite, pam

@Bodenhaltung commented on GitHub (Mar 26, 2020): > What Gitea version are you using? Sorry, stupid me, fixed in issue post: `Gitea version 1.11.1 built with GNU Make 4.3, go1.13.8 : bindata, sqlite, pam`
Author
Owner

@guillep2k commented on GitHub (Mar 27, 2020):

Then closing. 😉

@guillep2k commented on GitHub (Mar 27, 2020): ~~Then closing. 😉~~
Author
Owner

@guillep2k commented on GitHub (Mar 27, 2020):

Sorry, I misread your comment! I thought you've fixed the issue. Reopening. 😳

@guillep2k commented on GitHub (Mar 27, 2020): Sorry, I misread your comment! I thought you've fixed the issue. Reopening. :flushed:
Author
Owner

@guillep2k commented on GitHub (Mar 27, 2020):

I'd suggest you first upgrade to 1.11.3, since 1.11.1 has some interesting issues that will affect you sooner or later.

As for your problem, I think it's worth attempting to rebuild the code indexes. Those are usually in the data folder (e.g. /var/lib/gitea/indexers, depending on your system configuration). You can delete the repos.bleve directory and Gitea will rebuild it for you. You must shutdown the instance before deleting the directory.

@guillep2k commented on GitHub (Mar 27, 2020): I'd suggest you first upgrade to `1.11.3`, since `1.11.1` has some interesting issues that will affect you sooner or later. As for your problem, I think it's worth attempting to rebuild the code indexes. Those are usually in the data folder (e.g. `/var/lib/gitea/indexers`, depending on your system configuration). You can delete the `repos.bleve` directory and Gitea will rebuild it for you. You must shutdown the instance before deleting the directory.
Author
Owner

@lunny commented on GitHub (Mar 27, 2020):

@guillep2k commits search is not code search. Commits search will search commit via git command but not indexes.

@lunny commented on GitHub (Mar 27, 2020): @guillep2k commits search is not code search. Commits search will search commit via git command but not indexes.
Author
Owner

@mrsdizzie commented on GitHub (Mar 27, 2020):

This is probably related to:

https://public-inbox.org/git/87zhtbn5xb.fsf@evledraar.gmail.com/T/
https://bugs.exim.org/show_bug.cgi?id=1749

I'm not familiar with arch linux or anything but this change might be related to fixing it:

https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/pcre2&id=920838a6a4ca3ff466b8751d8dc4c24c5383767f

Do you have that version? Or can try updating (I don't know if git needs to then be rebuild or however arch linux works).

@mrsdizzie commented on GitHub (Mar 27, 2020): This is probably related to: https://public-inbox.org/git/87zhtbn5xb.fsf@evledraar.gmail.com/T/ https://bugs.exim.org/show_bug.cgi?id=1749 I'm not familiar with arch linux or anything but this change might be related to fixing it: https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/pcre2&id=920838a6a4ca3ff466b8751d8dc4c24c5383767f Do you have that version? Or can try updating (I don't know if git needs to then be rebuild or however arch linux works).
Author
Owner

@Bodenhaltung commented on GitHub (Apr 1, 2020):

Thanks for your help, i have core/pcre2 10.34-3 and now also: Gitea version 1.11.3 built with GNU Make 4.3, go1.14.1 : sqlite, pam

But still the same error.

I understand that the problem is not gitea related more arch vs. pcre2 vs. git.

@Bodenhaltung commented on GitHub (Apr 1, 2020): Thanks for your help, i have `core/pcre2 10.34-3` and now also: `Gitea version 1.11.3 built with GNU Make 4.3, go1.14.1 : sqlite, pam` But still the same error. I understand that the problem is not gitea related more arch vs. pcre2 vs. git.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5129