I just ran it again on the exact same config file.
It seems to no longer be getting tripped up on GET /api/v0/mail/list/ HTTP/1.1
. It finds conflicting forwards and notes:
2020-11-28 16:27:34 : WARNING : Address ADDRESS@EXAMPLE.com will be DELETED!
Which is expected. (I assume, in these cases, the version that exists at OS will be deleted, only the be immediately recreated by migrate
??)
But then it runs into another error:
2020-11-28 16:27:37 : INFO : Creating mailusers: []
Traceback (most recent call last):
File "/usr/local/bin/wfmigrate", line 71, in <module>
migrator.run()
File "/opt/app_migrators-1.6.2/wf_generic_email/migrator.py", line 61, in run
self.simulate()
File "/opt/app_migrators-1.6.2/wf_generic_email/migrator.py", line 36, in simulate
needed = self.wf_migrator_email.generate_needed_domains()
File "/opt/app_migrators-1.6.2/lib/wf_migrator_email.py", line 90, in generate_needed_domains
for address in self.generate_needed_addresses()
File "/opt/app_migrators-1.6.2/lib/wf_migrator_email.py", line 90, in <setcomp>
for address in self.generate_needed_addresses()
AttributeError: 'NoneType' object has no attribute 'split'
I ran it with --loglevel debug
and it seems that the error occurs after migrate
is done looping through the final mailuser in its queue.
This is the final readout (with --loglevel debug
) before the error above:
2020-11-28 16:33:06 : DEBUG : performing GET mailuser/read/UUID-HERE
2020-11-28 16:33:06 : DEBUG : Starting new HTTPS connection (1): my.opalstack.com:443
2020-11-28 16:33:06 : DEBUG : https://my.opalstack.com:443 "GET /api/v0/mailuser/read/UUID-HERE HTTP/1.1" 200 186
2020-11-28 16:33:06 : DEBUG : {"id": "UUID-HERE", "name": "MAILUSERNAME", "pending_deletion": false, "ready": true, "imap_server": "UUID-2-HERE", "init_created": true}
2020-11-28 16:33:06 : DEBUG : got resp: <Response [200]> and result {'id': 'UUID-HERE', 'name': 'MAILUSERNAME', 'pending_deletion': False, 'ready': True, 'imap_server': 'UUID-2-HERE', 'init_created': True}
Thanks for the fix on the first part. Sorry if you're in the middle of working on this and you already know about this error.