All dashboards lost after upgrade from 3.1.x to 3.2.1

After upgrade to 3.2 I’ve lost all (~50) dashboards with hundreds of widgets.
Following meaningful error is thrown:

2020-02-11T10:36:40.194+02:00 ERROR [ConfigurationManagementPeriodical] Error while running migration <V20191125144500_MigrateDashboardsToViews{2019-11-25T14:45:00Z}>
java.lang.RuntimeException: Unable to parse function: avg(time-taken)
at org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.viewwidgets.Series.toSeriesSpec( ~[graylog.jar:?]
at org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.AggregationWidget.lambda$toSearchTypes$2( ~[graylog.jar:?]
at$3$1.accept( ~[?:1.8.0_212]
at java.util.Collections$2.tryAdvance( ~[?:1.8.0_212]
at java.util.Collections$2.forEachRemaining( ~[?:1.8.0_212]
at ~[?:1.8.0_212]
at ~[?:1.8.0_212]
at$ReduceOp.evaluateSequential( ~[?:1.8.0_212]
at ~[?:1.8.0_212]
at ~[?:1.8.0_212]
at org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.AggregationWidget.toSearchTypes( ~[graylog.jar:?]
at org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.V20191125144500_MigrateDashboardsToViews.createSearchType( ~[graylog.jar:?]
at org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.V20191125144500_MigrateDashboardsToViews.lambda$migrateDashboard$5( ~[graylog.jar:?]
at$7$1.accept( ~[?:1.8.0_212]
at java.util.Iterator.forEachRemaining( ~[?:1.8.0_212]
at java.util.Spliterators$IteratorSpliterator.forEachRemaining( ~[?:1.8.0_212]
at ~[?:1.8.0_212]
at ~[?:1.8.0_212]
at$ReduceOp.evaluateSequential( ~[?:1.8.0_212]
at ~[?:1.8.0_212]
at ~[?:1.8.0_212]
at org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.V20191125144500_MigrateDashboardsToViews.migrateDashboard( ~[graylog.jar:?]
at org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.V20191125144500_MigrateDashboardsToViews.lambda$upgrade$0( ~[graylog.jar:?]
at$3$1.accept( ~[?:1.8.0_212]
at java.util.ArrayList.forEach( ~[?:1.8.0_212]
at$RefSortingSink.end( ~[?:1.8.0_212]
at ~[?:1.8.0_212]
at ~[?:1.8.0_212]
at$ReduceOp.evaluateSequential( ~[?:1.8.0_212]
at ~[?:1.8.0_212]
at ~[?:1.8.0_212]
at org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.V20191125144500_MigrateDashboardsToViews.upgrade( ~[graylog.jar:?]
at org.graylog2.periodical.ConfigurationManagementPeriodical.doRun( [graylog.jar:?]
at [graylog.jar:?]
at [?:1.8.0_212]

After master node restart the same error message is thrown. Is there something i can do to resolve this?

Dashboards are obviously there (in a mongodb collection) but migration script could not migrate them. I’ve tried to export/import mongodb dashboard collection to 3.1 test environment I have for a later creation of content pack on that 3.1 version and uploading this content pack on 3.2 version afterwards as a workaround but this also failed (i could import mongodb data, create content pack on version 3.1, could upload it on 3.2 but it is failing to install).
I had one custom content pack with dashboards which was uploaded but not installed previously and this pack installed successfully so basically version 3.1 content packs are at some level compatible with 3.2 but still I could not install successfully content pack from that temporary 3.1 test environment into 3.2 version even with only 1 dashboard and 3 simple widgets.
Can someone assist me on how to migrate those as it will take many days to recreate them manually.

same error here after migration

ERROR [ConfigurationManagementPeriodical] Error while running migration <V20191125144500_MigrateDashboardsToViews{2019-11-25T14:45:00Z}>

from graylog-3.1-repository_latest.deb to graylog-3.2-repository_latest.deb

please advise

he @ericMont

you did not share enough from your error. But you might run into the issue mentioned here:

Just found this bug. Checked and i don’t have dashes though i have underscores in field names of series. Is this bug relevant to my problem or it is a whole different story?

Hello, we have updated Graylog with 3.1.x to 3.2.1 and all our dashboards have disappeared

we get an error in the log:
2020-02-12T11: 53: 18.952+01: 00 error [MongoDB Processing Status Recorder Service] failed to save the processing state
2020-02-12T12: 08: 55.870+01: 00 error [periodic configuration management] error when performing migration <V20191125144500_MigrateDashboardstoviews{2019-11-25T14: 45: 00Z}>

Graylog-server 3.2.1
MongoDB 3.6.17
Elasticsearch in 5.6.16

he @rsa
please add this information to the issue - because that might be related and the devs can check for that too

he @ec10

sorry that you run into problems - but with the provided information it is not possible to identify the issue. It might be related to your MongoDB version. But that is just guessing. Because it might be something else.

Cause of my problem indeed is as described in bug ( As this affected only few percents of all widgets (I’ve hundreds of widgets and only some 20 included dash in a field name) I exported dashboard collection from mongodb, deleted those widgets there, cleared/truncated dashboard collection and imported back collection with affected widgets removed. Migration script succeeded. Will add those ~20 manually later.

1 Like

This will be fixed in 3.2.2. Underscores should always have worked, but dashes and @ haven’t. See