Hi,
I have just restored the latest backup of my production instance onto Test Instance.
But, now while saving the Leave Application, I am getting the below error, I hope it related to some email account password but not able to understand the actual cause and pin point in this.
I appreciate if anyone can help me in this context.
Below is the error:
Traceback (most recent call last):
File “/home/vishnu/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 22, in savedocs
doc.save()
File “/home/vishnu/frappe-bench/apps/frappe/frappe/model/document.py”, line 242, in save
return self._save(*args, **kwargs)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/model/document.py”, line 259, in _save
self.insert()
File “/home/vishnu/frappe-bench/apps/frappe/frappe/model/document.py”, line 231, in insert
self.run_post_save_methods()
File “/home/vishnu/frappe-bench/apps/frappe/frappe/model/document.py”, line 728, in run_post_save_methods
self.run_method(“on_update”)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/model/document.py”, line 661, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/model/document.py”, line 839, in composer
return composed(self, method, *args, **kwargs)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/model/document.py”, line 822, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/vishnu/frappe-bench/apps/frappe/frappe/model/document.py”, line 655, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/vishnu/frappe-bench/apps/erpnext/erpnext/hr/doctype/leave_application/leave_application.py”, line 46, in on_update
self.notify_leave_approver()
File “/home/vishnu/frappe-bench/apps/erpnext/erpnext/hr/doctype/leave_application/leave_application.py”, line 254, in notify_leave_approver
“subject”: _get_message()
File “/home/vishnu/frappe-bench/apps/erpnext/erpnext/hr/doctype/leave_application/leave_application.py”, line 261, in notify
“notify”: cint(self.follow_via_email)})
File “/home/vishnu/frappe-bench/apps/frappe/frappe/desk/page/chat/chat.py”, line 112, in post
_notify(contact, txt, subject)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/desk/page/chat/chat.py”, line 133, in _notify
“link”: get_url()
File “/home/vishnu/frappe-bench/apps/frappe/frappe/init.py”, line 393, in sendmail
send_after=send_after, expose_recipients=expose_recipients, send_priority=send_priority, communication=communication)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/email/queue.py”, line 53, in send
email_account = get_outgoing_email_account(True, append_to=reference_doctype)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/email/smtp.py”, line 62, in get_outgoing_email_account
email_account = get_default_outgoing_email_account(raise_exception_not_set=raise_exception_not_set)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/email/smtp.py”, line 90, in get_default_outgoing_email_account
email_account.password = email_account.get_password()
File “/home/vishnu/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 597, in get_password
return get_decrypted_password(self.doctype, self.name, fieldname, raise_exception=raise_exception)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/utils/password.py”, line 16, in get_decrypted_password
return decrypt(auth[0][0])
File “/home/vishnu/frappe-bench/apps/frappe/frappe/utils/password.py”, line 101, in decrypt
plain_text = cstr(cipher_suite.decrypt(encode(pwd)))
File “/home/vishnu/frappe-bench/env/local/lib/python2.7/site-packages/cryptography/fernet.py”, line 103, in decrypt
raise InvalidToken
InvalidToken
Traceback (most recent call last):
File “/home/vishnu/frappe-bench/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/vishnu/frappe-bench/apps/frappe/frappe/handler.py”, line 19, in handle
execute_cmd(cmd)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/handler.py”, line 36, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/init.py”, line 879, in call
return fn(*args, **newargs)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 22, in savedocs
doc.save()
File “/home/vishnu/frappe-bench/apps/frappe/frappe/model/document.py”, line 242, in save
return self._save(*args, **kwargs)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/model/document.py”, line 259, in _save
self.insert()
File “/home/vishnu/frappe-bench/apps/frappe/frappe/model/document.py”, line 231, in insert
self.run_post_save_methods()
File “/home/vishnu/frappe-bench/apps/frappe/frappe/model/document.py”, line 728, in run_post_save_methods
self.run_method(“on_update”)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/model/document.py”, line 661, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/model/document.py”, line 839, in composer
return composed(self, method, *args, **kwargs)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/model/document.py”, line 822, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/vishnu/frappe-bench/apps/frappe/frappe/model/document.py”, line 655, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/vishnu/frappe-bench/apps/erpnext/erpnext/hr/doctype/leave_application/leave_application.py”, line 46, in on_update
self.notify_leave_approver()
File “/home/vishnu/frappe-bench/apps/erpnext/erpnext/hr/doctype/leave_application/leave_application.py”, line 254, in notify_leave_approver
“subject”: _get_message()
File “/home/vishnu/frappe-bench/apps/erpnext/erpnext/hr/doctype/leave_application/leave_application.py”, line 261, in notify
“notify”: cint(self.follow_via_email)})
File “/home/vishnu/frappe-bench/apps/frappe/frappe/desk/page/chat/chat.py”, line 112, in post
_notify(contact, txt, subject)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/desk/page/chat/chat.py”, line 133, in _notify
“link”: get_url()
File “/home/vishnu/frappe-bench/apps/frappe/frappe/init.py”, line 393, in sendmail
send_after=send_after, expose_recipients=expose_recipients, send_priority=send_priority, communication=communication)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/email/queue.py”, line 53, in send
email_account = get_outgoing_email_account(True, append_to=reference_doctype)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/email/smtp.py”, line 62, in get_outgoing_email_account
email_account = get_default_outgoing_email_account(raise_exception_not_set=raise_exception_not_set)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/email/smtp.py”, line 90, in get_default_outgoing_email_account
email_account.password = email_account.get_password()
File “/home/vishnu/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 597, in get_password
return get_decrypted_password(self.doctype, self.name, fieldname, raise_exception=raise_exception)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/utils/password.py”, line 16, in get_decrypted_password
return decrypt(auth[0][0])
File “/home/vishnu/frappe-bench/apps/frappe/frappe/utils/password.py”, line 101, in decrypt
plain_text = cstr(cipher_suite.decrypt(encode(pwd)))
File “/home/vishnu/frappe-bench/env/local/lib/python2.7/site-packages/cryptography/fernet.py”, line 103, in decrypt
raise InvalidToken
InvalidToken
Regards
Ruchin Sharma