Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more complete instructions on how to setup grin-explorer #30

Merged
merged 2 commits into from
Jan 7, 2019
Merged

Add more complete instructions on how to setup grin-explorer #30

merged 2 commits into from
Jan 7, 2019

Conversation

0xmichalis
Copy link
Contributor

@0xmichalis
Copy link
Contributor Author

Note that I still can't run a fully functional grin-explorer.

When hitting the local endpoint I get a 500: https://pastebin.com/XgwR7DWw

Also, when trying to load the grin blockchain: https://pastebin.com/AcgikaVt

@hendi
Copy link
Member

hendi commented Jan 4, 2019

Sorry for the very brief instructions :-)

The first 500 entry is likely due to the empty blockchain, it's easy to fix, I'll get to it.

The second one would also profit from a better error message. I assume its cause is that your grin-server hasn't archive_mode = true in its config file, and the import script crashes when it asks for an old block that doesn't exist on your node.

@hendi
Copy link
Member

hendi commented Jan 4, 2019

Can you please try the better-errors branch regarding the import error?

@0xmichalis
Copy link
Contributor Author

Looks like an improved error message

$ python3 ./grinexplorer/manage.py import_from_tip http://127.0.0.1:13413
Decoding JSON failed (did you set `archive_mode=true` in grin-server.toml?
resp=''

but I still cannot make the explorer work even with an archive_mode=true node..

@0xmichalis
Copy link
Contributor Author

Hrm, after a brief look at the code, it may be that the auth secret is not used for the request to grin?

@0xmichalis
Copy link
Contributor Author

Hrm, after a brief look at the code, it may be that the auth secret is not used for the request to grin?

After uncommenting the secret from the server config I can successfully import the blockchain.

@0xmichalis
Copy link
Contributor Author

After uncommenting the secret from the server config I can successfully import the blockchain.

Opened #32 - I am going to add documentation in this PR denoting that grin needs to run as an archival node and basic auth needs to be disabled currently in order for the explorer to work. Will ping you once I am done.

@0xmichalis
Copy link
Contributor Author

Updated with instructions on how to setup Grin, also added notes to ensure folks use their own credentials when setting up both PostgreSQL and the explorer.

@hendi hendi merged commit 36cd396 into mimblewimble:master Jan 7, 2019
@hendi
Copy link
Member

hendi commented Jan 7, 2019

This is great, thank you very much!

@0xmichalis 0xmichalis deleted the instructions branch January 7, 2019 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants