There are deprecations related to your environment variables. Please take the recommended actions to update your configuration: - N8N_BLOCK_ENV_ACCESS_IN_NODE -> The default value of N8N_BLOCK_ENV_ACCESS_IN_NODE will be changed from false to true in a future version. If you need to access environment variables from the Code Node or from expressions, please set N8N_BLOCK_ENV_ACCESS_IN_NODE=false. Learn more: https://docs.n8n.io/hosting/configuration/environment-variables/security/
- N8N_GIT_NODE_DISABLE_BARE_REPOS -> Support for bare repositories in the Git Node will be removed in a future version due to security concerns. If you are not using bare repositories in the Git Node, please set N8N_GIT_NODE_DISABLE_BARE_REPOS=true. Learn more: https://docs.n8n.io/hosting/configuration/environment-variables/security/
啟動n8n、PostgreSQL服務
sudo docker compose up -d
啟動過程會依n8n、PostgreSQL啟動
檢查n8n、PostgreSQL服務
sudo docker compose ps -a
ls -la
ss -ntlp
3.問題解決
原本使用n8n最新版本1.118.1,出現Connection lost無法連線PostgreSQL的訊息
You have a connection issue or the server is down.
n8n should reconnect automatically once the issue is resolved.
查詢網站無法有效解決。後來發現n8n 版本1.116.2可以正常使用,先用此版本進行測試。