cancel
Showing results for 
Search instead for 
Did you mean: 

Can't enable production mode

Can't enable production mode

Hi,

 

Our Magento environment doesn't want to go into production mode. The only thing we get is the following:

 

Schermafbeelding 2018-10-30 om 23.09.06.png

 

 

 

 

 

The "dev/debug/debug_logging" path does not exist..

 

Hopefully someone here can help us out to find out whats going on..

 

Thanks

6 REPLIES 6

Re: Can't enable production mode

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.

Manish Mittal
https://www.manishmittal.com/

Re: Can't enable production mode

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 !

if issue solved,Click Kudos & Accept as Solution

Re: Can't enable production mode

@Manthan Dave

Schermafbeelding 2018-10-31 om 07.56.21.png

 

 

Doesn't work

 

@Manish Mittal

Schermafbeelding 2018-10-31 om 07.57.59.png

 

Doesn't work either Smiley Sad

Re: Can't enable production mode

@jorgb

 

Can not see the attached image, can you please share a third-party link to share the screenshot. 

Manish Mittal
https://www.manishmittal.com/

Re: Can't enable production mode

@Manish Mittal

 

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

Re: Can't enable production mode

@Manish Mittal

@Manthan Dave

 

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?