[Samba] Copy error on file from smbclient

Maria Munaro mmunaro at hotmail.com
Tue Jan 25 14:59:07 UTC 2022


Hello,

I have a vm running a linux guest that has a CIFS mount connecting to a directory on the Mac host. In this setup I start a docker environment and I run a make from within that returns an error (/project maps to /usr/local/go)


/usr/bin/ranlib libshim.a

cd /project/src/github.com/hyperledger/fabric-private-chaincode/ecc_enclave/_build/enclave && mkdir -p /project/src/github.com/hyperledger/fabric-private-chaincode/ecc_enclave/_build/lib

cd /project/src/github.com/hyperledger/fabric-private-chaincode/ecc_enclave/_build/enclave && cp libshim.a /project/src/github.com/hyperledger/fabric-private-chaincode/ecc_enclave/_build/lib/

cp: skipping file 'libshim.a', as it was replaced while being copied

I also have the shared directory copied inside of the linux vm in another directory and if I do everything from within that directory the make runs there without any issues.

This is my smb.conf on the Mac host:


[global]

   workgroup = WORKGROUP

   server string = samba server

   server role = standalone server

   bind interfaces only = yes

   interfaces=lo0

   max log size = 50

   passdb backend = tdbsam

   client min protocol = SMB2

   client max protocol = SMB3

   force user = sambauser

   socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=64000 SO_RCVBUF=64000 SO_KEEPALIVE


[HyperledgerLabs]

   comment = hyperledger-labs

   path = /Users/mariamunaro/go/src/github.com/hyperledger-labs

   valid users = sambauser

   create mask = 664

   public = no

   writable = yes

   follow symlinks = yes

   wide links = yes

this is the /etc/fstabs on the linux guest

# /etc/fstab: static file system information.

#

# Use 'blkid' to print the universally unique identifier for a

# device; this may be used with UUID= as a more robust way to name devices

# that works even if disks are added and removed. See fstab(5).

#

# <file system> <mount point>   <type>  <options>       <dump>  <pass>

# / was on /dev/ubuntu-vg/ubuntu-lv during curtin installation

/dev/disk/by-id/dm-uuid-LVM-y7bMmAq2CP4PuqGC3s7vaR8Tw2R7x55g81YfB0Jkg5ghl8pakhwVMeaabnoT3ScJ / ext4 defaults 0 1

# /boot was on /dev/sda2 during curtin installation

/dev/disk/by-uuid/14ece9de-27da-4250-9078-4b1e5a6b5457 /boot ext4 defaults 0 1

/swap.img none swap sw 0 0

//10.0.2.2/HyperledgerLabs /usr/local/go/src/github.com/hyperledger-labs cifs uid=1000,credentials=/home/fpcmm/.smbcredentials 0 0


My guess is that there is an issue with the ranlib that doesn't complete before the cp? Any pointers would be helpful
TIA!


More information about the samba mailing list