adrianM
(Adrian)
August 27, 2021, 12:01pm
1
When clicking the “Check Online” button in
Admin->Updates->System Updates
I get this error:
Updates did not start. Incron error?
File:/var/www/html/admin/libraries/Builtin/SystemUpdates.php:113
I’ve tried
fwconsole chown
yum update
restarted
but I still get the error
Can someone help me troubleshoot this issue? What can I try next or what should I check etc?
FreePBX 15.0.17.43
Current Asterisk Version: 16.19.0
Thanks
jfinstrom
(James Finstrom)
August 27, 2021, 7:31pm
2
So it is waiting 5 seconds to see if /dev/shm/yumwrapper/yum.lock
appears then fails out if not. There is also a check for incron that would fail out sooner.
This is basically the function you are in…
/**
* Start yum-update if it's not already running
*/
public function startYumUpdate() {
if ($this->isYumRunning()) {
return true;
}
if(!$this->getLock()->acquire()) {
return true;
}
try {
if (!is_dir("/var/spool/asterisk/incron")) {
// Something's broken with this machine.
throw new \Exception("Incron not configured, unable to manage system updates");
}
// incron hook
if (file_exists("/var/spool/asterisk/incron/framework.yum-update-system")) {
unlink("/var/spool/asterisk/incron/framework.yum-update-system");
}
touch("/var/spool/asterisk/incron/framework.yum-update-system");
// Wait up to 5 seconds for it to start
Called by
#!/bin/bash -x
if [ ! -d /dev/shm ]; then
echo "ERROR There is no /dev/shm folder. Can not continue."
exit
fi
OUTDIR=/dev/shm/yumwrapper
# Note that this is also referenced in Builtin/SystemUpdates
LOCKFILE=${OUTDIR}/yum.lock
if [ -e $LOCKFILE ] ; then
echo "ERROR Lockfile $LOCKFILE present, not attempting to start"
exit
fi
mkdir -p $OUTDIR
config="logfile $OUTDIR/yum-update.log
logfile flush 1
log on
This file has been truncated. show original
adrianM
(Adrian)
August 27, 2021, 9:41pm
3
thanks for the reply!
I can confirm that /dev/shm/yumwrapper/yum.lock (nor /dev/shm/yumwrapper/yum-update.log) appear.
I’m assuming that line 139
touch("/var/spool/asterisk/incron/framework.yum-update-system");
is supposed to trigger Yum to run?
How can I troubleshoot this further?
I noticed there was no /dev/shm/yumwrapper directory on the system, but /dev/shm did exist, is this normal?
system
(system)
Closed
September 27, 2021, 9:54pm
4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.