Closed guyferguson closed 3 years ago
FYI - Debug Info from gui: ''' GUI version: 0.17.1.1-33afd0b (Qt 5.9.9) Embedded Monero version: 0.17.1.1-33afd0bb8 Wallet path: E:\crypto\Monero\wallets\GuyF\GuyF Wallet restore height: 2198811 Wallet log path: C:\Users\GuyF\AppData\Roaming\monero-wallet-gui\monero-wallet-gui.log Wallet mode: Advanced modeOpenGL '''
Then - a storm here in Brisbane, brief power outage, restart machine, restart guiwallet.exe, 'Daemon failed to start, timed out after 120 seconds...
A power outage (i.e. unexpected shutdown) during the initial sync will cause the blockchain to corrupt. Alas, a resync from scratch will thus be required, which can be triggered by simply deleting data.mdb
Start again, wait for a couple minutes, then run sync_info. See whether all your peers are in this list: https://gui.xmr.pm/files/block.txt
If so, exit monerod, delete p2pstate.bin (it'll be in the .bitmonero directory where your chain is, not sure where it is on windows), and restart monerod.
Thanks both of you.
OK, @moneromooo-monero - when you say 'start again', do you mean 'after deleting data.mdb' as @dEBRUYNE-1 said? I am guessing so, as monerod run from CLI just quits almost immediately (as per initial post).
If so, then can you clarify what the purpose of doing a sync_info is? Is it to confirm the process id working properly?
Lastly - so it's better to get the blockchain from CLI daemon rather than GUI the first time? I think I may've read that you can 'preserve' the chain at various points by executing monerod exit...is that true of the initial download?
Thanks for all your help, I am only 2 days into using xmr.
Lastly - so it's better to get the blockchain from CLI daemon rather than GUI the first time? I
Doesn't particularly matter, although some prefer to run monerod.exe
separately.
I think I may've read that you can 'preserve' the chain at various points by executing monerod exit...is that true of the initial download?
The chain will be properly save if one exits monerod.exe
by typing exit
, yes. However, in case an unexpected shutdown occurs after monerod.exe
is started again, the blockchain will still corrupt (unless it was fully in sync during the 'crash').
My intent was to check whether most of your peers are known malicious (they prevent you from downloading the chain from them).
why is this still not marked as solved ?
Hi, I don't think I can do that, with m,y permissions. bc corrupted again this week, 'wrong page'. At 115GB I don't see myself doing a fourth full download. I guess most in the community are aware of this obstacle to new users.
@guyferguson Note that you can download a pruned blockchain (--prune-blockchain
) that is only 35GB. Also you can set --db-sync-mode safe
that will protect against db corruptions.
Hello, I am happy to start a fresh sync, just raising this in case it helps improve code. Running W10 machine. Blockchain being saved to drive with 39GB spare after 70GB downloaded. I ran my initial sync from guiwallet for around 18 hours,, got to 70.22G (89%). I was saving chain to non-default dir for space reasons. Then - a storm here in Brisbane, brief power outage, restart machine, restart guiwallet.exe, 'Daemon failed to start, timed out after 120 seconds... GUI log just says
I've tried portforwarding 18081 to this machine, I must admit I am not confident of my TP-Link VR 1600 router's ability to port forward..Shields Up says it's still blocked. So I shut down guiwallet, try monerod instead. Using --data-dir, the logs tell me to use --db-salvage. I do that, raise logs to level 4:
Then monerod in CLI just quits, no more logs, no CLI error, not sure if there is some other log location to look at.
I have looked (in github) at what follows line 1483 of db_lmdb.pp, and looked at the above log. I have tried my daemon startings ecveral times, the outcome is consistent, as above. monerod.exe --data-dir H:\ProgramData\bitmonero --log-level 4
Any ideas? Thanks, Guy,Brisbane,Australia