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

[BUG] iOS 16 - app won't load images or videos #686

Closed
4 tasks done
Sid-Sun opened this issue Sep 13, 2022 · 23 comments · Fixed by #691
Closed
4 tasks done

[BUG] iOS 16 - app won't load images or videos #686

Sid-Sun opened this issue Sep 13, 2022 · 23 comments · Fixed by #691
Labels
bug Something isn't working needs triage Bug that needs triage from maintainer

Comments

@Sid-Sun
Copy link

Sid-Sun commented Sep 13, 2022

iOS and iPadOS apps won't load images and videos ever since I did bulk upload of images and videos using CLI

The app is working fine on android and web

Server details:
i7 7700HQ
16 GB Memory
Data is saved on HDD

iPad 8th Gen
iPhone 13
App version: 1.28.3 build.56
Server version: 1.28.3

  • I have read thoroughly the README setup and installation instructions.
  • I have included my docker-compose file.
  • I have included my redacted .env file.
  • I have included information on my machine, and environment.

To Reproduce
Steps to reproduce the behavior:

  1. Set up service
  2. Use CLI to bulk upload Google Photos Takeout photos and videos to server
  3. iOS App won't load images and videos anymore

Expected behavior
Apps continue to work, showing new images and videos

Screenshots
image
image

System

  • Phone OS [iOS, Android]: iOS 16, Android 12
  • Server Version: 1.28.3
  • Mobile App Version: 1.28.3

Additional context
Since the initial symptom, iOS App also sometimes complains about invalid credentials (might be related to network - connected over Tailscale), re-install does not seem to fix the problem

@Sid-Sun Sid-Sun added bug Something isn't working needs triage Bug that needs triage from maintainer labels Sep 13, 2022
@alextran1502
Copy link
Contributor

Can you try the two things here?

  1. Clear the cache in the cache setting in the app.
  2. Try using local IP to access the instance.

Let me know how it goes.

@alextran1502
Copy link
Contributor

Also, have you tried restart the server? Please include the server log when you are browsing the file if you can.

Did you change any user permission in your docker-compose file?

@Sid-Sun
Copy link
Author

Sid-Sun commented Sep 13, 2022

Hi!

I've tried to clear the cache as well as reinstall the app, it does not help
Tried using local IP directly

I have restarted the server (did it while upgrading today evening and now, images were uploaded before update) here is what i see on immich-immich-server-1:

immich-immich-server-1            | [Nest] 7  - 09/13/2022, 8:02:45 PM     LOG [WebsocketConnectionEvent] New websocket connection: PZ_eZKBt3tQxWhgaAAAB
immich-immich-server-1            | [Nest] 7  - 09/13/2022, 8:03:23 PM     LOG [WebsocketConnectionEvent] Client PZ_eZKBt3tQxWhgaAAAB disconnected from Websocket
immich-immich-server-1            | [Nest] 7  - 09/13/2022, 8:03:28 PM     LOG [createDeviceInfo] Device Info Exist
immich-immich-server-1            | [Nest] 7  - 09/13/2022, 8:03:28 PM     LOG [WebsocketConnectionEvent] New websocket connection: N_XxIYYk5ujCWK3pAAAD

full logs, docker compose and redacted .env

the docker-compose file is unchanged other than enabling logging for proxy container

EDIT: It seems backup from iOS is still working, I can see a few recent videos which were backed up

@alextran1502
Copy link
Contributor

We just got similar report on Discord with iOS16 might be the problem here. I updated to iOS16 as well but didn't see any weirdness along with a few others. This might be a bug in the OS. I will keep my eyes out for the additional info from Apple

@alextran1502
Copy link
Contributor

Did you also test on your Android and it is not showing up as well?

@ExcelsiorEyer
Copy link

Just want to add that this is not a one-off case and I’ve been facing the same issue since upgrading to iOS16. Nothing interesting showing up on the logs.

However in some cases clicking on the failed thumbnails is a hit or miss. It shows the image sometimes and the rest of the time takes you back to the login page where it doesn’t accept credentials with error “Error logging you in. Check user/password/url”.

Wait a bit and then the login works but the thumbnail load is wonky still and the issue still remains with some images loading and some not.

For good measure I tried clearing cache, restarting the entire stack but no luck so far.

@alextran1502
Copy link
Contributor

@ExcelsiorEyer Thank you for the report, iOS16 was just out yesterday so obviously there is something going on.

@alextran1502
Copy link
Contributor

AND I JUST GOT PAWNED AS WELL! GOOD!!! TIME TO DEBUG

@Sid-Sun
Copy link
Author

Sid-Sun commented Sep 14, 2022

Did you also test on your Android and it is not showing up as well?

It is showing up on Android, I guess only iOS and iPads are impacted

@martabal
Copy link
Member

Same problem with iOS 16

@alextran1502
Copy link
Contributor

alextran1502 commented Sep 14, 2022

Update on the matter, I updated XCode 14 and build the new version of the app, when loading an instances with existing asset, there were strange error that the image cannot be decoded and therefore skip displaying those images.

Will keep you guys updated with this issue

@alextran1502 alextran1502 changed the title [BUG] iOS app won't load images or videos [BUG] iOS 16 - app won't load images or videos Sep 14, 2022
@alextran1502
Copy link
Contributor

Found the issue, the cache manager somehow cannot open the cache on iOS16 - therefore all the cache images cannot be read/write which lead to the error.

@ExcelsiorEyer
Copy link

ExcelsiorEyer commented Sep 14, 2022

This fix didn’t seem to have worked. Thumbnails show up and then starts to disappear. Cache image count keeps fluctuating up and down.

Let me know if you need any specific information to triage this further.

FE1F3FD9-236F-43AE-9760-E313B0755247
5A35DC63-D02C-47EC-8715-E3ACA8D4D11C

@alextran1502
Copy link
Contributor

@ExcelsiorEyer the new version is not out yet, it is still being reviewed by Apple 😅

@ExcelsiorEyer
Copy link

Well isn’t this embarrassing 😳. I didn’t pay attention to the fix to the iOS app and was looking at the server version. Thanks for the quick fix.

@alextran1502
Copy link
Contributor

Apple is being a nuisance, they reject the app because the shared with partner button is grayed out... It has been grayed out for the last 30 versions or so. I have to resubmit the app version with the explanation so that it might be delayed a bit, it is probably available later today

@ExcelsiorEyer
Copy link

Tested with the new app. Can confirm that the issue is resolved. Thank you!

@pcgirl
Copy link

pcgirl commented Sep 23, 2023

IOS 17.0.1 is having a problem with Local Connection. Can connect using the app from outside the local connection. Can connect using a browser on iphone when connected locally. But the app won't connect when connected locally. Gives a "Server is not Reachable". I looked into the Local Network settings under Privacy & Security but immich isn't in there.

@alextran1502
Copy link
Contributor

@pcgirl when you first use the app to access local instance with local IP, it will ask for permission to access local network, please make sure to allow that. You can restart the app to make sure accepting that permission

@pcgirl
Copy link

pcgirl commented Sep 23, 2023

I did and I Allowed but it still says server is unreachable. I have tried it both with using the ip address IE: http://192.168.1.100:2238 and also using my dyndns server address. http://domain.dyndns.org:2238

@alextran1502
Copy link
Contributor

@pcgirl please try http://192.168.1.100:2238/api

@pcgirl
Copy link

pcgirl commented Sep 24, 2023

I did try it that way as well. Still says server unreachable.

@alextran1502
Copy link
Contributor

@pcgirl are your phone on the correct network?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage Bug that needs triage from maintainer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants