It displays me with a list of unmatched. found list on old-blobdb but not on new one. So i used the next command . which is --migrate to migrate items “Found in old db”. Here is the output on some of them.
Traceback (most recent call last):
File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
File "/home/cchq/www/echis/releases/2021-06-01_04.52/corehq/blobs/management/commands/check_blob_logs.py", line 110, in process
category = check_blob(rec, old_db, new_db, migrate)
File "/home/cchq/www/echis/releases/2021-06-01_04.52/corehq/blobs/management/commands/check_blob_logs.py", line 123, in check_blob
with old_db.get(key=key) as content:
File "/home/cchq/www/echis/releases/2021-06-01_04.52/corehq/ex-submodules/dimagi/utils/retry.py", line 31, in retry
return func(*args, **kw)
File "/home/cchq/www/echis/releases/2021-06-01_04.52/corehq/blobs/s3db.py", line 96, in get
key = self._validate_get_args(key, type_code, meta)
File "/home/cchq/www/echis/releases/2021-06-01_04.52/corehq/blobs/interface.py", line 80, in _validate_get_args
raise ValueError("'key' must be specified with 'type_code'")
ValueError: 'key' must be specified with 'type_code'
2021-06-08T04:57:16Z <Greenlet at 0x7f26d056c948: process({'blobmeta_id': 679030, 'domain': 'fmoh-echis', 't, <corehq.blobs.s3db.S3BlobDB object at 0x7f26dabb38, <corehq.blobs.s3db.S3BlobDB object at 0x7f26db2a72, True)> failed with ValueError
This is almost the same as the first migration but it will first check if the object is in the new BlobDB and only attempt to copy it over if it isn't. This should make it much faster and will also give you a log output for anything that's missing.
Once that is complete you should inspect that log to see if anything critical is missing. If not you can flip. You could also run the check_blob_logs again on the new log file to get the nice summary output.
Error processing blob:
Traceback (most recent call last):
File "/home/cchq/www/echis/releases/2021-06-01_04.52/corehq/blobs/migrate.py", line 484, in work_on
ok = migrator.migrate(doc)
File "/home/cchq/www/echis/releases/2021-06-01_04.52/corehq/blobs/migrate.py", line 305, in migrate
content = self.db.old_db.get(key=meta.key)
File "/home/cchq/www/echis/releases/2021-06-01_04.52/corehq/ex-submodules/dimagi/utils/retry.py", line 31, in retry
return func(*args, **kw)
File "/home/cchq/www/echis/releases/2021-06-01_04.52/corehq/blobs/s3db.py", line 96, in get
key = self._validate_get_args(key, type_code, meta)
File "/home/cchq/www/echis/releases/2021-06-01_04.52/corehq/blobs/interface.py", line 80, in _validate_get_args
raise ValueError("'key' must be specified with 'type_code'")
ValueError: 'key' must be specified with 'type_code'
will retry c857c170bb2914f540e9f342ae004cb1 71
Error processing blob:
Traceback (most recent call last):
File "/home/cchq/www/echis/releases/2021-06-01_04.52/corehq/blobs/migrate.py", line 484, in work_on
ok = migrator.migrate(doc)
File "/home/cchq/www/echis/releases/2021-06-01_04.52/corehq/blobs/migrate.py", line 305, in migrate
content = self.db.old_db.get(key=meta.key)
File "/home/cchq/www/echis/releases/2021-06-01_04.52/corehq/ex-submodules/dimagi/utils/retry.py", line 31, in retry
return func(*args, **kw)
File "/home/cchq/www/echis/releases/2021-06-01_04.52/corehq/blobs/s3db.py", line 96, in get
key = self._validate_get_args(key, type_code, meta)
File "/home/cchq/www/echis/releases/2021-06-01_04.52/corehq/blobs/interface.py", line 80, in _validate_get_args
raise ValueError("'key' must be specified with 'type_code'")
ValueError: 'key' must be specified with 'type_code'
will retry d563de2ee8584917ba614422d3a1e33c 68