Author

Topic: Does bitcoincore files are multi-platform? (Read 275 times)

legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
December 07, 2019, 01:08:52 PM
#14
This problem was little deeper - users on Windows and Linux are the same, but NTFS file system do not store permissions for linux (as I know). Will look little later - now syncing continuing.

Actually, NTFS have permission feature (i don't know how it's different from ext/btrfs/zfs fileysystem though). But when you mount it on Linux, it's getting complicated.
By default, everyone have full access to all directory/file of an NTFS partition. But you also could either :
1. Allow specific user to mount NTFS partition
2. Define Wndows-to-Linux user mapping to preserve NTFS ownership/permission.

I still think it's not about permission problem.
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
December 05, 2019, 10:25:54 AM
#12
How did you copy the files FTP / SMB / other?
They are cross compatible but permissions can cause a problem now and then. I don't know why but they do.
No, I've copy it via linking external HDD to target PC. But you right, need to check files permissions while doing that

If you copy blockchain file and running Bitcoin Core from same user, i doubt it's file permission problem, unless you use sudo when copy file or put it on directory meant for system/root.

On a side note, you don't mention about debug.log file. It might contain answer or hint about what went wrong.
jr. member
Activity: 188
Merit: 2
In Blockchain we trust!
December 05, 2019, 12:32:34 PM
#11
This problem was little deeper - users on Windows and Linux are the same, but NTFS file system do not store permissions for linux (as I know). Will look little later - now syncing continuing.
jr. member
Activity: 188
Merit: 2
In Blockchain we trust!
December 05, 2019, 03:28:35 AM
#10
How did you copy the files FTP / SMB / other?
They are cross compatible but permissions can cause a problem now and then. I don't know why but they do.
No, I've copy it via linking external HDD to target PC. But you right, need to check files permissions while doing that

Also, from the Dave was not paying attention department, did you shutdown the windows install when you copied the files?
I have had that in a windows to windows copy when I did not shut down the node before the copy it did not see the files for some reason.

It should not matter but as we all know, should not and does not are different.

-Dave
Shure I always shutdown Bitcoincore before doing ANY manipulations with blockchain. It is one of the MOST rules all need to know about ANY full-crypto wallet
legendary
Activity: 3500
Merit: 6320
Crypto Swap Exchange
December 04, 2019, 05:31:13 PM
#9
How did you copy the files FTP / SMB / other?
They are cross compatible but permissions can cause a problem now and then. I don't know why but they do.

Also, from the Dave was not paying attention department, did you shutdown the windows install when you copied the files?
I have had that in a windows to windows copy when I did not shut down the node before the copy it did not see the files for some reason.

It should not matter but as we all know, should not and does not are different.

-Dave
jr. member
Activity: 188
Merit: 2
In Blockchain we trust!
December 04, 2019, 03:59:59 PM
#8
I'm not sure why you are having problems. I have a node under Windows 10, and one under Ubuntu. When I started the Ubuntu one, I copied the blockchain and wallet data from the Windows machine onto an external SSD ( the Netbook doesn't have a large enough drive internally ), and I downloaded and installed the core software. When I started it for the first time, it asked me for the directory to use. I pointed it at the SSD, and it picked it up happily, and it sync'd a few recent blocks, and reported everything as fine. It really was pretty painless, but that was a while ago.
In theory, everything was as it should be, but I ran into problems that I can’t determine, so I tried to find out if I correctly understand the theoretical capabilities of the Bitcoin wallet. In theory, I'm right, let's see what practice shows. Really thanks to everyone who participated in the discussion, your thoughts are very valuable to me. I’ll talk about the results a bit later.
legendary
Activity: 2814
Merit: 2472
https://JetCash.com
December 04, 2019, 10:37:46 AM
#7
I'm not sure why you are having problems. I have a node under Windows 10, and one under Ubuntu. When I started the Ubuntu one, I copied the blockchain and wallet data from the Windows machine onto an external SSD ( the Netbook doesn't have a large enough drive internally ), and I downloaded and installed the core software. When I started it for the first time, it asked me for the directory to use. I pointed it at the SSD, and it picked it up happily, and it sync'd a few recent blocks, and reported everything as fine. It really was pretty painless, but that was a while ago.
legendary
Activity: 1876
Merit: 3132
December 04, 2019, 07:23:26 AM
#6
Yes, I'm planning finished sync and copy it to my PI device, on Ubuntu. How to prepare blockchain to it?

