The mirrorlist.txt files for Centos and Centos-update keep getting deleted on my two NS gateways, which are configured identically. These are the files that allow the software center and yum updates to find the resource repositories on the web. They normally live at /var/cache/yum/x86_64/6/centos-base/ and …/centos-update/ Approximately every 24 hours, some process deletes these files, which then breaks yum and the software center.
(By the way, there are 2 mirrorlist files associated with nethserver-base and nethserver-update, and these are never affected. I believe the software center dies when the Centos files are missing because the center looks for Centos updates first, and failing to find the Centos mirror lists, it doesn’t try to go any further.)
In trying to figure out why my software center was dying, I finally discovered that these files were missing. I created my own copies and uploaded them by FTP, which restored the functionality of the software center and yum update. However, overnight the files I had uploaded were deleted again.
I am using NS as a gateway and I am using all 4 networks: green, blue, orange and red. I have the following modules installed and running: firewall, traffic shaping, web proxy, web filtering, ips, backup, bandwidth monitor, dhcp, dns, and vpn. Traffic shaping is presently disabled. Web filters are updating nightly. Anti-virus is disabled.
I’ve searched the log files to see if I could find a record of the files being removed. The only thing I found is a reference I can’t make sense of, but I’ll paste it in here in case it’s relevant.
type=AVC msg=audit(1431378383.144:1924): avc: denied { remove_name } for pid=6976 comm=“pkginfo” name=“mirrorlist.txt” dev=dm-1 ino=28443882 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:rpm_var_cache_t:s0 tclass=dir
type=AVC msg=audit(1431378383.144:1924): avc: denied { unlink } for pid=6976 comm=“pkginfo” name=“mirrorlist.txt” dev=dm-1 ino=28443882 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:rpm_var_cache_t:s0 tclass=file
I’ll be happy to run tests if anyone has any ideas. Thanks.