golemfactory / clay

Golem is creating a global market for computing power.
https://golem.network
GNU General Public License v3.0
2.91k stars 284 forks source link

Golemapp failing to recognize IPv6 adresses #5196

Open netforce opened 4 years ago

netforce commented 4 years ago

Golemapp failing to recognize IPv6 adresses

Golem Version: 0.32.1 (Fresh docker install with latest install script.

Golem-Messages version (leave empty if unsure): 3.15.0

Electron version (if used):

OS [e.g. Windows 10 Pro]: Ubuntu 18.04

Branch (if launched from source):

Mainnet/Testnet: Mainnet

Priority label is set to the lowest by default. To setup higher priority please change the label _P0 label is set for Severity-Critical/Effort-easy

Description of the issue: Goleamapp not parsing ipv6 adress correct, result: not running on IPv6

Actual result:

Logs and any additional context

INFO [golemapp ] GOLEM Version: 0.23.1 INFO [golemapp ] Protocol Version: 32 INFO [golemapp ] golem_messages Version: 3.15.0 INFO [golemapp ] system: Linux, release: 4.15.0-50-generic, version: #54-Ubuntu SMP Mon May 6 18:46:08 UTC 2019, machine: x86_64 INFO [golemapp ] cpu: AuthenticAMD Six-Core AMD Opteron(tm) Processor 2435, 12 cores INFO [golemapp ] memory: 31.4 GiB, swap: 7.9 GiB INFO [golemapp ] Ethereum chain: mainnet INFO [golemapp ] Concent url: https://main.concent.golem.network INFO [golemapp ] Concent public key: 465b03a8ab5b98d4d424f8e10f4792a1b2ef2ac5607db532aa551fd48b09b53d725c8c0741608c1a83013e409b87178d2ffc0ba5e1802e9d6dbc519368521f36 INFO [golem.ethereum.web3.providers ] GETH: connecting to remote RPC interface at https://1.geth.golem.network:55555 INFO [golem.hardware.presets ] updating config: name: custom, num_cores: 9, max_memory_size: 23.5 GiB, max_resource_size: 24.0 GiB INFO [golem.rpc.session ] Client connected, starting WAMP-Ticket challenge. INFO [golem.rpc.session ] WAMP-Ticket challenge received. WARNING [apps.core.nvgpu ] NVGPU Docker environment is not supported: RuntimeError('nvidia kernel module not loaded',) WARNING [golem.docker.manager ] Image golemfactory/nvgpu:1.7 is not supported WARNING [apps.core.nvgpu ] NVGPU Docker environment is not supported: RuntimeError('nvidia kernel module not loaded',) WARNING [golem.docker.manager ] Image golemfactory/blender_nvgpu:1.7 is not supported INFO [golem.node ] Waiting for password to unlock the account. Run golemcli account unlock and enter your password. INFO [golem.node ] Got password INFO [golem.client ] Client 'Taurus01'(41f03bc4..0a8a80bf), datadir: /mnt/data1/golemdata/mainnet INFO [golem.ethereum.transactionsystem ] Node Ethereum address: INFO [golem.ethereum.node ] Connected to node in 0.12298393249511719s INFO [golem_sci.factory ] Geth version: 1.9.9 INFO [golem_sci.implementation ] Address not provided for Contract.Faucet, won't be able to use it INFO [golem.ethereum.transactionsystem ] Initial balances: INFO [golem.environments.environmentsmanager] Adding environment BLENDER supported=<SupportStatus ok ({})> WARNING [apps.core.nvgpu ] NVGPU Docker environment is not supported: RuntimeError('nvidia kernel module not loaded',) INFO [golem.environments.environmentsmanager] Adding environment BLENDER_NVGPU supported=<SupportStatus err ({<UnsupportReason.ENVIRONMENT_UNSUPPORTED: 'environment_unsupported'>: 'BLENDER_NVGPU'})> INFO [golem.environments.environmentsmanager] Adding environment WASM supported=<SupportStatus ok ({})> INFO [golem.core.simpleconfig ] Reading config from file /mnt/data1/golemdata/mainnet/environments.ini ... successfully INFO [golem.core.simpleconfig ] Writing 'Node''s configuration to '/mnt/data1/golemdata/mainnet/environments.ini' INFO [golem.core.simpleconfig ] Creating backup configuration file '/mnt/data1/golemdata/mainnet/environments.ini.bak' INFO [golem.client ] Starting network ... ERROR [golem.core.hostaddress ] Error parsing ip address 'fe80::230:48ff:fece:cd73%eth5': ValueError("'fe80::230:48ff:fece:cd73%eth5' does not appear to be an IPv4 or IPv6 address",) ERROR [golem.core.hostaddress ] Error parsing ip address 'fe80::42:14ff:fe9f:5584%docker0': ValueError("'fe80::42:14ff:fe9f:5584%docker0' does not appear to be an IPv4 or IPv6 address",) ERROR [golem.core.hostaddress ] Error parsing ip address 'fe80::200:5efe:d59a:e51b%taurus-vdw': ValueError("'fe80::200:5efe:d59a:e51b%taurus-vdw' does not appear to be an IPv4 or IPv6 address",) ERROR [golem.core.hostaddress ] Error parsing ip address 'fe80::9809:cb06:e2ef:bf69%tun0': ValueError("'fe80::9809:cb06:e2ef:bf69%tun0' does not appear to be an IPv4 or IPv6 address",) ERROR [golem.core.hostaddress ] Error parsing ip address 'fe80::f462:beff:febd:e64%dhcppxe': ValueError("'fe80::f462:beff:febd:e64%dhcppxe' does not appear to be an IPv4 or IPv6 address",) ERROR [golem.core.hostaddress ] Error parsing ip address 'fe80::fc54:ff:fe5e:7ce6%vnet2': ValueError("'fe80::fc54:ff:fe5e:7ce6%vnet2' does not appear to be an IPv4 or IPv6 address",) ERROR [golem.core.hostaddress ] Error parsing ip address 'fe80::c097:f6ff:fe02:856%virbr0': ValueError("'fe80::c097:f6ff:fe02:856%virbr0' does not appear to be an IPv4 or IPv6 address",) ERROR [golem.core.hostaddress ] Error parsing ip address 'fe80::fc54:ff:feb6:4b47%vnet4': ValueError("'fe80::fc54:ff:feb6:4b47%vnet4' does not appear to be an IPv4 or IPv6 address",) ERROR [golem.core.hostaddress ] Error parsing ip address 'fe80::fc54:ff:fe4d:c570%vnet5': ValueError("'fe80::fc54:ff:fe4d:c570%vnet5' does not appear to be an IPv4 or IPv6 address",) ERROR [golem.core.hostaddress ] Error parsing ip address 'fe80::fc54:ff:fed4:5a96%vnet6': ValueError("'fe80::fc54:ff:fed4:5a96%vnet6' does not appear to be an IPv4 or IPv6 address",) ERROR [golem.core.hostaddress ] Error parsing ip address 'fe80::fc54:ff:fe1a:3b70%vnet1': ValueError("'fe80::fc54:ff:fe1a:3b70%vnet1' does not appear to be an IPv4 or IPv6 address",) WARNING [golem.network.p2p.local_node ] Specified node address 0.0.0.0 is not among detected network addresses: ['2001:7b8:3:47:213:154:229:27', '2001:7b8:60e:2:213:154:229:27'] INFO [golem.envs.default ] Registering environment. env_id='docker_cpu' INFO [golem.envs.docker.cpu ] Updating hypervisor's working directory... INFO [golem.envs.docker.cpu ] Working directory successfully updated. INFO [golem.envs.docker.cpu ] Hypervisor configuration differs. Reconfiguring hypervisor... INFO [golem.envs.docker.cpu ] Hypervisor successfully reconfigured. INFO [golem.envs.default ] Environment not supported. env_id='docker_gpu' INFO [golem.apps.manager ] Application registered. app_name='golemfactoryapps/blenderapp':'0.8.0', state=False, app_id='d31614541096ad3bd2b500aed90490a5' INFO [golem.apps.manager ] Application registered. app_name='golemfactoryapps/suzuki':'1.0.0', state=False, app_id='f1056c339b5caf903855023557d1d1a2' INFO [golem.apps.manager ] Application registered. app_name='golemfactoryapps/blenderapp':'0.7.3', state=False, app_id='6b39331ac73484ff596447cefdfba9e5' INFO [golem.apps.manager ] Application registered. app_name='golemfactory/blenderapp':'0.7.2', state=True, app_id='daec55c08c9de7b71bf4ec3eb759c83b' INFO [golem.resource.hyperdrive.resourcesmanager] Initializing HyperdriveResourceManager, using <HyperdriveAsyncClient hyperg at http://localhost:3292> INFO [golem.envs.docker.cpu ] Updating environment configuration... INFO [golem.envs.docker.cpu ] Validating configuration... INFO [golem.envs.docker.cpu ] Configuration positively validated. INFO [golem.envs.docker.cpu ] Hypervisor configuration differs. Reconfiguring hypervisor... INFO [golem.envs.docker.cpu ] Hypervisor successfully reconfigured. WARNING [golem.decorators ] Invocation surge detected. func=golem.rpc.session.Publisher.publish, hottest_args=("(<golem.rpc.session.Publisher object at 0x7f0294a89470>, 'evt.golem.status', {'client': ('start', 'pre', None), 'docker': ('instance.check', 'post', None), 'ethereum': ('node.start', 'post', None), 'hypervisor': ('vm.restart', 'post', None)}){}", 8) INFO [golem.envs.docker.cpu ] Configuration updated. INFO [golem.client ] Starting resource server ... INFO [hyperg::version] [STARTED] simple transfer VERSION=0.3.6 INFO [hyperg::version] BUILD_NO=74, COMMIT=e243b9db8e51b0508d51784e5268d67608ec672a, TAG=0.3.6, OS=linux INFO [actix_server::builder] Starting 12 workers INFO [hyperg::database] db started id=0xb8df7c0b03ef75c81e2296e3a7a62b14 INFO [actix_server::builder] Starting server on 0.0.0.0:3282 INFO [actix_server::builder] Starting 12 workers INFO [actix_server::builder] Starting server on 127.0.0.1:3292 INFO [hyperg::command] command st ADDRESSES INFO [actix_web::middleware::logger] 127.0.0.1:33646 "POST /api HTTP/1.1" 200 55 "-" "python-requests/2.21.0" 0.000435 INFO [golem.resources ] hyperg 0.3.6 started. Listening on {'TCP': ('0.0.0.0', 3282)}. INFO [golem.resource.hyperdrive.resourcesmanager] Initializing HyperdriveResourceManager, using <HyperdriveAsyncClient hyperg at http://localhost:3292> INFO [golem.client ] Restoring resources ... INFO [golem.client ] Starting p2p server ... INFO [golem.client ] Starting task server ... INFO [golem.task.taskserver ] Port 40103 opened - listening INFO [golem.client ] Golem is listening on addr: 0.0.0.0, ports: P2P=40102, Task=40103, Hyperdrive=3282 INFO [golem.client ] Resuming ... INFO [golem.network.history ] Sweeping messages INFO [golem.client ] Running daily jobs WARNING [golem.decorators ] Invocation surge detected. func=golem.rpc.session.Publisher.publish, hottest_args=("(<golem.rpc.session.Publisher object at 0x7f0294a89470>, 'evt.golem.status', {'client': ('start', 'pre', None), 'docker': ('instance.check', 'post', None), 'ethereum': ('node.start', 'post', None), 'hypervisor': ('vm.restart', 'post', None)}){}", 4) INFO [hyperg::server] Connection from: 35.158.102.122:52946 INFO [hyperg::connection] opened connection [0] [35.158.102.122:52946] INFO [hyperg::connection] closed connection [0] [35.158.102.122:52946] INFO [golem.client ] Time marker. time(): 1602490791.9456096 now(): 2020-10-12 10:19:51.945611, utcnow(): 2020-10-12 08:19:51.945615, delta: 1:59:59.999998 INFO [golem.client ] Finished daily jobs INFO [golem.client ] Resumed INFO [golem.network.p2p.peersession ] Starting peer session. address=35.158.160.231:40102 INFO [golem.network.p2p.peersession ] Starting peer session. address=35.158.208.82:40102 INFO [golem.network.p2p.peersession ] Starting peer session. address=::ffff:35.158.208.82:40102 INFO [golem.network.p2p.peersession ] Starting peer session. address=::ffff:35.158.160.231:40102 INFO [golem.node ] All procedures registered in WAMP router INFO [golem.network.p2p.peersession ] Starting peer session. address=::ffff:18.196.204.0:40102 INFO [golem.network.p2p.peersession ] Starting peer session. address=18.196.204.0:40102 INFO [golem.network.p2p.p2pservice ] Adding peer. node='TastyDoe'(1f8e0cdf..cf6c3ba6), address=18.196.204.0:40102 INFO [golem.network.p2p.p2pservice ] Adding peer to incoming. node=''(1f9e7b4b..5a4a159a), address=176.9.4.134:40103 INFO [golem.network.p2p.p2pservice ] Adding peer. node='TastyDoe'(1f8e0cdf..cf6c3ba6), address=::ffff:18.196.204.0:40102 ERROR [sentry.errors ] Sentry responded with an error: (url: https://talkback.golem.network/api/2/store/) Traceback (most recent call last): File "/usr/lib/python3.6/urllib/request.py", line 1318, in do_open

server.

File "/usr/lib/python3.6/http/client.py", line 1239, in request values[i] = str(one_value).encode('ascii') File "/usr/lib/python3.6/http/client.py", line 1285, in _send_request

only chunk body if not explicitly set for backwards

File "/usr/lib/python3.6/http/client.py", line 1234, in endheaders values = list(values) File "/usr/lib/python3.6/http/client.py", line 1026, in _send_output datablock = datablock.encode("iso-8859-1") File "/usr/lib/python3.6/http/client.py", line 964, in send if response: File "/home/buildbot-worker/worker/buildpackage_linux/build/.venv/lib/python3.6/site-packages/raven/utils/http.py", line 31, in connect File "/usr/lib/python3.6/socket.py", line 724, in create_connection raise err File "/usr/lib/python3.6/socket.py", line 713, in create_connection sock.connect(sa) socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/buildbot-worker/worker/buildpackage_linux/build/.venv/lib/python3.6/site-packages/raven/transport/threaded.py", line 165, in send_sync File "/home/buildbot-worker/worker/buildpackage_linux/build/.venv/lib/python3.6/site-packages/raven/transport/http.py", line 43, in send File "/home/buildbot-worker/worker/buildpackage_linux/build/.venv/lib/python3.6/site-packages/raven/utils/http.py", line 66, in urlopen File "/usr/lib/python3.6/urllib/request.py", line 526, in open response = self._open(req, data) File "/usr/lib/python3.6/urllib/request.py", line 544, in _open '_open', req) File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain result = func(*args) File "/home/buildbot-worker/worker/buildpackage_linux/build/.venv/lib/python3.6/site-packages/raven/utils/http.py", line 46, in https_open File "/usr/lib/python3.6/urllib/request.py", line 1320, in do_open h.set_tunnel(req._tunnel_host, headers=tunnel_headers) urllib.error.URLError: b'Sentry responded with an error: (url: https://talkback.golem.network/api/2/store/)' ERROR [sentry.errors.uncaught ] ['Error parsing ip address \'fe80::230:48ff:fece:cd73%eth5\': ValueError("\'fe80::230:48ff:fece:cd73%eth5\' does not appear to be an IPv4 or IPv6 address",)'] b'[\'Error parsing ip address \\'fe80::230:48ff:fece:cd73%eth5\\': ValueError("\\'fe80::230:48ff:fece:cd73%eth5\\' does not appear to be an IPv4 or IPv6 address",)\']' ERROR [sentry.errors ] Sentry responded with an error: (url: https://talkback.golem.network/api/2/store/) Traceback (most recent call last): File "/usr/lib/python3.6/urllib/request.py", line 1318, in do_open

server.

File "/usr/lib/python3.6/http/client.py", line 1239, in request values[i] = str(one_value).encode('ascii') File "/usr/lib/python3.6/http/client.py", line 1285, in _send_request

only chunk body if not explicitly set for backwards

File "/usr/lib/python3.6/http/client.py", line 1234, in endheaders values = list(values) File "/usr/lib/python3.6/http/client.py", line 1026, in _send_output datablock = datablock.encode("iso-8859-1") File "/usr/lib/python3.6/http/client.py", line 964, in send if response: File "/home/buildbot-worker/worker/buildpackage_linux/build/.venv/lib/python3.6/site-packages/raven/utils/http.py", line 31, in connect File "/usr/lib/python3.6/socket.py", line 724, in create_connection raise err File "/usr/lib/python3.6/socket.py", line 713, in create_connection sock.connect(sa) socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/buildbot-worker/worker/buildpackage_linux/build/.venv/lib/python3.6/site-packages/raven/transport/threaded.py", line 165, in send_sync File "/home/buildbot-worker/worker/buildpackage_linux/build/.venv/lib/python3.6/site-packages/raven/transport/http.py", line 43, in send File "/home/buildbot-worker/worker/buildpackage_linux/build/.venv/lib/python3.6/site-packages/raven/utils/http.py", line 66, in urlopen File "/usr/lib/python3.6/urllib/request.py", line 526, in open response = self._open(req, data) File "/usr/lib/python3.6/urllib/request.py", line 544, in _open '_open', req) File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain result = func(*args) File "/home/buildbot-worker/worker/buildpackage_linux/build/.venv/lib/python3.6/site-packages/raven/utils/http.py", line 46, in https_open File "/usr/lib/python3.6/urllib/request.py", line 1320, in do_open h.set_tunnel(req._tunnel_host, headers=tunnel_headers) urllib.error.URLError: b'Sentry responded with an error: (url: https://talkback.golem.network/api/2/store/)' ERROR [sentry.errors.uncaught ] ['Error parsing ip address \'fe80::42:14ff:fe9f:5584%docker0\': ValueError("\'fe80::42:14ff:fe9f:5584%docker0\' does not appear to be an IPv4 or IPv6 address",)']

Proposed Solution?

improve address parsing on multiple interfaces