Skip to content
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

Yarn reports trouble with your network connection. No internet connection inside workspace service/container #1960

Closed
thond1st opened this issue Jan 21, 2019 · 2 comments
Labels

Comments

@thond1st
Copy link

Info:

  • Docker version ($ docker --version): 18.09.1-ce, build 4c52b901c6
  • Laradock commit ($ git rev-parse HEAD): 913abc5
  • System info (Mac, PC, Linux): Windows 10 PC (This is the Virtualbox host)
  • System info disto/version: Virtual Box Guest Linux 4.20.3-arch1-1-ARCH x86_64 GNU/Linux (This is the Docker host)

Issue:

Yarn reports trouble with your network connection. No internet connection inside workspace container.
ArchLinux Vbox guest and Docker host have internet connection


Expected behavior:

Yarn install should install packages and should be able to connect to the internet inside the workspace container.


Reproduce:

1 - Install laradock in my guest Vbox Archlinux instance alongside my current laravel project
$ git clone https://github.com/laradock/laradock.git
My folder structure should look like this:

  • laradock
  • project-1
  • project-2
    2 - Go to nginx/sites and create config files to point to different project directory when visiting different domains.
    3 - change the default names *.conf:
    You can rename the config files, project folders and domains as you like, just make sure the root in the config files, is pointing to the correct project folder name.
    4 - Add the domains to the Vbox guest ArchLinux hosts files.
    127.0.0.1 project-1.test
    127.0.0.1 project-2.test
    5 - Enter the laradock folder and copy env-example to .env
    cp env-example .env
    6 - Build the environment and run it using docker-compose
    docker-compose up -d nginx mysql phpmyadmin
    I have noticed that there are 2 additional network created beside from default network. They are frontend and backend networks.
    7 - Enter the Workspace container, to execute commands like (Artisan, Composer, PHPUnit, Gulp, …)
    docker-compose exec workspace bash
    8 - $ php artisan key:migrate worked well
    9 - $ yarn install
    This is where I realized that it seems that the workspace container or service doesn't have an internet connection
    "info There appears to be trouble with your network connection. Retrying..."

What I have tried:

  • Cleaned docker of all existing networks, volumes, containers, images.
  • Restart ArchLinux Vbox guest OS and Windows 10 main host
  • Restart docker service
  • Repeat the process to reproduce
  • $ ping anysite.com doesn't work. The command is not available and I can't install it either through the container but I could ping any site from Arch Linux

Thanks in advance

@stale
Copy link

stale bot commented Feb 2, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale label Feb 2, 2020
@stale
Copy link

stale bot commented Feb 23, 2020

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Feb 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant