ffsend icon indicating copy to clipboard operation
ffsend copied to clipboard

Getting this error (os error 28) while uploading a file even though I have lot of free space on my Computer

Open kalyan860 opened this issue 3 years ago • 5 comments

error: failed to upload the specified file caused by: failed to archive file to upload caused by: failed to add file to the archive caused by: No space left on device (os error 28)

kalyan860 avatar Jun 05 '22 03:06 kalyan860

When archiving a file to upload, ffsend creates a temporary archive file in your systems /tmp directory.

Could this directory have limited space? I know some systems mount /tmp to a RAM disk.

timvisee avatar Jun 05 '22 18:06 timvisee

I have a lot of space on my computer which is running linux. So /tmp is not running out of space. So what else it could be? Thanks

kalyan860 avatar Jun 05 '22 19:06 kalyan860

Does the lsblk or mount command list /tmp as mount?

timvisee avatar Jun 05 '22 19:06 timvisee

Thanks for the reply. Here is output of lsblk

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda      8:0    0 931.5G  0 disk 
|-sda1   8:1    0 923.1G  0 part /run/timeshift/backup
|                                /
`-sda2   8:2    0   8.4G  0 part [SWAP]
sr0     11:0    1  1024M  0 rom 

Here is output of mount

proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=1990252k,nr_inodes=497563,mode=755,inode64)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755,inode64)
/dev/sda1 on / type ext4 (rw,noatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=13515)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
none on /run/credentials/systemd-sysusers.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,size=1998164k,nr_inodes=1048576,inode64)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=399632k,nr_inodes=99908,mode=700,uid=1000,gid=1001,inode64)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1001)
portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1001)
/dev/sda1 on /run/timeshift/backup type ext4 (rw,relatime)

kalyan860 avatar Jun 06 '22 02:06 kalyan860

The line

tmpfs on /tmp type tmpfs (rw,nosuid,nodev,size=1998164k,nr_inodes=1048576,inode64)

specifies that your /tmp is a RAM-disk limited to 2GB. Since you're likely trying to archive files with a total size larger than 2GB, the operation fails.

A feature could be added to build this archive in a different directory, but that isn't currently supported yet. In the mean time you may archive the files yourself in any desired directory, to send that instead.

timvisee avatar Jun 06 '22 11:06 timvisee