Waziup / WaziGate

Waziup LoRa Edge gateway
21 stars 20 forks source link

get_waziup_test.sh Error #139

Closed j-forster closed 2 years ago

j-forster commented 3 years ago

When creating a Wazigate ISO from a fresh RPiOS image, I follow this tutorial: https://github.com/Waziup/WaziGate/tree/master/setup

After some time, it fails trying to pull the images from docker hub.

The Pi was connected to the internet via cable all the time.

Downloading the docker images...
Pulling wazigate-mongo ... error
Pulling wazigate-edge  ... error

ERROR: for wazigate-mongo  Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 127.0.0.1:53: read udp 127.0.0.1:45449->127.0.0.1:53: read: connection refused                                                                                                                                                             p registry-1.docker.io on 127.0.0.1:53: read udp 127.0.0.1:45449->127.0.0.1:53:                                                                                                                                                              read: connection refused

ERROR: for wazigate-edge  Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 127.0.0.1:53: read udp 127.0.0.1:45449->127.0.0.1:53: read: connection refused                                                                                                                                                             registry-1.docker.io on 127.0.0.1:53: read udp 127.0.0.1:45449->127.0.0.1:53: r                                                                                                                                                             ead: connection refused
ERROR: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 127.0.0.1:53: read udp 127.0.0.1:45449->127.0.0.1:53: read: connection ref used                                                                                                                                                             io on 127.0.0.1:53: read udp 127.0.0.1:45449->127.0.0.1:53: read: connection ref                                                                                                                                                             used
Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 127.0.0.1:53: read udp 127.0.0.1:45449->127.0.0.1:53: read: connection refused                                                                                                                                                             27.0.0.1:53: read udp 127.0.0.1:45449->127.0.0.1:53: read: connection refused

Done

Any idea why it's using '127.0.0.1:53' as DNS server?

mojtaba-esk commented 3 years ago

This happens because we change the host name before pulling the images so it cannot resolve network requests. If you reboot it, it will be resolved. the start script itself pulls the images for the main containers (edge, mongo, and system)

On Mon, Jan 18, 2021 at 1:04 PM Johann Forster notifications@github.com wrote:

Assigned #139 https://github.com/Waziup/WaziGate/issues/139 to @mojtaba-esk https://github.com/mojtaba-esk.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/Waziup/WaziGate/issues/139#event-4217829441, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADJAXHGT4VWZ2LUR7YKTHXLS2QPVDANCNFSM4WHGOANQ .

-- Mojtaba Eskandari

j-forster commented 3 years ago

Maybe we can change the script to change the hostname after everything else is done?

mojtaba-esk commented 3 years ago

yes can be done, it is done before because it is in the install.sh file and pulling docker images is almost the final step and is done in a separate file. doing that we might need a post-install script or copy this code in all other files after docker stuff.

On Mon, Jan 18, 2021 at 1:09 PM Johann Forster notifications@github.com wrote:

Maybe we can change the script to change the hostname after everything else is done?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Waziup/WaziGate/issues/139#issuecomment-762209917, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADJAXHDO32UJBTKSFLMXU2DS2QQJFANCNFSM4WHGOANQ .

-- Mojtaba Eskandari

cdupont commented 2 years ago

closing as obsolete (ISO building will change)