immich-app / immich

High performance self-hosted photo and video management solution.
https://immich.app
GNU Affero General Public License v3.0
51.09k stars 2.7k forks source link

[BUG] iOS: iPhone 13 Pro - unable to backup images #3784

Closed thelordtourette closed 7 months ago

thelordtourette commented 1 year ago

The bug

Similar to the original issue from https://github.com/immich-app/immich/issues/2677 , the backup page is stuck on loading forever on my iPhone 13 Pro. The backup on my iPad Pro 2021 works without an issue.

The issued exists since I started using Immich with v1.61.0

When comparing the logs in the Immich app on both devices, I can not find any logs for the album service on my iPhone 13 Pro compared to my iPad Pro 2021.

The immich app has full access to all pictures on both devices and none of the pictures are stored on iCloud. Reinstalling the app didn't work either.

The Log export on my iPad sadly didn't work.

Please let me know if I can assist you in any way.

The OS that Immich Server is running on

Docker on Ubuntu 22.04

Version of Immich Server

v1.74.0

Version of Immich Mobile App

v1.73.0

Platform with the issue

Your docker-compose.yml content

Should not be needed but i can attach if needed

Your .env content

Should not be needed but i can attach if needed

Reproduction steps

1.Use an iPhone 13 Pro
2. Try to select a backup albums

Additional information

iPhone Logs: created_at,level,context,message,stacktrace 2023-08-19 13:22:55.752045,LogLevel.FINE,"socket_io_client:engine.Socket","flushing 1 packets in socket","" 2023-08-19 13:22:55.751967,LogLevel.FINE,"socket_io_client:engine.Socket","socket receive: type "ping", data "null"","" 2023-08-19 13:22:55.750817,LogLevel.FINE,"socket_io_client:engine.Socket","flushing 1 packets in socket","" 2023-08-19 13:22:55.750627,LogLevel.FINE,"socket_io_client:engine.Socket","socket receive: type "ping", data "null"","" 2023-08-19 13:22:42.035858,LogLevel.INFO,"AssetNotifier","Load assets: 92ms","" 2023-08-19 13:22:34.161056,LogLevel.INFO,"BackupNotifier","Found 27 local albums","" 2023-08-19 13:22:33.288341,LogLevel.INFO,"BackupNotifier","Found 27 local albums","" 2023-08-19 13:22:30.752995,LogLevel.INFO,"AssetNotifier","Load assets: 183ms","" 2023-08-19 13:22:30.659581,LogLevel.FINE,"socket_io_client:engine.Socket","socket receive: type "message", data "0{"sid":"mDngiDLVN3mXeM7BAAA1"}"","" 2023-08-19 13:22:30.658674,LogLevel.FINE,"socket_io_client:engine.Socket","socket receive: type "message", data "0{"sid":"63PrKBiadlMftRO1AAA0"}"","" 2023-08-19 13:22:30.651105,LogLevel.FINE,"socket_io_client:engine.Socket","flushing 1 packets in socket","" 2023-08-19 13:22:30.651100,LogLevel.FINE,"socket_io:parser.Encoder","encoded {type: 0, nsp: /} as 0","" 2023-08-19 13:22:30.651091,LogLevel.FINE,"socket_io:parser.Encoder","encoding packet {type: 0, nsp: /}","" 2023-08-19 13:22:30.651087,LogLevel.FINE,"socket_io_client:Manager","writing packet {type: 0, nsp: /}","" 2023-08-19 13:22:30.651081,LogLevel.FINE,"socket_io_client:Socket","transport is open - connecting","" 2023-08-19 13:22:30.651075,LogLevel.FINE,"socket_io_client:Manager","cleanup","" 2023-08-19 13:22:30.651072,LogLevel.FINE,"socket_io_client:Manager","open","" 2023-08-19 13:22:30.651067,LogLevel.FINE,"socket_io_client:engine.Socket","socket open","" 2023-08-19 13:22:30.651037,LogLevel.FINE,"socket_io_client:engine.Socket","socket receive: type "open", data "{"sid":"X0zmr1K1R1vqvXsmAAAz","upgrades":[],"pingInterval":25000,"pingTimeout":20000,"maxPayload":1000000}"","" 2023-08-19 13:22:30.650615,LogLevel.FINE,"socket_io_client:engine.Socket","flushing 1 packets in socket","" 2023-08-19 13:22:30.650604,LogLevel.FINE,"socket_io:parser.Encoder","encoded {type: 0, nsp: /} as 0","" 2023-08-19 13:22:30.650591,LogLevel.FINE,"socket_io:parser.Encoder","encoding packet {type: 0, nsp: /}","" 2023-08-19 13:22:30.650586,LogLevel.FINE,"socket_io_client:Manager","writing packet {type: 0, nsp: /}","" 2023-08-19 13:22:30.650577,LogLevel.FINE,"socket_io_client:Socket","transport is open - connecting","" 2023-08-19 13:22:30.650539,LogLevel.FINE,"socket_io_client:Manager","cleanup","" 2023-08-19 13:22:30.650534,LogLevel.FINE,"socket_io_client:Manager","open","" 2023-08-19 13:22:30.650527,LogLevel.FINE,"socket_io_client:engine.Socket","socket open","" 2023-08-19 13:22:30.650474,LogLevel.FINE,"socket_io_client:engine.Socket","socket receive: type "open", data "{"sid":"m-LpOMnF9ze-4M8hAAAy","upgrades":[],"pingInterval":25000,"pingTimeout":20000,"maxPayload":1000000}"","" 2023-08-19 13:22:30.571035,LogLevel.FINE,"socket_io_client:Manager","readyState opening","" 2023-08-19 13:22:30.571027,LogLevel.FINE,"socket_io_client:Manager","connect attempt will timeout after 20000","" 2023-08-19 13:22:30.571018,LogLevel.FINE,"socket_io_client:engine.Socket","setting transport websocket","" 2023-08-19 13:22:30.570927,LogLevel.FINE,"socket_io_client:engine.Socket","creating transport "websocket"","" 2023-08-19 13:22:30.570910,LogLevel.FINE,"socket_io_client:Manager","opening https://photo.example.com","" 2023-08-19 13:22:30.570904,LogLevel.FINE,"socket_io_client:Manager","readyState closed","" 2023-08-19 13:22:30.570890,LogLevel.FINE,"socket_io_client","ignoring socket cache for https://photo.example.com","" 2023-08-19 13:22:30.555269,LogLevel.FINE,"socket_io_client:Manager","readyState opening","" 2023-08-19 13:22:30.555256,LogLevel.FINE,"socket_io_client:Manager","connect attempt will timeout after 20000","" 2023-08-19 13:22:30.555234,LogLevel.FINE,"socket_io_client:engine.Socket","setting transport websocket","" 2023-08-19 13:22:30.554897,LogLevel.FINE,"socket_io_client:engine.Socket","creating transport "websocket"","" 2023-08-19 13:22:30.554860,LogLevel.FINE,"socket_io_client:Manager","opening https://photo.example.com","" 2023-08-19 13:22:30.554847,LogLevel.FINE,"socket_io_client:Manager","readyState closed","" 2023-08-19 13:22:30.554790,LogLevel.FINE,"socket_io_client","ignoring socket cache for https://photo.example.com",""

monkeyhead commented 1 year ago

Same issue here. 13 Pro Max. I can not see device albums within Immich app, permissions present.

jacob-seiler commented 1 year ago

Same issue here. iPhone 13 (not pro). Permissions granted, stuck forever loading folders to select for backup.

BigCheeZ commented 1 year ago

Same issue here on iPhone 14 Pro Max. App Version is 1.75.1 build.115 Server version is 1.76.0

ultimatejedi commented 1 year ago

Same here. There are a few pieces of information that I can add.

I enabled "Troubleshooting" and also increased the log level to "FINE". In the logs, on my iPhone 13 Pro MAX shows 3 consecutive errors. However, the errors are essentially blank. See screenshot below. Everything before and after look normal.

image

mjh2901 commented 1 year ago

Same Issue Iphone XS, never shows the albums just the spinning curser.  I have icloud turned off.

alextran1502 commented 1 year ago

Hello is this issue still relevance?

thelordtourette commented 1 year ago

Hi, using immich server and mobile version v1.83.0 and the issus still persists.

gvanderclay commented 12 months ago

I've also encountered the sync issue on my iPhone. Interestingly, if I set the Immich app to have limited access to my photos, syncing works for the selected items. However, switching to full photo access causes the app to stop finding and syncing albums altogether. This might indicate a permissions handling problem when set to full access.

benjamin051000 commented 11 months ago

Just caught the bug 😷 on version 1.88.2. The "Select Albums" page hangs while loading and I see this in the logs:

"Not found albums or assets on the device to backup" from "BackupNotifier"


Okay, I'm unsure of what I did but after force closing the app a few times and deleting the logs, and deleting a few photos (maybe it's because I'm low on storage?) it now sees my albums.

AlexAichinger commented 11 months ago

I have had this issue intermittently. Since my setup is still fairly volatile, I recently started from scratch again and now have the issue again. In the past it seemed to resolve itself somehow, however this time around I can not get it solved.

I have noticed the following behaviour: Go to backup screen with currently no albums selected -> the logs show that 57 albums are found Go to select the backup album -> the logs say that no albums can be found

Please let me know if I can provide more information.

app version: 1.90.0 build.130

thelordtourette commented 7 months ago

The recent version 1.99.0 for mobile and server fixed the issue for me.