Error: Unable to start HTTP server. namecoin-core on Manjaro

Post Reply
bjornebarn
Posts: 2
Joined: Sun Oct 22, 2017 1:34 pm
os: linux

Error: Unable to start HTTP server. namecoin-core on Manjaro

Post by bjornebarn »

Hello,

I am just trying to start with namecoin and I want to do mining, so I installed namecoin-core via the AUR (Arch Linux User Repository), I'm running Linux Manjaro.

I followed the start guide and created a namecoin.conf file. However, I can't start namecoind.

When I type:
namecoind -printtoconsole -dbcache=400
I get the following:
2017-10-22 13:31:34 Namecoin version v0.13.0.0-g6e7eb2678
2017-10-22 13:31:34 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
2017-10-22 13:31:34 Default data directory /home/.../.namecoin
2017-10-22 13:31:34 Using data directory /home/.../.namecoin
2017-10-22 13:31:34 Using config file /home/.../.namecoin/namecoin.conf
2017-10-22 13:31:34 Using at most 125 connections (1024 file descriptors available)
2017-10-22 13:31:34 Using 4 threads for script verification
2017-10-22 13:31:34 scheduler thread start
2017-10-22 13:31:34 libevent: getaddrinfo: address family for nodename not supported
2017-10-22 13:31:34 Binding RPC on address ::1 port 8336 failed.
2017-10-22 13:31:34 Binding RPC on address 127.0.0.1 port 8336 failed.
2017-10-22 13:31:34 Unable to bind any endpoint for RPC server
2017-10-22 13:31:34 Error: Unable to start HTTP server. See debug log for details.
Error: Unable to start HTTP server. See debug log for details.
2017-10-22 13:31:34 Shutdown: In progress...
2017-10-22 13:31:34 StopNode()
2017-10-22 13:31:34 scheduler thread interrupt
2017-10-22 13:31:34 Shutdown: done
I tried without the options -printtoconsole and -dbcache=400, getting the same error. There's no further information in the debug log file.

Thank you for your help!

virus_net
Posts: 82
Joined: Tue Aug 22, 2017 1:22 pm
os: bsd
Location: Moscow, Russia
Contact:

Re: Error: Unable to start HTTP server. namecoin-core on Man

Post by virus_net »

Hi.

First, check yours namecoin.conf. Example:

Code: Select all

rpcuser=root
rpcpassword=myStrongStrongPassword
rpcport=8336
rpcbind=127.0.0.1
rpcallowip=127.0.0.1

daemon=1
Second, are you sure that port 8336 is not used in your system ? What netstat show ?
Third, you can try to get and bulid namecoin from source. See gihub.
bitname.ru:
- whois service for .bit: whois.bitname.ru or whois.bitname.bit
- dns servers for .bit: dns1.bitname.ru dns2.bitname.ru or dns1.bitname.bit dns2.bitname.bit
- bit domains statistics
github

biolizard89
Posts: 2001
Joined: Tue Jun 05, 2012 6:25 am
os: linux

Re: Error: Unable to start HTTP server. namecoin-core on Man

Post by biolizard89 »

I agree with virus_net that the issue is most likely that the RPC port is already in use. If you determine that whatever is using the port can't be disabled or moved to another port, you can edit namecoin.conf to change the namecoind RPC port, which should fix the issue. (This procedure is identical to changing the RPC port in bitcoin.conf for Bitcoin Core.)

As an aside though, unless you want to do something nonstandard, usually it's not necessary to create a namecoin.conf file. The RPC port is turned on by default when running namecoind, and cookie authentication is used by default (so unless you're using an RPC client that doesn't know how to do cookie authentication, there's no need to set a username/password).

Cheers!

EDIT: It should also be noted that we don't offer official support for whatever AUR is distributing, and I believe I've heard reports in the past that AUR makes weird customizations to Bitcoin software that make no sense. I'm happy to do what I can to help though.
Jeremy Rand, Lead Namecoin Application Engineer
NameID: id/jeremy
DyName: Dynamic DNS update client for .bit domains.

Donations: BTC 1EcUWRa9H6ZuWPkF3BDj6k4k1vCgv41ab8 ; NMC NFqbaS7ReiQ9MBmsowwcDSmp4iDznjmEh5

bjornebarn
Posts: 2
Joined: Sun Oct 22, 2017 1:34 pm
os: linux

Re: Error: Unable to start HTTP server. namecoin-core on Man

Post by bjornebarn »

Thank you for your replies, and sorry for not getting back to you earlier (had a very busy couple of weeks...).

Anyway, as you suspected, the port was already in use. For some reason namecoind was set to autostart with the computer, something I do not quite understand how it happened... Anyway, I feel a bit stupid now ;)

biolizard89
Posts: 2001
Joined: Tue Jun 05, 2012 6:25 am
os: linux

Re: Error: Unable to start HTTP server. namecoin-core on Man

Post by biolizard89 »

bjornebarn wrote:Thank you for your replies, and sorry for not getting back to you earlier (had a very busy couple of weeks...).

Anyway, as you suspected, the port was already in use. For some reason namecoind was set to autostart with the computer, something I do not quite understand how it happened... Anyway, I feel a bit stupid now ;)
No worries, glad you got it working. :)
Jeremy Rand, Lead Namecoin Application Engineer
NameID: id/jeremy
DyName: Dynamic DNS update client for .bit domains.

Donations: BTC 1EcUWRa9H6ZuWPkF3BDj6k4k1vCgv41ab8 ; NMC NFqbaS7ReiQ9MBmsowwcDSmp4iDznjmEh5

Post Reply