I am trying to upgrade a number of databases to influxdb 2.0.6. I am trying to use the automatic upgrade via docker. I was able to upgrade successful on a instance will a small amount of data. When trying a larger system, the container runs for a long time then the docker container exist and all the ported data seems to be deleted. While its running I can see the data folder get larger and larger but then empties at the end. How can I see what the issue is? Nothing useful gets output before the docker container exists.
some sample logs during upgrade:
{“level”:“info”,“ts”:1620427896.4258375,“caller”:“upgrade/database.go:222”,“msg”:“Computed disk space”,“free”:“185 GB”,“required”:“130 GB”}
{“level”:“info”,“ts”:1620427896.4259303,“caller”:“upgrade/database.go:51”,“msg”:“Upgrading databases”}
{“level”:“warn”,“ts”:1620429548.3894737,“caller”:“upgrade/database.go:157”,“msg”:“Empty retention policy”}
{“level”:“warn”,“ts”:1620429941.7302792,“caller”:“upgrade/database.go:157”,“msg”:“Empty retention policy”}
Last logs before exit.
2021-05-07T23:54:08.675557Z info Reindexing TSM data {“log_id”: “0TzJpzol000”, “service”: “storage-engine”, “engine”: “tsm1”, “db_shard_id”: 10730}
2021-05-07T23:54:08.782569Z info Opened file {“log_id”: “0TzJpzol000”, “service”: “storage-engine”, “engine”: “tsm1”, “service”: “filestore”, “path”: “/var/lib/influxdb2/engine/data/ea9cdcba4a85f27b/autogen/3637/000000011-000000002.tsm”, “id”: 0, “duration”: “548.986ms”}
2021-05-07T23:54:08.783183Z info Reindexing TSM data {“log_id”: “0TzJpzol000”, “service”: “storage-engine”, “engine”: “tsm1”, “db_shard_id”: 3637}
folder before exit:
117G influxdata2
folder after exit:
17M influxdata2