Yesterday I tried to upgrade from 4.2.9 to 4.3 but the graylog-server gives an error an won’t start.
My environment:
-
OS Information: Ubuntu 18.04
-
Package Version: graylog 4.3
The file /var/log/graylog-server/server.log shows this error:
2022-05-26T10:52:54.784-03:00 WARN [ServerBootstrap] Exception while running migrations
java.lang.IllegalStateException: Index prefix conflict: a non-events index-set with prefix <gl-events> already exists. Configure a different <default_events_index_prefix> value in the server config file.
at org.graylog2.migrations.V20190705071400_AddEventIndexSetsMigration.checkIndexPrefixConflicts(V20190705071400_AddEventIndexSetsMigration.java:131) ~[graylog.jar:?]
at org.graylog2.migrations.V20190705071400_AddEventIndexSetsMigration.ensureEventsStreamAndIndexSet(V20190705071400_AddEventIndexSetsMigration.java:112) ~[graylog.jar:?]
at org.graylog2.migrations.V20190705071400_AddEventIndexSetsMigration.upgrade(V20190705071400_AddEventIndexSetsMigration.java:85) ~[graylog.jar:?]
at org.graylog2.bootstrap.ServerBootstrap.lambda$runMigrations$0(ServerBootstrap.java:263) ~[graylog.jar:?]
at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:422) ~[graylog.jar:?]
at com.google.common.collect.RegularImmutableSortedSet.forEach(RegularImmutableSortedSet.java:88) ~[graylog.jar:?]
at org.graylog2.bootstrap.ServerBootstrap.runMigrations(ServerBootstrap.java:261) ~[graylog.jar:?]
at org.graylog2.bootstrap.ServerBootstrap.startCommand(ServerBootstrap.java:187) [graylog.jar:?]
at org.graylog2.bootstrap.CmdLineTool.run(CmdLineTool.java:311) [graylog.jar:?]
at org.graylog2.bootstrap.Main.main(Main.java:45) [graylog.jar:?]
What I tried:
- Reviewed the server.conf file, changed the word “master” to “leader”, no luck.
- Tried to downgrade, no luck.
- Added this to the config file:
# Configures the prefix used for graylog event indices
# Default: gl-events
default_events_index_prefix = gl-events
→ no luck
should I define a new index prefix?
As I understand from the error message the upgrade conflicts with the existing prefix index…¿?
@jan could you take a quick-look? thanks!
I want any tip that can help me revert the upgrade or make this release 4.3 work
Thank you very much!
Max