Bitcoin Forum
January 19, 2019, 09:56:01 PM *
News: Latest Bitcoin Core release: 0.17.1 [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 38 times)
larry.the.head
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.
1547934961
Hero Member
*
Offline Offline

Posts: 1547934961

View Profile Personal Message (Offline)

Ignore
1547934961
Reply with quote  #2

1547934961
Report to moderator
1547934961
Hero Member
*
Offline Offline

Posts: 1547934961

View Profile Personal Message (Offline)

Ignore
1547934961
Reply with quote  #2

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

Posts: 1547934961

View Profile Personal Message (Offline)

Ignore
1547934961
Reply with quote  #2

1547934961
Report to moderator
1547934961
Hero Member
*
Offline Offline

Posts: 1547934961

View Profile Personal Message (Offline)

Ignore
1547934961
Reply with quote  #2

1547934961
Report to moderator
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 1260
Merit: 1175


bc1qdj5v2q8p398rdy6sexc0fapk4hcq0p54xz56ez


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
*
Online Online

Activity: 1372
Merit: 2629


Self-made Legendary!


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:  

Bitcointalk.org is not available or authorized for sale. Do not believe any fake listings.
Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!