maidsafe / safe_network

Autonomi combines the spare capacity of everyday devices to form a new, autonomous, data and communications layer of the Internet
http://autonomi.com
80 stars 49 forks source link

Bug: safenode-manager doesn't track nodes started in a second batch from an external usb #2227

Open raulillo82 opened 3 weeks ago

raulillo82 commented 3 weeks ago

My nodes look like this:

sudo safenode-manager status
╔═══════════════════════╗
║   Safenode Services   ║
╚═══════════════════════╝
Refreshing the node registry...
Service Name       Peer ID                                              Status  Connected Peers
safenode1          12D3KooWA87LdBGDmDx8csNfv4zth8a5tbFw4og3M3p9xVKCRCA6 RUNNING             728
safenode2          12D3KooWQGayyKnwvisBdx26YDR36AzBFU4YCJiSSkKTLxQn8pf6 RUNNING             281
safenode3          12D3KooWKsEP4iAQB77zUgfkNGQnwA4WDTwNr113Ai9iHy59JBK3 RUNNING             696
safenode4          12D3KooWCsGrEJvwYTAgsyk71nDXKq4Z3Sw1A6Pnr16oYfWLHAS3 RUNNING             238
safenode5          12D3KooWEuoNUu5niB6vt3KnW3sppwy51JPw7PmfmQJkc64m6WgN RUNNING             414
safenode6          12D3KooWBdBDkStyqZ5b5mhhPy9oCko6Ypha6qyYrvGpJ9cseLro RUNNING             298
safenode7          12D3KooWJyY8NEowaB6yF6LTqP2DVjDdg5QNBi4LqN1Spf6h37LU RUNNING             171
safenode8          12D3KooWPBTpHimC8owJG3AvqEwWeXxJws52wacikCqyTa6HhfKr RUNNING             292
safenode9          12D3KooWJgEpEuYhUHnctreXVKXJ6rZMaTQZCQQHXcMnf2RwBA3n RUNNING             204
safenode10         12D3KooWP3MQgtAUhuZLgW3Gsy4vRkvS6dJtKqJ1pBpa7BQCk4qp RUNNING             182
safenode11         12D3KooWGw1HgFnyNm4SYnCsAz4SgTRaQ6oNS9h5e8FbfY4H86ft RUNNING             201
safenode12         12D3KooWA7jw8PqQ7HoFgSSHYYbWS1je5VspQs7gX5G3Gc2sWEwZ RUNNING             457
safenode13         12D3KooWQVmDRKkaeqiQuXRHcvsGW28L8M54DxgWz1CfjK4f8eom RUNNING             244
safenode14         12D3KooWMyJ7gPxCob2C8MWWHwKgxXrNoXZ7TUFAb96VrHc6GJyq RUNNING             408
safenode15         12D3KooWDuswHVPSbPdJEv54T9Jg2aP2DNTHtEvKCdCGJXYe9hBN RUNNING             279
safenode16         12D3KooWHesGQb967vkrUxFHehRKexbkPXEqNwkebMcvpjrn3PQw RUNNING             269
safenode17         12D3KooWKsLELwEXjChEGPhpa5NB29BWqvbakNzUyFYKZ4TNWPCQ RUNNING             209
safenode18         12D3KooWEmJmsGKqaAmhwRzNoa4wq9Qp6r2NTH2eWyoLxiDoXsDR RUNNING             244
safenode19         12D3KooWSxki34XnmQoAE7HxzLvsWcrBmVwCLf6XGKHk8mnc2feE RUNNING             174
safenode20         12D3KooWRzPB2otP1hxAeF16pfdgFjDba4oDkZsEaVFb1iiyxGd9 RUNNING             152
safenode21         -                                                    ADDED               -
safenode22         -                                                    ADDED               -
safenode23         -                                                    ADDED               -
safenode24         -                                                    ADDED               -
safenode25         -                                                    ADDED               -
safenode26         -                                                    ADDED               -
safenode27         -                                                    ADDED               -
safenode28         -                                                    ADDED               -
safenode29         -                                                    ADDED               -
safenode30         -                                                    ADDED               -

I added the first 20 nodes in one of the internal disks (not the main disk, but the secondary), and then another 10 later on from an external usb disk. I'm attaching the details for nodes with id's 1 and 21:

╔═════════════════════════╗
║   safenode1 - RUNNING   ║
╚═════════════════════════╝
Version: 0.111.4
Peer ID: 12D3KooWA87LdBGDmDx8csNfv4zth8a5tbFw4og3M3p9xVKCRCA6
RPC Socket: 127.0.0.1:37771
Listen Addresses: Some([/ip4/127.0.0.1/udp/20001/quic-v1/p2p/12D3KooWA87LdBGDmDx8csNfv4zth8a5tbFw4og3M3p9xVKCRCA6, /ip4/192.168.1.130/udp/20001/quic-v1/p2p/12D3KooWA87LdBGDmDx8csNfv4zth8a5tbFw4og3M3p9xVKCRCA6, /ip4/192.168.2.132/udp/20001/quic-v1/p2p/12D3KooWA87LdBGDmDx8csNfv4zth8a5tbFw4og3M3p9xVKCRCA6, /ip4/172.17.0.1/udp/20001/quic-v1/p2p/12D3KooWA87LdBGDmDx8csNfv4zth8a5tbFw4og3M3p9xVKCRCA6])
PID: 2830
Data path: /media/safe/safe/data/safenode1
Log path: /media/safe/safe/logs/safenode1
Bin path: /media/safe/safe/data/safenode1/safenode
Connected peers: 322
Reward balance: 0.000000000
Owner: raulillo82
╔════════════════════════╗
║   safenode21 - ADDED   ║
╚════════════════════════╝
Version: 0.111.4
Peer ID: -
RPC Socket: 127.0.0.1:46385
Listen Addresses: None
PID: -
Data path: /media/safe/usb/safe/data/safenode21
Log path: /media/safe/usb/safe/logs/safenode21
Bin path: /media/safe/usb/safe/data/safenode21/safenode
Connected peers: -
Reward balance: 0.000000000
Owner: raulillo82

Info about the mount points:

safe@gasteiz:~> df -h /media/safe /media/safe/usb
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdb1       917G  222G  695G  25% /media
/dev/sdc1       458G  6.3G  428G   2% /usb
safe@gasteiz:~> lsblk -l
NAME MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda    8:0    0 238.5G  0 disk 
sda1   8:1    0     2G  0 part [SWAP]
sda2   8:2    0 236.5G  0 part /var/lib/docker/btrfs
                               /var
                               /usr/local
                               /root
                               /srv
                               /opt
                               /home
                               /boot/grub2/x86_64-efi
                               /boot/grub2/i386-pc
                               /.snapshots
                               /
sdb    8:16   0 931.5G  0 disk 
sdb1   8:17   0 931.5G  0 part /media
sdc    8:32   0 465.8G  0 disk 
sdc1   8:33   0 465.8G  0 part /usb
sr0   11:0    1  1024M  0 rom  

sda is the disk for the OS, a ssd. sdb is a regular (internal) HD. sdc is an external usb disk (it does have a power adapter, not a cheap pendrive).

Node 21 is running:

safe@gasteiz:~> ps -ef|grep node21
safe      3479     1  4 Oct10 ?        00:52:19 /media/safe/usb/safe/data/safenode21/safenode --rpc 127.0.0.1:46385 --root-dir /media/safe/usb/safe/data/safenode21 --log-output-dest /media/safe/usb/safe/logs/safenode21 --port 20021 --metrics-server-port 12021 --owner raulillo82

You can even query its metrics:

safe@gasteiz:~> curl -s http://127.0.0.1:12021/metrics|egrep ^sn
sn_node_put_record_ok_total{record_type="Spend"} 188
sn_node_put_record_ok_total{record_type="Chunk"} 1118
sn_node_put_record_err_total 0
sn_node_replication_triggered_total 2710
sn_node_replication_keys_to_fetch_sum 1564.0
sn_node_replication_keys_to_fetch_count 1260
sn_node_replication_keys_to_fetch_bucket{le="1.0"} 1171
sn_node_replication_keys_to_fetch_bucket{le="2.0"} 1217
sn_node_replication_keys_to_fetch_bucket{le="4.0"} 1241
sn_node_replication_keys_to_fetch_bucket{le="8.0"} 1250
sn_node_replication_keys_to_fetch_bucket{le="+Inf"} 1260
sn_node_peer_added_to_routing_table_total 632
sn_node_peer_removed_from_routing_table_total 379
sn_node_current_reward_wallet_balance 0
sn_node_total_forwarded_rewards 0
sn_node_uptime 69670
sn_networking_records_stored 1293
sn_networking_connected_peers 255
sn_networking_estimated_network_size 57344
sn_networking_open_connections 262
sn_networking_peers_in_routing_table 253
sn_networking_shunned_count_total 3
sn_networking_bad_peers_count_total 33
sn_networking_process_memory_used_mb 163
sn_networking_process_cpu_usage_percentage 1
sn_networking_store_cost 0
sn_networking_relevant_records 0
sn_networking_max_records 0
sn_networking_received_payment_count 0
sn_networking_live_time 0
raulillo82 commented 1 week ago

Same issue with the latest versions for the evm beta test.

raulillo82 commented 1 week ago

Still same issue with the version of the (soft) launch.