Scenario: - FreeBSD 12.0-RELEASE-p7 #4 r349733M amd64 (and i386) - rebuilding many packages using portmaster (due to the recent change from gcc8 to gcc9) - letting the system run overnight - machines do not have a direct internet connection and no proxy is configured Result: - at about 3:30 a.m., portmaster fails because pkg cannot get a lock on its database Note: - This probably happens while downloading vuln.xml and checking against it - maybe the database is already locked while the system is (unsuccessfully) trying to download vuln.xml?
just noted bug #232350
Created a new periodic.conf, hope it will work: ------------------------------------------------------------------- [0]# cat /etc/periodic.conf # # $MBi$ # # disable nightly pkg checks if portmaster is running # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239488 # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232350 if /bin/ps -axwww | /usr/bin/grep -q '[p]ortmaster' then security_status_pkgchecksum_enable=NO security_status_pkgchecksum_enable=NO fi [0]# ------------------------------------------------------------------- Are commands allowed in this file? -- Martin
Thanks Martin. This is the same issue as bug 232350 so we'll close this as a duplicate. Your solution in comment 2 is effectively the same (implemented slightly differently) as bug 232350 comment 22 *** This bug has been marked as a duplicate of bug 232350 ***