cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

init_script error during cluster creation - 101: Network is unreachable

Serhii
Contributor

When I run the init_script during cluster creation

apt-get update && apt-get install -y ffmpeg libsndfile1-dev

I get an error in cluster logs

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/o/openal-soft/libopenal1_1.19.1-1_amd64.deb  Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1562::18). - connect (101: Network is unreachable)

Any suggestions how to fix it would be most appreciated

1 ACCEPTED SOLUTION

Accepted Solutions

Hubert-Dudek
Esteemed Contributor III

Please check routing in managed vpc. It seems that traffic out is blocked.

You can also, in the notebook, run that command to diagnose connection issues as maybe it is only during init scripts:

%sh
nc -zv archive.ubuntu.com 443

View solution in original post

4 REPLIES 4

Hubert-Dudek
Esteemed Contributor III

Please check routing in managed vpc. It seems that traffic out is blocked.

You can also, in the notebook, run that command to diagnose connection issues as maybe it is only during init scripts:

%sh
nc -zv archive.ubuntu.com 443

Anonymous
Not applicable

Hi @Sergii Ivakhno​ ,

Looks like the outbound connection could not be established. Please check the outbound access in the security group and egress traffic in the route table.

Serhii
Contributor

Thanks for reply - strangely I only notice this error with apt-get. For example pip install works correctly so not sure if it's networking issues (unless pip works with Databricks-hosted mirror).

Anonymous
Not applicable

Hi @Sergii Ivakhno​ Could you please check if outbound TCP access for port 80 is allowed in the security group.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group