Unable to upgrade Endpoint Manager after framework upgade

I’ve attempted to force install and use older tags the output below is pretty much the same for all but this run was with --tag 17.0.1.93 instead of latest. I really need to get this up and running soon I’ve had constant update issues with this instance, it is Debian 12 with FPBX 17.0.19.23. It was an automatic update that triggered this which is underneath the command output of the downloadinstall. Thanks!

No repos specified, using: [standard,commercial] from last GUI settings

Starting module download from https://mirror.freepbx.org/modules/packages/endpoint/8.2/endpoint-17.0.1.93.tgz.gpg
Processing
Downloading…
94944213/94944213 [============================] 100%
Finished downloading
Extracting…Done
Module https://mirror.freepbx.org/modules/packages/endpoint/8.2/endpoint-17.0.1.93.tgz.gpg successfully downloaded
Create symlink…Done
Checking database tables…Done
Migrating tables as required…Done
Checking Settings and Defaults…
In EndpointCommon.class.php line 1313:

Syntax error

Module(s) requiring upgrades: cdrpro, contactmanager, endpoint, filestore,
restapps, sangomaconnect, sangomacrm, sangomartapi, sms
Upgrading module ‘cdrpro’ from 17.0.4 to 17.0.4.5
Module cdrpro successfully downloaded in 24 seconds
Upgrading module ‘contactmanager’ from 17.0.5.12 to 17.0.5.13
Module contactmanager successfully downloaded in 2 seconds
Upgrading module ‘endpoint’ from 17.0.2 to 17.0.2
Module endpoint successfully downloaded in 3 seconds
Upgrading module ‘filestore’ from 17.0.2.33 to 17.0.2.34
Module filestore successfully downloaded in 2 seconds
Upgrading module ‘restapps’ from 17.0.1.27 to 17.0.1.31
Module restapps successfully downloaded in 1 seconds
Upgrading module ‘sangomaconnect’ from 17.0.1.51 to 17.0.1.55
Module sangomaconnect successfully downloaded in 3 seconds
Upgrading module ‘sangomacrm’ from 17.0.1.19 to 17.0.1.20
Module sangomacrm successfully downloaded in 2 seconds
Upgrading module ‘sangomartapi’ from 17.0.5 to 17.0.9
Module sangomartapi successfully downloaded in 2 seconds
Upgrading module ‘sms’ from 17.0.1.15 to 17.0.1.16
Module sms successfully downloaded in 1 seconds
All upgrades completed successfully!

Please try to download the latest endpoint manager.

fwconsole ma downloadinstall endpoint --tag=17.0.2.8

Regards
Kapil

Thanks, I ended up figuring out the tag arg and that stopped the error. Every time I run module updates it seems like the system blows up and I have to run reinstalls refresh signatures reinstall core and then it starts to show me the web ui. Is there any way I can clean up the system or look for corruption that would cause this sort of reoccurring issue?