VitalPBX: 4.1.0-3
Installed a new Debian 11 server installed all the basic addons and reinstalled from a backup as I have been doing with other system. During the restore process the following errors showed up:
As the image shows, there was a Permission error when recovering the queue-stats backup and trying to run artisan.
Now when try to log into stats, I keep getting a Server Error. I orginally installed the addon and setup the connection settings before restoring the backup.
I have removed the addon and reinstalled, but now no wizard appears as the backup is already there I guess.
The console is showing the sonata stats service is not actually running properly either.
May 11 22:36:33 pbx systemd[1]: sonata-stats.service: Main process exited, code=exited, stat>
May 11 22:36:33 pbx systemd[1]: sonata-stats.service: Failed with result ‘exit-code’.
May 11 22:36:34 pbx systemd[1]: sonata-stats.service: Scheduled restart job, restart counter>
May 11 22:36:34 pbx systemd[1]: Stopped Sonata Stats.
May 11 22:36:34 pbx systemd[1]: sonata-stats.service: Start request repeated too quickly.
May 11 22:36:34 pbx systemd[1]: sonata-stats.service: Failed with result ‘exit-code’.
May 11 22:36:34 pbx systemd[1]: Failed to start Sonata Stats.
I was able to reinstall the addond and I deleted the wizard file and ran php artisan:cache and got to fille out the wizard again. Something failed during the backup recovery, certainly.
@maynor Just had another issue with a different box, this time this is what I get, seems like the install is not working properly. I have uninstalled and reinstalled from the gui and the cli. This is what I get from the CLI:
Preparing to unpack .../sonata-stats_4.0.3-7_all.deb ...
Unpacking sonata-stats (4.0.3-7) ...
Setting up sonata-stats (4.0.3-7) ...
INFO Application cache cleared successfully.
INFO Clearing cached bootstrap files.
events ................................................................................................ 2ms DONE
views ................................................................................................. 1ms DONE
cache ................................................................................................. 4ms DONE
route ................................................................................................. 1ms DONE
config ................................................................................................ 1ms DONE
compiled .............................................................................................. 1ms DONE
INFO Caching the framework bootstrap files.
config ............................................................................................... 15ms DONE
routes ............................................................................................... 15ms DONE
INFO Routes cached successfully.
INFO Configuration cached successfully.
Failed to restart sonata-stats.service: Unit sonata-stats.service failed to load properly: Device or resource busy.
See system logs and 'systemctl status sonata-stats.service' for details.
root@vmi-lnx-tampavet-pbx:/etc/systemd# systemctl status sonata-stats.service
● sonata-stats.service - Sonata Stats
Loaded: error (Reason: Unit sonata-stats.service failed to load properly: Device or resource busy.)
Active: active (running) since Tue 2024-05-28 16:59:16 EDT; 7min ago
Main PID: 201593 (php)
CPU: 440ms
CGroup: /system.slice/sonata-stats.service
└─201593 /usr/bin/php artisan queue:work --tries=3 --backoff=3 --sleep=300 --timeout=3600
May 28 16:59:16 vmi-lnx-tampavet-pbx systemd[1]: Starting Sonata Stats...
May 28 16:59:16 vmi-lnx-tampavet-pbx php[201594]: Cron entry already exists in /etc/cron.d/stats
May 28 16:59:16 vmi-lnx-tampavet-pbx systemd[1]: Started Sonata Stats.
May 28 16:59:16 vmi-lnx-tampavet-pbx php[201593]: INFO Processing jobs from the [default] queue.
May 28 17:05:57 vmi-lnx-tampavet-pbx systemd[1]: sonata-stats.service: Current command vanished from the unit file,>
There is no folder /usr/share/sonata/queues-stats/backend getting created at all and there seems to be an issue with the unit file from the errors above. Any idea how to fix this?
cd /usr/share/sonata/queues-stats/backend
-bash: cd: /usr/share/sonata/queues-stats/backend: No such file or directory