So, I moved a physical PBX to a virtualized solution by doing a full backup and restore. I’ve gotten everything up and running, with the exception of the restapps service, so no one’s voicemail is working at the moment (without dialing *97). I keep trying to start restapps, but I get this:
Also, just in case, below the above mentioned is this:
Exit Code: 1(General error)
Working directory: /root
Output:
┌──────────┬────┬──────┬─────┬────────┬─────────┬────────┬─────┬─────┬──────┬──────────┐
│ App name │ id │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ user │ watching │
└──────────┴────┴──────┴─────┴────────┴─────────┴────────┴─────┴─────┴──────┴──────────┘
Use pm2 show <id|name> to get more details about an app
Error Output:
/var/www/html/admin/modules/pm2/node/node_modules/pm2/node_modules/cron/lib/cron.js:244
`Something went wrong. cron reached maximum iterations.
^
Unexpected token ILLEGAL
The above errors are the errors I get when I do a ‘fwconsole start restapps’
fwconsole pm2 --restart restapps doesn’t do anything because restapps isn’t running. lol
fwconsole pm2 --list shows nothing under the Process Name/PID/Status/etc
I tried to reinstall restapps, using fwconsole ma downloadinstall restapps and it was successful, however I still get the same error as mentioned above.
This is an error from crond, so there’s something going wrongly in your crontab setup. The unexpected token error (IIRC) has recently been reported here, so there might be a bad module outsode of restapps.
Try killing all of the cron jobs that are running. Also, this might be one of those times where the short-term fix is to reboot the server (not just Asterisk, the entire server) and then watch your crond performance and troubleshoot from there.
Thanks for the replies! Running that command, however, does nothing. I get:
[Symfony\Component\Console\Exception\CommandNotFoundException]
Command “upgrade” is not defined.
How would I check/kill cron jobs? I looked in /var/log/asterisk/restapps_err.log, but that log doesn’t exist.
Also checked the code in cron@/var/www/html/admin/modules/pm2/node/node_modules/pm2/node_modules/cron/lib/cron.js, but I’m not a programmer and I don’t really understand what it’s looking for…there’s a bunch of code about time/date stuff.