iOS app: Error while getting remote assets and FlutterError - Catch all
Hello! I’m getting errors in the iOS app but the web app is working perfectly.
Photos I take get uploaded to the server (and is visible in the web app) but in the iOS app the cloud icon in the app has a line through it. Also when I take a photo it takes a while before it shows in the iOS app but it’s already uploaded to the web app.
Also all my photos aren’t showing the iOS app. I’ve tried logging in and out. Restarting the server. Tried the host name url and the local ip url in the iOS app.
Running Immich via docker on truenas scale.
iOSlog
Error while getting remote assets
ApiException 400: HTTP connection failed: POST /sync/full-sync (Inner exception: ClientException: Bad file descriptor, uri=http://192.168.68.122:30041/api/sync/full-sync)
#0 IOClient.send (package:http/src/io_client.dart:156)
<asynchronous suspension>
#1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:93)
<asynchronous suspension>
#2 ApiClient.invokeAPI (package:openapi/api_client.dart:96)
<asynchronous suspension>
#3 SyncApi.getFullSyncForUser (package:openapi/api/sync_api.dart:138)
<asynchronous suspension>
#4 AssetService._getRemoteAssets (package:immich_mobile/services/asset.service.dart:150)
<asynchronous suspension>
#5 SyncService._syncRemoteAssetsForUser (package:immich_mobile/services/sync.service.dart:267)
<asynchronous suspension>
#6 SyncService._syncRemoteAssetsFull (package:immich_mobile/services/sync.service.dart:257)
<asynchronous suspension>
#7 SyncService.syncRemoteAssetsToDb.<anonymous closure> (package:immich_mobile/services/sync.service.dart:92)
<asynchronous suspension>
#8 AsyncMutex.run.<anonymous closure> (package:immich_mobile/utils/async_mutex.dart:15)
<asynchronous suspension>
Library: image resource service
Context: Instance of 'ErrorDescription'
19 Replies
:wave: Hey @Nightelf9,
Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:.
References
- Container Logs:
docker compose logs
docs
- Container Status: docker ps -a
docs
- Reverse Proxy: https://immich.app/docs/administration/reverse-proxy
- Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA
Checklist
I have...
1. :blue_square: verified I'm on the latest release(note that mobile app releases may take some time).
2. :blue_square: read applicable release notes.
3. :blue_square: reviewed the FAQs for known issues.
4. :blue_square: reviewed Github for known issues.
5. :blue_square: tried accessing Immich via local ip (without a custom reverse proxy).
6. :blue_square: uploaded the relevant information (see below).
7. :blue_square: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable
(an item can be marked as "complete" by reacting with the appropriate number)
Information
In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider:
- Your docker-compose.yml and .env files.
- Logs from all the containers and their status (see above).
- All the troubleshooting steps you've tried so far.
- Any recent changes you've made to Immich or your system.
- Details about your system (both software/OS and hardware).
- Details about your storage (filesystems, type of disks, output of commands like fdisk -l
and df -h
).
- The version of the Immich server, mobile app, and other relevant pieces.
- Any other information that you think might be relevant.
Please paste files and logs with proper code formatting, and especially avoid blurry screenshots.
Without the right information we can't work out what the problem is. Help us help you ;)
If this ticket can be closed you can use the /close
command, and re-open it later if needed.Can you post the complete app logs? You can share it from the logs page in the mobile app. How many assets do you have? and do you put the app in the background while the assets are being synced?
Thanks I’ve DM’d it to you
Yes the app is in the background
This could be iOS throwing the error then. If possible, can you sign out, remove the app from recents completely, sign back in and keep it in the foreground till all the assets are synced?
I kept it in the foreground overnight (set the lock timer to “never”) and after 12 hours the refresh icon next to Photos on the bottom left finally stopped. I have around 400k photos. Thanks for your help!
I tried to do it all over again but with my FDQN Immich.domain.com but I get gateway 504. I’m running it through nginx proxy manager and authentik OIDC. The timeout is set to 600s in npm advanced settings . Is there a work around with this or is the best way to access remotely through Tailscale at the moment?

Can you share the timeout configuration from npm?
client_max_body_size 50000M;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_redirect off;
proxy_connect_timeout 600s;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
send_timeout 600s;

Im also using authentik OIDC if that matters
NPM cannot access the host network interface, so using 192.168.X.X here won't work. Make sure both npm and immich are part of the same docker network and use
immich_server
as the host name and the proper portI created a new instance of Immich and restored a backup. npm and Immich stack are on same docker network but I still get error 504. Is the corruption in the db? Maybe I need to start fresh?
I used a docker compose yaml file instead of the truenas App Store install and mapped media volumes
I have a similar issue. The web view is working perfectly fine and showing all my assets, but not the mobile app. I have attached the logs from the mobile app.
I have already tried suggestions from the github issues section, like checking in the database if there are invalid dates, but I have found none of my assets are older than 2015.
I have also deleted and restarted the external library import as all my assets are in an external library. Any ideas?
Can you re-run the queries from the github issues section because the error still points out that it failed when parsing fileCreatedAt field. Kindly ensure none of the dates have an invalid value
I ran
I don't see any error.
What am I missing?

Can you help check if any of those fields is null?
There might be a bug in the code
There we go, found them.
Should I delete them from the db?

Went ahead and deleted the null records. Fixed the issue.
Do you know if the metadata extraction job was running then interrupted at one point?
If possible, do you mind zip up one of those file, like
IMG_5245.mp4
then DM me? the file?