Hi
I’m running FreePBX 13.0.195.18 with Asterisk 13.23.1. I’m seeing this error on several machines I run after doing the latest round of module updates. I also ran Yum Update from the CLI to update Asterisk from 13.19.1 to 13.23.1. I’m not seeing any issues on the PBXs or getting any complaints. When I run this command from the CLI “/var/lib/asterisk/bin/module_admin listonline > /dev/null 2>&1” , it runs with no errors. Anybody know if this is something I need to worry about?
Thanks
The following commands failed with the listed error
/var/lib/asterisk/bin/module_admin listonline > /dev/null 2>&1 (1)
From the console, try running the command without suppressing all of the output (including the error output)
With the command run “as is”, the regular output and the error output (standard output channels 1 and 2) are both suppressed. In Unix, a command will always return a run status, but it may not announce any errors, since errors are normally reported on standard output channel 2 (The “2>” part).
The construct that causes this is “> /dev/null …” which sends all regular channel 1 output to the digital trash and “… 2>&1”, which sends standard error (std output channel 2) to channel 1.
The command to test with is
/var/lib/asterisk/bin/module_admin listonline
This way, you should be able to see the error that is triggering the non-zero return code that crond is reporting.
[root@industrialmachine ~]# /var/lib/asterisk/bin/module_admin listonline
no repos specified, using: [standard,extended,commercial,unsupported] from last GUI settings
Whoops\Exception\ErrorException: Comments starting with ‘#’ are deprecated in Unknown on line 23 in file /var/www/html/admin/libraries/BMO/GPG.class.php on line 613
Stack trace:
I see that it looks like something is commented out in a file, but it’s called “Unknown”. Any ideas how to fix this? This is on one of my FreePBX13.0.195.17. I’m seeing similar error on one of my FreePBX 14 servers. Any input is greatly appreciated.
Log into the system console.
vi that file.
Use the command “:613” (colon six one three)
That will drop you onto line 613 in the source code file. Look at the code and see what file it was opening. Open that file with ‘vi’ and use the colon command again to go to line 23. See if that line starts with a “#”.
Thanks again for your help. With your replys I was able to find another thread that is the same problem. It looks like when you update a server from 12 to 13, there are 2 modules that don’t update and they cause a problem with the latest round of updates. “Bulk DIDs 2.11.1.4” and “Bulk Extensions 2.11.0.7” . I just removed them and I’m waiting to see if the error comes back.