Hi,
Our Magento environment doesn't want to go into production mode. The only thing we get is the following:
The "dev/debug/debug_logging" path does not exist..
Hopefully someone here can help us out to find out whats going on..
Thanks
Hello @jorgb
Please try to run below command:
php bin/magento deploy:mode:set production --skip-compilation
php bin/magento cache:flush
sudo chmod -R 0777 var/ pub/ generated/
Hope this will work.
Hi @jorgb
Here i would suggest you to run below commands in sequence :
php bin/magento config:set dev/debug/debug_logging 1 php bin/magento deploy:mode:set production php bin/magento cache:clean php bin/magento cache:flush
then try it will works !
Can not see the attached image, can you please share a third-party link to share the screenshot.
Ah then you cant also see the image from my startpost, but never mind every command just returns "The "dev/debug/debug_logging" path does not exist".
[master_dufegwaqpv]:public_html$ php bin/magento deploy:mode:set production Enabling maintenance mode Disabling maintenance mode The "dev/debug/debug_logging" path does not exist
[master_dufegwaqpv]:public_html$ php bin/magento config:set dev/debug/debug_logging 1 The "dev/debug/debug_logging" path does not exist
[master_dufegwaqpv]:public_html$ php bin/magento deploy:mode:set production --skip-compilation The "dev/debug/debug_logging" path does not exist
I know got the following recommendation:
I helped to debug further in your instance and I saw in that context M2 couldn’t loaded system config values. And then, it raises none exists error message when checking the config named ‘dev/debug/debug_logging‘.
Could you try with steps below at your end:
+ Backup all current source files and database of your instance
+ Remove the files:
rm -f app/etc/config.php app/etc/env.php
+ Once done, go to browser and reinstall M2 in current database by setup wizard steps.
Hope that helps.
Is it save to do this without losing any settings and data?