I am facing an issue with the installation of n8n on a DigitalOcean Droplet. I have followed the installation steps mentioned in the official documentation for Docker installation. However, I encountered the following problems:
When accessing the n8n instance in my browser, I get the error “HTTP ERROR 502”
I am not prompted by the browser for a username and password to access the n8n interface.
Has anyone else faced a similar problem during n8n installation on DigitalOcean? I would greatly appreciate any guidance or suggestions on how to resolve this issue.
I found the solution to the issue. It turns out that the problem was related to the ownership of the n8n directory in the Docker container. The browser was not asking for a username and password, and I was getting “Error: EACCES: permission denied” in the logs.
To fix this, I used the following command to change the ownership of the n8n directory to my user (mlc) and the group root:
chown -R mlc:root /home/mlc/n8n-docker-caddy/.n8n
After applying this change, I was able to access n8n without any issues.
If you encounter a similar problem, I hope this solution helps you too!