Code Monkey home page Code Monkey logo

Comments (2)

eguchi-ken avatar eguchi-ken commented on June 14, 2024 1

アドバイスありがとうございます。 docker を停止して再起動してみましたが、multipass で作られた ubuntu の仮想マシンから、インターネットへの接続ができていないようでした。下記のコマンドを実行するとタイムアウトエラーになっていました。

multipass shell isucon12q

curl https://www.google.com/
# curl: (28) Failed to connect to www.google.com port 443 after 131287 ms: Connection timed out

ping google.com
# PING google.com (142.250.207.14) 56(84) bytes of data.
# --- google.com ping statistics ---
# 77 packets transmitted, 0 received, 100% packet loss, time 80807ms

アドバイスいただいた --network bridged は下記のようにして利用してみました。最初に作った仮想マシンを削除してから実行してみましたが、残念ながら結果は変わらずでした。

multipass set local.bridged-network=en0
multipass launch --network bridged --name isucon12q --cpus 2 --disk 20G --memory 4G --timeout 86400 --cloud-init isucon12q/isucon12q.cfg 22.04

私の環境(mac)の multipass の問題のように感じたので、下記の記事を読んで解決できないか調べてみます。

https://multipass.run/docs/troubleshoot-networking#heading--troubleshoot-networking-on-macos

from cloud-init-isucon.

matsuu avatar matsuu commented on June 14, 2024

2つ気になる点がありますね。

  • IPv6で接続しようとしているが、ネットワーク的に到達できず失敗している
  • IPv4での接続を試みているものの、IPv4での接続はタイムアウトになっている

ネットワーク周りで何らかの問題が出ているように見受けられますね。
multipass実行時に --network bridged を入れてみるとどうでしょうか
もしくはDockerなど異なる仮想環境が稼働していたりするとネットワークインタフェースが増えて問題が発生する可能性があります。もしDockerもしくはその他の仮想環境が同じマシン上で稼働しているのであれば停止してみてから再度試してみるといいかもしれません。

from cloud-init-isucon.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.