Просмотр исходного кода

doc: Add supplementary notes for WSL2 users to Local LLM Guide (#1031)

* Add supplementary notes for WSL2 users

* Add supplementary notes for WSL2 users

---------

Co-authored-by: Robert Brennan <accounts@rbren.io>
Z 1 год назад
Родитель
Сommit
6b9316f722
1 измененных файлов с 26 добавлено и 0 удалено
  1. 26 0
      docs/documentation/LOCAL_LLM_GUIDE.md

+ 26 - 0
docs/documentation/LOCAL_LLM_GUIDE.md

@@ -109,3 +109,29 @@ At this point everything should be set up and working properly.
  - In the first terminal `make start-backend`
  - In the second terminal `make start-frontend`
 5. you should now be able to connect to `http://localhost:3001/` with your local model running!
+
+
+## Additional Notes for WSL2 Users:
+
+1. If you encounter the following error during setup: `Exception: Failed to create opendevin user in sandbox: b'useradd: UID 0 is not unique\n'`  
+You can resolve it by running:  
+    ```
+    export SANDBOX_USER_ID=1000
+    ```
+
+2. If you face issues running Poetry even after installing it during the build process, you may need to add its binary path to your environment:  
+    ```
+    export PATH="$HOME/.local/bin:$PATH"
+    ```
+
+3. If you experiencing issues related to networking, such as `NoneType object has no attribute 'request'` when executing `make run`, you may need to configure your WSL2 networking settings. Follow these steps:
+   - Open or create the `.wslconfig` file located at `C:\Users\%username%\.wslconfig` on your Windows host machine.
+   - Add the following configuration to the `.wslconfig` file:
+        ```
+        [wsl2]
+        networkingMode=mirrored
+        localhostForwarding=true
+        ```
+   - Save the `.wslconfig` file.
+   - Restart WSL2 completely by exiting any running WSL2 instances and executing the command `wsl --shutdown` in your command prompt or terminal.
+   - After restarting WSL, attempt to execute `make run` again. The networking issue should be resolved.