I used the following commands to upgrade my graylog:
sudo rpm -Uvh https://packages.graylog2.org/repo/packages/graylog-3.1-repository_latest.rpm
sudo yum clean all
$ sudo yum install graylog-server
After that I modified the graylog.conf settings:
rest_listen_uri
http_bind_address
127.0.0.1:9000
Log:
2020-01-02T18:06:52.100+02:00 INFO [ServerBootstrap] Graylog server 3.1.3+cda805f starting up
2020-01-02T18:06:52.100+02:00 INFO [ServerBootstrap] JRE: Oracle Corporation 1.8.0_232 on Linux 3.10.0-1062.9.1.el7.x86_64
2020-01-02T18:06:52.100+02:00 INFO [ServerBootstrap] Deployment: rpm
2020-01-02T18:06:52.101+02:00 INFO [ServerBootstrap] OS: CentOS Linux 7 (Core) (centos)
2020-01-02T18:06:52.101+02:00 INFO [ServerBootstrap] Arch: amd64
However, after starting graylog I get the error:
2020-01-02T18:06:52.360+02:00 INFO [Periodicals] Starting [org.graylog.events.periodicals.EventNotificationStatusCleanUp] periodical in [120s], polling every [86400s].
2020-01-02T18:06:52.413+02:00 ERROR [SearchesCleanUpJob] Uncaught exception in periodical
java.lang.RuntimeException: IOException encountered while reading from a byte array input stream
at org.mongojack.internal.stream.JacksonDBDecoder.decode(JacksonDBDecoder.java:67) ~[graylog.jar:?]
at com.mongodb.DBDecoderAdapter.decode(DBDecoderAdapter.java:49) ~[graylog.jar:?]
at com.mongodb.DBDecoderAdapter.decode(DBDecoderAdapter.java:29) ~[graylog.jar:?]
at com.mongodb.operation.CommandResultArrayCodec.decode(CommandResultArrayCodec.java:52) ~[graylog.jar:?]
at com.mongodb.operation.CommandResultDocumentCodec.readValue(CommandResultDocumentCodec.java:60) ~[graylog.jar:?]
Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field “type” (class org.graylog.plugins.views.search.views.$AutoValue_ViewDTO$Builder), not marked as ignorable (11 known properties: “state”, “search_id”, “properties”, “summary”, “title”, “_id”, “description”, “requires”, “owner”, “dashboard_state”, “created_at”])
at [Source: de.undercouch.bson4jackson.io.LittleEndianInputStream@43e17e05; pos: 37] (through reference chain: org.graylog.plugins.views.search.views.$AutoValue_ViewDTO$Builder[“type”])
at com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:63) ~[graylog.jar:?]
at com.fasterxml.jackson.databind.DeserializationContext.handleUnknownProperty(DeserializationContext.java:834) ~[graylog.jar:?]
I cannot find articles that describes this problem.
How can I solve this?