Custom module - cannot deploy after deleting some test module

Hi,
I am developing some new modules. I have created one just fine (7.14.2) and done some tests. I have redeployed it few times. After adding new module in the same package I was unable to deploy anything.
All I get is
image
for hours…
I have deleted custom module and created it again. No change. All I could find in logs is that first package and module is referenced somehow still
Wed Jan 3 08:32:29 2024 [3319][1][WARN] Cannot find bean file for module: nxp_test

Any ideas?

I don’t use Module Builder, but I hear people typically only use it for the initial creation of the module, then they just use Studio for changes, or edit files directly. It seems redeploying from Module Builder resets too much stuff.

But if this is not what you’re running into, it might simply be a bug or (very typical) a problem with ownerships/permissions writing files.

You should go check your logs for any errors during deployment.

Yes, I have found some additional errors in php error log. But I dont know what to do with that…

[03-Jan-2024 10:38:09 UTC] PHP Fatal error:  Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /var/www/html/SuiteCRM-7.14.2/ModuleInstall/ModuleInstaller.php:611
Stack trace:
#0 /var/www/html/SuiteCRM-7.14.2/ModuleInstall/ModuleInstaller.php(1696): ModuleInstaller->uninstall_global_search()
#1 /var/www/html/SuiteCRM-7.14.2/ModuleInstall/PackageManager/PackageManager.php(683): ModuleInstaller->uninstall()
#2 /var/www/html/SuiteCRM-7.14.2/modules/ModuleBuilder/controller.php(230): PackageManager->performUninstall()
#3 /var/www/html/SuiteCRM-7.14.2/include/MVC/Controller/SugarController.php(522): ModuleBuilderController->action_DeployPackage()
#4 /var/www/html/SuiteCRM-7.14.2/include/MVC/Controller/SugarController.php(491): SugarController->do_action()
#5 /var/www/html/SuiteCRM-7.14.2/include/MVC/Controller/SugarController.php(465): SugarController->handle_action()
#6 /var/www/html/SuiteCRM-7.14.2/modules/ModuleBuilder/controller.php(102): SugarController->process()
#7 /var/www/html/SuiteCRM-7.14.2/include/MVC/Controller/SugarController.php(361): ModuleBuilderController->process()
#8 /var/www/html/SuiteCRM-7.14.2/include/MVC/SugarApplication.php(101): SugarController->execute()
#9 /var/www/html/SuiteCRM-7.14.2/index.php(52): SugarApplication->execute()
#10 {main}
  thrown in /var/www/html/SuiteCRM-7.14.2/ModuleInstall/ModuleInstaller.php on line 611

What is your PHP version? Is it inside the Compatibility Matrix?

Yes it is, 8.2.7

 php -v
PHP 8.2.7 (cli) (built: Jun  9 2023 19:37:27) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.7, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.7, Copyright (c), by Zend Technologies