I upgraded my personal Gitea (installed on Ubuntu 22.04, using PostgreSQL 14) from 18.3 to 19.3, and Gitea now crashes on startup, exiting with code 1.
Figuring that it might have messed up the database, I pulled that morning’s database from backup and reverted back to 18.3. I’m now getting the same problem.
A check on /var/lib/gitea/log/gitea.log shows this at the point where gitea crashes:
=========================================
2023/06/13 21:25:46 …xer/stats/indexer.go:39:populateRepoIndexer() [I] Populating the repo stats indexer with existing rep
ositories
2023/06/13 21:25:46 …er/issues/indexer.go:191:func2() [F] [6489171a-3] Unable to initialize Bleve Issue Indexer at path: /
var/lib/gitea/data/indexers/issues.bleve Error: error parsing mapping JSON: error building analyzer: no token filter with na
me or type ‘camelCase’ registered
mapping contents:
{“types”:{“_all”:{“enabled”:false,“dynamic”:false},“issueIndexerDocType”:{“enabled”:true,“dynamic”:true,“properties”
:{“Comments”:{“enabled”:true,“dynamic”:true,“fields”:[{“type”:“text”,“index”:true,“include_term_vectors”:true,“docvalues”:tr
ue}]},“Content”:{“enabled”:true,“dynamic”:true,“fields”:[{“type”:“text”,“index”:true,“include_term_vectors”:true,“docvalues”
:true}]},“RepoID”:{“enabled”:true,“dynamic”:true,“fields”:[{“type”:“number”,“store”:true,“index”:true,“docvalues”:true}]},“T
itle”:{“enabled”:true,“dynamic”:true,“fields”:[{“type”:“text”,“index”:true,“include_term_vectors”:true,“docvalues”:true}]}}}
},“default_mapping”:{“enabled”:true,“dynamic”:true},“type_field”:“_type”,“default_type”:“_default”,“default_analyzer”:“issue
Indexer”,“default_datetime_parser”:“dateTimeOptional”,“default_field”:“_all”,“store_dynamic”:true,“index_dynamic”:true,“docv
alues_dynamic”:true,“analysis”:{“token_filters”:{“unicodeNormalize”:{“form”:“nfc”,“type”:“normalize_unicode”}},“analyzers”:{
“issueIndexer”:{“char_filters”:,“token_filters”:[“unicodeNormalize”,“camelCase”,“to_lower”],“tokenizer”:“unicode”,“type”:"
custom"}}}}
Any idea what I can do to fix this?
I’m holding off on upgrading the work Gitea site until I’m sure that it wasn’t the upgrade to 19.3 that caused this.