New fusionpbx installation gets this error while installation

mdriaz

New Member
Feb 11, 2024
27
1
3
25
syncing data to disk ... ok
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for libc-bin (2.36-9+deb12u10) ...
Error: cluster configuration already exists
pg_reload_conf
----------------
t
(1 row)

SET
CREATE DATABASE
CREATE ROLE
GRANT
ALTER ROLE
ERROR: role "freeswitch" does not exist
INSERT 0 1

PHP Fatal error: Uncaught Error: Cannot use object of type settings as array in /var/www/fusionpbx/app/sofia_global_settings/app_defaults.php:11
Stack trace:
#0 /var/www/fusionpbx/resources/classes/domains.php(654): include()
#1 /var/www/fusionpbx/core/upgrade/upgrade_domains.php(53): domains->upgrade()
#2 {main}
thrown in /var/www/fusionpbx/app/sofia_global_settings/app_defaults.php on line 11

Fatal error: Uncaught Error: Cannot use object of type settings as array in /var/www/fusionpbx/app/sofia_global_settings/app_defaults.php:11
Stack trace:
#0 /var/www/fusionpbx/resources/classes/domains.php(654): include()
#1 /var/www/fusionpbx/core/upgrade/upgrade_domains.php(53): domains->upgrade()
#2 {main}
thrown in /var/www/fusionpbx/app/sofia_global_settings/app_defaults.php on line 11
INSERT 0 1
ERROR: invalid input syntax for type uuid: ""
LINE 1: ...060cf-e922-47c1-8a65-e70a80ac574a', 'superadmin', '', '5817d...
^

Upgrade
-----------------------------------------

Database
Schema: No Change

PHP Fatal error: Uncaught Error: Cannot use object of type settings as array in /var/www/fusionpbx/app/sofia_global_settings/app_defaults.php:11
Stack trace:
#0 /var/www/fusionpbx/resources/classes/domains.php(654): include()
#1 /var/www/fusionpbx/core/upgrade/upgrade.php(280): domains->upgrade()
#2 {main}
thrown in /var/www/fusionpbx/app/sofia_global_settings/app_defaults.php on line 11

Fatal error: Uncaught Error: Cannot use object of type settings as array in /var/www/fusionpbx/app/sofia_global_settings/app_defaults.php:11
Stack trace:
#0 /var/www/fusionpbx/resources/classes/domains.php(654): include()
#1 /var/www/fusionpbx/core/upgrade/upgrade.php(280): domains->upgrade()
#2 {main}
thrown in /var/www/fusionpbx/app/sofia_global_settings/app_defaults.php on line 11
 
in the process, there is also this error:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package freeswitch-systemd
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
lsb-release is already the newest version (12.0-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 
This issue has been fixed. A new install should work correctly.

Or you can run the following commands.
cd /var/www/fusionpbx
git pull
php core/upgrade/upgrade.php

Once you run upgrade.php you shouldn't see the error again. A new install should work again.
 
Last edited:
  • Like
Reactions: mdriaz
@markjcrane For some reason, the new version has some issues, like when we are updating any gateway information, all gateways are started and running even when we didn't start them.