chia-miner icon indicating copy to clipboard operation
chia-miner copied to clipboard

Dial tcp: lookup device or resource busy

Open lucianenache opened this issue 3 years ago • 5 comments

I have tried #535 without any luck,

root@m1:~/hpool/linux-arm$ uname -a
Linux m1 5.11.0-1007-raspi #7-Ubuntu SMP PREEMPT Wed Apr 14 22:08:05 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux

root@m1:~/hpool/linux-arm$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 21.04
Release:        21.04
Codename:       hirsute
root@m1:~/hpool/linux-arm$ ./hpool-chia-miner-linux-arm
{1024 1048576}
Rlimit Final {999999 999999}
***************************************************
**** Miner:HPool-Miner-Chia-og
**** Version:v1.5.2 2
**** BuildTime:2021-09-09-15:07:56 GMT
**** MinerName:[hidden]
**** ApiKey:[hidden]
**** Path count:75
***************************************************
WARN[2021-09-30T10:21:21Z] update line fail, try the next one            error="Post \"http://chia-5cfe939d68.hpool.cn/proxy/wslines/chiaog\": dial tcp: lookup chia-5cfe939d68.hpool.cn: device or resource busy" file=loggers.go func=logging.CPrint line=162 tid=1
WARN[2021-09-30T10:21:22Z] update line fail, try the next one            error="Post \"http://chia-14413fb6c2.hpool.xin/proxy/wslines/chiaog\": dial tcp: lookup chia-14413fb6c2.hpool.xin: device or resource busy" file=loggers.go func=logging.CPrint line=162 tid=28
WARN[2021-09-30T10:21:23Z] update line fail, try the next one            error="Post \"https://chia-1bca46b45f.hpool.com/proxy/wslines/chiaog\": dial tcp: lookup chia-1bca46b45f.hpool.com: device or resource busy" file=loggers.go func=logging.CPrint line=162 tid=28
WARN[2021-09-30T10:21:24Z] update line fail, try the next one            error="Post \"http://chia-0df3c2fd4e.hpool.xin/proxy/wslines/chiaog\": dial tcp: lookup chia-0df3c2fd4e.hpool.xin: device or resource busy" file=loggers.go func=logging.CPrint line=162 tid=28
WARN[2021-09-30T10:21:25Z] update line fail, try the next one            error="Post \"http://chia-4ad7d826df.hpool.cn/proxy/wslines/chiaog\": dial tcp: lookup chia-4ad7d826df.hpool.cn: device or resource busy" file=loggers.go func=logging.CPrint line=162 tid=28
WARN[2021-09-30T10:21:26Z] update line fail, try the next one            error="Post \"https://chia-2b9c5cc653.hpool.com/proxy/wslines/chiaog\": dial tcp: lookup chia-2b9c5cc653.hpool.com: device or resource busy" file=loggers.go func=logging.CPrint line=162 tid=28
WARN[2021-09-30T10:21:27Z] update line fail, try the next one            error="Post \"http://chia-15116df3dd.hpool.cn/proxy/wslines/chiaog\": dial tcp: lookup chia-15116df3dd.hpool.cn: device or resource busy" file=loggers.go func=logging.CPrint line=162 tid=28
WARN[2021-09-30T10:21:28Z] update line fail, try the next one            error="Post \"https://chia-e365767716.hpool.com/proxy/wslines/chiaog\": dial tcp: lookup chia-e365767716.hpool.com: device or resource busy" file=loggers.go func=logging.CPrint line=162 tid=28

lucianenache avatar Sep 30 '21 10:09 lucianenache

Also struggling with this on my Raspberry Pi 4 running Raspbian. Also tried https://github.com/hpool-dev/chia-miner/issues/535.

jerbzz avatar Oct 27 '21 14:10 jerbzz

@jerbzz @lucianenache

modify your /etc/nsswitch.conf hosts: parameter Change hosts: files mymachines dns myhostname to just hosts: files dns

That should fix it, at least that fixed it for me when I ran into the issue again standing up some new arm hosts and disabling systemd resolve wasn't helping.

example my full hosts nsswitch.conf file looks like this:

# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         files
group:          files
shadow:         files
gshadow:        files

#hosts:          files mymachines dns myhostname
hosts:          files  dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis```

spencecopper avatar Oct 29 '21 04:10 spencecopper

Hmm, thanks for the tip @spencecopper. That's not quite what I had in nsswitch.conf. My hosts line was

hosts: files mdns4_minimal [NOTFOUND=return] dns

I made the suggested change, rebooted, and I'm still getting this (or similar) over and over about once a second:

time="2021-10-29T20:08:25+01:00" level=warning msg="update line fail, try the next one" error="Post \"http://chia-0df3c2fd4e.hpool.xin/proxy/wslines/chiaog\": dial tcp: lookup chia-0df3c2fd4e.hpool.xin: device or resource busy" file=loggers.go func=logging.CPrint line=162 tid=1

jerbzz avatar Oct 29 '21 19:10 jerbzz

for my situation, I'm using a 64bit system, using hpool-chia-miner-linux-arm will have this issue. hpool-miner-chia-linux-aarch64 works just fine

amorlzu avatar Jan 06 '22 08:01 amorlzu

hpool-miner-chia-pp log (x-proxy-pp-linux 0 client connections)

jun 16 02:06:55 user bash[8872]: time="2023-06-16 02:06 55" level=warning msg="update line fail, try the next one" error="Post "http://192.168.0.1:9190/wslines": dial tcp 192.168.0.1:9190: connect: connection refused"

How to fix it?

true31337 avatar Jun 15 '23 18:06 true31337