Probably a stupid question, but you're not copying the blockchain while the client is running? If so, the database will be changing as it's copied, and you will always get corruption.
Of course, not. I have turned off Bitcoin Core for every single transfer. It was also not running on the Raspberry Pi.
|
|
|
Do you think that the SCP upload got disrupted mid-copy and abruptly left some blocks partially-copied? I don't think SCP attempts to finish copying interrupted transfers.
I don't think that SCP is the culprit. I have already tried copying all the files using Windows Explorer when the whole drive was formatted to exFat. I am also using WinSCP which I believe resumes interrupted transfers. Given that the scp transfer took a whole night the speed probably wasn't that great. Possibly several dozen Kbytes/s?
It was about 18-20 MB/s, so the transfer took about 5-6 hours. With a samba server, I could get those speeds up to 100 MB/s. Check your block files with md5sum and make sure they're all the same as the ones you have locally.
I could do that, but it is very likely to be a waste of time. The error indicates that there is something wrong with the latest block which I believe was not downloaded on my PC. Other than that the only thing I can think of is there is some hardware issue that is only showing itself when the system is under load, like when it's verifying the blockchain or a block. But, that is really a stretch.
I could try running either -reindex or -reindex-chainstate as the debug.log suggests, but I guess that would take a few days. When the drive was formatted to exFat, after the corruption had occurred on the Pi, I tried connecting it to my PC and replacing the "chainstate" folder with a backup, but I couldn't modify that folder unless I ran a Windows built-in repair tool. I have configured my samba server with the exFat partition and everything seems to be working fine. I have transferred a few large files back-and-forth and there are no corruptions so far.
|
|
|
Manager: yahoo62278Nazwa kampanii: WINZ.IO Casino Signature and avatar CampaignIle do zarobienia/tydzień / ilość postów: Member - 0.0003 BTC/tydzień, Full Member - 0.0006 BTC/tydzień, Senior Member - 0.0009 BTC/tydzień, Hero Member - 0.0012 BTC/tydzień, Legendary - 0.0015 BTC/tydzień Jakie rangi: Łącznie 10-12 miejsc dla rang Member - Legendary Dodatkowe informacje: Minimum 25 postów na tydzień, w tym 5 postów w sekcji Gambling. Lokale się nie liczą.
|
|
|
Both Bitcoin Core compilation and SCP upload finished over night, so I decided to give it another try. All the blockchain data is now stored on the ext4 partition. Unfortunately, something is still wrong. Block #667874 was the latest one at that moment. 2021-01-27T09:54:38Z init message: Verifying blocks... 2021-01-27T09:54:38Z Verifying last 6 blocks at level 3 2021-01-27T09:54:38Z [0%]...ERROR: ReadBlockFromDisk: Deserialize or I/O error - CAutoFile::read: end of file: iostream error at FlatFilePos(nFile=2425, nPos=42621844) 2021-01-27T09:54:38Z ERROR: VerifyDB(): *** ReadBlockFromDisk failed at 667874, hash=00000000000000000008e979aaca803bc56599f1bc80aa3196c1d9089958034f 2021-01-27T09:54:38Z : Corrupted block database detected. Please restart with -reindex or -reindex-chainstate to recover. 2021-01-27T09:54:38Z Aborted block database rebuild. Exiting. Here's my complete debug.log.
|
|
|
If it's the latter, and it probably is if other folders on that filesystem are getting corrupted too, then the ext4 filesystem was made on the wrong device. You should be making it on one like /dev/sda1 or sda2, not /dev/sda (which is reserved for the partition table on-disk).
The corruption occurred when my whole drive was formatted to exFat. Thanks for your instructions, though. Perhaps you can create a docker container and pass the mount point of your ext4 partition as a volume and install raspiblitz inside that? Then it will only be able to see the ext4 partition.
That's a good idea. However, RaspiBlitz is only available as an OS image. I have decided to make a clean setup and install everything manually again.
|
|
|
How large is your SSD? How much space do you need for the exFat? Do you need anything that is on it now?
1 TB (931.50 GB available). I would like to keep at least 400 GB for the exFat partition. I don't have any personal files on that drive, so I can safely keep playing with it. I am currently uploading the blockchain data through SCP to the ext4 partition, though. If it's a 1 TB and you don't need anything that's on it just let installer do its thing and then do a shutdown and re-size.
Sounds good, but I might need to modify some auto-mount setting later. Keep in mind between the blockchain and the lightning DB and everything else I would no go below 650 or so GB otherwise you are going to be doing this again soon.
My blockchain data takes about 350 GB right now. I assume that it will grow at a rate of about 50 GB per year. How much does the lightning database weight? 450-500 GB for the ext4 partition sounds fine to me at the moment.
|
|
|
I wouldn't choose exFat, but not sure if it's actually susceptible to data corruption. It's just that you can likely get something more reliable (ZFS or btrfs), or simply with more features/security (ext4)
I ended up splitting my SSD into two separate partitions (exFat and ext4). I need to keep the exFat one because I want to be able to occasionally use that SSD with my Windows laptop on the go. Now, I am trying to figure out how to force RaspiBlitz to mount and use only the ext4 partition. The automatic installer insists on making one large partition, so I can't proceed with the installation.
|
|
|
Oczywiście nie naciskam i jak to nie @Rath i nie masz ochoty się przedstawiać, to nie musisz.
Nie mam wystarczająco czasu, żeby aktywnie udzielać się na tym koncie, a co dopiero myśleć o drugim Ciesze się, że znalazł się na naszym lokalu ktoś kto również jest zainteresowany Lightning Network.
|
|
|
Manager: HhampuzNazwa kampanii: Vertex.market Signature CampaignIle do zarobienia/tydzień / ilość postów: Hero Member/Legendary - $55 w BTC/tydzień Jakie rangi: 10x Hero Member/Legendary Dodatkowe informacje: Posty w lokalach nie liczą się.
|
|
|
@wezla ja jak najbardziej bym z chęcią na ten temat poczytal /poogladal
Wygląda na to, że nieprędko będę w stanie podzielić się jakimikolwiek szczegółami. Ciągle walczę z pełnym węzłem, który po raz kolejny uszkodził mi pliki znajdujące się w folderze "chainstate". Po raz kolejny muszę czekać aż zakończy się reindeksacja bloków, co trwa u mnie około 8 godzin (na głównym komputerze, a nie na "malince"). W najgorszym wypadku skuszę się na gotowca i zamiast z c-lightning będę korzystał z LND, które jest popularniejsze wśród gotowych rozwiązań.
|
|
|
I might end up going for RaspiBolt since I am having some trouble with setting up everything correctly. My chainstate folder got corrupted twice for no reason when launching bitcoind. I am not sure if it's because my external SSD was formatted to exFat or because I am also running a samba server pointing to that drive. I am running Ubuntu Server 20.04.1 and I followed this guide. Is there any particular reason why you guys chose c-lightning over LND or vice-versa?
|
|
|
When I set up my nano x, i turned it on without the live app and it generated a recovery phrase. I assume once you generate a recovery phrase this way, you wont be able to "restore an existing wallet" once you are on the app cause you already generated a recovery phrase to that device? Is that correct?
You don't need Ledger Live to restore an existing wallet. You must have selected "Set up as a new device" during the initial setup. See this YouTube video from Ledger. You can restore an existing wallet after you generate a new wallet if you wipe your device (either by doing so in the settings or by entering an incorrect PIN three times).
|
|
|
1) If you get a new device and use your old device's recovery phrase on the new device, what do you do with your new device's recovery phrase? Do you keep both recovery phrases? Or which one to keep?
In the beginning, you are asked if you want to create a new wallet or restore an existing one. You won't get a new recovery phrase if you choose the latter option. 2) Can't you just send the crypto to the new wallet instead?
Of course, you can. However, that could involve a couple of transactions if someone used multiple accounts or coins. 3) Someone mentioned resetting your old device back to factory defaults and selling it. Does the resetted device generate an entirely new recovery phrase, or the same one? I personally wouldnt buy someone's old device.
Yes, it does. Otherwise, you would have to buy a new device if you somehow exposed your seed.
|
|
|
[...] when I check to total sum of all the addresses on block explorer, there are less coins that the in the trezor balance.
Do you recall having a change output in any of your transactions? That could be the cause. Is there a way to list all the addresses accosted with the wallet and having balance in them?
Yes, the easiest way would be probably to use Electrum for that. However, using a public key for each account might be a better idea than adding every single address to a watchlist manually. As far as I remember, Sentinel supports public keys. This guide shows how to get public keys for each account on wallet.trezor.io.
|
|
|
Manager: CryptopreneurBrainbossNazwa kampanii: DeFi For You Signature CampaignIle do zarobienia/tydzień / ilość postów: Full Member - $20 w BTC/10 dni, Senior Member - $30 w BTC/10 dni, Hero Member/Legendary - $40 w BTC/10 dni Jakie rangi: 30x Full Member, 30x Senior Member, 35x Hero Member/Legendary Dodatkowe informacje: Minimum 40 postów w ciągu 10 dni.
|
|
|
Just to go on from this, can I then sell my Nano S, or does the recovery phrase stay the same so it means it's now vulnerable to a buyer? I know they aren't expensive, but a mate may well be getting into crypto so could be of use to him?
You can safely sell your device or give it to someone else. Before doing that, you need to wipe it. Either enter an incorrect PIN three times or factory reset your Nano S in the settings.
|
|
|
Any reason why you want c-lightning in a device instead of LND?
I have already played around with LND when I was getting started with the Lightning Network, so I want to try something new. Also, I heard a lot of people complaining about LND being a mess now. The only thing I don't like about c-lightning is that it lacks decent clients. The only one I can recall is Spark while LND can be connected to Zap or even BlueWallet (if configured properly), and some other clients. -snip
Thanks for your input. The first link is not what I am looking for - that project supports only LND. As for the other link, it might actually come in useful.
|
|
|
Hey, does anyone know if there are any Raspibolt/ Raspiblitz alternatives with c-lightning support instead of LND? I had no luck so far in finding any. I will end up installing everything manually if I can't find any alternatives by tomorrow.
|
|
|
But I like the idea that maybe the liquidity on route to the recipient was not sufficient. That is one possible explanation.
There is also one more possible explanation. If the receiver has more than one channel, your wallet might have found a path to a channel which had only outgoing capacity. If you agree, feel free to drop me a PM with an invoice of lets say 500 sats and I will try to send it to you as a test and a gift
Thanks, but I am currently using only BlueWallet, so the payment would go through for sure. I will message you once I finish setting up my c-lightning node.
|
|
|
I know for sure, that the receiver has enough inbound capacity so this can be ruled out.
For how long has the receiver had that inbound capacity? A few days ago, I encountered a similar problem when I was helping out another user with their c-lightning node. He was unable to receive payments from BlueWallet and other services for a few hours since he got inbound capacity. Maybe there is no route with enough capacity between you and the receiver.
I believe that BlueWallet has a separate error code for lack of routes.
|
|
|
|