Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker: Permission issues in new Ubuntu 21.04 base image #1301

Closed
royaltongue opened this issue May 19, 2021 · 13 comments
Closed

Docker: Permission issues in new Ubuntu 21.04 base image #1301

royaltongue opened this issue May 19, 2021 · 13 comments
Assignees
Labels
bug Something isn't working released Available in the stable release

Comments

@royaltongue
Copy link

royaltongue commented May 19, 2021

Photoprism container was working perfectly fine this afternoon, and I noticed a few minutes ago that a WebDAV upload failed.

Checked the container logs and saw error:
/entrypoint.sh: line 37: photoprism: command not found

I've tried pulling the latest image and recreating through Portainer, but no luck

@lastzero
Copy link
Member

You think it's a problem with our update? Does it update automatically? Can you try an older version? Intel or ARM CPU?

@royaltongue
Copy link
Author

royaltongue commented May 19, 2021

I don't have Watchtower running on this stack, so I'm not sure what caused it actually

What image tag should I use?

Intel CPU

@lastzero
Copy link
Member

lastzero commented May 19, 2021

Here's a list of all available images (tagged by date, which is the version):

https://hub.docker.com/r/photoprism/photoprism

Previous version is photoprism/photoprism:20210505

@lastzero lastzero self-assigned this May 19, 2021
@lastzero lastzero added the technical-support Support request label May 19, 2021
@royaltongue
Copy link
Author

20210505 spins up without any errors

@lastzero
Copy link
Member

lastzero commented May 19, 2021

Then it might be the new Ubuntu version which has other permission defaults :/ We're going to look into this! In the meantime, you might have to change permissions inside the Docker image manually in a terminal. See docs / docker-compose.yml file for how to open one.

@lastzero lastzero changed the title /entrypoint.sh: line 37: photoprism: command not found Docker: Permission issues in new Ubuntu 21.04 base image May 19, 2021
@lastzero lastzero added bug Something isn't working and removed technical-support Support request labels May 19, 2021
@a13xie
Copy link

a13xie commented May 19, 2021

I just ran into this too. Also x86 Linux.

@lastzero
Copy link
Member

Seems /photoprism wasn't world executable after upgrading Ubuntu. What user are you running the container as?

@lastzero lastzero added the please-test Ready for acceptance test label May 20, 2021
@lastzero
Copy link
Member

Started a preview build for testing: https://drone.photoprism.app/photoprism/photoprism/1361

@a13xie
Copy link

a13xie commented May 20, 2021

Seems /photoprism wasn't world executable after upgrading Ubuntu. What user are you running the container as?

I created a user for running multimedia services (Transmission, Jellyfin, Photoprism, etc.) to avoid media permission issues. user: 1002:1002

@lastzero
Copy link
Member

So, is it working now?

@royaltongue
Copy link
Author

Yep, preview image is good

@a13xie
Copy link

a13xie commented May 20, 2021

So, is it working now?

Just had a chance to test, yes it works fine with the preview image.

@lastzero lastzero added released Available in the stable release and removed please-test Ready for acceptance test labels May 20, 2021
@lastzero
Copy link
Member

Thanks for testing! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released Available in the stable release
Projects
Status: Released 🌈
Development

No branches or pull requests

3 participants