chmod required for start-server.sh and start-microservices.sh #909

Closed
opened 2026-02-04 23:29:24 +03:00 by OVERLORD · 8 comments
Owner

Originally created by @dharapvj on GitHub (Jun 2, 2023).

The bug

latest release 1.59.1 does not allow me to start using podman
this is due to fact that entrypoint start-server.sh and start-microservices.sh does not have execute permissions.

I get below error
Error: crun: open executable: Permission denied: OCI permission denied

If I ls the files in the container.. I see that those files do not have execute permissions

❯ podman run --rm -it --entrypoint /bin/sh ghcr.io/immich-app/immich-server:release
/usr/src/app # ls -ltr
total 844
-rw-r--r--    1 root     root           504 May 30 23:27 start-server.sh
-rw-r--r--    1 root     root           518 May 30 23:27 start-microservices.sh

The OS that Immich Server is running on

podman on ubuntu

Version of Immich Server

v1.59.1

Version of Immich Mobile App

v.1.59.1

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

immich-server:
    image: ghcr.io/immich-app/immich-server:release
    entrypoint: ["./start-server.sh"]
   immich-microservices:
     #container_name: immich_microservices
     image: ghcr.io/immich-app/immich-server:release
     entrypoint: ["./start-microservices.sh"]

Your .env content

NA

Reproduction steps

podman-compose down
podman-compose pull
# make changes to remove /bin/bash in docker-compose.yaml
podman-componse up -d

Additional information

No response

Originally created by @dharapvj on GitHub (Jun 2, 2023). ### The bug latest release 1.59.1 does not allow me to start using podman this is due to fact that entrypoint start-server.sh and start-microservices.sh does not have execute permissions. I get below error Error: crun: open executable: Permission denied: OCI permission denied If I ls the files in the container.. I see that those files do not have execute permissions ```shell ❯ podman run --rm -it --entrypoint /bin/sh ghcr.io/immich-app/immich-server:release /usr/src/app # ls -ltr total 844 -rw-r--r-- 1 root root 504 May 30 23:27 start-server.sh -rw-r--r-- 1 root root 518 May 30 23:27 start-microservices.sh ``` ### The OS that Immich Server is running on podman on ubuntu ### Version of Immich Server v1.59.1 ### Version of Immich Mobile App v.1.59.1 ### Platform with the issue - [X] Server - [ ] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML immich-server: image: ghcr.io/immich-app/immich-server:release entrypoint: ["./start-server.sh"] immich-microservices: #container_name: immich_microservices image: ghcr.io/immich-app/immich-server:release entrypoint: ["./start-microservices.sh"] ``` ### Your .env content ```Shell NA ``` ### Reproduction steps ```bash podman-compose down podman-compose pull # make changes to remove /bin/bash in docker-compose.yaml podman-componse up -d ``` ### Additional information _No response_
Author
Owner

@alextran1502 commented on GitHub (Jun 2, 2023):

Hello @bertmelis, do you run into this issue as well?

@alextran1502 commented on GitHub (Jun 2, 2023): Hello @bertmelis, do you run into this issue as well?
Author
Owner

@bertmelis commented on GitHub (Jun 2, 2023):

Hello @bertmelis, do you run into this issue as well?

No, all is running fine here. Running v1.59.1

@bertmelis commented on GitHub (Jun 2, 2023): > Hello @bertmelis, do you run into this issue as well? No, all is running fine here. Running v1.59.1
Author
Owner

@florihupf commented on GitHub (Jun 2, 2023):

The docker compose file still says entrypoint, shouldn't it be command?

@florihupf commented on GitHub (Jun 2, 2023): The docker compose file still says entrypoint, shouldn't it be command?
Author
Owner

@dharapvj commented on GitHub (Jun 2, 2023):

Can you share your compose.yaml

Also do you run rootless podman?

शुक्र, २, जून २०२३, २२:२७ ला Florian Sauer ने @.***>
लिहीला:

The docker compose file still says entrypoint, shouldn't it be command?


Reply to this email directly, view it on GitHub
https://github.com/immich-app/immich/issues/2645#issuecomment-1574042281,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAOU7HVH5ZQWHLRCYJ6OBBLXJILPNANCNFSM6AAAAAAYYIHFJM
.
You are receiving this because you authored the thread.Message ID:
@.***>

@dharapvj commented on GitHub (Jun 2, 2023): Can you share your compose.yaml Also do you run rootless podman? शुक्र, २, जून २०२३, २२:२७ ला Florian Sauer ने ***@***.***> लिहीला: > The docker compose file still says entrypoint, shouldn't it be command? > > — > Reply to this email directly, view it on GitHub > <https://github.com/immich-app/immich/issues/2645#issuecomment-1574042281>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AAOU7HVH5ZQWHLRCYJ6OBBLXJILPNANCNFSM6AAAAAAYYIHFJM> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@jrasm91 commented on GitHub (Jun 2, 2023):

Does podman run --rm -it --entrypoint /bin/sh ghcr.io/immich-app/immich-server:release start-server.sh work?

@jrasm91 commented on GitHub (Jun 2, 2023): Does `podman run --rm -it --entrypoint /bin/sh ghcr.io/immich-app/immich-server:release start-server.sh` work?
Author
Owner

@bertmelis commented on GitHub (Jun 3, 2023):

Another option is to use these instructions: https://github.com/immich-app/immich/discussions/1912#discussioncomment-5433551

Works without a problem for me. I'm running on Rocky Linux 9.2.

@bertmelis commented on GitHub (Jun 3, 2023): Another option is to use these instructions: https://github.com/immich-app/immich/discussions/1912#discussioncomment-5433551 Works without a problem for me. I'm running on Rocky Linux 9.2.
Author
Owner

@dharapvj commented on GitHub (Jun 6, 2023):

My bad .. I did not realize the compose file also changed from entrypoint to command. After changing that and also upgrading to 1.60.. things are looking fine.

/close

@dharapvj commented on GitHub (Jun 6, 2023): My bad .. I did not realize the compose file also changed from `entrypoint` to `command`. After changing that and also upgrading to 1.60.. things are looking fine. /close
Author
Owner

@florihupf commented on GitHub (Jun 6, 2023):

Heh, that is what I was trying to say earlier :-) Glad it works now!

@florihupf commented on GitHub (Jun 6, 2023): Heh, that is what I was trying to say earlier :-) Glad it works now!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#909