I am new to magento and trying to set up a new project locally. After cloning the repo from remote to local, I run composer install and then I try to run bin/magento s:up which runs initially but eventually I get this error.
In Gd2Rewrite.php line 57:
File "" does not exist.
Tried to find Gd2Rewrite.php but it does not exist in project. Below is the stack trace
[2022-12-07T20:11:07.506861+00:00] main.CRITICAL: No cache server(s) could be purged Cache host: star-register-m2.localnet:80resulted in error message: Unable to connect to star-register-m2.localnet:80 . Error #0: stream_socket_client(): Unable to connect to star-register-m2.localnet:80 (php_network_getaddresses: getaddrinfo for star-register-m2.localnet failed: Name or service not known) {"method":"GET","url":"http:/","invalidateInfo":{"servers":[{"Laminas\Uri\Http":"http://star-register-m2.localnet/"}],"formattedTagsChunk":".*"}} []
[2022-12-07T20:11:07.535551+00:00] main.CRITICAL: No cache server(s) could be purged Cache host: star-register-m2.localnet:80resulted in error message: Unable to connect to star-register-m2.localnet:80 . Error #0: stream_socket_client(): Unable to connect to star-register-m2.localnet:80 (php_network_getaddresses: getaddrinfo for star-register-m2.localnet failed: Name or service not known) {"method":"GET","url":"http:/","invalidateInfo":{"servers":[{"Laminas\Uri\Http":"http://star-register-m2.localnet/"}],"formattedTagsChunk":".*"}} []
[2022-12-07T20:11:18.536728+00:00] main.CRITICAL: No cache server(s) could be purged Cache host: star-register-m2.localnet:80resulted in error message: Unable to connect to star-register-m2.localnet:80 . Error #0: stream_socket_client(): Unable to connect to star-register-m2.localnet:80 (php_network_getaddresses: getaddrinfo for star-register-m2.localnet failed: Name or service not known) {"method":"GET","url":"http:/","invalidateInfo":{"servers":[{"Laminas\Uri\Http":"http://star-register-m2.localnet/"}],"formattedTagsChunk":".*"}} []
[2022-12-07T20:11:28.852641+00:00] main.CRITICAL: No cache server(s) could be purged Cache host: star-register-m2.localnet:80resulted in error message: Unable to connect to star-register-m2.localnet:80 . Error #0: stream_socket_client(): Unable to connect to star-register-m2.localnet:80 (php_network_getaddresses: getaddrinfo for star-register-m2.localnet failed: Name or service not known) {"method":"GET","url":"http:/","invalidateInfo":{"servers":[{"Laminas\Uri\Http":"http://star-register-m2.localnet/"}],"formattedTagsChunk":".*"}} []
[2022-12-07T20:11:28.853614+00:00] main.ERROR: File "" does not exist.
#0 /var/www/star-register-m2/vendor/magento/framework/Interception/Interceptor.php(58): MagestyAppsWebImagesModelImageAdapterGd2Rewrite->open()
#1 /var/www/star-register-m2/vendor/magento/framework/Interception/Interceptor.php(138): MagestyAppsWebImagesModelImageAdapterGd2RewriteInterceptor->___callParent()
#2 /var/www/star-register-m2/vendor/magento/framework/Interception/Interceptor.php(153): MagestyAppsWebImagesModelImageAdapterGd2RewriteInterceptor->MagentoFrameworkInterception{closure}()
#3 /var/www/star-register-m2/generated/code/MagestyApps/WebImages/Model/Image/Adapter/Gd2Rewrite/Interceptor.php(23): MagestyAppsWebImagesModelImageAdapterGd2RewriteInterceptor->___callPlugins()
#4 /var/www/star-register-m2/vendor/magento/framework/Image.php(51): MagestyAppsWebImagesModelImageAdapterGd2RewriteInterceptor->open()
#5 /var/www/star-register-m2/generated/code/Magento/Framework/Image/Interceptor.php(23): MagentoFrameworkImage->open()
#6 /var/www/star-register-m2/vendor/magento/framework/Image.php(36): MagentoFrameworkImageInterceptor->open()
#7 /var/www/star-register-m2/generated/code/Magento/Framework/Image/Interceptor.php(14): MagentoFrameworkImage->__construct()
#8 /var/www/star-register-m2/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(121): MagentoFrameworkImageInterceptor->__construct()
#9 /var/www/star-register-m2/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(66): MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject()
#10 /var/www/star-register-m2/vendor/magento/framework/ObjectManager/ObjectManager.php(56): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create()
#11 /var/www/star-register-m2/vendor/magento/framework/Image/Factory.php(50): MagentoFrameworkObjectManagerObjectManager->create()
#12 /var/www/star-register-m2/vendor/magento/framework/View/Design/Theme/Image.php(127): MagentoFrameworkImageFactory->create()
#13 /var/www/star-register-m2/vendor/magento/module-theme/Model/Theme/Registration.php(135): MagentoFrameworkViewDesignThemeImage->createPreviewImage()
#14 /var/www/star-register-m2/vendor/magento/module-theme/Model/Theme/Registration.php(114): MagentoThemeModelThemeRegistration->_savePreviewImage()
#15 /var/www/star-register-m2/vendor/magento/module-theme/Model/Theme/Registration.php(73): MagentoThemeModelThemeRegistration->_registerThemeRecursively()
#16 /var/www/star-register-m2/vendor/magento/module-theme/Setup/RecurringData.php(52): MagentoThemeModelThemeRegistration->register()
#17 /var/www/star-register-m2/setup/src/Magento/Setup/Model/Installer.php(1117): MagentoThemeSetupRecurringData->install()
#18 /var/www/star-register-m2/setup/src/Magento/Setup/Model/Installer.php(960): MagentoSetupModelInstaller->handleDBSchemaData()
#19 /var/www/star-register-m2/setup/src/Magento/Setup/Console/Command/DbDataUpgradeCommand.php(69): MagentoSetupModelInstaller->installDataFixtures()
#20 /var/www/star-register-m2/vendor/symfony/console/Command/Command.php(255): MagentoSetupConsoleCommandDbDataUpgradeCommand->execute()
#21 /var/www/star-register-m2/vendor/symfony/console/Application.php(1009): SymfonyComponentConsoleCommandCommand->run()
#22 /var/www/star-register-m2/vendor/symfony/console/Application.php(273): SymfonyComponentConsoleApplication->doRunCommand()
#23 /var/www/star-register-m2/vendor/magento/framework/Console/Cli.php(115): SymfonyComponentConsoleApplication->doRun()
#24 /var/www/star-register-m2/vendor/symfony/console/Application.php(149): MagentoFrameworkConsoleCli->doRun()
#25 /var/www/star-register-m2/bin/magento(23): SymfonyComponentConsoleApplication->run()
#26 {main} [] []
Not sure what the issue is. Thought it could be related to local db. But, mysql is running fine locally and also I have correct credentials for database and correct database name in env.php. How can I solve this issue?