Fix wallets scan upload faults

This commit is contained in:
Philip Sargent
2022-08-14 22:52:14 +03:00
parent b093d00ff4
commit 284e044a03
5 changed files with 80 additions and 38 deletions

View File

@@ -1528,6 +1528,12 @@ def LoadSurvexBlocks():
survexblockroot = SurvexBlock(name=ROOTBLOCK, survexpath="", cave=None, survexfile=survexfileroot,
legsall=0, legslength=0.0)
# crashes here sometimes on MariaDB complaining that cave_id should not be null. But it should be.
#django.db.utils.IntegrityError: (1048, "Column 'cave_id' cannot be null")
# fix by restarting db on server
# sudo service mariadb stop
# sudo service mariadb start
survexblockroot.save()
print(' - Loading Survex Blocks...')