Upgrade from 2.3.2 to 3.1.3 provides exceptions

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?

Have You read this?
http://docs.graylog.org/en/3.0/pages/upgrade/graylog-3.0.html

There are so many changes from 2.3 to 3, so I prefer to install fresh server and migrate data to it.

Thank you Karlis.

The version of Elasticsearch was ok:
$ curl -XGET ‘http://localhost:9200
{
“name” : “_cYpcCG”,
“cluster_name” : “graylog”,
“cluster_uuid” : “JLSE8VrOR3Kd_FowZ3oe1g”,
“version” : {
“number” : “5.6.16”,
“build_hash” : “3a740d1”,
“build_date” : “2019-03-13T15:33:36.565Z”,
“build_snapshot” : false,
“lucene_version” : “6.6.1”
},
“tagline” : “You Know, for Search”
}

I removed graylog-server and reinstalled it:
Removed:
graylog-server.noarch 0:3.1.3-1
Running transaction
Installing : graylog-server-3.1.3-1.noarch
Installed:
graylog-server.noarch 0:3.1.3-1
Complete!

Still I get the error.

You also wrote:
and migrate data to it.

But how do I do that?

Thanks in advance.

I reinstalled MongoDB and the database and now I get the following error:
2020-01-03T10:26:28.085+02:00 ERROR [IndexFieldTypePollerPeriodical] Couldn’t update field types for index set <Default index set/5e0efab345201c3be895052d>
com.mongodb.MongoInterruptedException: Interrupted acquiring a permit to retrieve an item from the pool

OK. After restarting the complete server I do not get any errors anymore.

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.