Closed danotorrey closed 4 years ago
Thanks for testing @danotorrey.
I can't seem to reproduce your problem following the steps you provided.
There should be a migration fixing the problem. Can you take a look into you database if the
migration has been executed: db.getCollection('cluster_config').find({"type": "org.graylog.plugins.views.migrations.V20190805115800_RemoveDashboardStateFromViews.MigrationCompleted"})
?
Otherwise can you try to reproduce the problem?
Thanks @kmerz! I will check if the migration completed, and will check for reproducibility.
The error was happening due to having run a master version of Graylog on the database. The error is not reproducible on a fresh 3.1.3 version upgrade. Dashboards appear to have upgraded successfully.
@danotorrey How did you fix this problem?
I had the same problem to upgrade 3.1.4 to 3.2.0-beta4.
My logs: https://pastebin.com/YVsTHE4s
@chalfling In my case, I had downgraded and upgraded the same Graylog instance inadvertently before hand with a master Graylog build, which really caused some issues in my local Graylog MongoDB instance. I retested with a brand-new database and 3.1.4 installation and tested again, which was successful. This unfortunately will not help resolve the issue with your existing database.
@kmerz Do you know how the existing database for @chalfling can be cleaned up? The specific error is:
Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "dashboard_state" (class org.graylog.plugins.views.search.views.$AutoValue_ViewDTO$Builder), not marked as ignorable (11 known properties: "state", "search_id", "properties", "summary", "title", "type", "description", "requires", "owner", "_id", "created_at"])
at [Source: de.undercouch.bson4jackson.io.LittleEndianInputStream@6c49c64e; pos: 1283] (through reference chain: org.graylog.plugins.views.search.views.$AutoValue_ViewDTO$Builder["dashboard_state"])
at com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:61) ~[graylog.jar:?]
at com.fasterxml.jackson.databind.DeserializationContext.handleUnknownProperty(DeserializationContext.java:823) ~[graylog.jar:?]
at com.fasterxml.jackson.databind.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:1153) ~[graylog.jar:?]
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownProperty(BeanDeserializerBase.java:1589) ~[graylog.jar:?]
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownVanilla(BeanDeserializerBase.java:1567) ~[graylog.jar:?]
at com.fasterxml.jackson.databind.deser.BuilderBasedDeserializer.vanillaDeserialize(BuilderBasedDeserializer.java:274) ~[graylog.jar:?]
at com.fasterxml.jackson.databind.deser.BuilderBasedDeserializer.deserialize(BuilderBasedDeserializer.java:193) ~[graylog.jar:?]
at com.fasterxml.jackson.databind.ObjectMapper._readValue(ObjectMapper.java:3985) ~[graylog.jar:?]
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2343) ~[graylog.jar:?]
at org.mongojack.internal.stream.JacksonDBDecoder.decode(JacksonDBDecoder.java:80) ~[graylog.jar:?]
at org.mongojack.internal.stream.JacksonDBDecoder.decode(JacksonDBDecoder.java:64) ~[graylog.jar:?]
... 75 more
I tried a fresh install. My steps:
See my fresh install logs: https://pastebin.com/5q3q4reG
@kmerz What did I do wrong?
Hi all,
Same problem for me.
I found this in UPGRADING.txt
http://docs.graylog.org/en/3.2/pages/upgrade/graylog-3.2.html
@cmiscloni I fixed that and the line will be removed: https://github.com/Graylog2/graylog2-server/pull/7321/
@cmiscloni also, as mentioned on the communtiy board: https://community.graylog.org/t/upgrade-error-from-3-1-4-to-3-2-0-b3/13561/23 the original problem of @chalfling is also addressed.
@kmerz , the problem is still existing for me :( I tried to upgrade from 3.1.4 to 3.2 RC1 but I had only the default source Dashboard and a view which was migrated to Dashboard.
After upgrading from 3.1.3 to 3.2, the Dashboards page loads with errors. The following error is logged. There were 5 dashboards installed from the following content pack. The dashboards were working successfully before the upgrade.
This was tested with a production build. My Enterprise license is expired. Not sure if that impacts this at all.
Exception
2020-01-24 22:05:31,108 ERROR: org.graylog2.shared.rest.exceptionmappers.AnyExceptionClassMapper - Unhandled exception in REST resource 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:?] at org.bson.codecs.BsonDocumentCodec.decode(BsonDocumentCodec.java:84) ~[graylog.jar:?] at org.bson.codecs.BsonDocumentCodec.decode(BsonDocumentCodec.java:41) ~[graylog.jar:?] at org.bson.codecs.configuration.LazyCodec.decode(LazyCodec.java:47) ~[graylog.jar:?] at org.bson.codecs.BsonDocumentCodec.readValue(BsonDocumentCodec.java:101) ~[graylog.jar:?] at com.mongodb.operation.CommandResultDocumentCodec.readValue(CommandResultDocumentCodec.java:63) ~[graylog.jar:?] at org.bson.codecs.BsonDocumentCodec.decode(BsonDocumentCodec.java:84) ~[graylog.jar:?] at org.bson.codecs.BsonDocumentCodec.decode(BsonDocumentCodec.java:41) ~[graylog.jar:?] at com.mongodb.connection.ReplyMessage.Server log output from first startup after upgrade
2020-01-24 22:03:43,052 INFO : org.graylog2.bootstrap.ServerBootstrap - Graylog server 3.2.0-beta.4-SNAPSHOT+cb33786 starting up 2020-01-24 22:03:43,053 INFO : org.graylog2.bootstrap.ServerBootstrap - JRE: Oracle Corporation 1.8.0_201 on Linux 4.14.106-97.85.amzn2.x86_64 2020-01-24 22:03:43,053 INFO : org.graylog2.bootstrap.ServerBootstrap - Deployment: unknown 2020-01-24 22:03:43,053 INFO : org.graylog2.bootstrap.ServerBootstrap - OS: Amazon Linux 2 (amzn) 2020-01-24 22:03:43,053 INFO : org.graylog2.bootstrap.ServerBootstrap - Arch: amd64 2020-01-24 22:03:43,084 INFO : org.graylog2.shared.initializers.PeriodicalsService - Starting 35 periodicals ... 2020-01-24 22:03:43,084 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.ThroughputCalculator] periodical in [0s], polling every [1s]. 2020-01-24 22:03:43,093 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog.plugins.pipelineprocessor.periodical.LegacyDefaultStreamMigration] periodical, running forever. 2020-01-24 22:03:43,094 INFO : org.graylog2.shared.initializers.PeriodicalsService - Not starting [org.graylog2.periodical.AlertScannerThread] periodical. Not configured to run on this node. 2020-01-24 22:03:43,095 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.BatchedElasticSearchOutputFlushThread] periodical in [0s], polling every [1s]. 2020-01-24 22:03:43,095 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.ClusterHealthCheckThread] periodical in [120s], polling every [20s]. 2020-01-24 22:03:43,096 INFO : org.graylog2.shared.initializers.PeriodicalsService - Not starting [org.graylog2.periodical.ContentPackLoaderPeriodical] periodical. Not configured to run on this node. 2020-01-24 22:03:43,096 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.GarbageCollectionWarningThread] periodical, running forever. 2020-01-24 22:03:43,096 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.IndexerClusterCheckerThread] periodical in [0s], polling every [30s]. 2020-01-24 22:03:43,097 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.IndexRetentionThread] periodical in [0s], polling every [300s]. 2020-01-24 22:03:43,097 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.IndexRotationThread] periodical in [0s], polling every [10s]. 2020-01-24 22:03:43,097 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.NodePingThread] periodical in [0s], polling every [1s]. 2020-01-24 22:03:43,098 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.VersionCheckThread] periodical in [300s], polling every [1800s]. 2020-01-24 22:03:43,099 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.ThrottleStateUpdaterThread] periodical in [1s], polling every [1s]. 2020-01-24 22:03:43,099 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.events.ClusterEventPeriodical] periodical in [0s], polling every [1s]. 2020-01-24 22:03:43,100 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.events.ClusterEventCleanupPeriodical] periodical in [0s], polling every [86400s]. 2020-01-24 22:03:43,100 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.ClusterIdGeneratorPeriodical] periodical, running forever. 2020-01-24 22:03:43,101 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.IndexRangesMigrationPeriodical] periodical, running forever. 2020-01-24 22:03:43,102 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.IndexRangesCleanupPeriodical] periodical in [15s], polling every [3600s]. 2020-01-24 22:03:43,122 INFO : org.mongodb.driver.connection - Opened connection [connectionId{localValue:5, serverValue:5}] to localhost:27017 2020-01-24 22:03:43,131 INFO : org.mongodb.driver.connection - Opened connection [connectionId{localValue:6, serverValue:6}] to localhost:27017 2020-01-24 22:03:43,138 INFO : org.graylog2.shared.initializers.PeriodicalsService - Not starting [org.graylog2.periodical.UserPermissionMigrationPeriodical] periodical. Not configured to run on this node. 2020-01-24 22:03:43,138 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.ConfigurationManagementPeriodical] periodical, running forever. 2020-01-24 22:03:43,140 INFO : org.mongodb.driver.connection - Opened connection [connectionId{localValue:7, serverValue:7}] to localhost:27017 2020-01-24 22:03:43,140 INFO : org.mongodb.driver.connection - Opened connection [connectionId{localValue:4, serverValue:4}] to localhost:27017 2020-01-24 22:03:43,141 INFO : org.mongodb.driver.connection - Opened connection [connectionId{localValue:8, serverValue:8}] to localhost:27017 2020-01-24 22:03:43,152 INFO : org.graylog.plugins.pipelineprocessor.periodical.LegacyDefaultStreamMigration - Legacy default stream has no connections, no migration needed. 2020-01-24 22:03:43,160 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.LdapGroupMappingMigration] periodical, running forever. 2020-01-24 22:03:43,161 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.IndexFailuresPeriodical] periodical, running forever. 2020-01-24 22:03:43,161 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.TrafficCounterCalculator] periodical in [0s], polling every [1s]. 2020-01-24 22:03:43,165 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.indexer.fieldtypes.IndexFieldTypePollerPeriodical] periodical in [0s], polling every [3600s]. 2020-01-24 22:03:43,166 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog.scheduler.periodicals.ScheduleTriggerCleanUp] periodical in [120s], polling every [86400s]. 2020-01-24 22:03:43,166 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog.plugins.sidecar.periodical.PurgeExpiredSidecarsThread] periodical in [0s], polling every [600s]. 2020-01-24 22:03:43,166 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog.plugins.sidecar.periodical.PurgeExpiredConfigurationUploads] periodical in [0s], polling every [600s]. 2020-01-24 22:03:43,182 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog.plugins.views.search.db.SearchesCleanUpJob] periodical in [3600s], polling every [28800s]. 2020-01-24 22:03:43,191 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog.events.periodicals.EventNotificationStatusCleanUp] periodical in [120s], polling every [86400s]. 2020-01-24 22:03:43,196 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog.plugins.collector.periodical.PurgeExpiredCollectorsThread] periodical in [0s], polling every [3600s]. 2020-01-24 22:03:43,205 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog.plugins.license.LicenseManagerPeriodical] periodical in [0s], polling every [300s]. 2020-01-24 22:03:43,221 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog.plugins.license.LicenseReportPeriodical] periodical in [300s], polling every [3600s]. 2020-01-24 22:03:43,224 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog.plugins.auditlog.mongodb.MongoAuditLogPeriodical] periodical in [0s], polling every [3600s]. 2020-01-24 22:03:43,225 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog.plugins.report.scheduler.ReportPeriodical] periodical in [120s], polling every [60s]. 2020-01-24 22:03:43,226 ERROR: org.graylog.plugins.auditlog.mongodb.MongoAuditLogPeriodical - Not running cleanup for auditlog entries in MongoDB because there is no valid license. 2020-01-24 22:03:43,226 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog.plugins.report.service.ChromeDriverCleanupPeriodical] periodical in [60s], polling every [180s]. 2020-01-24 22:03:43,270 INFO : org.graylog2.lookup.LookupTableService - Data Adapter cloudflare-geo-lookup-table/5e0dd83795125a1023c2db57 [@1f64d005] STARTING 2020-01-24 22:03:43,272 INFO : org.graylog2.lookup.LookupTableService - Data Adapter cloudflare-threat-lookup-adaptor/5e0dd83795125a1023c2db37 [@7c8be05c] STARTING 2020-01-24 22:03:43,304 INFO : org.graylog2.lookup.LookupTableService - Data Adapter cloudflare-threat-lookup-adaptor/5e0dd83795125a1023c2db37 [@7c8be05c] RUNNING 2020-01-24 22:03:43,304 INFO : org.graylog2.lookup.LookupDataAdapterRefreshService - Adding job forcloudflare-logpush-content-pack.txt
Expected Behavior
The Dashboards page should load, and the pre-existing dashboards should load.
Current Behavior
The error occurs, and all pre-existing dashboards are inaccessible.
Steps to Reproduce (for bugs)
Your Environment