web dockerfile MARKETPLACE_API_URL Problem #12302

Closed
opened 2026-02-21 19:06:49 -05:00 by yindo · 2 comments
Owner

Originally created by @Patientrookie on GitHub (Mar 28, 2025).

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

main

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

Image
The front end started with a docker image, and then marketplace didn't load properly, so troubleshoot to find here. The problem is simple, so you don't need to submit a PR.Please amend as soon as possible, thank you

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @Patientrookie on GitHub (Mar 28, 2025). ### 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 main ### Cloud or Self Hosted Self Hosted (Source) ### Steps to reproduce ![Image](https://github.com/user-attachments/assets/779376fb-284e-4759-af79-f5d5df80832a) The front end started with a docker image, and then marketplace didn't load properly, so troubleshoot to find here. The problem is simple, so you don't need to submit a PR.Please amend as soon as possible, thank you ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 19:06:49 -05:00
yindo closed this issue 2026-02-21 19:06:49 -05:00
Author
Owner

@Patientrookie commented on GitHub (Mar 28, 2025):

Add the file location. /web/Dockerfile

@Patientrookie commented on GitHub (Mar 28, 2025): Add the file location. /web/Dockerfile
Author
Owner

@dosubot[bot] commented on GitHub (Mar 28, 2025):

To troubleshoot the issue with the MARKETPLACE_API_URL in the /web/Dockerfile, you can follow these steps:

  1. Verify URL Configuration: Ensure that the MARKETPLACE_API_URL is correctly set to https://marketplace.dify.ai. If your Dockerfile has a different URL, update it to match this configuration.

  2. Check Network Connectivity: Ensure that the service running at the MARKETPLACE_API_URL is accessible from within the Docker container. You can test connectivity by executing a command inside the running container, such as using curl or wget.

  3. Inspect Logs: Check the logs of the application running inside the container for any errors or warnings related to the marketplace loading. This might provide more insight into the issue.

  4. Environment Variables: Verify that the environment variables are being correctly passed to the application. You can print the environment variables inside the container to verify their values. The supported environment variables include MARKETPLACE_API_URL and MARKETPLACE_URL, both defaulting to https://marketplace.dify.ai.

  5. Rebuild the Docker Image: If you have made changes to the Dockerfile or the environment variables, rebuild the Docker image and restart the container to ensure that the changes take effect.

Example command to test connectivity inside the container:

docker exec -it <container_id> curl https://marketplace.dify.ai

If these steps do not resolve the issue, consider using the official Docker image (langgenius/dify-web) where these environment variables are confirmed to work properly, as official technical support is not provided for self-built images [1][2][3].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Mar 28, 2025): <!-- Answer --> To troubleshoot the issue with the `MARKETPLACE_API_URL` in the `/web/Dockerfile`, you can follow these steps: 1. **Verify URL Configuration**: Ensure that the `MARKETPLACE_API_URL` is correctly set to `https://marketplace.dify.ai`. If your Dockerfile has a different URL, update it to match this configuration. 2. **Check Network Connectivity**: Ensure that the service running at the `MARKETPLACE_API_URL` is accessible from within the Docker container. You can test connectivity by executing a command inside the running container, such as using `curl` or `wget`. 3. **Inspect Logs**: Check the logs of the application running inside the container for any errors or warnings related to the marketplace loading. This might provide more insight into the issue. 4. **Environment Variables**: Verify that the environment variables are being correctly passed to the application. You can print the environment variables inside the container to verify their values. The supported environment variables include `MARKETPLACE_API_URL` and `MARKETPLACE_URL`, both defaulting to `https://marketplace.dify.ai`. 5. **Rebuild the Docker Image**: If you have made changes to the Dockerfile or the environment variables, rebuild the Docker image and restart the container to ensure that the changes take effect. Example command to test connectivity inside the container: ```bash docker exec -it <container_id> curl https://marketplace.dify.ai ``` If these steps do not resolve the issue, consider using the official Docker image (`langgenius/dify-web`) where these environment variables are confirmed to work properly, as official technical support is not provided for self-built images <sup>[[1]](https://github.com/langgenius/dify/blob/main/web/Dockerfile)</sup><sup>[[2]](https://github.com/langgenius/dify/blob/main/docker/middleware.env.example)</sup><sup>[[3]](https://github.com/langgenius/dify/issues/14395)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/45b06292-54cd-481c-8606-e1e58b060f48?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/45b06292-54cd-481c-8606-e1e58b060f48?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/45b06292-54cd-481c-8606-e1e58b060f48?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/45b06292-54cd-481c-8606-e1e58b060f48?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/45b06292-54cd-481c-8606-e1e58b060f48?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/45b06292-54cd-481c-8606-e1e58b060f48?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/45b06292-54cd-481c-8606-e1e58b060f48?feedback_type=other)</sup>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#12302