that solved it for me, hurrah!
cd /home/frappe/frappe/bench
bench --site erp.mydomain.com set-config hostname "https://erp.mydomain.com:443"
thx @bkm for pointing me towards the right direction
@chancegold please kindly let us know whether this fix solves it on your end as well. Then we can close this Topic