Frappe.async.remove_old_task_logs

Comments 0
ASSIGNED TO
Assign
ATTACHMENTS
Attach File
TAGS
Add a tag …
SHARED WITH
0
Administrator Mallah edited this
8 hours ago
Administrator Mallah created this
8 hours ago
Close
Title
frappe.async.remove_old_task_logs

Error
{'retry': 0, 'log': <function log at 0x7f39c3788320>, 'site': u'serveit.in', 'event': u'daily', 'method_name': u'frappe.async.remove_old_task_logs', 'method': <function remove_old_task_logs at 0x7f39c42b2848>, 'user': u'Administrator', 'kwargs': {}, 'async': True, 'job_name': u'frappe.async.remove_old_task_logs'}
Traceback (most recent call last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/background_jobs.py", line 97, in execute_job
    method(**kwargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/async.py", line 41, in remove_old_task_logs
    files_to_remove = [full_path(_file) for _file in os.listdir(logs_path)]
OSError: [Errno 2] No such file or directory: './serveit.in/task-logs'

Above log is occurring on interval of every 1 hrs.

Does the site with name serveit.in exist in your bench ?

not now, i just removed.
doing fresh installation.

Thanks for the help.:blush:
Issue resolved of this topic.
Pls close.