Bitcoin Forum
June 14, 2024, 08:57:13 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to run coin's daemon at VPS server?  (Read 167 times)
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 405
Merit: 5


View Profile WWW
March 30, 2018, 07:11:40 AM
 #1

So after I made coin at local virtualbox's ubuntu, compiled,

qt wallet program run well in local,

so I uploaded only daemon file to VPS server's root folder's inside coin folder.

but when I run ./mycoind

it just stop a while and later spit out error of

bool InitBlockIndex(): Assertion  'hash == hashGenesisBlock' failed?
Aborted

Why and how to fix?
yogg
Legendary
*
Offline Offline

Activity: 2464
Merit: 3158



View Profile WWW
March 30, 2018, 11:33:51 AM
 #2

You should try to compile the coin daemon directly on the VPS. The architecture may be slightly different.

What OS is that ? If it is Debian based (like Ubuntu) try this guide : https://dev.cryptolife.net/compiling-the-daemon-for-your-altcoin-in-ubuntu-linux/

Every step is important. You have to enable swap if you are low on RAM.

If you tried to do that, please tell us if it worked. Smiley
AdolfinWolf
Legendary
*
Offline Offline

Activity: 1946
Merit: 1427


View Profile
March 30, 2018, 11:54:17 AM
 #3

So after I made coin at local virtualbox's ubuntu, compiled,

qt wallet program run well in local,

so I uploaded only daemon file to VPS server's root folder's inside coin folder.

but when I run ./mycoind

it just stop a while and later spit out error of

bool InitBlockIndex(): Assertion  'hash == hashGenesisBlock' failed?
Aborted

Why and how to fix?

Did you create a genesis block? If so, there is something wrong with your merkle root ( or it simply spits this error because there is no hash), if not, then there's probably something wrong with your genesis block. ( It's not matching hash/ merkle root)

If you haven't created the genesis block ( or created it wrongly, (which i think is the error here)), try to follow something along these lines, https://bitcoin.stackexchange.com/a/21328

wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 405
Merit: 5


View Profile WWW
April 02, 2018, 02:21:47 AM
 #4

So after I made coin at local virtualbox's ubuntu, compiled,

qt wallet program run well in local,

so I uploaded only daemon file to VPS server's root folder's inside coin folder.

but when I run ./mycoind

it just stop a while and later spit out error of

bool InitBlockIndex(): Assertion  'hash == hashGenesisBlock' failed?
Aborted

Why and how to fix?

Did you create a genesis block? If so, there is something wrong with your merkle root ( or it simply spits this error because there is no hash), if not, then there's probably something wrong with your genesis block. ( It's not matching hash/ merkle root)

If you haven't created the genesis block ( or created it wrongly, (which i think is the error here)), try to follow something along these lines, https://bitcoin.stackexchange.com/a/21328

Yes my mistake. I didn't turn off or remove that genesis block code.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!