Issues After Updating VitalPBX 4.5 — API Error on Login

Hi VitalPBX Team,

We’re running VitalPBX 4.5 with Sonata Suite. Everything was working fine until we performed an update via the GUI (Add-ons > Update) followed by a CLI update (apt update) as ecommended in several community posts.

After the update, we encountered multiple issues—most notably, login to the gui now shows connection insecure which affect WebRTC access as well and trying to update the HTTP server to use the correct certificate or any other item in the system throws the following error:

Exception: API Error: [POST] /events 404 - at file /usr/share/vitalpbx/www/includes/rest_client.php on line 0

Error Trace:

1 /usr/share/vitalpbx/www/index.php:0 app\Core->run(…args); 2 /usr/share/vitalpbx/www/includes/app/Core.php:0 app\Core->_authorization(…args); 3 /usr/share/vitalpbx/www/includes/app/Core.php:0 app\Core->_validate2FA(…args); 4 /usr/share/vitalpbx/www/includes/app/Core.php:0 EventLogger\EventLogger->logInUser(…args); 5 /usr/share/vitalpbx/www/includes/components/EventLogger/EventLogger.php:0 EventLogger\EventLogger->_addEvent(…args); 6 /usr/share/vitalpbx/www/includes/components/EventLogger/EventLogger.php:0 vitalpbx\rest_client->post(…args); 7 /usr/share/vitalpbx/www/includes/rest_client.php:0 vitalpbx\rest_client->execute(…args);

It seems the system is trying to POST to /events, but the endpoint returns a 404. I am not sure if this is related to the EventLogger component or something else.

Steps we’ve taken so far:

  • Ran apt update && apt upgrade -y and vitalpbx --update
  • Rebooted the system
  • Checked NGINX config (nginx -t) and reloaded it
  • Restarted VitalPBX (vitalpbx restart)
  • Verified file permissions (chown -R asterisk:asterisk /usr/share/vitalpbx)

Despite these steps, the error persists. We’d appreciate any guidance on:

  • Whether this is a known issue with the latest update
  • How to restore the /events endpoint or reconfigure Sonata Suite
  • Any additional logs or diagnostics we should check

Thanks in advance for your help!

You can try the following:

dpkg --configure -a
apt-get --reinstall install logger-core -y
systemctl restart nginx
1 Like

Thanks Miguel so much, this really works.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.