Ubuntu: scp crashes with File size limit exceeded

Bug #119868 reported by Preetha
4
Affects Status Importance Assigned to Milestone
openssh (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I have Ubuntu 7.04 installed, file system is ext3. The following commands fail for file sizes larger than 17GB.

1) scp user@remotehost:/large-file.bin .
2) rsync user@remotehost:/folder-with-large-file/* .
3) dd bs=1024k count=19000 if=/dev/zero of=/tmp/testfile

The same error happens each time, each of the above commands fail with the output - File size limit exceeded (core dumped).

Here is my ulimit-a output. I don't have any preset file size limits.

 ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 20
file size (blocks, -f) unlimited
pending signals (-i) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) unlimited
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

Revision history for this message
Brian Murray (brian-murray) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in recently. We were wondering if this is still an issue for you? Thanks in advance.

Revision history for this message
bjorn.e (beikeland) wrote :

I have just experienced the same problem making an image of a 60GB drive.

bjorn@servbear:~$ uname -a
Linux servbear 2.6.22-14-server #1 SMP Sun Oct 14 23:34:23 GMT 2007 i686 GNU/Linux
bjorn@servbear:~$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 8127
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 8127
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

Feel free to request more information if required

Revision history for this message
Brian Murray (brian-murray) wrote :

Could you please add the output of dmesg at the time the error occurs?

Revision history for this message
bjorn.e (beikeland) wrote : Re: [Bug 119868] Re: Ubuntu: scp crashes with File size limit exceeded

Sure, used dd to do the test, but it shouldnt matter? Nothing was
added to dmesg though.

regards,
Bjorn

entire dmesg posted to http://pastebin.com/m530bd379

[693701.531615] sd 3:0:0:0: [sde] Test WP failed, assume Write Enabled
[693701.531619] sd 3:0:0:0: [sde] Assuming drive cache: write through
[693701.531646] sde: sde1
[693701.546550] sd 3:0:0:0: [sde] Attached SCSI disk
[693701.546596] sd 3:0:0:0: Attached scsi generic sg4 type 0
[693838.143277] sd 3:0:0:0: [sde] 117210240 512-byte hardware sectors (60012 MB)
[693838.144521] sd 3:0:0:0: [sde] Test WP failed, assume Write Enabled
[693838.144525] sd 3:0:0:0: [sde] Assuming drive cache: write through
[693838.144555] sde: sde1
[705734.545127] usb 5-3: USB disconnect, address 3
root@servbear:~# uptime
 18:15:49 up 13 days, 21:39, 1 user, load average: 0.00, 0.00, 0.00
root@servbear:~# dd if=/dev/zero of=/mnt/bigfile bs=1M count=17k; \
> dmesg | tail
bash: line 1: 12891 File size limit exceededdd if=/dev/zero
of=/mnt/bigfile bs=1M count=17k
[693701.531615] sd 3:0:0:0: [sde] Test WP failed, assume Write Enabled
[693701.531619] sd 3:0:0:0: [sde] Assuming drive cache: write through
[693701.531646] sde: sde1
[693701.546550] sd 3:0:0:0: [sde] Attached SCSI disk
[693701.546596] sd 3:0:0:0: Attached scsi generic sg4 type 0
[693838.143277] sd 3:0:0:0: [sde] 117210240 512-byte hardware sectors (60012 MB)
[693838.144521] sd 3:0:0:0: [sde] Test WP failed, assume Write Enabled
[693838.144525] sd 3:0:0:0: [sde] Assuming drive cache: write through
[693838.144555] sde: sde1
[705734.545127] usb 5-3: USB disconnect, address 3
root@servbear:~#

On Dec 26, 2007 5:45 PM, Brian Murray <email address hidden> wrote:
> Could you please add the output of dmesg at the time the error occurs?
>
>
> --
> Ubuntu: scp crashes with File size limit exceeded
> https://bugs.launchpad.net/bugs/119868
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Christopher S. Aker (caker) wrote :

My guess is that you're using an ext2/ext3 filesystem formatted with a 1k block size. tune2fs -l /dev/whatever will tell you. 1k block size can't support files larger than 16GB.

Reformat that partition to use a larger block size than 1k to support files larger than 16GB.

-Chris

Revision history for this message
Victor Vargas (kamus) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem. Please reopen it if you encounter that this issue is still occurring or even better if you can check in latest Ubuntu Karmic version. To reopen the bug report you can click under the Status column, and change the Status back to "New". Thanks again!

affects: ubuntu → openssh (Ubuntu)
Changed in openssh (Ubuntu):
status: Incomplete → Invalid
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.