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

Unable to login with default information + image uploads fail #684

Closed
ZuluWhiskey opened this issue Jul 21, 2023 · 6 comments
Closed

Unable to login with default information + image uploads fail #684

ZuluWhiskey opened this issue Jul 21, 2023 · 6 comments
Labels
bug Reports of unexpected problems or errors third party Relies on or blocked by a third party (dependency, vendor, platform, etc.)
Milestone

Comments

@ZuluWhiskey
Copy link

Tried setting this up with docker and I'm getting some off behaviour - I'm sure I've done something wrong but I have no idea what that is!

Docker version

24.0.4, build 3713ee1

Ubuntu version

Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04
Codename: focal

Docker Compose YAML

version: '2.1'

services:
  babybuddy:
    image: lscr.io/linuxserver/babybuddy
    container_name: babybuddy
    environment:
      - TZ=Europe/London
      - PUID=981
      - PGID=981
      - DEBUG=1
    volumes:
      - ./config:/config
    ports:
      - 8000:8000
    restart: unless-stopped

Issue

After pulling the container and starting it, I am unable to login with admin/admin. To get around this issue, I did a chmod -r 777 to the config directory and this then allowed me to log in. So this looks like some sort of permissions issue but I'm not sure what/why

Once logged in, I tried to add a child but for this I also got an error - 500 server error without debug enabled, with debug enabled I get module 'PIL.Image' has no attribute 'ANTIALIAS' - See debug output here

I have lots of other containers running on my system without these sorts of issues so I'm assuming it's some quirk for this application that I've perhaps missed somewhere, so apologies in advance for my ignorance!

@cdubz
Copy link
Member

cdubz commented Jul 21, 2023

I’ll give this a test when I can but in the meantime you may want to repost this over at https://github.com/linuxserver/docker-babybuddy/issues. The LSIO folks who manage the Baby Buddy image are very helpful… and much more knowledgeable about Docker than I 😃

@aptalca
Copy link

aptalca commented Jul 21, 2023

We hit the Pillow issue on another image as well. It seems the latest Pillow version deprecated antialias so the upstream projects would need to be updated for compatibility (or the pillow version pinned to older).

@cdubz
Copy link
Member

cdubz commented Jul 21, 2023

Ah thanks @aptalca. I’ll take a look. Do you have a ref for where you saw this previously? Curious what version of Pillow to look for.

@aptalca
Copy link

aptalca commented Jul 22, 2023

Just this issue report for our beets image: linuxserver/docker-beets#107

Pillow's changelog also mentions the removal of that constant: https://pillow.readthedocs.io/en/stable/releasenotes/10.0.0.html#constants

@ZuluWhiskey
Copy link
Author

I’ll give this a test when I can but in the meantime you may want to repost this over at https://github.com/linuxserver/docker-babybuddy/issues. The LSIO folks who manage the Baby Buddy image are very helpful… and much more knowledgeable about Docker than I 😃

Forgot to actually reply - Thanks very much, I've raised an issue over there too but can obviously see that you're already discussing here too 👍

@cdubz cdubz closed this as completed in a950c18 Jul 29, 2023
@cdubz
Copy link
Member

cdubz commented Jul 29, 2023

Ok fixing this for now by locking Pillow at 9.5.0.

See matthewwithanm/django-imagekit#566 and matthewwithanm/pilkit#64. It looks like both of those packages may be abandoned but we'll give it some time before looking for a replacement. I'll open a separate issue to track that.

I'll cut a new 2.0.4 release this this fix (and the login fail should be fixed in 2.0.3).

@cdubz cdubz added this to the 2.0.4 milestone Jul 29, 2023
@cdubz cdubz added bug Reports of unexpected problems or errors third party Relies on or blocked by a third party (dependency, vendor, platform, etc.) labels Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Reports of unexpected problems or errors third party Relies on or blocked by a third party (dependency, vendor, platform, etc.)
Projects
None yet
Development

No branches or pull requests

3 participants