Aleks
(Aleksandar Ivanisevic)
February 15, 2023, 8:17am
1
on some of my servers i can not publish an image from a container, but only if I have metadata on it:
this works:
~$ lxc publish testct
Instance published with fingerprint: 3e71942baa172d529447499e7fd4963d696b6497fa36e8651db827463a45b83a
but as soon as I want to set any metadata, it fails with:
~$ lxc publish testct a=b
Error: mkdir /tmp/lxd_lxd_metadata_730759384: no such file or directory
Exit Code: 1
sounds like a variation of this one
Hi all,
i have problem with lxc file push/pull functionality. When try push/pull file i get below error:
lxc fiile push somefilename container/dir/
Error: open /tmp/lxd_forkputfile_244537034: no such file or directory
The problem is weird because:
when i restart whole machine pull/push work
after some weeks it stop work again.
i have this issue 3 weeks ago also, but i dont take it seriously … i upgrade lxd, os, restart machine and forgot.
but it appear again.
I cannot always restart whole …
except lxc file push works in this case. Any other directory maybe that I have to spare from the tmpwatch?
Thank you.
tomp
(Thomas Parrott)
February 15, 2023, 8:24am
2
Which LXD version is this?
Aleks
(Aleksandar Ivanisevic)
February 15, 2023, 8:25am
3
5.10-b392610 from stable snap
Aleks
(Aleksandar Ivanisevic)
February 24, 2023, 2:27pm
4
any ideas, something to try before I reboot?
Aleks
(Aleksandar Ivanisevic)
February 27, 2023, 11:12am
5
so, I have investigated further and noticed that /tmp/ is nmounted twice in the lxd namespace and when I unmounted it once, it all started to work.
# nsenter -a -t $(pgrep -f "lxd --logfile")
-bash-5.0# fgrep /tmp /proc/mounts
/dev/sdc2 /tmp xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/sdc2 /var/tmp xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/sdc2 /tmp xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
# umount /tmp
-bash-5.0# fgrep /tmp /proc/mounts
/dev/sda2 /tmp xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/sda2 /var/tmp xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
# logout
But…(!): on the working servers, /tmp/ was/is still mounted twice in the lxd namespace and they are still working. So, still no idea what is going on, but maybe it helps the next poor soul google leads this way