OSError: [Errno 13] Permission denied. Possible solution?

Hi,

Don’t know why this snapshot-errors for every hour. While researching some similar IOError was there but there are very less OSError. Is there any doc what is a possible reason for which this snapshot error reproduced, or where we can list out this and possible solutions?

I’m getting this error-snapshot. Any possible solutions? So far, I had changed permission 755 to file which is mentioned as Permission denied. Still, it is there every hour. Even now, I had done with 777 as well, it’s still there.

{'retry': 0, 'log': <function log at 0x7fec384b02a8>, 'site': u'site1.local', 'event': u'hourly', 'method_name': u'frappe.utils.error.collect_error_snapshots', 'method': <function collect_error_snapshots at 0x7fec38476488>, 'user': u'Administrator', 'kwargs': {}, 'async': True, 'job_name': u'frappe.utils.error.collect_error_snapshots'}
Traceback (most recent call last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/background_jobs.py", line 66, in execute_job
    method(**kwargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/error.py", line 176, in collect_error_snapshots
    os.remove(fullpath)
OSError: [Errno 13] Permission denied: './site1.local/error-snapshots/2017-08-12 17:26:11.819720-192.168.100.84-552.json'

Hii I am facing the same issue, did you solve it? please advise

The OSError may be due to a file ownership or permission conflict.

Please run this example command below and post the results in your reply:

frappe@erpnext:~/frappe-bench$ find sites/ -name '*.json' | xargs ls -al
-rw-rw-r-- 1 frappe frappe 446 Jun  4  2017 sites/common_site_config.json
-rw-rw-r-- 1 frappe frappe   0 Dec 27 19:08 sites/erpnext.vm/error-snapshots/dummy.json
-rw-rw-r-- 1 frappe frappe 348 Dec  6 23:49 sites/erpnext.vm/site_config.json
1 Like

Sorry, I got solved that time and forgot to put answer here. Here is the solution:

1 Like