I mess up site_config.json

Internal server error

I just put developer: 1 in site_config.json when i reboot it …i can access my server on my workstation… Internal server error how can i fix this?

Share your site_config.json

“db_name”: “1bd3e0294da19198”,
“db_password”: “xxxxxxxxxxxxx”,
“developer_mode”: “1”,
“encryption_key”: “xxxxxxxxxxxx_xxxxxxxx_xxxxxx”

What have you changed in it? It looks okay.

when i put “developer_mode”: “1”, code i cant access my server …

Try this command from frappe-bench:
bench clear-cache && bench clear-website-cache && bench build
And check whether it works !!

throws an error:
pymysql.errr.OperationalError: (1045, u “Access denied for user ‘1bd3e0294da19198’@'localhost '(using password: YES)”)

Okay so try this :face_with_raised_eyebrow:

  1. Go to my sql console
  2. use mysql;
  3. UPDATE mysql.user
  • SET Password=PASSWORD(“EnterYourPasswordHere”)
  • WHERE User=“root”;

5.Save and exit

Hope this helps :+1:

just change “developer_mode”: “1” to “developer_mode”: 1, and then restart your server.

1 Like

tried it no luck :frowning:

Are you able to access your server if you revert the developer mode?

i cant access my server after i revert it…

i tried it but still does not work

Have you tried this
If yes and still if it’s not working then it’s not a site_config issue.

Also i’m sharing with you the link “mysql - how to fix #1045 - Access denied for user 'root'@'localhost' (using password: NO) - Stack Overflow” from where i tried those commands.

@cpsolution Did you try changing the password? If yes, did you enter the same password which is in your site_config.json file?

it changes only the root password of mysql.

this is what i want to change not the root password
“db_name”: “1bd3e0294da19198”,
“db_password”: “xxxxxxxxxxxxx”,
“developer_mode”: “1”,
“encryption_key”: “xxxxxxxxxxxx_xxxxxxxx_xxxxxx”

yes its the same password… maybe i forgot something…

REPLACE “developer_mode”: “1”,
“developer_mode”: 1 ,

1 Like