gio copy and nautilus hang when copying small files on cifs shares on ubuntu 18.04
I have a computer running ubuntu 18.04 lts with samba file server.
I access my files from virtualbox machines, one running ubuntu 16.04lts and the other running ubuntu 18.04lts
when I try to copy/paste a small file (65 bytes) then copy hangs with nautilus and gpio copy but not with cp
the problem occurs only with ubuntu 18.04 (and 18.10 also)
with ubuntu 16.04Lts it works perfectly !
$ cp mob/* mob6
$ ls mob6
00_Init.php csv.php~ index.php TestMail1.jpg unsub.php
00_Init.php~ favicon.ico index.php~ TestMail2.jpg unsub.php~
csv.php gest.php InitAdmin.php TestMail.html
$ gio copy -p mob/* mob7
684 octets sur 684 octets transférés (684 octets/s)
** it hangs there after the first file
$ ls mob7
00_Init.php
1°) server configuration
apt-cache policy samba
samba:
Installé : 2:4.7.6+dfsg~ubuntu-0ubuntu2.9
Candidat : 2:4.7.6+dfsg~ubuntu-0ubuntu2.9
Table de version :
*** 2:4.7.6+dfsg~ubuntu-0ubuntu2.9 500
500 http://fr.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
100 /var/lib/dpkg/status
2:4.7.6+dfsg~ubuntu-0ubuntu2 500
500 http://fr.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
lsb_release -rd
Description: Ubuntu 18.04.2 LTS
Release: 18.04
smb.conf
# Global parameters
[global]
dns proxy = No
lanman auth = Yes
log file = /var/log/samba/log.%m
max log size = 1000
ntlm auth = ntlmv1-permitted
obey pam restrictions = Yes
panic action = /usr/share/samba/panic-action %d
security = USER
server role = standalone server
server string = %h server (Samba, Ubuntu)
workgroup = DELANGE
idmap config * : backend = tdb
force group = ad
force user = ad
[ad_moi]
comment = ad perso
path = /shares/b/ad/moi
read only = No
valid users = ad dm
2°) client configuration
autofs
moi -fstype=cifs,credentials=/home/ad/.credentials/ad-credentials,iocharset=utf8 ://192.168.1.20/ad_moi
mount:
//192.168.1.20/ad_moi on /home/ad/auto/moi type cifs (rw,relatime,vers=default,cache=strict,username=ad,domain=,uid=1000,forceuid,gid=1000,forcegid,addr=192.168.1.20,file_mode=0755,dir_mode=0755,soft,nounix,mapposix,rsize=1048576,wsize=1048576,echo_interval=60,actimeo=1)
apt-cache policy gvfs
gvfs:
Installé : 1.36.1-0ubuntu1.1
Candidat : 1.36.1-0ubuntu1.3
Table de version :
1.36.1-0ubuntu1.3 500
500 http://fr.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
*** 1.36.1-0ubuntu1.1 100
100 /var/lib/dpkg/status
1.36.1-0ubuntu1 500
500 http://fr.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
lsb_release -rd
Description: Ubuntu 18.04.2 LTS
Release: 18.04
3°) source folder content
ls -al mob
total 14336
drwxr-xr-x 2 ad ad 0 juin 1 2017 .
drwxr-xr-x 2 ad ad 0 avril 12 17:27 ..
-rwxr-xr-x 1 ad ad 684 mai 31 2017 00_Init.php
-rwxr-xr-x 1 ad ad 756 mai 7 2017 00_Init.php~
-rwxr-xr-x 1 ad ad 4086 mai 31 2017 csv.php
-rwxr-xr-x 1 ad ad 4107 mai 31 2017 csv.php~
-rwxr-xr-x 1 ad ad 99678 févr. 7 2012 favicon.ico
-rwxr-xr-x 1 ad ad 77 mai 12 2017 gest.php
drwxr-xr-x 2 ad ad 0 mai 31 2017 img
drwxr-xr-x 2 ad ad 0 sept. 21 2017 includes
-rwxr-xr-x 1 ad ad 12 mai 31 2017 index.php
-rwxr-xr-x 1 ad ad 77 mai 12 2017 index.php~
-rwxr-xr-x 1 ad ad 1200 mai 4 2017 InitAdmin.php
drwxr-xr-x 2 ad ad 0 sept. 21 2017 pages
-rwxr-xr-x 1 ad ad 14057 févr. 21 2015 TestMail1.jpg
-rwxr-xr-x 1 ad ad 9379 févr. 21 2015 TestMail2.jpg
-rwxr-xr-x 1 ad ad 4915 févr. 22 2016 TestMail.html
drwxr-xr-x 2 ad ad 0 mai 28 2018 tmp
-rwxr-xr-x 1 ad ad 77 juin 1 2017 unsub.php
-rwxr-xr-x 1 ad ad 76 juin 1 2017 unsub.php~
thank you for taking care ad.