Problems setting up server on AWS Lightsail

I am on day 2 of trying to get n8n to run on aws lightsail running
Ubuntu 18.04.5 LTS (GNU/Linux 5.4.0-1028-aws x86_64)

I have followed the set up document - yml file is unaltered
env is

The password to use for autentication - IMPORTANT ALWAYS CHANGE!


I have set a static ip of
I have added an A records for to and

The domain is hosted on Ionos and has a subdomain n8n pointing to the AWS DNS servers

I have added a rule to the DNS zone on AWS for Https port 443 for TCP

I have checked Docker is running and giving the following on start up

Starting ubuntu_n8n_1 … done
Starting ubuntu_traefik_1 … done

When I try to connect via I first get the NOT SAFE messae from Chrome and if I presist through I get

404 Page not found

The security certificate shows as invalid as it has not been verified by a third party

Has anyone successfully set up n8n on AWS LIghtsail ?
Can anyone point me in the right direction

Thanks in advance

I blanked out the password - it is correct in the actual file

I just answered your topic here:

What you could try is to start instead with:

sudo docker-compose up -d

just with:

sudo docker-compose up

If you do that you should see the output of the processes. Mainly traefik as it looks like the problem is related to it. It seems not to be able to create the SSL certificate with letsencrypt and so probably does also not serve n8n correctly.

Just to be 100% sure. Did you set the values in the .env file correctly?

# The top level domain to serve from

# The subdomain to serve from
1 Like

What changes did you make when using the set up guide?

using sudo docker-compose up I get the follwing

n8n_1 | ln: /home/node/.n8n: File exists
traefik_1 | time=“2020-10-17T10:34:52Z” level=info msg=“Configuration loaded from flags.”
traefik_1 | time=“2020-10-17T10:34:52Z” level=error msg=“error while parsing rule Host(n8n is not defined” entryPointName=websecure routerName=n8n@docker
traefik_1 | time=“2020-10-17T10:34:53Z” level=error msg=“Error parsing domains in provider
ACME: is not defined” rule=“Host(” providerName=mytlschallenge
.acme routerName=n8n@docker
n8n_1 | n8n ready on, port 5678
n8n_1 | Version: 0.88.1
n8n_1 |
n8n_1 | Editor is now accessible via:
n8n_1 |

The connection is not live
The doamin and subdomain are correct
the DNS resolves to the Public IP address

I linked to the changes in the other post I did reference above:

Are you sure that you set up the DNS record correctly? If I do:


it displays me:

PING ( 56(84) bytes of data.

but never resolves. So it looks like the server with the IP is probably not live. Meaning its value is probably not correct. And just that you are aware of it, if you are not already. Changing the DNS entry multiple times can cause problems as they get cached and updates can take up to 24h (if it was never set before it works directly as there can not be a cache value, but afterward the chance is high that it will still resolve to the old IP).

Screenshot 2020-10-17 at 11.59.53 Screenshot 2020-10-17 at 11.59.25
Screenshot 2020-10-17 at 12.02.41

The server is running and the DNS resolves as does the A record and ports are set open

I am rebuilding the server with the new setup doc instructions -

Interesting. For me the ping to does still not work. Neither from my notebook nor from my webserver.

But it looks also like that the above only says that resolves to Which it also does for me. So if that IP is correct, then all is good. But none of the above says that the IP can actually be reached.

Ping is disabled by lightsail - will this stop the install working?

It is not currently possible to enable ICMP (the protocol required for ping) through Lightsail Networking > Firewall settings. Ping is generally disabled for security purposes and our team didn’t prioritize implementing that feature in our initial release.
Usually, you can replace ping with an http status check URL for automated monitoring or trying ssh locally if you’re manually checking your configuration.

Honestly no idea if that would be a problem. The problem you are having right now is related to traefik/letsencrypt and not n8n. So would be worth checking in those communities if they have any idea why you get this error.

But reading the error message it does not look like to be the problem here. It problem seems to be reading the host rule error while parsing rule Host( Sadly do not understand why it causes problems for you but nobody else that uses the same file. So maybe worth trying to play around there a little bit. Maybe replacing the variables and hardcoding it and then using backticks, quotes, … and see if that helps.

If it does not, it would be worth googling some more and/or posting about the issue in the traefik forum like mentioned above. Sorry but have sadly not enough experience with traefik to be able to solve this issue.