-
Notifications
You must be signed in to change notification settings - Fork 18.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hypriot/docker network stability issues. #19532
Comments
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead. If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information. For more information about reporting issues, see CONTRIBUTING.md. You don't have to include this information if this is a feature request (This is an automated, informational response) BUG REPORT INFORMATIONUse the commands below to provide key information from your environment:
Provide additional environment details (AWS, VirtualBox, physical, etc.): List the steps to reproduce the issue: Describe the results you received: Describe the results you expected: Provide additional info you think is important: ----------END REPORT --------- #ENEEDMOREINFO |
It seems not docker issue, you just run git clone command, it failed, Perhaps your firewall issue or proxy issue ? |
Well, you'd think so, but the same command works fine on the Hypriot host. Also, docker containers on my laptop run git clones fine without Currently, I am going to try downgrading to 1.8.3 to see what happens. |
@mevatron so you failed with docker container running that git command, right ? If that case, could the container access internet ? |
Use curl to check, and tcpdump may help why that container failed to git clone |
The container can definitely access the internet. Dockerfile
Also, since you mentioned the firewall settings here are what I assume are the Hypriot defaults (as I haven't modified them since flashing the SD card):
Also, the 1.8.3 downgrade didn't help so doesn't seem to be a regression anyway. |
I am seeing some odd network issues also, most NPM installs fail during a docker build, usually with a JSON read error, or a checksum failure. Did you ever get to the bottom of this? I have tried this on two separate Pi2 and one Pi1, the same NPM install command run on my OSX and Ubuntu machines work fine on the same network so it doesn't seem to be a network issue, or at least it's not effecting the whole network. |
@gazzer82 Sorry to hear you are running into the same thing. I haven't been able to narrow down what's happening yet. I need to do some Wireshark captures and try to attack it from there. Have you tried running your build commands with Since the commands work fine by using |
We got a similar issue on Scaleway. Perhaps this is related, see #18176 (comment) |
Hmm, completely replaced my router, as i had been wanting to replace it, so it's now just the Pi hard wired to my Router (Asus RT-AC68P), which is then connected to an SMC D3CM1604 DOCSIS 3 cable modem on TWC. Still failing to build, it did manage to get a little further and install Babel, but it is now failing later one. I am so stumped by this one. MTU and everything is 1500, apart from the TWC interface which is something odd used by them. Maybe that's where the issue is coming from . .
|
@StefanScherer Thanks for the tip! Is the #18176 fix included in the latest |
@mevatron Do you mean this correction for Scaleway? https://github.com/scaleway-community/scaleway-docker/pull/51/files |
@mevatron i have tried making this change on my system, and it does't seem to fix the issue, be intrigued to see if it makes any difference for you? |
@gazzer82 I finally got a chance to try the workaround mentioned @StefanScherer it also did not work for me. But... I do believe I have found the solution. With many, many thanks to @aaronlehmann! He originally found the workaround here distribution/distribution#785 (comment). He has a more complete summary on moby/libnetwork#1090. I ended up using his This has me now building container images from home! Hope this helps you and others! |
@mevatron: Great to hear that this workaround was helpful. This is the first case I've heard of this issue surfacing outside AWS, but it makes sense that other environments which somehow generate invalid packets would suffer from it. It's a useful data point to know that the same thing can happen on a residential internet connection. |
@aaronlehmann Thanks again for discovering that! It was quite annoying to not be able to build containers from my home network. Also, I have a Cisco DPC3216 modem I'm not sure if that is the issue or my ISP. Although, my work network and home network both use the same ISP and I can build container images without issue at work. Have a good rest of the weekend! |
Thanks @mevatron! I've opened issue hypriot/image-builder-rpi#57 to check and improve the SD image. Please follow the progress there. Closing this issue. |
@StefanScherer Sounds great! Keep up the great work on Hypriot! I'll definitely try to continue to pitch in :) |
Hi,
I'm currently running Hypriot OS 0.6.1 with the latest docker-hypriot-1.9.1 build available on their website. Each time a try to build a docker container that pulls from github I get the following error (with curl verbosity enabled):
docker version
docker info
I have found that there is something about my network that is causing this because the same docker build command runs successfully on the network at my office. However, even after replacing my router with a new one and nearly default settings (only a few DHCP reservations were made) the above problem persists. Occasionally, the command will work (maybe 1 / 20 attempts), but a majority of the time it will fail.
The same git clone command above works correctly on the hypriot host (Raspberry Pi 2). This tipped me off to try running the docker image by adding
--net=host
, this worked (and repeatedly so)! Unfortunately, thedocker build
command doesn't support the--net=host
switch, so I was hoping someone with more docker experience had some more tricks to try out!If more info is required, I'll be happy to provide it!
The text was updated successfully, but these errors were encountered: