On my first live run, I got this error:
2020-12-14 17:16:38 : INFO : Creating domains: [{'name': 'domain5.com'}, {'name': 'junction.oneofmydomains.net'}, {'name': 'anotherofmydomains.com'}, {'name': 'domain3.org'}, {'name': 'thejunction.oneofmydomains.net'}, {'name': 'domain4.org'}, {'name': 'mywfusername.webfactional.com'}, {'name': 'oneofmydomains.net'}, {'name': 'domain6.org'}]
2020-12-14 17:16:38 : DEBUG : performing POST domain/add/ with [{'name': 'domain5.com'}, {'name': 'junction.oneofmydomains.net'}, {'name': 'anotherofmydomains.com'}, {'name': 'domain3.org'}, {'name': 'thejunction.oneofmydomains.net'}, {'name': 'domain4.org'}, {'name': 'mywfusername.webfactional.com'}, {'name': 'oneofmydomains.net'}, {'name': 'domain6.org'}]
2020-12-14 17:16:38 : DEBUG : Starting new HTTPS connection (1): my.opalstack.com:443
2020-12-14 17:17:28 : DEBUG : https://my.opalstack.com:443 "POST /api/v0/domain/add/ HTTP/1.1" 400 137
2020-12-14 17:17:28 : DEBUG : {"error": "Domain name \"mywfusername.webfactional.com\" is already in use by another user, if you believe you own this domain contact support."}
2020-12-14 17:17:28 : DEBUG : got resp: <Response [400]> and result {'error': 'Domain name "mywfusername.webfactional.com" is already in use by another user, if you believe you own this domain contact support.'}
## The following error was encountered during operation: Unexpected status_code: 400
##
## Please ensure that you are modifying the latest version of the configuration template:
##
## /opt/app_migrators/wf_generic_email/config-template.ini
##
## If you have any questions, please contact Support, and include the follwing error information for debugging:
2020-12-14 17:17:28 : ERROR : Unexpected status_code: 400
Traceback (most recent call last):
File "/usr/local/bin/wfmigrate", line 102, in <module>
migrator.run()
File "/opt/app_migrators-1.10.3/wf_generic_email/migrator.py", line 92, in run
self.migrate()
File "/opt/app_migrators-1.10.3/wf_generic_email/migrator.py", line 71, in migrate
self.wf_migrator_email.create_domains()
File "/opt/app_migrators-1.10.3/lib/wf_migrator_email.py", line 144, in create_domains
created = self.opal_cfg.api.domains.ensure(needed)
File "/opt/app_migrators-1.10.3/lib/opalapi.py", line 155, in ensure
created = self.create(tocreate, wait=wait)
File "/opt/app_migrators-1.10.3/lib/opalapi.py", line 140, in create
create_result = self.api.post(create_url, tocreate, ensure_status=[200])
File "/opt/app_migrators-1.10.3/lib/opalapi.py", line 532, in post
return self.request_result(urlpath, dataObj, 'POST', ensure_status)
File "/opt/app_migrators-1.10.3/lib/opalapi.py", line 525, in request_result
resp, result = self.request(urlpath, dataObj, method, ensure_status)
File "/opt/app_migrators-1.10.3/lib/opalapi.py", line 521, in request
raise RuntimeError(f'Unexpected status_code: {resp.status_code}')
RuntimeError: Unexpected status_code: 400
I've changed the names to protect the guilty, e.g. 'mywfusername' is a pseudonym for my WebFaction username. But 'webfactional.com' is verbatim, which I imagine is the actual cause of this exception. I think 'mywfusername.webfactional.com' was a test server I set up when I first moved to WebFaction, back in the 2000s. I don't really need it, but I don't see how to delete it in the WebFaction control panel.
I'll keep trying, but can you tell me if I can just rerun wfmigrate
after that? Or do I have to run some clean-up step first?
Also, most of my domains actually point to the same mailbox, including multiple subdomains (e.g. 'thejunction.oneofmydomains.net' and 'junction.oneofmydomains.net' point to the same web server, and both have a catch-all going to the same mailbox). Is this going to be a problem?
Update
I added the domain it choked on to exclude_domains
, and then it seemed to work. I'll write a separate post if anything looks messed up. Thanks.