Yenthe666 / auto_backup

Automated database backups from Odoo, both locally and on an FTP server
MIT License
251 stars 281 forks source link

Odoo Server Error(ODOO14 , auto_backup) #203

Closed billyang001 closed 3 years ago

billyang001 commented 3 years ago

I have install the auto_backup module and when I run Manually this error is occured. Any help would be really appreciated.

Odoo Server Error

Traceback (most recent call last): File "/opt/odoo/src/odoo/addons/base/models/ir_http.py", line 237, in _dispatch result = request.dispatch() File "/opt/odoo/src/odoo/http.py", line 683, in dispatch result = self._call_function(self.params) File "/opt/odoo/src/odoo/http.py", line 359, in _call_function return checked_call(self.db, *args, *kwargs) File "/opt/odoo/src/odoo/service/model.py", line 94, in wrapper return f(dbname, args, kwargs) File "/opt/odoo/src/odoo/http.py", line 347, in checked_call result = self.endpoint(*a, kw) File "/opt/odoo/src/odoo/http.py", line 912, in call return self.method(*args, *kw) File "/opt/odoo/src/odoo/http.py", line 531, in response_wrap response = f(args, kw) File "/opt/odoo/src/addons/web/controllers/main.py", line 1381, in call_button action = self._call_kw(model, method, args, kwargs) File "/opt/odoo/src/addons/web/controllers/main.py", line 1369, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/opt/odoo/src/odoo/api.py", line 396, in call_kw result = _call_kw_multi(method, model, args, kwargs) File "/opt/odoo/src/odoo/api.py", line 383, in _call_kw_multi result = method(recs, *args, **kwargs) File "/opt/odoo/src/odoo/addons/base/models/ir_cron.py", line 83, in method_direct_trigger cron.with_user(cron.user_id).with_context(lastcall=cron.lastcall).ir_actions_server_id.run() File "/opt/odoo/src/odoo/addons/base/models/ir_actions.py", line 632, in run res = runner(run_self, eval_context=eval_context) File "/opt/odoo/src/odoo/addons/base/models/ir_actions.py", line 501, in _run_action_code_multi safe_eval(self.code.strip(), eval_context, mode="exec", nocopy=True) # nocopy allows to return 'action' File "/opt/odoo/src/odoo/tools/safe_eval.py", line 346, in safe_eval raise ValueError('%s: "%s" while evaluating\n%r' % (ustr(type(e)), ustr(e), expr)) Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/opt/odoo/src/odoo/http.py", line 639, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/odoo/src/odoo/http.py", line 315, in _handle_exception raise exception.with_traceback(None) from new_cause ValueError: <class 'PermissionError'>: "13 Permission denied" while evaluating 'model.schedule_backup()'

Yenthe666 commented 3 years ago

As mentioned on a lot of previous tickets.. your folder doesn't have the right access rights for your Odoo user. Just make sure this folder is accessible by the Odoo user. Some duplicates: https://github.com/Yenthe666/auto_backup/issues/195 https://github.com/Yenthe666/auto_backup/issues/184 https://github.com/Yenthe666/auto_backup/issues/176

billyang001 commented 3 years ago

thanks!