8.1 step hits me with this error that i can’t pass… help
root@odroid:/mnt/StorJ/storagenode/storage# docker run --rm -it --mount type=bind,source= /mnt/StorJ/storagenode/storage#,destination=/storage sstc/sqlite3 sh invalid argument “type=bind,source=” for “–mount” flag: target is required
Since it appears you are using an Odroid, you will be unable to use the Docker version of sqlite3 (it is unavailable for ARM last I checked). You will have to follow the steps for installing sqlite3 directly (Steps 5.2 and 8.2).
baker, thanks for replay. i had no problem to install and run sqlite3, problem is that i found where i was doing mistake in command and passed all steps from 9 to 14 for each db file - that was with error. rebooted odroid and now:
managed to recover to where i was before. but still same problem that my 4 *.db files are with errors.
so i am trying same with powershell, i have sqlite file in my local C:, it runs there, but if i navigate to docker and run this command:
Please, install Notepad++, open this dump_all_notrans.sql, change encoding to UTF8 without BOM and save it.
Then try to import again.
If error would persist, then you can:
remove the bandwidth.db
move all *.db to the backup folder
run storagenode
It will create all databases, but they would be empty
Stop storagenode
Restore all databases from backup folder with overwrite
Alexey, thank you for help. I manage to fix it with you advice.
there is not very clear manual how to do it in powershell (at least not for beginners). i made list of all steps that i did:
important to run powershell commands 1 by 1, otherwise some it was just not working
Sqlite 3 files place in location c:\sqlite (crate folder if needed)
Please corrupted *.db file in c:\sqlite (in example bandwidth.db)
Run PowerShell as administrator
Navigate PowerShell to c:\sqlite
replace *.db file name in all fallowing steps with the one with error, paste commands 1 by 1 in PowerShell
checking if db file has error:
Get-ChildItem C:\sqlite\bandwidth.db -File | %{_.Name + " " + (c:\sqlite\sqlite3.exe $_.FullName “PRAGMA integrity_check;”)}
If yes, do all steps bellow:
PS C:\sqlite> c:/sqlite/sqlite3.exe c:/sqlite/heldamount.db “.read c:/sqlite/dump_all_notrans.sql”
Error: near line 2: no such table: versions
Error: near line 3: no such table: versions
Error: near line 4: no such table: versions
Error: near line 5: no such table: versions
Error: near line 6: no such table: versions
Error: near line 7: no such table: versions
Error: near line 8: no such table: versions