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

}

],

質問済み 2年前486ビュー
1回答
0
承認された回答

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

回答済み 2年前
profile picture
エキスパート
レビュー済み 7ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