Hi,
I am trying to move Dremio docker container to another host.
First, I created backup:
bin/dremio-admin backup -d /local_files/ -i -j
Backup created at /local_files/dremio_backup_2020-08-18_14.55, dremio tables 24, uploaded files 0
Then I created tar and move to another docker host.
I run docker-compose and then restore backup:
m -rf data/db/
bin/dremio-admin restore -d /local_files/dremio_backup_2020-08-18_14.55/ -v -r
Restored from backup at /local_files/dremio_backup_2020-08-18_14.55/, dremio tables 24, uploaded files 0
Then I say
sudo docker-compose down
sudo docker-compose up
and I got next errors:
2020-08-18 15:27:30,642 [main] ERROR ROOT - Dremio is exiting. Failure while starting services.
dremio_1 | org.rocksdb.RocksDBException: Can’t access /000149.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000149.sst: No such file or directory
dremio_1 | Can’t access /000141.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000141.sst: No such file or directory
dremio_1 | Can’t access /000133.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000133.sst: No such file or directory
dremio_1 | Can’t access /000131.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000131.sst: No such file or directory
dremio_1 | Can’t access /000139.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000139.sst: No such file or directory
dremio_1 | Can’t access /000096.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000096.sst: No such file or directory
dremio_1 | Can’t access /000064.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000064.sst: No such file or directory
dremio_1 | Sst file size mismatch: /opt/dremio/data/db/catalog/000058.sst. Size recorded in manifest 17879590, actual size 1376
dremio_1 | Sst file size mismatch: /opt/dremio/data/db/catalog/000062.sst. Size recorded in manifest 21799013, actual size 1949
dremio_1 | Can’t access /000068.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000068.sst: No such file or directory
dremio_1 | Can’t access /000070.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000070.sst: No such file or directory
dremio_1 | Can’t access /000074.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000074.sst: No such file or directory
dremio_1 | Can’t access /000076.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000076.sst: No such file or directory
dremio_1 | Can’t access /000082.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000082.sst: No such file or directory
dremio_1 | Can’t access /000086.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000086.sst: No such file or directory
dremio_1 | Can’t access /000088.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000088.sst: No such file or directory
dremio_1 | Can’t access /000092.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000092.sst: No such file or directory
dremio_1 | Can’t access /000134.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000134.sst: No such file or directory
dremio_1 | Can’t access /000137.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000137.sst: No such file or directory
dremio_1 | Can’t access /000130.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000130.sst: No such file or directory
dremio_1 | Can’t access /000078.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000078.sst: No such file or directory
dremio_1 | Can’t access /000072.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000072.sst: No such file or directory
…
Dremio is exiting. Failure while starting services.
dremio_1 | org.rocksdb.RocksDBException: Can’t access /000149.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000149.sst: No such file or directory
dremio_1 | Can’t access /000141.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000141.sst: No such file or directory
dremio_1 | Can’t access /000133.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000133.sst: No such file or directory
dremio_1 | Can’t access /000131.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000131.sst: No such file or directory
dremio_1 | Can’t access /000139.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000139.sst: No such file or directory
dremio_1 | Can’t access /000096.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000096.sst: No such file or directory
dremio_1 | Can’t access /000064.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000064.sst: No such file or directory
Can’t access /000120.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000120.sst: No such file or directory
dremio_1 | Can’t access /000122.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000122.sst: No such file or directory
dremio_1 | Can’t access /000124.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000124.sst: No such file or directory
dremio_1 | Can’t access /000126.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000126.sst: No such file or directory
dremio_1 | Can’t access /000136.sst: IO error: while stat a file for size: /opt/dremio/data/db/catalog/000136.sst: No such file or directory
dremio_1 |
dremio_1 | at org.rocksdb.RocksDB.open(Native Method)
dremio_1 | at org.rocksdb.RocksDB.open(RocksDB.java:286)
dremio_1 | at com.dremio.datastore.ByteStoreManager.openDB(ByteStoreManager.java:281)
dremio_1 | at com.dremio.datastore.ByteStoreManager.start(ByteStoreManager.java:229)
dremio_1 | at com.dremio.datastore.CoreStoreProviderImpl.start(CoreStoreProviderImpl.java:148)
dremio_1 | at com.dremio.datastore.LocalKVStoreProvider.start(LocalKVStoreProvider.java:152)
dremio_1 | at com.dremio.datastore.adapter.LegacyKVStoreProviderAdapter.start(LegacyKVStoreProviderAdapter.java:69)
dremio_1 | at com.dremio.dac.cmd.upgrade.Upgrade.run(Upgrade.java:182)
dremio_1 | at com.dremio.dac.daemon.DremioDaemon.main(DremioDaemon.java:141)
dremio_1 | Suppressed: java.lang.IllegalStateException: #start was not invoked, so metadataManager is not available
dremio_1 | at com.google.common.base.Preconditions.checkState(Preconditions.java:508)
dremio_1 | at com.dremio.datastore.ByteStoreManager.getMetadataManager(ByteStoreManager.java:424)
dremio_1 | at com.dremio.datastore.ByteStoreManager.close(ByteStoreManager.java:431)
dremio_1 | at com.dremio.common.AutoCloseables.close(AutoCloseables.java:126)
dremio_1 | at com.dremio.common.AutoCloseables.close(AutoCloseables.java:76)
dremio_1 | at com.dremio.datastore.CoreStoreProviderImpl.close(CoreStoreProviderImpl.java:235)
dremio_1 | at com.dremio.datastore.LocalKVStoreProvider.close(LocalKVStoreProvider.java:196)
dremio_1 | at com.dremio.datastore.adapter.LegacyKVStoreProviderAdapter.close(LegacyKVStoreProviderAdapter.java:110)
dremio_1 | at com.dremio.dac.cmd.upgrade.Upgrade.run(Upgrade.java:185)
dremio_1 | … 1 more
dremio_1 | Heap
dremio_1 | def new generation total 7744K, used 2957K [0x00000006c0000000, 0x00000006c0860000, 0x0000000715550000)
dremio_1 | eden space 6912K, 37% used [0x00000006c0000000, 0x00000006c02804c0, 0x00000006c06c0000)
dremio_1 | from space 832K, 47% used [0x00000006c0790000, 0x00000006c07f3008, 0x00000006c0860000)
dremio_1 | to space 832K, 0% used [0x00000006c06c0000, 0x00000006c06c0000, 0x00000006c0790000)
dremio_1 | tenured generation total 17108K, used 14356K [0x0000000715550000, 0x0000000716605000, 0x00000007c0000000)
dremio_1 | the space 17108K, 83% used [0x0000000715550000, 0x0000000716355218, 0x0000000716355400, 0x0000000716605000)
dremio_1 | Metaspace used 19933K, capacity 20178K, committed 20352K, reserved 1067008K
dremio_1 | class space used 2258K, capacity 2339K, committed 2432K, reserved 1048576K
I got error with .sst files.
What I did wrong?
May be I should not to docker-compose down | up on new server?
But how to apply the backup?
My docker-compose file:
version: ‘3’
services:
dremio:
restart: always
image: dremio/dremio-oss:4.5.0
volumes:
- /data/dremio-test/local_files:/local_files
- /data/dremio-test/db:/opt/dremio/data/db
ports:
- 9047:9047
- 31010:31010