Bitcoin Forum
May 11, 2024, 10:10:35 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [SOLVED] CentOS bitcoind connection problem. I need help.  (Read 1199 times)
coinbase (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
August 19, 2012, 11:16:52 AM
Last edit: August 19, 2012, 03:31:07 PM by coinbase
 #1

Mods: please move this to support/dev discussion. Thank you.

I've got bitcoind installed on a centos server with the help of [1] http://www.firenzee.com/bitcoin-centos.sh.

    ./bitcoind -daemon
    bitcoin server starting
    ./bitcoind getinfo

    { "version" : 60300, "protocolversion" : 60001, "walletversion" : 60000, "balance" : 0.00000000, "blocks" : 0, "connections" : 0, "proxy" : "", "difficulty" : 1.00000000, "testnet" : false, "keypoololdest" : 1345161090, "keypoolsize" : 101, "paytxfee" : 0.00000000, "errors" : "" }

here is my bitcoin.conf file:

    rpcuser=user
    rpcpassword=hunter2
    rpctimeout=90
    rpcport=8332
    rpcallowip=*
    server=1

Iptable:

    membersrv@linnareacu [~]# iptables -L | grep '8333'
    ACCEPT tcp -- anywhere anywhere tcp dpt:8333

1715422235
Hero Member
*
Offline Offline

Posts: 1715422235

View Profile Personal Message (Offline)

Ignore
1715422235
Reply with quote  #2

1715422235
Report to moderator
1715422235
Hero Member
*
Offline Offline

Posts: 1715422235

View Profile Personal Message (Offline)

Ignore
1715422235
Reply with quote  #2

1715422235
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715422235
Hero Member
*
Offline Offline

Posts: 1715422235

View Profile Personal Message (Offline)

Ignore
1715422235
Reply with quote  #2

1715422235
Report to moderator
1715422235
Hero Member
*
Offline Offline

Posts: 1715422235

View Profile Personal Message (Offline)

Ignore
1715422235
Reply with quote  #2

1715422235
Report to moderator
coinbase (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
August 19, 2012, 11:57:00 AM
 #2

Guess you've already been through this thread:
https://bitcointalk.org/index.php?topic=98647.0

Yes I've read this thread, it was very useful. I got it running but no connections. I can connect via rpc https://i.imgur.com/kPSuC.jpg.

It's installed on a dedicated server with hostgator. The iptable seems correct but I cant ping the port with http://www.yougetsignal.com/tools/open-ports/.

Here is a quote from hostgator about opening ports:

Quote
Dedicated Server and VPS accounts can open new inbound and outbound ports. Please email support@hostgator.com with this request.

Would this be the reason? Is there anything I can check before I contact them?

This guy had the same problem: https://bitcointalk.org/index.php?topic=81818.0 I tried removing the files in .bitcoin but leaving the wallet.dat and bitcoin.conf, but it still wouldnt start connecting to peers.

I tried to add the fallback nodes from https://en.bitcoin.it/wiki/Fallback_Nodes but they all seem down? Is there a recent list?

Thanks
Bitsky
Hero Member
*****
Offline Offline

Activity: 576
Merit: 514


View Profile
August 19, 2012, 02:49:59 PM
 #3

    rpcpassword=hunter2
    rpcallowip=*
Seriously? You might want to limit that. Also, are you reading bash.org sometimes?

    membersrv@linnareacu [~]# iptables -L | grep '8333'
    ACCEPT tcp -- anywhere anywhere tcp dpt:8333
Bitcoin will also try to use IRC since you did not exclude it. That aside, the grep result doesn't show if it's in the INPUT or OUTPUT chain. I assume you have a rule for ESTABLISHED/RELATED too?
Stop iptables for a quick test; if bitcoind connects, you can adjust your rules (netstat helps there)

Bounty: Earn up to 68.7 BTC
Like my post? Feel free to drop a tip to 1BitskyZbfR4irjyXDaGAM2wYKQknwX36Y
coinbase (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
August 19, 2012, 02:54:08 PM
 #4

Quote
Stop iptables for a quick test;

Thank you so much.


    "version" : 60300,
    "protocolversion" : 60001,
    "walletversion" : 60000,
    "balance" : 0.00000000,
    "blocks" : 13782,
    "connections" : 8,
    "proxy" : "",
    "difficulty" : 1.00000000,
    "testnet" : false,
    "keypoololdest" : 1345161090,
    "keypoolsize" : 101,
    "paytxfee" : 0.00000000,
    "errors" : ""

Now what rules do i have to put, I need my firewall back.

Thanks
Bitsky
Hero Member
*****
Offline Offline

Activity: 576
Merit: 514


View Profile
August 19, 2012, 05:45:18 PM
 #5

According to the docs, 8333/tcp/out is required. As mentioned before, make sure your INPUT chain has the required rules to let packets back in which belong to establised connections.
Check your complete chains to make sure a previous rule doesn't affect your rule (like having a DROP as the last default rule in a chain and then using -A with your rule).

Bounty: Earn up to 68.7 BTC
Like my post? Feel free to drop a tip to 1BitskyZbfR4irjyXDaGAM2wYKQknwX36Y
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!