[solved] Issue with n8n Installation on DigitalOcean Droplet

Hello n8n community,

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:

  1. When accessing the n8n instance in my browser, I get the error “HTTP ERROR 502”
  2. 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.

Thank you in advance for your help!

Information on your n8n setup

  • n8n version: 1.0.5
  • Database: SQLite
  • Running n8n via: Docker
  • Operating system: Ubuntu 22.04.2 LTS

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!

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.