-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The environment variable CONSOLE_WEB_URL
is set to blank
#4428
Comments
To address the issue of the missing model icon in your self-hosted Dify setup, ensure you have correctly set the docker run -it -p 3000:3000 -e CONSOLE_URL=http://127.0.0.1:5001 -e APP_URL=http://127.0.0.1:5001 langgenius/dify-web:latest Adjust these variables to match your setup, then restart your Docker containers. This step is crucial for the frontend to correctly fetch resources and make API calls. Additionally, check for JavaScript errors in the console, as they could be related to the issue. If you find errors, compare them with common issues documented in the Dify installation FAQ to find potential fixes. Dify uses a TypeScript component for handling model icons, which imports SVG data from a JSON file. This setup ensures icons are efficiently managed and displayed. If the environment variables and JavaScript errors don't seem to be the issue, there might be a problem with how these components are loaded or rendered. If the problem persists after checking these areas, please provide more detailed error messages from both the frontend console and any backend logs, along with your Docker setup details, to further diagnose the issue.
|
After some exploration, I located where the bug occurred. This was because But you may be wondering why there is no problem accessing localhost in the docker-compose service. This is because a layer of forwarding is done in Nginx. Nginx forwards When the backend is started with source code, But when starting the backend through docker-compose, the address returned by the model image will be When I comment out this variable or fill it in as http://127.0.0.1:5001, the performance becomes normal. dify/docker/docker-compose.yaml Line 24 in dd94931
Although the performance during generation is normal, the logic behind it is different. I think this problem needs to be improved, because it is actually two different sets of logic achieving the same effect. |
CONSOLE_WEB_URL
environment variables are set to blankCONSOLE_WEB_URL
is set to blank
Self Checks
Dify version
0.6.8
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
dify/docker/docker-compose.yaml
Lines 174 to 176 in dd94931
cd web && yarn && yarn dev
✔️ Expected Behavior
The model's icon should show up
❌ Actual Behavior
The icon of the model is missing.
The text was updated successfully, but these errors were encountered: