1. Not receiving reset password emails
You need to configure theMail
parameters in the .env
file. For detailed instructions, please refer to “Environment Variables Explanation: Mail-related configuration”.
After modifying the configuration, run the following commands to restart the service:
2. How to handle if the workflow is too complex and exceeds the node limit?
In the community edition, you can manually adjust the MAX_TREE_DEPTH limit for single branch depth inweb/app/components/workflow/constants.ts.
Our default value is 50, and it’s important to note that excessively deep branches may affect performance in self-hosted scenarios.
3. How to specify the runtime for each workflow node?
You can modify theTEXT_GENERATION_TIMEOUT_MS
variable in the .env
file to adjust the runtime for each node. This helps prevent overall application service unavailability caused by certain processes timing out.
4. How to reset the password of the admin account?
If you deployed using Docker Compose, you can reset the password with the following command while your Docker Compose is running:5. How to Change the Port
If you’re using Docker Compose, you can customize the access port by modifying the.env
configuration file.
You need to modify the Nginx configuration:
6. How to resolve database connection errors in docker-api-1?
Issue Details: When accessinghttp://localhost
, you may encounter an Internal Server Error
; and the following message might appear in the docker-api-1
logs:
/var/lib/postgresql/pgdata/pg_hba.conf
file inside the db container to allow connections from the network segment mentioned in the error message. For example:
7. How to change the file size limit for knowledge base uploads?
Modify theUPLOAD_FILE_SIZE_LIMIT
parameter in the .env
file to adjust the default limit. Additionally, you should also sync the NGINX_CLIENT_MAX_BODY_SIZE
parameter value to avoid potential issues.
8. How to create a backup before upgrading?
Before upgrading, it is recommended to back up your currentdify
directory to prevent any potential data loss. You can create a backup with the following command:
9. How to install an older version of the Community Edition?
In some cases, you may want to install a specific older version of the Community Edition, you can use the--branch
flag to do this. For example, to install version 0.15.3
:
10. How to install the Community Edition using a ZIP archive?
If you’re on a network-restricted server or unable to usegit
for any reason, you can install Dify using a ZIP archive:
Make sure to back up your existing data before upgrading. Refer to Question 8 for details.
Edit this page | Report an issueEdit this page | Report an issue