Describe the issue
Bitcoin Core 0.14.0 does not support storing the database on a SMB share.
Can you reliably reproduce the issue?
Relocate your AppData folder by right clicking on it, selecting the Location tab, and specifying a UNC path for a SMB share. Install Bitcoin Core 0.14.0 and run it. Technically it was relocated via a Group Policy Object, but the instructions here are functionally equivalent. Edit: It will function properly if you map the share with a driver letter rather than a UNC path.
Expected behaviour
It should support storing the database on a UNC path for virtual desktop infrastructure environments.
Actual behaviour
It complains about not being able to open the database.
Screenshots.
What version of bitcoin-core are you using?
Version 0.14.0 downloaded from bitcoin.org on 3-16-17
Machine specs:
- OS: Windows Server 2016 virtual machine with the latest patches and the Remote Desktop Services role, publishing Bitcoin Core as a RemoteApp. The host is running VMware ESXi 6.5
- CPU: 4 cores from a Intel Xeon E5-2660 v2 with high latency sensitivity and 100% reservation
- RAM: 16GB with 100% reservation
- Disk size: Boot disk is 32GB, the AppData folder is on a 20TB SMB3 share with 4+TB free
- Disk Type (HD/SDD): Boot disk is stored on a VMware datastore composed of 8x SSDs in a RAID 0 with a VMware NVMe disk controller for the virtual machine.
Any extra information that might be useful in the debugging process.
db.log was empty, the contents of debug.log is: 2017-03-16 22:15:24 Bitcoin version v0.14.0 2017-03-16 22:15:24 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1 2017-03-16 22:15:24 Assuming ancestors of block 00000000000000000013176bf8d7dfeab4e1db31dc93bc311b436e82ab226b90 have valid signatures. 2017-03-16 22:15:24 GUI: "registerShutdownBlockReason: Successfully registered: Bitcoin Core didn't yet exit safely..." 2017-03-16 22:15:26 Default data directory \SERVER_NAME_CENSORED\NAS\Application Data\Bitcoin 2017-03-16 22:15:26 Using data directory \SERVER_NAME_CENSORED\NAS\Application Data\Bitcoin 2017-03-16 22:15:27 Using config file \SERVER_NAME_CENSORED\NAS\Application Data\Bitcoin\bitcoin.conf 2017-03-16 22:15:27 Using at most 125 automatic connections (2048 file descriptors available) 2017-03-16 22:15:28 Using 32 MiB out of 32 requested for signature cache, able to store 1048576 elements 2017-03-16 22:15:28 Using 4 threads for script verification 2017-03-16 22:15:28 Using BerkeleyDB version Berkeley DB 4.8.30: (April 9, 2010) 2017-03-16 22:15:28 scheduler thread start 2017-03-16 22:15:28 Using wallet wallet.dat 2017-03-16 22:15:29 init message: Verifying wallet... 2017-03-16 22:15:30 CDBEnv::Open: LogDir=\SERVER_NAME_CENSORED\NAS\Application Data\Bitcoin\database ErrorFile=\SERVER_NAME_CENSORED\NAS\Application Data\Bitcoin\db.log 2017-03-16 22:15:31 Bound to [::]:8333 2017-03-16 22:15:31 Bound to 0.0.0.0:8333 2017-03-16 22:15:32 Cache configuration: 2017-03-16 22:15:32 * Using 2.0MiB for block index database 2017-03-16 22:15:32 * Using 8.0MiB for chain state database 2017-03-16 22:15:32 * Using 290.0MiB for in-memory UTXO set (plus up to 286.1MiB of unused mempool space) 2017-03-16 22:15:32 init message: Loading block index... 2017-03-16 22:15:33 Opening LevelDB in \SERVER_NAME_CENSORED\NAS\Application Data\Bitcoin\blocks\index 2017-03-16 22:15:33 IO error: C:\Program Files\Bitcoin\SERVER_NAME_CENSORED\NAS\Application Data\Bitcoin\blocks\index\LOCK: Could not lock file. 2017-03-16 22:15:45 init message: Loading block index... 2017-03-16 22:15:45 Wiping LevelDB in \SERVER_NAME_CENSORED\NAS\Application Data\Bitcoin\blocks\index 2017-03-16 22:15:45 Opening LevelDB in \SERVER_NAME_CENSORED\NAS\Application Data\Bitcoin\blocks\index 2017-03-16 22:15:46 IO error: C:\Program Files\Bitcoin\SERVER_NAME_CENSORED\NAS\Application Data\Bitcoin\blocks\index\LOCK: Could not lock file. 2017-03-16 22:15:47 scheduler thread interrupt 2017-03-16 22:15:47 Shutdown: In progress... 2017-03-16 22:15:48 Shutdown: done