logs in Fargate: /usr/sbin/apache2ctl: 99: ulimit: error setting limit (Operation not permitted)

0

I'm trying to start apache 2.4.41 x86_64 in a container in a Fargate service but it's failing to start. The errors in the Service logs are: /usr/sbin/apache2ctl: 99: ulimit: error setting limit (Operation not permitted)

Setting ulimit failed. See README.Debian for more information.

When I build and run from the Dockerfile on my local machine, the container builds and runs fine and the apache server starts up OK so I think it's something to do with Fargate/Task/Container settings but not sure which. I dug up an article on the internet talking about setting limits in ECS but after setting those in my container config, I still get the error. Any thoughts?

"ulimits": [

{

"name": "nofile",

"softLimit": 2048,

"hardLimit": 2048

}

],

posta 2 anni fa480 visualizzazioni
1 Risposta
0
Risposta accettata

Solved this by setting NOFILE to 10485876 in the container as well as explicitly configuring the same in /etc/apache2/envvars

con risposta 2 anni fa
profile picture
ESPERTO
verificato 7 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande