Grin 1.0.1 Connected peers 0

Cant connect to peers
here is my log:

20190219 12:08:45.494 INFO grin - This is Grin version 1.0.1 (git v1.0.1), built for x86_64-unknown-linux-gnu by rustc 1.32.0 (9fda7c223 2019-01-16).
20190219 12:08:45.494 DEBUG grin - Built with profile "release", features "".
20190219 12:08:45.494 WARN grin::cmd::server - Starting GRIN in UI mode...
20190219 12:08:45.494 INFO grin_servers::grin::server - Starting server, genesis block: 40adad0aec27
20190219 12:08:45.763 DEBUG grin_store::prune_list - prune_list: bitmap 50997 pos (81748 bytes), pruned_cache 544287 pos (82008 bytes), shift_cache 50997, leaf_shift_cache 50997
20190219 12:08:46.019 DEBUG grin_store::prune_list - prune_list: bitmap 50997 pos (81748 bytes), pruned_cache 544287 pos (82008 bytes), shift_cache 50997, leaf_shift_cache 50997
20190219 12:08:46.019 TRACE grin_chain::txhashset::txhashset - Starting new txhashset header extension.
20190219 12:08:46.019 TRACE grin_chain::txhashset::txhashset - Committing txhashset header extension. size 83761
20190219 12:08:46.024 TRACE grin_chain::txhashset::txhashset - TxHashSet header extension done.
20190219 12:08:46.024 TRACE grin_chain::txhashset::txhashset - Starting new txhashset extension.
20190219 12:08:46.024 DEBUG grin_chain::txhashset::txhashset - Rewind to header 000002bcab54 at 41884
20190219 12:08:46.024 DEBUG grin_chain::txhashset::txhashset - txhashset: rewind_to_pos: header 83761, output 839105, kernel 310812
20190219 12:08:46.025 DEBUG grin_chain::chain - init: rewinding and validating before we start... 000002bcab54 at 41884
20190219 12:08:46.025 TRACE grin_chain::txhashset::txhashset - Committing txhashset extension. sizes (83761, 839105, 839105, 310812)
20190219 12:08:46.041 TRACE grin_chain::txhashset::txhashset - TxHashSet extension done.
20190219 12:08:46.044 DEBUG grin_chain::chain - init: head: 70187432611791 @ 41884 [000002bcab54]
20190219 12:08:46.044 DEBUG grin_chain::chain - init: header_head: 70187432611791 @ 41884 [000002bcab54]
20190219 12:08:46.044 DEBUG grin_chain::chain - init: sync_head: 70187432611791 @ 41884 [000002bcab54]
20190219 12:08:46.044 DEBUG grin_chain::chain - Starting txhashset compaction...
20190219 12:08:47.151 DEBUG grin_chain::chain - ... finished txhashset compaction.
20190219 12:08:47.151 DEBUG grin_chain::chain - compact_blocks_db: head height: 41884, tail height: 31804, horizon: 10080, cutoff: 31804
20190219 12:08:47.161 DEBUG grin_chain::chain - compact_blocks_db: removed 0 blocks. tail height: 31804
20190219 12:08:47.162 DEBUG grin_servers::common::types - sync_state: sync_status: Initial -> AwaitingPeers(true)
20190219 12:08:47.162 INFO grin_servers::grin::server - Starting rest apis at: 127.0.0.1:3413
20190219 12:08:47.162 DEBUG grin_servers::grin::seed - Retrieving seed nodes from dns mainnet.seed.grin-tech.org
20190219 12:08:47.162 INFO grin_api::handlers - Starting HTTP API server at 127.0.0.1:3413.
20190219 12:08:47.162 INFO grin_servers::grin::server - Starting dandelion monitor: 127.0.0.1:3413
20190219 12:08:47.162 DEBUG grin_servers::grin::dandelion_monitor - Started Dandelion transaction monitor.
20190219 12:08:47.162 WARN grin_servers::grin::server - Grin server started.
20190219 12:08:48.519 DEBUG grin_servers::grin::seed - Retrieving seed nodes from dns mainnet.seed.grin.icu
20190219 12:08:48.718 DEBUG grin_servers::grin::seed - Retrieving seed nodes from dns mainnet.seed.713.mw
20190219 12:08:49.128 DEBUG grin_servers::grin::seed - Retrieving seed nodes from dns mainnet.seed.grin.lesceller.com
20190219 12:08:49.333 DEBUG grin_servers::grin::seed - Retrieving seed nodes from dns mainnet.seed.grin.prokapi.com
20190219 12:08:49.539 DEBUG grin_servers::grin::seed - Retrieving seed nodes from dns grinseed.yeastplume.org
20190219 12:08:49.747 DEBUG grin_servers::grin::seed - Retrieved seed addresses: [V4(46.4.91.48:3414), V4(95.216.163.175:3414), V4(145.239.4.27:3414), V4(157.230.48.217:3414), V4(198.245.50.26:3414), V4(5.9.152.75:3414), V4(35.247.33.125:3414), V4(45.118.135.254:3414), V4(139.162.168.18:3414), V4(173.230.154.243:3414), V4(35.226.50.239:3414), V4(37.187.124.202:3414), V4(34.207.234.131:3414), V4(35.181.9.140:3414), V4(35.197.27.243:3414), V4(195.201.38.140:3414), V4(109.74.202.16:3414)]
20190219 12:08:49.747 TRACE grin_servers::grin::seed - No preferred peers
20190219 12:08:49.747 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. connecting to 46.4.91.48:3414
20190219 12:08:49.747 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. connecting to 157.230.48.217:3414
20190219 12:08:49.747 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. connecting to 95.216.163.175:3414
20190219 12:08:49.747 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. connecting to 198.245.50.26:3414
20190219 12:08:49.747 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. connecting to 5.9.152.75:3414
20190219 12:08:49.747 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. connecting to 35.247.33.125:3414
20190219 12:08:49.747 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. connecting to 145.239.4.27:3414
20190219 12:08:49.748 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. connecting to 139.162.168.18:3414
20190219 12:08:49.748 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. connecting to 45.118.135.254:3414
20190219 12:08:49.748 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. connecting to 173.230.154.243:3414
20190219 12:08:49.748 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. connecting to 35.226.50.239:3414
20190219 12:08:49.748 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. connecting to 34.207.234.131:3414
20190219 12:08:49.748 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. connecting to 37.187.124.202:3414
20190219 12:08:49.748 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. connecting to 35.181.9.140:3414
20190219 12:08:49.748 DEBUG grin_servers::grin::seed - monitor_peers: on 0.0.0.0:3414, 0 connected (0 most_work). all 0 = 0 healthy + 0 banned + 0 defunct
20190219 12:08:49.748 DEBUG grin_servers::grin::seed - monitor_peers: no preferred peers
20190219 12:08:49.748 DEBUG grin_servers::grin::seed - monitor_peers: no dandelion relay updating
20190219 12:08:49.748 DEBUG grin_p2p::peers - Could not update dandelion relay
20190219 12:08:49.748 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. connecting to 195.201.38.140:3414
20190219 12:08:49.748 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. connecting to 109.74.202.16:3414
20190219 12:08:49.748 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. connecting to 35.197.27.243:3414
20190219 12:08:49.948 DEBUG grin_p2p::peer - connect: handshaking with Ok(V4(5.9.152.75:3414))
20190219 12:08:49.948 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. Could not connect to 95.216.163.175:3414: Os { code: 111, kind: ConnectionRefused, message: "Connection refused" }
20190219 12:08:49.948 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. Could not connect to 195.201.38.140:3414: Os { code: 111, kind: ConnectionRefused, message: "Connection refused" }
20190219 12:08:49.948 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. Could not connect to 37.187.124.202:3414: Os { code: 111, kind: ConnectionRefused, message: "Connection refused" }
20190219 12:08:49.950 DEBUG grin_p2p::peer - connect: handshaking with Ok(V4(157.230.48.217:3414))
20190219 12:08:49.951 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. Could not connect to 198.245.50.26:3414: Os { code: 111, kind: ConnectionRefused, message: "Connection refused" }
20190219 12:08:49.969 DEBUG grin_p2p::peer - connect: handshaking with Ok(V4(34.207.234.131:3414))
20190219 12:08:51.748 DEBUG grin_servers::grin::seed - monitor_peers: on 0.0.0.0:3414, 0 connected (0 most_work). all 0 = 0 healthy + 0 banned + 0 defunct
20190219 12:08:51.748 DEBUG grin_servers::grin::seed - monitor_peers: no preferred peers
20190219 12:08:51.748 DEBUG grin_servers::grin::seed - monitor_peers: no dandelion relay updating
20190219 12:08:51.748 DEBUG grin_p2p::peers - Could not update dandelion relay
20190219 12:08:55.749 DEBUG grin_servers::grin::seed - monitor_peers: on 0.0.0.0:3414, 0 connected (0 most_work). all 0 = 0 healthy + 0 banned + 0 defunct
20190219 12:08:55.749 DEBUG grin_servers::grin::seed - monitor_peers: no preferred peers
20190219 12:08:55.749 DEBUG grin_servers::grin::seed - monitor_peers: no dandelion relay updating
20190219 12:08:55.749 DEBUG grin_p2p::peers - Could not update dandelion relay
20190219 12:08:59.749 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. Could not connect to 139.162.168.18:3414: Custom { kind: TimedOut, error: StringError("connection timed out") }
20190219 12:08:59.749 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. Could not connect to 145.239.4.27:3414: Custom { kind: TimedOut, error: StringError("connection timed out") }
20190219 12:08:59.749 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. Could not connect to 46.4.91.48:3414: Custom { kind: TimedOut, error: StringError("connection timed out") }
20190219 12:08:59.749 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. Could not connect to 35.181.9.140:3414: Custom { kind: TimedOut, error: StringError("connection timed out") }
20190219 12:08:59.750 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. Could not connect to 35.226.50.239:3414: Custom { kind: TimedOut, error: StringError("connection timed out") }
20190219 12:08:59.755 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. Could not connect to 35.247.33.125:3414: Custom { kind: TimedOut, error: StringError("connection timed out") }
20190219 12:08:59.755 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. Could not connect to 45.118.135.254:3414: Custom { kind: TimedOut, error: StringError("connection timed out") }
20190219 12:08:59.755 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. Could not connect to 109.74.202.16:3414: Custom { kind: TimedOut, error: StringError("connection timed out") }
20190219 12:08:59.755 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. Could not connect to 173.230.154.243:3414: Custom { kind: TimedOut, error: StringError("connection timed out") }
20190219 12:08:59.756 TRACE grin_p2p::serv - connect_peer: on 0.0.0.0:3414. Could not connect to 35.197.27.243:3414: Custom { kind: TimedOut, error: StringError("connection timed out") }
20190219 12:09:03.750 DEBUG grin_servers::grin::seed - monitor_peers: on 0.0.0.0:3414, 0 connected (0 most_work). all 0 = 0 healthy + 0 banned + 0 defunct
20190219 12:09:03.750 DEBUG grin_servers::grin::seed - monitor_peers: no preferred peers
20190219 12:09:03.751 DEBUG grin_servers::grin::seed - monitor_peers: no dandelion relay updating
20190219 12:09:03.751 DEBUG grin_p2p::peers - Could not update dandelion relay
20190219 12:09:19.754 DEBUG grin_servers::grin::seed - monitor_peers: on 0.0.0.0:3414, 0 connected (0 most_work). all 0 = 0 healthy + 0 banned + 0 defunct
20190219 12:09:19.754 DEBUG grin_servers::grin::seed - monitor_peers: no preferred peers
20190219 12:09:19.754 DEBUG grin_servers::grin::seed - monitor_peers: no dandelion relay updating
20190219 12:09:19.754 DEBUG grin_p2p::peers - Could not update dandelion relay

How to solve it?

There was a network issue … solved

1 Like

Hello, not sure why my grin-server cannot connect to any peers. It was working fine a few days ago; now nothing. Tried updating to v1.0.1 and bminer v15 but no change. When I run the grin command, the server program loads, but does nothing. I deleted the chain_data folder because someone suggested that to restart the sync, but that didn’t work either. I’m on ubuntu server 18.04. i don’t remember having to forward any ports for the grin program like i had to for grin wallet -e listen. Should i port forward the 3414 in the server P2p configuration in grin-server.toml?

20190221 04:49:00.439 INFO grin_util::logger - log4rs is initialized, file level: Info, stdout level: Warn, min. level: Info
20190221 04:49:00.439 INFO grin - Using configuration file at /home/asus/.grin/main/grin-server.toml
20190221 04:49:00.439 INFO grin - This is Grin version 1.0.1 (git v1.0.1), built for x86_64-unknown-linux-gnu by rustc 1.32.0 (9fda7c223 2019-01-16).
20190221 04:49:00.439 WARN grin::cmd::server - Starting GRIN in UI mode...
20190221 04:49:00.439 INFO grin_servers::grin::server - Starting server, genesis block: 40adad0aec27
20190221 04:49:00.512 INFO grin_servers::grin::server - Starting rest apis at: 127.0.0.1:3413
20190221 04:49:00.513 INFO grin_api::handlers - Starting HTTP API server at 127.0.0.1:3413.
20190221 04:49:00.513 INFO grin_servers::grin::server - Starting dandelion monitor: 127.0.0.1:3413
20190221 04:49:00.513 WARN grin_servers::grin::server - Grin server started.
20190221 04:49:00.514 INFO grin_servers::mining::stratumserver - (Server ID: 0) Starting stratum server with edge_bits = 31, proof_size = 42
20190221 04:49:00.514 WARN grin_servers::mining::stratumserver - Stratum server started on 127.0.0.1:3416

41


# Generated Server Configuration File for Grin
#
# When running the grin executable without specifying any command line
# arguments, it will look for this file in two places, in the following
# order:
#
# -The working directory
# -[user home]/.grin
#

#########################################
### SERVER CONFIGURATION              ###
#########################################

#Server connection details
[server]

#the directory, relative to current, in which the grin blockchain
#is stored
db_root = "/home/asus/.grin/main/chain_data"

#path of TLS certificate file, self-signed certificates are not supported
#tls_certificate_file = ""
#private key for the TLS certificate
#tls_certificate_key = ""

#the address on which services will listen, e.g. Transaction Pool
api_http_addr = "127.0.0.1:3413"

#path of the secret token used by the API to authenticate the calls
#comment it to disable basic auth
api_secret_path = "/home/asus/.grin/main/.api_secret"

#The chain type, which defines the genesis block and the set of cuckoo
#parameters used for mining as well as wallet output coinbase maturity. Can be:
#AutomatedTesting - For CI builds and instant blockchain creation
#UserTesting - For regular user testing (cuckoo 16)
#Floonet - For the long term floonet test network
#Mainnet - For mainnet
chain_type = "Mainnet"

#the chain validation mode, defines how often (if at all) we
#want to run a full chain validation. Can be:
#"EveryBlock" - run full chain validation when processing each block (except during sync)
#"Disabled" - disable full chain validation (just run regular block validation)
chain_validation_mode = "Disabled"

#run the node in "full archive" mode (default is fast-sync, pruned node)
archive_mode = false

#skip waiting for sync on startup, (optional param, mostly for testing)
skip_sync_wait = false

#whether to run the ncurses TUI. Ncurses must be installed and this
#will also disable logging to stdout
run_tui = true

#Whether to run a test miner. This is only for developer testing (chaintype
#usertesting) at cuckoo 16, and will only mine into the default wallet port.
#real mining should use the standalone grin-miner
run_test_miner = false

#test miner wallet URL (burns if this doesn't exist)
#test_miner_wallet_url = "http://127.0.0.1:3415"

#########################################
### SERVER P2P CONFIGURATION          ###
#########################################
#The P2P server details (i.e. the server that communicates with other
[server.p2p_config]

#The interface on which to listen.
#0.0.0.0 will listen on all interfaces, allowing others to interact
#127.0.0.1 will listen on the local machine only
host = "0.0.0.0"

#The port on which to listen.
port = 3414

#how to seed this server, can be None, List or DNSSeed
seeding_type = "DNSSeed"

#If the seeding type is List, the list of peers to connect to can
#be specified as follows:
#seeds = ["192.168.0.1:3414","192.168.0.2:3414"]

#hardcoded peer lists for allow/deny
#will *only* connect to peers in allow list
#peers_allow = ["192.168.0.1:3414", "192.168.0.2:3414"]
#will *never* connect to peers in deny list
#peers_deny = ["192.168.0.3:3414", "192.168.0.4:3414"]
#a list of preferred peers to connect to
#peers_preferred = ["192.168.0.1:3414","192.168.0.2:3414"]

#how long a banned peer should stay banned
#ban_window = 10800

#maximum number of peers
#peer_max_count = 25

#preferred minimum number of peers (we'll actively keep trying to add peers
#until we get to at least this number
#peer_min_preferred_count = 8

# 15 = Bit flags for FULL_NODE
#This structure needs to be changed internally, to make it more configurable

# A preferred dandelion_peer, mainly used for testing dandelion
# dandelion_peer = "10.0.0.1:13144"

[server.p2p_config.capabilities]
bits = 15


#########################################
### MEMPOOL CONFIGURATION             ###
#########################################
[server.pool_config]

#base fee that's accepted into the pool
accept_fee_base = 1000000

#maximum number of transactions allowed in the pool
max_pool_size = 50000

#maximum number of transactions allowed in the stempool
max_stempool_size = 50000

#maximum total weight of transactions that can get selected to build a block
mineable_max_weight = 40000


#########################################
### DANDELION CONFIGURATION           ###
#########################################
[server.dandelion_config]

#dandelion relay time (choose new relay peer every n secs)
relay_secs = 600

#fluff and broadcast after embargo expires if tx not seen on network
embargo_secs = 180

#run dandelion stem/fluff processing every n secs (stem tx aggregation in this window)
patience_secs = 10

#dandelion stem probability (stem 90% of the time, fluff 10% of the time)
stem_probability = 90


################################################
### STRATUM MINING SERVER CONFIGURATION      ###
################################################
[server.stratum_mining_config]

#whether stratum server is enabled
enable_stratum_server = true

#what port and address for the stratum server to listen on
stratum_server_addr = "127.0.0.1:3416"

#the amount of time, in seconds, to attempt to mine on a particular
#header before stopping and re-collecting transactions from the pool
attempt_time_per_block = 15

#the minimum acceptable share difficulty to request from miners
minimum_share_difficulty = 1

#the wallet receiver to which coinbase rewards will be sent
wallet_listener_url = "http://127.0.0.1:3415"

#whether to ignore the reward (mostly for testing)
burn_reward = false


#########################################
### LOGGING CONFIGURATION             ###
#########################################
[logging]

#whether to log to stdout
log_to_stdout = true

#log level for stdout: Error, Warning, Info, Debug, Trace
stdout_log_level = "Warning"

#whether to log to a file
log_to_file = true

#log level for file: Error, Warning, Info, Debug, Trace
file_log_level = "Info"

#log file path
log_file_path = "/home/asus/.grin/main/grin-server.log"

#whether to append to the log file (true), or replace it on every run (false)
log_file_append = true

#maximum log file size in bytes before performing log rotation
#comment it to disable log rotation
log_max_size = 16777216

Change the log_level to “Trace” and see what more info you get.

I had to use a VPN to get grin connected to peers.

Thanks. Seems to be working now. I had to download the chain_data folder from another computer that was working and replace the chain_data folder on the computer that wasn’t working. Now it seems to be staying in sync. Maybe once a node gets too far behind it can’t catch up?

这个看不懂啊…

Unfortunally, i`m have same problem.

%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%20%D0%BE%D1%82%202019-11-20%2022-26-29

Installed using this manual

Can somebody help me fix this problem?

Server Configuration File

1 Like