Dockerfile icon indicating copy to clipboard operation
Dockerfile copied to clipboard

error: failed switching to "root": operation not permitted when using webdevops/php-apache:7.4-alpine on heroku

Open rhyek opened this issue 5 years ago • 1 comments

Related: #366 #333 #387

On Heroku I get the following logs:

2021-07-28T00:24:46.516356+00:00 heroku[web.1]: Process exited with status 1
2021-07-28T00:24:46.586377+00:00 heroku[web.1]: State changed from starting to crashed
2021-07-28T00:24:46.590702+00:00 heroku[web.1]: State changed from crashed to starting
2021-07-28T00:25:03.490812+00:00 heroku[web.1]: Starting process with command `supervisord`
2021-07-28T00:25:07.602192+00:00 app[web.1]: error: failed switching to "root": operation not permitted
2021-07-28T00:25:07.665596+00:00 heroku[web.1]: Process exited with status 1
2021-07-28T00:25:07.772202+00:00 heroku[web.1]: State changed from starting to crashed
2021-07-28T00:25:09.030906+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=monoapp.somedomain.com request_id=f38e393b-87fb-4d39-bc87-3c30e0b02ec2 fwd="24.171.221.251" dyno= connect= service= status=503 bytes= protocol=https
2021-07-28T00:25:09.858956+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=monoapp.somedomain.com request_id=8c9b728b-9512-4426-b6b0-c3ffc679d5a4 fwd="24.171.221.251" dyno= connect= service= status=503 bytes= protocol=https
2021-07-28T00:25:10.632758+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=monoapp.somedomain.com request_id=ee97ad53-33ad-4beb-be95-8bd6983bcbef fwd="24.171.221.251" dyno= connect= service= status=503 bytes= protocol=https

If I understand correctly, the change that fixed this in the past was reverted according to https://github.com/webdevops/Dockerfile/pull/333#issuecomment-615840529.

I want to confirm that until #387 is merged, this image can't be used on services that restrict root elevation like Heroku. Thanks.

rhyek avatar Jul 28 '21 00:07 rhyek

Closed as old Issue without any comments in the last months.

Kanti avatar Apr 13 '26 07:04 Kanti