Troubleshooting¶
[!TIP] Run
gsm doctorfirst — it checks all 5 connectivity requirements and tells you exactly what's wrong.
Common issues and solutions for gsuite-manager.
Authentication¶
"Token has been expired or revoked"¶
"The caller does not have permission"¶
[!WARNING] Your Google Workspace account needs Super Admin role. Delegated admin won't work for domain/user management APIs.
DNS¶
"MX records not propagated" after domain add¶
DNS propagation can take 5-60 minutes. gsm polls automatically, but if it times out:
gsm health --domain example.com # check current state
gsm domains verify example.com # retry verification
Cloudflare Email Routing conflict¶
gsm auto-detects and disables Email Routing before injecting MX records. If you see conflicts:
# Check CF dashboard → Email → Email Routing → disable
gsm domains add example.com # retry (idempotent)
Installation¶
"No module named gsm"¶
Ensure you installed in the active venv:
Windows: UnicodeEncodeError¶
Set terminal to UTF-8:
State¶
Corrupt ledger file¶
gsm auto-recovers from corrupt JSON entries. If the ledger is completely broken:
# Backup and reset
cp ~/.config/gsm/ledger.json ~/.config/gsm/ledger.json.bak
echo '{"domains": {}, "users": {}}' > ~/.config/gsm/ledger.json
Getting Help¶
- GitHub Discussions — Questions & ideas
- Bug Reports — File an issue