Bitcoin Forum
May 12, 2024, 08:06:36 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Cannot store bitcoin core data folder on Samba or SMB file share  (Read 139 times)
larry.the.head (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
January 01, 2018, 06:49:29 AM
 #1

Hi all,

As per the title, something seems broken with the bitcoin core wallet running on either Windows 10 or Ubuntu Linux where the .bitcoin-qt data folder is stored on a Linux Samba or a Windows SMB file share.

Whatever I do, on Linux I get the "Cannot obtain a lock on data directory /media/bitcoin Bitcoin core is probably already running"

On Windows the location is "Z:\bitcoin"

Bitcoin Core is definitely not running (the error appears even after a fresh restart of the PC) and this happened even after new install of the wallet, and running it for the first time.

The issue is definitely not file permission related as Bitcoin Core creates new folders and files at the share location before erroring out, and I can do the same from the file manager (I can also execute files). The user permissions are Full Access, and RWX on Linux.

When using Linux as the file server, I have also disabled all oplock features.

I can get a file share working using NFS but not Samba / SMB.

Im going to log a bug report on Github but not if someone has also encountered this and has a solution.

Thanks.
1715501196
Hero Member
*
Offline Offline

Posts: 1715501196

View Profile Personal Message (Offline)

Ignore
1715501196
Reply with quote  #2

1715501196
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715501196
Hero Member
*
Offline Offline

Posts: 1715501196

View Profile Personal Message (Offline)

Ignore
1715501196
Reply with quote  #2

1715501196
Report to moderator
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
January 01, 2018, 01:53:40 PM
 #2

I don't think it should work AT ALL using network drives. If you use a network drive, there is the obvious issue as the directory is supposed to be online and the network drive needs to be logged on by a computer in a root user in order to lock a directory.

Also, it's probably slower to put it on a network drive. That being said, I have no experience with SMB filesharing itself.
LoyceV
Legendary
*
Offline Offline

Activity: 3304
Merit: 16643


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
January 01, 2018, 03:10:06 PM
 #3

After I upgraded from 0.14 to the latest version, Bitcoin Core no longer allowed me to use a simlink to my wallet.dat. That means Bitcoin Core knowingly interferes with something my filesystem takes care of.
My workaround was to only move and simlink the blocks-(sub)directory to another disk. You could try to only mount your blocks-directory on a network drive, it's the biggest directory anyway.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!