Good day all
Trust you are having a great weekend
I have just completed an exercise of migrating my V12 server to V13. My end-goal is to
migrate 4 servers on a multi-tenant system but for now I am checking my procedures on
a single domain server.
The thread that I posted is -
The procedure involved the following -
Existing server : V12.29
- make backups on V12 server : sql-database + csv exports
- Create fresh V13 server
- Copy database.sql.gz file to new server with winscp
- Unzip gz file to yield sql-file
- Do restore
- do migration
- No errors reported
( detail of commands in thread listed above)
Logged in to server. No problems. All data seem to be there. Can create new data e.g. item.
At some stage I saw a pop-up about unread error messages and when I looked in the
error log list I saw 62 errors of the same kind-
Error while connecting to email account Notifications
Trace-back further down in this post.
I did see a post before I did the database transfer and hence I made a backup of the
site_config.json file. The post that I saw is -
My observaions-
Fresh V13 site_config.json file did not have an encryption key.
Unfortunately I did not check the state of the json file directly of the migration.
I deleted the “notifications” email and its domain and recreated them.
The json file on the new V13 server now has an encryption key.
No more errors.
My question;
I read suggestions about transfering the encryption key. Do I still need to do that since the
error does not occur anyore ? Is this key only used for emails? It seems to have been
created when I re-created the email account and domain. It sees as if the problem
is solved … or am I missing something?
If someone can clarify this I would really appreciate it. After “practicing” my procedure on
a single domain system I need to push on and migrate my multi-tenant system.
Thank you all for reading such a long post !
Trace back
Traceback (most recent call last):
File “env/lib/python3.8/site-packages/cryptography/fernet.py”, line 119, in _verify_signature
h.verify(data[-32:])
File “env/lib/python3.8/site-packages/cryptography/hazmat/primitives/hmac.py”, line 74, in verify
ctx.verify(signature)
File “env/lib/python3.8/site-packages/cryptography/hazmat/backends/openssl/hmac.py”, line 75, in verify
raise InvalidSignature(“Signature did not match digest.”)
cryptography.exceptions.InvalidSignature: Signature did not match digest.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “apps/frappe/frappe/utils/password.py”, line 212, in decrypt
plain_text = cstr(cipher_suite.decrypt(encode(pwd)))
File “env/lib/python3.8/site-packages/cryptography/fernet.py”, line 80, in decrypt
return self._decrypt_data(data, timestamp, time_info)
File “env/lib/python3.8/site-packages/cryptography/fernet.py”, line 137, in _decrypt_data
self._verify_signature(data)
File “env/lib/python3.8/site-packages/cryptography/fernet.py”, line 121, in _verify_signature
raise InvalidToken
cryptography.fernet.InvalidToken
During handling of the above exception, another exception occurred: