投稿

ラベル(エラー)が付いた投稿を表示しています

ISUCONの環境をVagrantで構築しようとしたらCommand: ["hostonlyif", "create"]と出たので解決した話。

イメージ
環境:macOS Big Sur11.5.1 正確には $ vagrant up There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below. Command: ["hostonlyif", "create"] Stderr: 0%... Progress state: NS_ERROR_FAILURE VBoxManage: error: Failed to create the host-only adapter VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 94 of file VBoxManageHostonly.cpp こんな感じ。 手順としては、 1.git cloneして、 $ git clone https://github.com/matsuu/vagrant-isucon.git 2.ディレクトリに入って $ cd vagrant-isucon/isucon6-qualifier 3.vagrant upしたら $ vagrant up 4.ERRROR! 冒頭のエラーが発生、といった感じ。 これの原因は何だろうなと思い、ググるとBig Surにアプデしたのが原因なのではないか?というような記事が散見されたので、その解決法をみてみると V

failed: unable to get local issuer certificate (_ssl.c:1123)と出たので解決した話

イメージ
Webスクレイピングとか 試していたらこれが突然出た。 macOS用公式インストーラーのPython 3.6でCERTIFICATE_VERIFY_FAILEDとなる問題 という記事に解決策が書いてあったが、 python.orgで配布されているmacOS用の公式インストーラーでインストールしたPython 3.6を使い、 urllib.request.urlopen() で https:// のWebページを取得しようとすると、以下のエラーが発生します。 で、このタイトルのエラーに当たっていたよう。 私の場合はPython3.8.5を使っていたので $ /Applications/Python\ 3.8/Install\ Certificates.command というコマンドをターミナルで叩くことで事なきをえた。 読んでないのが悪いとはいえこれはハマる人が多いんじゃなかろうか。