cancel
Showing results for 
Search instead for 
Did you mean: 

Switching to Production Mode issue

Switching to Production Mode issue

I have been erroring out whenever I try to switch to production mode. Originally had been doing it without the -d memory_limit=-1 So today I tried to run with the -d memory_limit=-1 and it still errored out. I am unsure what to look for now to fix and get to production mode. Here is what is output in the Terminal:
 
Enabling maintenance mode
Starting compilation
Something went wrong while compiling generated code. See the error log for details. Disabling maintenance mode
Command returned non-zero exit code: `/opt/cpanel/ea-php73/root/usr/bin/php -f *Magento_Root*/bin/magento setup:di:compile`
#0 *Magento_Root*/vendor/magento/module-deploy/Model/Filesystem.php(267): Magento\Framework\App\Shell->execute('/opt/cpanel/ea-...')
#1 *Magento_Root*/vendor/magento/module-deploy/Model/Filesystem.php(172): Magento\Deploy\Model\Filesystem->compile(Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 *Magento_Root*/vendor/magento/module-deploy/Model/Mode.php(139): Magento\Deploy\Model\Filesystem->regenerateStatic(Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 [internal function]: Magento\Deploy\Model\Mode->Magento\Deploy\Model\{closure}()
#4 *Magento_Root*/vendor/magento/framework/App/Console/MaintenanceModeEnabler.php(85): call_user_func(Object(Closure))
#5 *Magento_Root*/vendor/magento/module-deploy/Model/Mode.php(147): Magento\Framework\App\Console\MaintenanceModeEnabler->executeInMaintenanceMode(Object(Closure), Object(Symfony\Component\Console\Output\ConsoleOutput), false)
#6 *Magento_Root*/vendor/magento/module-deploy/Console/Command/SetModeCommand.php(101): Magento\Deploy\Model\Mode->enableProductionMode()
#7 *Magento_Root*/vendor/symfony/console/Command/Command.php(255): Magento\Deploy\Console\Command\SetModeCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 *Magento_Root*/vendor/magento/framework/Interception/Interceptor.php(58): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 *Magento_Root*/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Deploy\Console\Command\SetModeCommand\Interceptor->___callParent('run', Array)
#10 *Magento_Root*/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Deploy\Console\Command\SetModeCommand\Interceptor->Magento\Framework\Interception\{closure}(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 *Magento_Root*/generated/code/Magento/Deploy/Console/Command/SetModeCommand/Interceptor.php(104): Magento\Deploy\Console\Command\SetModeCommand\Interceptor->___callPlugins('run', Array, Array)
#12 *Magento_Root*/vendor/symfony/console/Application.php(1000): Magento\Deploy\Console\Command\SetModeCommand\Interceptor->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 *Magento_Root*/vendor/symfony/console/Application.php(271): Symfony\Component\Console\Application->doRunCommand(Object(Magento\Deploy\Console\Command\SetModeCommand\Interceptor), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 *Magento_Root*/vendor/magento/framework/Console/Cli.php(115): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 *Magento_Root*/vendor/symfony/console/Application.php(147): Magento\Framework\Console\Cli->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 *Magento_Root*/bin/magento(23): Symfony\Component\Console\Application->run()
#17 {main}
As for the Logs, the only thing I am seeing is this from the debug.log:
[2023-03-13 15:43:15] main.ERROR: /opt/cpanel/ea-php73/root/usr/bin/php -f *Magento_Root*/bin/magento setup:di:compile 2>&1 Compilation was started. %message% 0/8 [>---------------------------] 0% < 1 sec 79.0 MiBProxies code generation... 0/8 [>---------------------------] 0% < 1 sec 79.0 MiB Proxies code generation... 1/8 [===>------------------------] 12% < 1 sec 83.0 MiB Repositories code generation... 1/8 [===>------------------------] 12% < 1 sec 83.0 MiB [] []
And nothing that seems relevant afterwards
 
If someone can at least point me in the right direction...