Trouble logging in, zonefile issue?

I wasn’t sure if here, slack, or a github issue was the most appropriate place to put this, so apologies if I chose wrong.

One of my Blockstack id’s seems to have issues logging into apps. Obviously this one, insip.id works fine, but I would rather use my mattdavis.id name more broadly as my public persona. However, something is broken with that name. https://explorer.blockstack.org/name/mattdavis.id shows a zone file that never loads, and login screen just hangs with some console errors - see screenshot.

I’m happy to provide any additional information to help debug this, let me know.

More debugging info

blockstack lookup --debug mattdavis.id

Set BLOCKSTACK_DEBUG to 1
Re-exec as "/usr/bin/python", "/usr/local/bin/blockstack", "lookup", "mattdavis.id"
[2018-05-24 22:59:36,346] [DEBUG] [spv:103] (43.140415652837120) Using mainnet
[2018-05-24 22:59:36,547] [DEBUG] [client:98] (43.140415652837120) Connect to https://node.blockstack.org:6263
[2018-05-24 22:59:36,551] [WARNING] [storage:633] (43.140415652837120) Storage implementation is missing a “get_immutable_handler” method
[2018-05-24 22:59:36,551] [WARNING] [storage:633] (43.140415652837120) Storage implementation is missing a “put_immutable_handler” method
[2018-05-24 22:59:36,551] [WARNING] [storage:633] (43.140415652837120) Storage implementation is missing a “delete_immutable_handler” method
[2018-05-24 22:59:36,551] [WARNING] [storage:633] (43.140415652837120) Storage implementation is missing a “delete_mutable_handler” method
[2018-05-24 22:59:36,690] [WARNING] [dropbox:188] (43) Config file ‘/root/.blockstack/client.ini’: section ‘dropbox’ is missing ‘token’. Write access will be disabled
[2018-05-24 22:59:36,694] [DEBUG] [client:116] (43.140415652837120) Loaded storage drivers [‘disk’, ‘gaia_hub’, ‘dropbox’, ‘s3’, ‘blockstack_resolver’, ‘http’, ‘dht’]
[2018-05-24 22:59:36,929] [DEBUG] [zonefile:229] (43.140415652837120) Fetched e515da0fb5517cdd819b7a68a84a6ab4494d6784 from Atlas peer node.blockstack.org:6263
[2018-05-24 22:59:36,940] [DEBUG] [storage:874] (43.140415652837120) get_mutable_data mattdavis.id fqu=mattdavis.id bsk_version=None
[2018-05-24 22:59:36,940] [ERROR] [common:348] (43) Invalid URL https://gaia.blockstack.org/hub/16ep3TQuU7UV6xRoGpgTs6qojeVCPPWw6r/1/profile.json
[2018-05-24 22:59:36,940] [DEBUG] [storage:912] (43.140415652837120) http supports URL https://gaia.blockstack.org/hub/16ep3TQuU7UV6xRoGpgTs6qojeVCPPWw6r/1/profile.json
[2018-05-24 22:59:36,940] [DEBUG] [storage:918] (43.140415652837120) Try http (https://gaia.blockstack.org/hub/16ep3TQuU7UV6xRoGpgTs6qojeVCPPWw6r/1/profile.json)
[2018-05-24 22:59:37,202] [WARNING] [storage:596] (43.140415652837120) Failed to verify with public key hash “1Pe9g72RwcdPQm9BD3vXBc44UHPg4ksnjn” (“1Pe9g72RwcdPQm9BD3vXBc44UHPg4ksnjn”)
[2018-05-24 22:59:37,202] [ERROR] [storage:951] (43.140415652837120) Unparseable data from “https://gaia.blockstack.org/hub/16ep3TQuU7UV6xRoGpgTs6qojeVCPPWw6r/1/profile.json
[2018-05-24 22:59:37,202] [ERROR] [profile:309] (43.140415652837120) Failed to get profile for mattdavis.id
{
“error”: “Failed in parsing and fetching profile for mattdavis.id”
}

Hey @insip.id,

The problem is that your name mattdavis.id is owned by 1Pe9g72RwcdPQm9BD3vXBc44UHPg4ksnjn, but your profile is signed by a private key whose address is 16QdAChRZs78WaM5P34kCSRmKCStY9HPds. You can fix this as follows:

  1. Grab and install the new Node.js CLI at https://github.com/jcnelson/cli-blockstack
  2. Download your profile JWT’s “claim” field and save it somewhere (e.g. /tmp/profile.json)
$ curl -s https://gaia.blockstack.org/hub/16ep3TQuU7UV6xRoGpgTs6qojeVCPPWw6r/1/profile.json | jq '.[0].decodedToken.payload.claim' > /tmp/profile.json
  1. Re-sign your profile with the new CLI and your current owner private key:
$ blockstack-cli profile_sign /tmp/profile.json $YOUR_OWNER_KEY > /tmp/profile.jwt
  1. Upload your newly-signed profile with the new CLI:
$ blockstack-cli profile_store mattdavis.id /tmp/profile.jwt $YOUR_OWNER_KEY https://hub.blockstack.org

You can get $YOUR_OWNER_KEY by using:

$ blockstack-cli make_keychain $YOUR_12_WORD_PHRASE
3 Likes