Excessive allocated memory

Hi,

I have an issue when deploying a basic cloud instance using:

  • 1 CPU
  • 1 GB of RAM
  • 10GB SSD
  • Rocky Linux 9
  • Followed all pre-requisites to deploy with docker.

When running the script to deploy using docker, it exits with an error:

Press <ENTER> to install or Ctrl-C to abort.
[+] Running 1/1
 ⠿ Container firezone-postgres-1  Started                                                                                                                                               0.7s
Waiting for DB to boot...
firezone-postgres-1  |
firezone-postgres-1  | PostgreSQL Database directory appears to contain a database; Skipping initialization
firezone-postgres-1  |
firezone-postgres-1  | 2022-11-30 18:42:55.412 UTC [1] LOG:  starting PostgreSQL 15.1 (Debian 15.1-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
firezone-postgres-1  | 2022-11-30 18:42:55.413 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
firezone-postgres-1  | 2022-11-30 18:42:55.413 UTC [1] LOG:  listening on IPv6 address "::", port 5432
firezone-postgres-1  | 2022-11-30 18:42:55.416 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
firezone-postgres-1  | 2022-11-30 18:42:55.421 UTC [26] LOG:  database system was shut down at 2022-11-30 18:42:54 UTC
firezone-postgres-1  | 2022-11-30 18:42:55.428 UTC [1] LOG:  database system is ready to accept connections
Resetting DB password...
ALTER ROLE
[+] Running 3/3
 ⠿ Container firezone-caddy-1     Running                                                                                                                                               0.0s
 ⠿ Container firezone-postgres-1  Running                                                                                                                                               0.0s
 ⠿ Container firezone-firezone-1  Started                                                                                                                                               0.8s
Waiting for app to boot before creating admin...
Error response from daemon: Container ffe5f263b22e3984143f8a247c105d860dd5b3a6fe0ac2df2c95888065648942 is restarting, wait until the container is running

The container log says:

ll_alloc: Cannot allocate 1610612799 bytes of memory (of type "port_tab").

Why is it trying to allocate 1.5GB? Is there a workaround for this?

Hi there, thanks for the report. Strange — Is that coming from the firezone container?

Yup, I’ve just used the default script, hence:

image: firezone/firezone

There may some configuration issue causing the BEAM VM to try and allocate excessive memory. Could you summarize any configuration changes you made and your $HOME/.firezone/.env with any sensitive values redacted?

I haven’t edited the .env file. I can try and reproduce it again with a new instance.