0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【WSL2】cursor接続時のエラー「システムのバッファー領域が不足しているか、またはキューがいっぱいなため、ソケット操作を実行できませんでした」の対処法

0
Posted at

cursorをubuntu使ってwsl接続しようとしたらターミナルに以下のエラーが出て開けなかった

実行環境

  • Windows 11 (WSL2)
  • Ubuntu 24.04 LTS
  • エディタ:Cursor

現象

cursorでwslに接続しようしたら以下のエラーが発生した

  • [error] Error installing Cursor server [wsl exec: installServerScript] Command failed with exit code 4294967295: stdout: システムのバッファー領域が不足しているか、またはキューがいっぱいなため、ソケット操作を実行できませんでした。

コマンドプロンプトでもwslを起動しようとしてみると以下のエラーが出た

  • システムのバッファー領域が不足しているか、またはキューがいっぱいなため、ソケット操作を実行できませんでした。 エラー コード: Wsl/Service/0x80072747

原因

Windows側のネットワークポートやソケットリソースが一時的に枯渇して、WSLとの接続が確立できない場合に発生するらしい

解決手順

wslをシャットダウンしてリソースを開放する

コマンドプロンプトで以下を実行

wsl --shutdown

シャットダウンできたら以下を実行してwslを再起動する

wsl

これでまたwslが使えるようになった。


以下のコマンドで一応動いてるか確認

wsl -l -v

今回自分はディストリビューションにUbuntu-24.04を使用しているので、これがRunningになっていればOK

  NAME              STATE           VERSION
* Ubuntu-24.04      Running         2
  docker-desktop    Stopped         2
  Ubuntu-20.04      Stopped         2

これでまたcursorでwsl接続が使えるようになった。
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?