Details
-
Bug
-
Status: Complete
-
Highest
-
Resolution: Done
-
None
-
None
-
None
-
None
-
12
Description
I have a node that did not upgrade successfully with a POOL_UPGRADE. I am running through the steps of upgrading that node manually along with running the migration script.
Current build is Stable version
indy-plenum=1.0.21
indy-anoncreds=1.0.8
indy-node=1.0.28
sovrin=1.0.3
Upgrading to Stable version
indy-plenum=1.1.24
indy-anoncreds=1.0.10
indy-node=1.1.33
sovrin=1.1.6
I receive the following error:
ImportError: No module named 'data/migrations'
Steps
I have 4 nodes in my pool and I am upgrading them manually to simulate an issue where not all the nodes upgraded with a pool_upgrade command.
Run the following commands on the node:
sudo apt update
sudo systemctl stop sovrin-node
sudo systemctl stop sovrin-node-control
sudo apt-get install sovrin -y
sudo apt-get install indy-node -y
After upgrade of node run the following:
sudo python3
from sovrin_node.utils.migration_tool import migrate
migrate("1.0.28","1.1.33",10)
Error
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.5/dist-packages/sovrin_node/utils/migration_tool.py", line 52, in migrate migration_scripts = _get_migration_scripts(current_platform) File "/usr/local/lib/python3.5/dist-packages/sovrin_node/utils/migration_tool.py", line 73, in _get_migration_scripts '.'.join([SCRIPT_PREFIX, PLATFORM_PREFIX[current_platform]])) File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 986, in _gcd_import File "<frozen importlib._bootstrap>", line 969, in _find_and_load File "<frozen importlib._bootstrap>", line 944, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 986, in _gcd_import File "<frozen importlib._bootstrap>", line 969, in _find_and_load File "<frozen importlib._bootstrap>", line 956, in _find_and_load_unlocked ImportError: No module named 'data/migrations'