Unsupported indexer queue type: redis #3227

Closed
opened 2025-11-02 05:04:44 -06:00 by GiteaMirror · 10 comments
Owner

Originally created by @deanishe on GitHub (Apr 22, 2019).

  • Gitea version: 1.8.0
  • Git version: 2.11.0
  • Operating system: Debian 9.8
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

After upgrading to v1.8.0, redis no longer works for indexer queue type. Gitea fails to start with the following error:

[...itea/routers/init.go:95 GlobalInit()] [E] Failed to initialize issue indexer: Unsupported indexer queue type: redis
Originally created by @deanishe on GitHub (Apr 22, 2019). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version: 1.8.0 - Git version: 2.11.0 - Operating system: Debian 9.8 - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description After upgrading to v1.8.0, `redis` no longer works for indexer queue type. Gitea fails to start with the following error: ``` [...itea/routers/init.go:95 GlobalInit()] [E] Failed to initialize issue indexer: Unsupported indexer queue type: redis ```
GiteaMirror added the issue/not-a-bug label 2025-11-02 05:04:44 -06:00
Author
Owner

@lunny commented on GitHub (Apr 25, 2019):

Redis queue has been merged on master. And I don't think we have a redis queue for indexer before v1.8.

@lunny commented on GitHub (Apr 25, 2019): `Redis` queue has been merged on master. And I don't think we have a redis queue for indexer before v1.8.
Author
Owner

@dragonandy commented on GitHub (May 9, 2019):

Same issue here
Ubuntu 18.04+MariaDB+gitea 1.8.1

upgraded to the latest 1.8.1 and gitea not starting
I switch back to the default [indexer] settings to get gitea running

2019/05/09 17:18:25 [I] Log Mode: File(Info)
2019/05/09 17:18:25 [I] XORM Log Mode: File(Info)
2019/05/09 17:18:25 [I] Cache Service Enabled
2019/05/09 17:18:25 [I] Session Service Enabled
2019/05/09 17:18:25 [I] Beginning ORM engine initialization.
2019/05/09 17:18:25 [I] ORM engine initialization attempt #1/10...
2019/05/09 17:18:25 [I] ORM engine initialization successful!
2019/05/09 17:18:25 [I] Git Version: 2.21.0
2019/05/09 17:18:26 [...itea/routers/init.go:95 GlobalInit()] [E] Failed to initialize issue indexer: Unsupported indexer queue type: redis
@dragonandy commented on GitHub (May 9, 2019): Same issue here Ubuntu 18.04+MariaDB+gitea 1.8.1 upgraded to the latest 1.8.1 and gitea not starting I switch back to the default `[indexer]` settings to get gitea running ```log 2019/05/09 17:18:25 [I] Log Mode: File(Info) 2019/05/09 17:18:25 [I] XORM Log Mode: File(Info) 2019/05/09 17:18:25 [I] Cache Service Enabled 2019/05/09 17:18:25 [I] Session Service Enabled 2019/05/09 17:18:25 [I] Beginning ORM engine initialization. 2019/05/09 17:18:25 [I] ORM engine initialization attempt #1/10... 2019/05/09 17:18:25 [I] ORM engine initialization successful! 2019/05/09 17:18:25 [I] Git Version: 2.21.0 2019/05/09 17:18:26 [...itea/routers/init.go:95 GlobalInit()] [E] Failed to initialize issue indexer: Unsupported indexer queue type: redis ```
Author
Owner

@zeripath commented on GitHub (May 9, 2019):

Yes redis indexer is on the 1.9 branch not 1.8

@zeripath commented on GitHub (May 9, 2019): Yes redis indexer is on the 1.9 branch not 1.8
Author
Owner

@deanishe commented on GitHub (May 11, 2019):

Could you update the docs to point out when a feature isn't actually in the latest stable release?

ISSUE_INDEXER_QUEUE_TYPE: levelqueue: Issue indexer queue, currently supports:channel, levelqueue, redis.

@deanishe commented on GitHub (May 11, 2019): Could you [update the docs to point out when a feature isn't actually in the latest stable release](https://docs.gitea.io/en-us/config-cheat-sheet/)? > ISSUE_INDEXER_QUEUE_TYPE: levelqueue: Issue indexer queue, currently supports:channel, levelqueue, **redis**.
Author
Owner

@lunny commented on GitHub (May 11, 2019):

Right, we need a new document structure to show different version of documents.

@lunny commented on GitHub (May 11, 2019): Right, we need a new document structure to show different version of documents.
Author
Owner

@mrsdizzie commented on GitHub (May 11, 2019):

When I've written anything about a feature only in master, I try to add some small text indicating that since the docs aren't versioned, like:

redis (as of Gitea 1.9)

Which can be helpful enough until there is a versioned document system. You can see similar text at the top of:

https://docs.gitea.io/en-us/logging-configuration/

Not perfect but probably helps with issues like this.

@mrsdizzie commented on GitHub (May 11, 2019): When I've written anything about a feature only in master, I try to add some small text indicating that since the docs aren't versioned, like: ``` redis (as of Gitea 1.9) ``` Which can be helpful enough until there is a versioned document system. You can see similar text at the top of: https://docs.gitea.io/en-us/logging-configuration/ Not perfect but probably helps with issues like this.
Author
Owner

@deanishe commented on GitHub (May 11, 2019):

Not perfect but probably helps with issues like this.

It lets you know that the docs may not apply to your version, but it's not particularly obvious which bits of the docs.

The logging framework has been revamped in Gitea 1.9.0.

Could be clearer. The page makes clear that the AccessLogger is new in 1.9, but is that the only thing that's changed? "Revamped" sounds like it could mean quite extensive changes.

Still, I can always read the Markdown sources in /docs on the appropriate branch instead.

@deanishe commented on GitHub (May 11, 2019): > Not perfect but probably helps with issues like this. It lets you know that the docs may not apply to your version, but it's not particularly obvious which bits of the docs. > The logging framework has been revamped in Gitea 1.9.0. Could be clearer. The page makes clear that the `AccessLogger` is new in 1.9, but is that the only thing that's changed? "Revamped" sounds like it could mean quite extensive changes. Still, I can always read the Markdown sources in `/docs` on the appropriate branch instead.
Author
Owner

@zeripath commented on GitHub (May 11, 2019):

I wonder if we should just do what other projects do and have the previous versions documents also published too?

@zeripath commented on GitHub (May 11, 2019): I wonder if we should just do what other projects do and have the previous versions documents also published too?
Author
Owner

@deanishe commented on GitHub (May 11, 2019):

A bigger issue as I see it is that the official docs appear to be based on master and not the current stable release.

As long as there's only one version of the docs available, they should be for the current stable release, which is presumably what most users should be running.

@deanishe commented on GitHub (May 11, 2019): A bigger issue as I see it is that the official docs appear to be based on `master` and not the current stable release. As long as there's only one version of the docs available, they should be for the current stable release, which is presumably what most users should be running.
Author
Owner

@lafriks commented on GitHub (May 16, 2019):

Most correct way would be to create option to choose docs version but I don't know how to do that with Hugo and multiple branches

@lafriks commented on GitHub (May 16, 2019): Most correct way would be to create option to choose docs version but I don't know how to do that with Hugo and multiple branches
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3227