0.8-beta deploy fail #5478

Closed
opened 2026-02-21 18:11:09 -05:00 by yindo · 4 comments
Owner

Originally created by @mdxlCJ on GitHub (Sep 9, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.8-beta

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Beta deployment, nginx container error,
cp: -r not specified; omitting directory '/docker-entrypoint-mount.sh'

✔️ Expected Behavior

speed

Actual Behavior

No response

Originally created by @mdxlCJ on GitHub (Sep 9, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.8-beta ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Beta deployment, nginx container error, cp: -r not specified; omitting directory '/docker-entrypoint-mount.sh' ### ✔️ Expected Behavior speed ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 18:11:09 -05:00
yindo closed this issue 2026-02-21 18:11:09 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Sep 9, 2024):

I found a similar issue related to the cp: -r not specified; omitting directory /docker-entrypoint-mount.sh error. The problem occurs because the cp command in the entrypoint is trying to copy a directory without the -r (recursive) option.

To fix this, you should modify the entrypoint command in the nginx service definition to include the -r option:

entrypoint: [ "sh", "-c", "cp -r /docker-entrypoint-mount.sh /docker-entrypoint.sh && sed -i 's/\r$$//' /docker-entrypoint.sh && chmod +x /docker-entrypoint.sh && /docker-entrypoint.sh" ]

This change ensures that the cp command can handle directories properly.

Additionally, if you encounter an Nginx configuration file mount failure during local deployment, ensure that the specified host path exists and is the expected type. You can download the complete project, navigate to the docker directory, and execute docker-compose up -d:

git clone https://github.com/langgenius/dify.git
cd dify/docker
docker compose up -d

This should help resolve any issues related to incorrect file or directory mounts [1][2].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Sep 9, 2024): <!-- Answer --> I found a similar issue related to the `cp: -r not specified; omitting directory /docker-entrypoint-mount.sh` error. The problem occurs because the `cp` command in the `entrypoint` is trying to copy a directory without the `-r` (recursive) option. To fix this, you should modify the `entrypoint` command in the `nginx` service definition to include the `-r` option: ```yaml entrypoint: [ "sh", "-c", "cp -r /docker-entrypoint-mount.sh /docker-entrypoint.sh && sed -i 's/\r$$//' /docker-entrypoint.sh && chmod +x /docker-entrypoint.sh && /docker-entrypoint.sh" ] ``` This change ensures that the `cp` command can handle directories properly. Additionally, if you encounter an Nginx configuration file mount failure during local deployment, ensure that the specified host path exists and is the expected type. You can download the complete project, navigate to the docker directory, and execute `docker-compose up -d`: ```bash git clone https://github.com/langgenius/dify.git cd dify/docker docker compose up -d ``` This should help resolve any issues related to incorrect file or directory mounts <sup>[[1]](https://github.com/langgenius/dify/blob/main/docker/docker-compose.yaml)</sup><sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/en/learn-more/faq/install-faq.md)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@crazywoola commented on GitHub (Sep 9, 2024):

I am not sure what are you talking about.

✔️ Expected Behavior
speed

You need the whole docker/ folder to make things work.

@crazywoola commented on GitHub (Sep 9, 2024): I am not sure what are you talking about. ✔️ Expected Behavior speed You need the whole docker/ folder to make things work.
Author
Owner

@sunyclj commented on GitHub (Sep 9, 2024):

I found a similar issue related to the cp: -r not specified; omitting directory /docker-entrypoint-mount.sh error. The problem occurs because the cp command in the entrypoint is trying to copy a directory without the -r (recursive) option.

To fix this, you should modify the entrypoint command in the nginx service definition to include the -r option:

entrypoint: [ "sh", "-c", "cp -r /docker-entrypoint-mount.sh /docker-entrypoint.sh && sed -i 's/\r$$//' /docker-entrypoint.sh && chmod +x /docker-entrypoint.sh && /docker-entrypoint.sh" ]

This change ensures that the cp command can handle directories properly.

Additionally, if you encounter an Nginx configuration file mount failure during local deployment, ensure that the specified host path exists and is the expected type. You can download the complete project, navigate to the docker directory, and execute docker-compose up -d:

git clone https://github.com/langgenius/dify.git
cd dify/docker
docker compose up -d

This should help resolve any issues related to incorrect file or directory mounts [1][2].

To continue talking to Dosu, mention @dosu.

a new error occurs after modification:
cp: cannot overwrite non-directory '/docker-entrypoint.sh' with directory '/docker-entrypoint-mount.sh'

@sunyclj commented on GitHub (Sep 9, 2024): > I found a similar issue related to the `cp: -r not specified; omitting directory /docker-entrypoint-mount.sh` error. The problem occurs because the `cp` command in the `entrypoint` is trying to copy a directory without the `-r` (recursive) option. > > To fix this, you should modify the `entrypoint` command in the `nginx` service definition to include the `-r` option: > > ```yaml > entrypoint: [ "sh", "-c", "cp -r /docker-entrypoint-mount.sh /docker-entrypoint.sh && sed -i 's/\r$$//' /docker-entrypoint.sh && chmod +x /docker-entrypoint.sh && /docker-entrypoint.sh" ] > ``` > > This change ensures that the `cp` command can handle directories properly. > > Additionally, if you encounter an Nginx configuration file mount failure during local deployment, ensure that the specified host path exists and is the expected type. You can download the complete project, navigate to the docker directory, and execute `docker-compose up -d`: > > ```shell > git clone https://github.com/langgenius/dify.git > cd dify/docker > docker compose up -d > ``` > > This should help resolve any issues related to incorrect file or directory mounts [[1]](https://github.com/langgenius/dify/blob/main/docker/docker-compose.yaml)[[2]](https://github.com/langgenius/dify-docs/blob/main/en/learn-more/faq/install-faq.md). > > _To continue talking to [Dosu](https://dosu.dev), mention @dosu._ a new error occurs after modification: cp: cannot overwrite non-directory '/docker-entrypoint.sh' with directory '/docker-entrypoint-mount.sh'
Author
Owner

@sunyclj commented on GitHub (Sep 9, 2024):

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.8-beta

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Beta deployment, nginx container error, cp: -r not specified; omitting directory '/docker-entrypoint-mount.sh'

✔️ Expected Behavior

speed

Actual Behavior

No response

please,has the problem been solved?

@sunyclj commented on GitHub (Sep 9, 2024): > ### Self Checks > * [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). > * [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. > * [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). > * [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) > * [x] Please do not modify this template :) and fill in all the required fields. > > ### Dify version > 0.8-beta > > ### Cloud or Self Hosted > Self Hosted (Docker) > > ### Steps to reproduce > Beta deployment, nginx container error, cp: -r not specified; omitting directory '/docker-entrypoint-mount.sh' > > ### ✔️ Expected Behavior > speed > > ### ❌ Actual Behavior > _No response_ please,has the problem been solved?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#5478