NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/50707: rm: fts_read: No such file or directory



>Number:         50707
>Category:       kern
>Synopsis:       rm: fts_read: No such file or directory
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 25 22:00:00 +0000 2016
>Originator:     BERTRAND Joël
>Release:        NetBSD 7.0_STABLE (GENERIC.201512202240Z)
>Organization:
>Environment:
NetBSD legendre.systella.fr 7.0_STABLE NetBSD 7.0_STABLE (GENERIC.201512202240Z) amd64
>Description:
Hello,

I see on a NetBSD 7.0 server/amd64 a bug that is very similar to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192490

I've only seen this bug when I have tried to upgrade pkg from sources with pkg_rolling-replace but I think this issue can be triggered by some other programs.

pkg_rolling-replace -u often aborts with :
===> Cleaning for xxxxx
rm: fts_read: No such file or directory
*** Error code 1 

If I try to remove work directory with rm -rvi work, I obtain :
remove 'work'? y
remove 'work/.buildlink'? y
remove 'work/.buildlink/include'? y
remove 'work/.buildlink/include/boost'? y
remove 'work/.buildlink/include/boost/interprocess'? y
remove 'work/.buildlink/include/boost/interprocess/mem_algo'? y
remove 'work/.buildlink/include/boost/interprocess/mem_algo/'? y
rm: work/.buildlink/include/boost/interprocess/mem_algo/: No such file or directory
rm: fts_read: No such file or directory

This slice contains a ffsv2 filesystem. I have tried with or without log with the same result.

Only one solution to fix this issue:
- reboot server in single user mode;
- execute a fsck on faulty filesystem.

A fsck returns :
legendre# fsck -f raid0e
** /dev/rraid0e
** File system is already clean
** Last Mounted on /usr
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
UNALLOCATED  I=5313299  OWNER=0 MODE=0
SIZE=0 MTIME=Jan 25 00:40 2016
NAME=/pkgsrc/misc/kbruch/work/.buildlink/include/boost/interprocess/mem_algo/rbtree_best_fit.hpp

REMOVE? [yn] y

** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1088584 files, 10599592 used, 21929557 free (13949 frags, 2739451 blocks, 0.0% fragmentation)

***** FILE SYSTEM WAS MODIFIED ***** 

Each time, fsck claims about unallocated inode or partially allocated directory.

>How-To-Repeat:
With following /etc/mk.conf 
ACCEPTABLE_LICENSES+= vim-license lame-license flash-license
MAKE_JOBS=8
ALLOW_VULNERABLE_PACKAGES= YES

only try to keep pkgsrc up to date with pkg_rolling-replace -u.

>Fix:



Home | Main Index | Thread Index | Old Index