EmbarkStudios / wg-ui

WireGuard Web UI for self-serve client configurations, with optional auth.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

level=warning msg="Error parsing request: EOF" when trying to add a device

Sohalt opened this issue · comments

Describe the bug
When trying to create add a new device using the lastest Docker image no device is added and I get the following error:

level=warning msg="Error parsing request: EOF" when trying to add a device

To Reproduce
Steps to reproduce the behavior:

  1. docker pull embarkstudios/wireguard-ui:latest
  2. docker run -p 8080:8080 --privileged --rm -it -e WIREGUARD_UI_LOG_LEVEL=debug --entrypoint "/wireguard-ui" -v /tmp/wireguard-ui:/data embarkstudios/wireguard-ui:latest
  3. go to localhost:8080 and try to add a new device.

Expected behavior
A new device is added.

@spetzreborn Do you also have this issue in your setup?

No, but have not run it in docker locally, same at work. (just running the go binary stand-alone)
Is it running the latest of both the node app and the go backend?

I'm running the official image from Docker hub.

I think I found the issue:
Since b471f3d the image is built by simply copying whatever is in the ui/dist directory, without actually building the frontend from source, so your changes didn't get picked up.
You'll either have to commit the build results in ui/dist or fix the Dockerfile to again build the ui from source.

I think I found the issue:
Since b471f3d the image is built by simply copying whatever is in the ui/dist directory, without actually building the frontend from source, so your changes didn't get picked up.
You'll either have to commit the build results in ui/dist or fix the Dockerfile to again build the ui from source.

Good catch, lets put back the ui part into Dockerfile!