Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Exec /init permission denied when starting container #2200

Closed
mdeboer opened this issue May 24, 2019 · 21 comments
Closed

Exec /init permission denied when starting container #2200

mdeboer opened this issue May 24, 2019 · 21 comments
Labels

Comments

@mdeboer
Copy link

mdeboer commented May 24, 2019

I upgraded porter using Docker and I now get the following exception:
starting container process caused "exec: \"/init\": permission denied"

Docker image used (SHA256): b276b17f9b65a98ede4cb609f8336ab16482e401a8938db3f5003124420089b7 which is tagged as opensuse/portus:2.5 and opensuse/portus:latest.

I see it hasn't been released either so why tag this with a version or even latest when this isn't stable?

Version 2.4.3 works fine.

@bretep
Copy link

bretep commented May 26, 2019

I'm also getting this after upgrading

@invy
Copy link

invy commented May 27, 2019

The same for me. ./init script is lacking executable permission. (Updated to the version tagget 2.5)
Strangely enough, the Dockerfile contains the line:

RUN chmod +x /init && \

Or was the image built from other Dockerfile...

@stefankip
Copy link

Same here, reverted to head.

@invy
Copy link

invy commented May 28, 2019

Same here, reverted to head.

FYI: workaround would be to specify the command in your deploy/compose file to call a chmod +x /init first and then the init itself.

@stefankip
Copy link

Thanks, but for me it's much easier to just revert to head ;-)

@bretep
Copy link

bretep commented May 29, 2019

Yeah, I ended up reverting as well. If the fix is that easy, why not fix it and release again?

@mdeboer
Copy link
Author

mdeboer commented May 29, 2019

Yeah, I ended up reverting as well. If the fix is that easy, why not fix it and release again?

Because it's unclear why it occurred as apparently the Dockerfile is fine:

The same for me. ./init script is lacking executable permission. (Updated to the version tagget 2.5)
Strangely enough, the Dockerfile contains the line:

RUN chmod +x /init && \

Or was the image built from other Dockerfile...

However I agree, this should be fixed asap by untagging 2.5 and reverting the latest tag to 2.4.3. I also see no mention anywhere of 2.5 so I think it was unintended to be released already.

@dkowis
Copy link

dkowis commented Jul 27, 2019

Still an actual problem. I guess the tag never got reverted?

@harmeetsinghghotra
Copy link

harmeetsinghghotra commented Sep 19, 2019

Here's how I fixed it:

  • Create a Dockerfile with the following content:

FROM opensuse/portus:2.5
RUN chmod +x /init

  • Built a new docker image with:

docker build . -t opensuse/portus:2.5.1

That's it!

@tienthanh2509
Copy link

tienthanh2509 commented Oct 31, 2019

I am workaround by change entrypoint from /init to /bin/sh /init temporary without rebuild

# docker-compose.yaml
services:
  portus:
    image: opensuse/portus:2.5
    env_file:
      - config/portus.env
    entrypoint:
      - /bin/sh
      - /init

@stale
Copy link

stale bot commented Jan 30, 2020

Thanks for all your contributions!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Jan 30, 2020
@kovetskiy
Copy link

still appears to be not solved

@stale stale bot removed the stale label Feb 3, 2020
@jimmybrancaccio
Copy link

I can confirm this is still not resolved, however using workaround suggested here does get things going.

@Jean-Baptiste-Lasselle
Copy link

Successfully repaired opensuse/portus:2.5 OCI container image

Hi @mdeboer @bretep @invy @stefankip @dkowis This time it's done, I have a solution to use, all details #2241 (comment)

:)

I will read any feedback from you with interest

@stale
Copy link

stale bot commented May 31, 2020

Thanks for all your contributions!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label May 31, 2020
@stale stale bot closed this as completed Jun 7, 2020
@Persi
Copy link

Persi commented Aug 3, 2020

This is still an issue with Imagetag 2.5.

@pciavald
Copy link

this issue still exists...

@9-9-9-9
Copy link

9-9-9-9 commented Mar 26, 2021

Almost 2 years and still no one cares about fixing this

@tienthanh2509
Copy link

Suggest replacing Portus with Habor, since this project seems to be inactive.

https://landscape.cncf.io/card-mode?category=container-registry&grouping=category&selected=harbor

@mdeboer
Copy link
Author

mdeboer commented Apr 6, 2021

+1 for Harbor, works perfectly

@teksturi
Copy link

Still exits.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests