cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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

5 REPLIES 5

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.

Kaniz
Community Manager
Community Manager

Hi @Sergii Ivakhno​ , Just a friendly follow-up. Do you still need help, or @Pratik Bhawsar​ 's response help you to find the solution? Please let us know.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.