Reload failed because of retrieve_conf encountered an error: 255

At first I was getting this error when trying to apply config, but it was an error “1” instead of “255”. I updated all modules, rebooted and now am getting an error 255 when trying to apply changes.

FreePBX 12.0.38
Here is more info from the logs:

exit: 255
found language dir fr for directory, not installed on system, skipping
Added to globals: ASTETCDIR = /etc/asterisk
Added to globals: ASTMODDIR = /usr/lib/asterisk/modules
Added to globals: ASTVARLIBDIR = /var/lib/asterisk
Added to globals: ASTAGIDIR = /var/lib/asterisk/agi-bin
Added to globals: ASTSPOOLDIR = /var/spool/asterisk
Added to globals: ASTRUNDIR = /var/run/asterisk
Added to globals: ASTLOGDIR = /var/log/asterisk
Added to globals: CWINUSEBUSY = true
Added to globals: AMPMGRUSER = admin
Added to globals: AMPMGRPASS = [email protected]
Added to globals: AMPDBENGINE = mysql
Added to globals: AMPDBHOST = localhost
Added to globals: AMPDBNAME = asterisk
Added to globals: AMPDBUSER = freepbxuser
Added to globals: AMPDBPASS = 704ca300ddb0
Added to globals: VMX_CONTEXT = from-internal
Added to globals: VMX_PRI = 1
Added to globals: VMX_TIMEDEST_CONTEXT =
Added to globals: VMX_TIMEDEST_EXT = dovm
Added to globals: VMX_TIMEDEST_PRI = 1
Added to globals: VMX_LOOPDEST_CONTEXT =
Added to globals: VMX_LOOPDEST_EXT = dovm
Added to globals: VMX_LOOPDEST_PRI = 1
Added to globals: MIXMON_DIR =
Added to globals: MIXMON_POST =
Added to globals: DIAL_OPTIONS = Ttr
Added to globals: TRUNK_OPTIONS = Tt
Added to globals: TRUNK_RING_TIMER = 300
Added to globals: MIXMON_FORMAT = wav
Added to globals: REC_POLICY = caller
Added to globals: RINGTIMER_DEFAULT = 15
Added to globals: TRANSFER_CONTEXT = from-internal-xfer
PHP Fatal error: Uncaught exception ‘Exception’ with message ‘Endpoint already exists.’ in /var/www/html/admin/modules/core/functions.inc/PJSip.class.php:534
Stack trace:
#0 /var/www/html/admin/modules/core/functions.inc/PJSip.class.php(392): FreePBX\modules\Core\PJSip->generateEndpoint(Array, Array)
#1 /var/www/html/admin/modules/core/functions.inc/PJSip.class.php(86): FreePBX\modules\Core\PJSip->generateEndpoints(Array)
#2 /var/www/html/admin/libraries/BMO/FileHooks.class.php(88): FreePBX\modules\Core\PJSip->genConfig()
#3 /var/www/html/admin/libraries/BMO/FileHooks.class.php(25): FileHooks->processNewHooks()
#4 /var/lib/asterisk/bin/retrieve_conf(740): FileHooks->processFileHooks(Array)
#5 {main}
thrown in /var/www/html/admin/modules/core/functions.inc/PJSip.class.php on line 534

Please advise? Thanks.