Nxt Forum

Nxt Discussion => Nxt General Discussion => Topic started by: Nexxie on November 13, 2016, 06:05:59 pm

Title: Local host blockchain not loading
Post by: Nexxie on November 13, 2016, 06:05:59 pm
Hi guys

My local host http://127.0.0.1:7876/index.html seems to be stuck at block height 1023374.
It has been there for quite some time and the remaining blocks to be downloaded are rising.
Am I missing something? Doesn't the local host work anymore?

Thanks
Title: Re: Local host blockchain not loading
Post by: ScripterRon on November 14, 2016, 03:54:33 pm
Hi guys

My local host http://127.0.0.1:7876/index.html seems to be stuck at block height 1023374.
It has been there for quite some time and the remaining blocks to be downloaded are rising.
Am I missing something? Doesn't the local host work anymore?

Thanks
It sounds like you are on a fork.  The block at height 1023372 is 2399245340244222707 and the block at height 1023373 is 11999259085257040487.  If this doesn't match what you node has, look at nxt.log and see if your node is rejecting blocks.
Title: Re: Local host blockchain not loading
Post by: Nexxie on November 14, 2016, 07:22:27 pm
Hi guys

My local host http://127.0.0.1:7876/index.html seems to be stuck at block height 1023374.
It has been there for quite some time and the remaining blocks to be downloaded are rising.
Am I missing something? Doesn't the local host work anymore?

Thanks
It sounds like you are on a fork.  The block at height 1023372 is 2399245340244222707 and the block at height 1023373 is 11999259085257040487.  If this doesn't match what you node has, look at nxt.log and see if your node is rejecting blocks.

Thank you for your answer.
Then what might be the solution to solve this?

Title: Re: Local host blockchain not loading
Post by: ScripterRon on November 15, 2016, 04:27:19 pm
Thank you for your answer.
Then what might be the solution to solve this?
What is in nxt.log?  Is it rejecting blocks from peers?  If so, try popping off the last 50 blocks and let it resynch.  Or delete nxt/nxt_db and let your node download the blockchain again.

If something else is wrong, I need to know what is in nxt.log to diagnose the problem.
Title: Re: Local host blockchain not loading
Post by: Nexxie on November 15, 2016, 08:10:28 pm
Thank you for your answer.
Then what might be the solution to solve this?
What is in nxt.log?  Is it rejecting blocks from peers?  If so, try popping off the last 50 blocks and let it resynch.  Or delete nxt/nxt_db and let your node download the blockchain again.

If something else is wrong, I need to know what is in nxt.log to diagnose the problem.

Where can I find the nxt/nxt_db or txt.log file? I am on Mac.
Title: Re: Local host blockchain not loading
Post by: CryptKeeper on November 16, 2016, 07:19:49 am
Thank you for your answer.
Then what might be the solution to solve this?
What is in nxt.log?  Is it rejecting blocks from peers?  If so, try popping off the last 50 blocks and let it resynch.  Or delete nxt/nxt_db and let your node download the blockchain again.

If something else is wrong, I need to know what is in nxt.log to diagnose the problem.

Where can I find the nxt/nxt_db or txt.log file? I am on Mac.

On macintosh machines, NXT will keep data (such as the blockchain database) in a hidden folder.

This folder is located at "/Users/YOURUSERNAME/Library/Application Support/Nxt Wallet/"
Title: Re: Local host blockchain not loading
Post by: ScripterRon on November 16, 2016, 12:12:43 pm
There are also some API commands that you can use (go to http://localhost:7876/test) and look under Debug

The GetLog command will show the last n lines of the log

The PopOff command will allow you to pop n blocks from the chain

You need the server admin password to use these commands.
Title: Re: Local host blockchain not loading
Post by: Nexxie on November 16, 2016, 04:27:28 pm
I deleted the db file. It is now downloading the blockchain again.
Where can I download a recent NXT blockchain file? Peerexplorer doesn't seem to offer it anymore?

Thanks for your help guys
Title: Re: Local host blockchain not loading
Post by: Nexxie on November 16, 2016, 04:33:15 pm
I deleted the db file. It is now downloading the blockchain again.
Where can I download a recent NXT blockchain file? Peerexplorer doesn't seem to offer it anymore?

Thanks for your help guys

correction: it seems it still offers the db file. Is it safe to download this file from peer explorer and use it?
Title: Re: Local host blockchain not loading
Post by: lurker10 on November 16, 2016, 04:38:50 pm
I deleted the db file. It is now downloading the blockchain again.
Where can I download a recent NXT blockchain file? Peerexplorer doesn't seem to offer it anymore?

Thanks for your help guys

correction: it seems it still offers the db file. Is it safe to download this file from peer explorer and use it?

It's safe.
when you downloaded and started NXT client, let it download a few missing blocks and check if the last block id you have is the same as nxtportal.org. You can also open web interface of some openAPI nodes and check their version of block id to make sure you're not on a fork using peerexplorer's blockchain. For a rare occasion peerexplorer's blockchain is on a fork you'll instantly spot the discrepancy.
Title: Re: Local host blockchain not loading
Post by: Nexxie on November 16, 2016, 05:35:23 pm
I put the new db file in the NXT map.
How long does it take for the client to start?
It seems it is taking an unusual long time...

Title: Re: Local host blockchain not loading
Post by: Nexxie on December 03, 2016, 11:29:45 am
Any Mac users in here that can help?
How are you running your NXT client?
How did you got it fired up?
elective-stereophonic
elective-stereophonic
assembly
assembly