[GH-ISSUE #1003] /app/x-ui: line 1: syntax error: unexpected "(" #683

Closed
opened 2026-10-31 20:13:44 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @jeffscrum on GitHub (Sep 1, 2023).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/1003

Welcome

  • Yes, I'm using the latest major release. Only such installations are supported.
  • Yes, I'm using the supported system. Only such systems are supported.
  • Yes, I have read all WIKI document,nothing can help me in my problem.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've included all information below (version, config, log, etc).

Description of the problem,screencshot would be good

3x-ui  | Server ready
3x-ui  | /app/x-ui: line 1: syntax error: unexpected "("
3x-ui exited with code 2

Version of 3x-ui

fresh install v1.7.8, docker version

x-ui log reports or xray log

n/a
Originally created by @jeffscrum on GitHub (Sep 1, 2023). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/1003 ### Welcome - [X] Yes, I'm using the latest major release. Only such installations are supported. - [X] Yes, I'm using the supported system. Only such systems are supported. - [X] Yes, I have read all WIKI document,nothing can help me in my problem. - [X] Yes, I've searched similar issues on GitHub and didn't find any. - [X] Yes, I've included all information below (version, config, log, etc). ### Description of the problem,screencshot would be good ``` 3x-ui | Server ready 3x-ui | /app/x-ui: line 1: syntax error: unexpected "(" 3x-ui exited with code 2 ``` ### Version of 3x-ui <details> fresh install v1.7.8, docker version </details> ### x-ui log reports or xray log <details> n/a </details>
Author
Owner

@zertf commented on GitHub (Sep 7, 2023):

Hi! How did you solve the problem? I have the same error.

<!-- gh-comment-id:1710812446 --> @zertf commented on GitHub (Sep 7, 2023): Hi! How did you solve the problem? I have the same error.
Author
Owner

@zertf commented on GitHub (Sep 8, 2023):

I've solved it! You need an x86 architecture to work properly, not arm64

<!-- gh-comment-id:1711296997 --> @zertf commented on GitHub (Sep 8, 2023): I've solved it! You need an x86 architecture to work properly, not arm64
Author
Owner

@EmbeddedAndMore commented on GitHub (Nov 26, 2023):

Hmm, weird. it uses alpine image, so there is no bash. but this doesn't make a problem for x86 arch (idk why!!). so to fix just
1- install bash in Dockerfile.
RUN apk add --no-cache --upgrade bash
2- build the image again. in the project's folder do:
docker build -t 3x-ui .
3- and make docker-compose.yml load local image. replace the image entry to:
image: x-ui:latest

<!-- gh-comment-id:1826878627 --> @EmbeddedAndMore commented on GitHub (Nov 26, 2023): Hmm, weird. it uses `alpine` image, so there is no `bash`. but this doesn't make a problem for x86 arch (idk why!!). so to fix just 1- install bash in Dockerfile. `RUN apk add --no-cache --upgrade bash` 2- build the image again. in the project's folder do: `docker build -t 3x-ui .` 3- and make docker-compose.yml load local image. replace the image entry to: `image: x-ui:latest`
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#683
No description provided.