How to fix this error - frappe.limits.update_space_usage

{‘retry’: 0, ‘log’: <function log at 0x7ff388d94410>, ‘site’: u’myacc1’, ‘event’: u’hourly’, ‘method_name’: u’frappe.limits.update_space_usage’, ‘method’: <function update_space_usage at 0x7ff388e082a8>, ‘user’: u’Administrator’, ‘kwargs’: {}, ‘async’: True, ‘job_name’: u’frappe.limits.update_space_usage’}
Traceback (most recent call last):
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/utils/”, line 97, in execute_job
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/”, line 219, in update_space_usage
update_limits({ ‘space_usage’: usage })
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/”, line 159, in update_limits
update_site_config(“limits”, limits, validate=False)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/”, line 294, in update_site_config
with open(site_config_path, “w”) as f:
IOError: [Errno 13] Permission denied: u’./myacc1/site_config.json’

Hi @Kakuda_Kachchayana_T,

Error 13 on the site_config.json means the system has no write access to change the site config. Open the sites folder and run

$ cd /home/frappe/frappe/bench/sites/myacc1
$ sudo chown frappe:frappe *

This is assuming your ERPNext is running as frappe user… Then, try again.

1 Like