Since you are currently syncing another node on Linux, it shouldn't need to reindex again once you move it to your Raspberry Pi. Copy the same files from your Linux node as you previously did from the Windows machine.
jr. member
Activity: 188
Merit: 2
In Blockchain we trust!
December 04, 2019, 06:05:39 AM
#5
Yes, I'm planning finished sync and copy it to my PI device, on Ubuntu. How to prepare blockchain to it?
HCP
legendary
Activity: 2086
Merit: 4361
December 04, 2019, 04:37:20 AM
#4
Based on that output, it seems that your node believes that it has 606214 blocks synced... and there are 606518 headers, so it needs to download another 304 blocks. (hence the 99.84% verification progress)

Given that there has been about 2 weeks from your original post to this update... I'm assuming it just continued syncing during those 2 weeks? At this stage, it's kinda pointless attempting to troubleshoot why it didn't accept the data files that you copied over... as it is now pretty much fully synced. Unless, you're planning on trying to copy data files again to another new node? Huh
jr. member
Activity: 188
Merit: 2
In Blockchain we trust!
December 04, 2019, 02:44:36 AM
#3
So, bitcoincore data files are not cross-platform? or #WhatI'mDoingWrong? Huh

They are cross-compatible. However, the node might need to reindex the blockchain data. It will take less time than as if you were downloading and verifying all the blocks again. What's the output of the following command?

bitcoin-cli getblockchaininfo

Code:
getblockchaininfo
{
  "chain": "main",
  "blocks": 606214,
  "headers": 606518,
  "bestblockhash": "0000000000000000000735977509db4c0e08990bdad5d7ed21f75ecebcbfaf8f",
  "difficulty": 12973235968799.78,
  "mediantime": 1575230540,
  "verificationprogress": 0.9984022636170466,
  "initialblockdownload": true,
  "chainwork": "00000000000000000000000000000000000000000a83fdb870fa81f26e11ed3b",
  "size_on_disk": 286042855590,
  "pruned": false,
  "softforks": [
    {
      "id": "bip34",
      "version": 2,
      "reject": {
        "status": true
      }
    },
    {
      "id": "bip66",
      "version": 3,
      "reject": {
        "status": true
      }
    },
    {
      "id": "bip65",
      "version": 4,
      "reject": {
        "status": true
      }
    }
  ],
  "bip9_softforks": {
    "csv": {
      "status": "active",
      "startTime": 1462060800,
      "timeout": 1493596800,
      "since": 419328
    },
    "segwit": {
      "status": "active",
      "startTime": 1479168000,
      "timeout": 1510704000,
      "since": 481824
    }
  },
  "warnings": ""
}

That is all I get.
legendary
Activity: 1876
Merit: 3132
November 19, 2019, 06:38:38 AM
#2
So, bitcoincore data files are not cross-platform? or #WhatI'mDoingWrong? Huh

They are cross-compatible. However, the node might need to reindex the blockchain data. It will take less time than as if you were downloading and verifying all the blocks again. What's the output of the following command?

bitcoin-cli getblockchaininfo
jr. member
Activity: 188
Merit: 2
In Blockchain we trust!
November 19, 2019, 05:44:29 AM
#1
So, I've download bitcoincore and fully sync it on Windows. Works perfect, nice. Then I need to launch another bitcoincore node on a Linux instance, copied whole folder (blocks, chainstate, database, and all files near) to a Linux server, launched a node - and it starting to sync from scratch!  Angry Shocked
And yes, I've checked path to datafiles, and also trying write in bitcoin.conf, and even -datadir="/user/path_to_btc_data" - anyway, it starts from scratch. Also, revert thing (fully synced datadir from Linux) - also can't "plug-n-play" on Windows. So, bitcoincore data files are not cross-platform? or #WhatI'mDoingWrong? Huh
Jump to: