Difference between revisions of "HowTo run NodeCore"

From Veriblock Wiki
Jump to: navigation, search
Line 33: Line 33:
  
 
== Troubleshooting ==
 
== Troubleshooting ==
 +
 +
=== NodeCore is stuck on a block ===
 +
 +
Ideally this should not happen, but if it does first try restarting NodeCore.
  
 
=== Java out-of-memory ===
 
=== Java out-of-memory ===
Line 41: Line 45:
 
DEFAULT_JVM_OPTS=-Xmx1024m
 
DEFAULT_JVM_OPTS=-Xmx1024m
 
</pre>
 
</pre>
 +
 +
=== NodeCore keeps turning off with "Application exit"  ===
 +
 +
If messages like:
 +
<pre>
 +
INFO [main] n.Program [Program.java:133] Application exit
 +
<pre>
 +
 +
Then something external is shutting off NodeCore (such as a server restart, external process kill, or something else).

Revision as of 14:16, 28 June 2018

See: Main_Page

Overview

NodeCore is the service that runs the VBK blockchain. It is written in Java, and runs on Windows, Linux, and mac.

Steps

Unzip the package:

Windows Mac and Linux
Unzip the nodecore-*.zip file In the bin folder, then run nodecore.bat Unzip to your preferred directory, then run nodecore.

Note: On Linux & Mac systems, you may need to make the nodecore shell script executable by running the following command:

chmod a+x nodecore

When you first run NodeCore, it will create several other files in a new testnet folder (nodecore.properties, veriblock.nodecore.log, nodecore.dat, etc...), and load the existing blockchain.

NodeCore may take several minutes to load all the blocks in the blockchain. See the highest block at https://TestNet.Explore.Veriblock.org. This shows the number of blocks your local instance must load. NodeCore will create a cache file such that when you restart it they will load faster next time.

FAQ

How do I keep my wallet when upgrading to a new version of NodeCore?

The easiest way to upgrade is to copy the testnet folder (which contains the wallet, blockchain, and many files listed here: NodeCore_File_Structure) to the new version.

Troubleshooting

NodeCore is stuck on a block

Ideally this should not happen, but if it does first try restarting NodeCore.

Java out-of-memory

Modify the start file (nodecore.bat for windows, nodecore for linux) to increase the memory limit. Pass in a value, such as "1024 MB" into the DEFAULT_JVM_OPTS variable:

DEFAULT_JVM_OPTS=-Xmx1024m

NodeCore keeps turning off with "Application exit"

If messages like:

INFO [main] n.Program [Program.java:133] Application exit

Then something external is shutting off NodeCore (such as a server restart, external process kill, or something else).