cancel
Showing results for 
Search instead for 
Did you mean: 

The dev/debug/debug_logging path does not exist

The dev/debug/debug_logging path does not exist

Just tried to turn on production mode and got the following error


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

 

This also happens when trying to enable and disable debug log with the following command

magento config:set dev/debug/debug_logging 0

 

Anyone have any ideas what has caused this? I have enabled and disabled production mode in the past without any problems.

 

Many Thanks

David

12 REPLIES 12

Re: The dev/debug/debug_logging path does not exist

Hello @davidthurston

 

Magento admin panel, go to "Stores" -> "Configuration" -> "Advanced" -> "Developer" -> "Debug" -> "Log to File". Setting this to "Yes" will cause debug information to be logged to var/log/debug.log in your Magento application directory.

 

After saving the setting, you may get a prompt at the top of the page asking you to flush the cache. If this appears, flush the Magento cache with the link it gives you.

 

If production mode is enabled (as displayed by php bin/magento deploy:mode:show) then the GUI option will not be available. Note that this the admin panel normally hides this in production mode, so only use this if you're testing.

 

Using CLI:

 

php bin/magento config:set dev/debug/debug_logging 0 && php bin/magento cache:flush

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

Re: The dev/debug/debug_logging path does not exist

This option is not editable in admin settings. It is just greyed out and as I stated in original post that command in cli gives same result.
Current mode is developer.

Re: The dev/debug/debug_logging path does not exist

Hello @davidthurston,

 

Please login in phpmyadmin and execute below SQL query

INSERT INTO `core_config_data` (`scope`, `scope_id`, `path`, `value`) VALUES ('default', 0, 'dev/debug/debug_logging', '0');

Also run below command in magento root directory

php bin/magento cache:clean
php bin/magento cache:flush

--
If my answer is useful, please Accept as Solution & give Kudos

 

Re: The dev/debug/debug_logging path does not exist

Hello @davidthurston

 

You can directly change in Database table "core_config_data", please run below query:

 

INSERT INTO `core_config_data` (`scope`, `scope_id`, `path`, `value`) VALUES ('default', 0, 'dev/debug/debug_logging', '0');

It should work.

 

https://magento.stackexchange.com/questions/226311/debug-log-file-is-empty-in-magento-2-2-x

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

Re: The dev/debug/debug_logging path does not exist

Good Morning

 

Apologies for the delay. I've been away.

I have run the sql command you both suggested and cleaned/flushed the cache, but I still get the same error. debug-path.png

Re: The dev/debug/debug_logging path does not exist

please run rm -rf var/.maintenance.flag,then it works.

the reason is:https://devdocs.magento.com/guides/v2.0/install-gde/install/cli/install-cli-subcommands-maint.html

Re: The dev/debug/debug_logging path does not exist

Did you manage to solve this? I have got exactly the same problem..

Re: The dev/debug/debug_logging path does not exist

Hello @jorgb

 

Have you checked the previous post thread if these can help you?

 

You can directly change in Database table "core_config_data", please run below query:

 

INSERT INTO `core_config_data` (`scope`, `scope_id`, `path`, `value`) VALUES ('default', 0, 'dev/debug/debug_logging', '0');

It should work.

 

https://magento.stackexchange.com/questions/226311/debug-log-file-is-empty-in-magento-2-2-x

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

Re: The dev/debug/debug_logging path does not exist

Nope that doesn't work its already there in the database ;-)