You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
check_query="SELECT 1 FROM pg_database WHERE datname = current_database() AND datcollversion <> (SELECT collversion FROM pg_collation WHERE collname = 'en_US.utf8' LIMIT 1);"
@@ -49,4 +52,26 @@ if [[ -f "${data_dir}/PG_VERSION" ]]; then
49
52
fi
50
53
fi
51
54
55
+
if [[ -f /var/lib/web3signer/.migration_fatal_error ]];then
56
+
echo"An error occurred during \"ethd update\" and slashing protection database migration, that makes it unsafe to start Web3signer."
57
+
echo"Until this is manually remedied, Web3signer will refuse to start up."
58
+
echo"Aborting."
59
+
echo
60
+
echo"If this issue has since been resolved, you can remove the \".migration_fatal_error\" marker file in Web3signer's"
61
+
echo"Docker volume."
62
+
echo
63
+
echo"ONLY remove the marker file if the issue has been resolved. You risk slashing otherwise."
64
+
sleep 30
65
+
exit 1
66
+
fi
67
+
68
+
if [[ -f /var/lib/web3signer/.migration_error ]];then
69
+
echo"An error occurred during \"ethd update\", while switching to a new version of PostgreSQL."
70
+
echo"Web3signer will start, but won't work until PostgreSQL's version matches the slashing protection database"
71
+
echo"version."
72
+
echo
73
+
echo"If this issue has since been resolved, you can remove the \".migration_error\" marker file in Web3signer's"
0 commit comments