ItsPi3141 / alpaca-electron

The simplest way to run Alpaca (and other LLaMA-based local LLMs) on your own computer
MIT License
1.29k stars 144 forks source link

display error after running docker compose in window. #59

Closed Asmedeus998 closed 1 year ago

Asmedeus998 commented 1 year ago

Describe the bug display error after running running following command docker compose up -d or docker compose up

here the error message:

To Reproduce Steps to reproduce the behavior:

  1. Go to docker compose up -d or docker compose up
  2. See error:

time="2023-04-15T16:27:20+08:00" level=warning msg="The \"DISPLAY\" variable is not set. Defaulting to a blank string."

Expected behavior successfully docker to run without any error

Desktop (please complete the following information):

ItsPi3141 commented 1 year ago

On windows, you need to set the port of your X11 display server. Try running export DISPLAY=:420 (replace 420 with whatever port you have it set to). And then run docker compose up again.

Asmedeus998 commented 1 year ago

On windows, you need to set the port of your X11 display server. Try running export DISPLAY=:420 (replace 420 with whatever port you have it set to). And then run docker compose up again.

in window I try set DISPLAY=:420 and then run docker compose up and I get new error.

alpaca-electron-alpaca-electron-1  | The futex facility returned an unexpected error code.
alpaca-electron-alpaca-electron-1  | bash: line 1:     8 Aborted                 /alpaca-electron/Alpaca\ Electron --no-sandbox

my only solution to fix this issue by running wsl in window without changing anything.

TheTerrasque commented 1 year ago

I haven't tried with this program, but I've had success with this setup on other docker based UI's under windows:

environment:
  - DISPLAY=:0
  - WAYLAND_DISPLAY=wayland-0
  - XDG_RUNTIME_DIR=/mnt/wslg/runtime-dir
  - PULSE_SERVER=/mnt/wslg/PulseServer
volumes:
  - /run/desktop/mnt/host/wslg/.X11-unix:/tmp/.X11-unix
  - /run/desktop/mnt/host/wslg:/mnt/wslg