[GH-ISSUE #4133] Image is broken (web/html: no such file or directory) #2803

Closed
opened 2026-10-31 20:28:05 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Dees7 on GitHub (Apr 29, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4133

Describe the bug

If use public image and compose.yaml from docs with debug enabled doesn't start

3xui  | 2026/04/29 11:02:50 /app/web/service/setting.go:208 record not found
3xui  | [0.178ms] [rows:0] SELECT * FROM `settings` WHERE key = "tgLang" ORDER BY `settings`.`id` LIMIT 1
3xui  | DEBUG - Attempting to stop Xray...
3xui  | 2026/04/29 11:02:50 Error starting web server: stat web/html: no such file or directory
3xui exited with code 1 (restarting)

because image doesn't have /app/web directory inside

#docker  run -it -e XRAY_VMESS_AEAD_FORCED=false   -e XUI_ENABLE_FAIL2BAN=true   --name 3x-ui-debug   --entrypoint /bin/sh   ghcr.io/mhsanaei/3x-ui:v2.9.3
Unable to find image 'ghcr.io/mhsanaei/3x-ui:v2.9.3' locally
v2.9.3: Pulling from mhsanaei/3x-ui
Digest: sha256:9f64bbf01ff540e67397ec87cda95481e7ff2a46accda9a4fb5fc1d8b187c213
Status: Downloaded newer image for ghcr.io/mhsanaei/3x-ui:v2.9.3
/app # ls -la /app
total 61096
drwxr-xr-x    1 root     root          4096 Apr 27 17:14 .
drwxr-xr-x    1 root     root          4096 Apr 29 11:01 ..
-rwxr-xr-x    1 root     root           118 Apr 27 17:07 DockerEntrypoint.sh
drwxr-xr-x    2 root     root          4096 Apr 27 17:14 bin
-rwxr-xr-x    1 root     root      62545792 Apr 27 17:14 x-ui
/app # find / -iname xray.html
/app # 

if use web dir from sources ( -v $PWD/web/:/app/web/) then all works.
the same trouble is not only last version (i checked v2.8.11 too)

How to repeat the problem?

  1. remove all local 3x-ui images
  2. get compose.yaml
  3. add
    environment:
      XUI_LOG_LEVEL: "debug"
      XUI_DEBUG: "true"
  1. try run it

Expected action

Normal start

Received action

exited with code 1 (restarting)

3x-ui Version

v2.9.3

Xray-core Version

No response

Checklist

  • This bug report is written entirely in English.
  • This bug report is new and no one has reported it before me.
Originally created by @Dees7 on GitHub (Apr 29, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4133 ### Describe the bug If use public image and compose.yaml from docs with debug enabled doesn't start ``` 3xui | 2026/04/29 11:02:50 /app/web/service/setting.go:208 record not found 3xui | [0.178ms] [rows:0] SELECT * FROM `settings` WHERE key = "tgLang" ORDER BY `settings`.`id` LIMIT 1 3xui | DEBUG - Attempting to stop Xray... 3xui | 2026/04/29 11:02:50 Error starting web server: stat web/html: no such file or directory 3xui exited with code 1 (restarting) ``` because image doesn't have /app/web directory inside ``` #docker run -it -e XRAY_VMESS_AEAD_FORCED=false -e XUI_ENABLE_FAIL2BAN=true --name 3x-ui-debug --entrypoint /bin/sh ghcr.io/mhsanaei/3x-ui:v2.9.3 Unable to find image 'ghcr.io/mhsanaei/3x-ui:v2.9.3' locally v2.9.3: Pulling from mhsanaei/3x-ui Digest: sha256:9f64bbf01ff540e67397ec87cda95481e7ff2a46accda9a4fb5fc1d8b187c213 Status: Downloaded newer image for ghcr.io/mhsanaei/3x-ui:v2.9.3 /app # ls -la /app total 61096 drwxr-xr-x 1 root root 4096 Apr 27 17:14 . drwxr-xr-x 1 root root 4096 Apr 29 11:01 .. -rwxr-xr-x 1 root root 118 Apr 27 17:07 DockerEntrypoint.sh drwxr-xr-x 2 root root 4096 Apr 27 17:14 bin -rwxr-xr-x 1 root root 62545792 Apr 27 17:14 x-ui /app # find / -iname xray.html /app # ``` if use web dir from sources ( `-v $PWD/web/:/app/web/`) then all works. the same trouble is not only last version (i checked v2.8.11 too) ### How to repeat the problem? 1. remove all local 3x-ui images 2. get compose.yaml 3. add ``` environment: XUI_LOG_LEVEL: "debug" XUI_DEBUG: "true" ``` 5. try run it ### Expected action Normal start ### Received action exited with code 1 (restarting) ### 3x-ui Version v2.9.3 ### Xray-core Version _No response_ ### Checklist - [x] This bug report is written entirely in English. - [x] This bug report is new and no one has reported it before me.
bsakaguchi 2026-10-31 20:28:05 +07:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#2803
No description provided.