Copy file within cifs network share hangs with cp

Bug #2061026 reported by Fabian Thiem
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
cifs-utils (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Hi everyone,

I experienced the following issues with my samba network setup after the last major update a few days ago. I am using ubuntu 23.10 on my main machine and a small thinclient. Both machines are up to date regarding updates.

------

I have mounted a samba share from a truenas scale instance:
//192.168.1.20/thiem /media/truenas/thiem cifs rw,_netdev,noserverino,vers=3.0,credentials=/home/ydmidy/.smbcredentials_truenas,nobrl,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777 0 0

Before the latest update I was able to:
1. Copy files from my local machine to the remote samba share
2. Copy files from the samba share to my local machine
3. Copy files within the samba share

After the latest update #3 doesn't work anymore. #1 and #2 still do work. A dummy file (same name) is being created after pasting a file within the share and nautilus is stuck in that copy process. A "cp" command in the terminal ist terminated with the error message "killed".

I am sure that this behaviour is happening after an update, because I reproduced the situation on my thinclient. After the most recent updates (I postponed them) "cp" doesn't work anymore on the samba share.

I found quiet the same bug report for debian, maybe that helps:
https://forums.debian.net/viewtopic.php?t=158075

Thanks for your support!

Tags: bot-comment
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/2061026/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Fabian Thiem (ydmidy)
affects: ubuntu → cifs-utils (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cifs-utils (Ubuntu):
status: New → Confirmed
Revision history for this message
de Laat (literfles) wrote (last edit ):

Same here, I am on 22.04.4 LTS

Edit: a cp on the commandline works for me, but ctrl-c / ctrl-v in nautilus does not (as long as source & destination are on samba share)

I have nautilus: Installed: 1:42.6-0ubuntu1

Revision history for this message
Mike Smith (ubunt2oo) wrote :

Exactly the same for me, just started after installing updates today

Revision history for this message
Matteo Carotta (matteo-carotta) wrote :

DISTRIB_DESCRIPTION="Ubuntu 22.04.4 LTS"
Package: nautilus Version: 1:42.6-0ubuntu1

I can also report the same issue as in:

3. Copy files within the samba share (using nautilus)

Attempting to copy and paste the same file to the same destination through cp command works fine as long as no previous attempt has been performed throught nautilus.
In case an attempt thought nautilus has been made and a dummy file has been created in the process attempting to overwrite the dummy file with cp brings the command to hang.

I investigated a bit further the idea of a buggy upgrade (firstly nautilus) by reading the recent apt history(from 2024-04-09 until 2024-05-02 (last record))
by $ less /var/log/apt/history.log and $ less /var/log/apt/history.log.1.gz
and because nautilus has not been upgraded recently, I searched among its direct dependencies as by $ apt info nautilus:
only
-libc6 (Upgrade: libc6:amd64 (2.35-0ubuntu3.6, 2.35-0ubuntu3.7), libc6:i386 (2.35-0ubuntu3.6, 2.35-0ubuntu3.7))
has been upgraded recently, which is very broad I guess...

Revision history for this message
de Laat (literfles) wrote :

This might be interesting, a page fault message in syslog at the time I try to duplicte (copy/paste) a file on a cifs share using nautilus.

Revision history for this message
de Laat (literfles) wrote :
Revision history for this message
de Laat (literfles) wrote :

Fixed in kernel 6.5.0-35

Changed in cifs-utils (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.