Uploading in Android app not working

This is on the heels of this issue: https://discord.com/channels/979116623879368755/1437242688398295223 So I am not sure if they are interrelated. The Android app is connecting fine on my phone and my wife's. But now cannot upload images from the app. I have tried through proxy on cell data, proxy on WiFi/LAN and port 2283 direct on WiFi/LAN. I select a photo from my photo app or elsewhere and share, but once I hit the upload button, I just sits on 0/0 Uploaded and then times out back to the blue upload button. Uploading view desktop/web through proxy works fine. Screenshots coming shortly:
44 Replies
Immich
Immich2w ago
:wave: Hey @fongaboo, 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. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: read applicable release notes. 3. :ballot_box_with_check: reviewed the FAQs for known issues. 4. :ballot_box_with_check: reviewed Github for known issues. 5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy). 6. :ballot_box_with_check: 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.
fongaboo
fongabooOP2w ago
No description
No description
No description
No description
NoMachine
NoMachine2w ago
could you please share the logs from the app
fongaboo
fongabooOP2w ago
yeah im getting all the requisite stuff together for you.
fongaboo
fongabooOP2w ago
No description
fongaboo
fongabooOP2w ago
So when I fixed the other issue, I started with the default nginx config recommended on your docs. And then added stuff back in.
fongaboo
fongabooOP2w ago
I had the same, or at least a similar issue, when I first installed Immich and the Android app. I solved it by adding: # enable GET/HEAD/POST directives if ($request_method !~ ^(GET|HEAD|POST)$ ) { return 405; } But adding it back this time did not seem to help. I will BRB. Will provide more required assets.
Zeus
Zeus2w ago
I think we should focus on testing with local host port 2283 before adding more complexity 🙂
fongaboo
fongabooOP2w ago
Makes sense! Recently upgraded to 2.2.3. But couldn't test the app right after cuz I was still trying to remedy this problem: https://discord.com/channels/979116623879368755/1437242688398295223 System Info: BARE METAL: Manufacturer: HP Product Name: ProLiant DL360 Gen9 Distributor ID: Debian Description: Debian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye KVM GUEST: Manufacturer: QEMU Product Name: Standard PC (Q35 + ICH9, 2009) Version: pc-q35-5.2 Distributor ID: Ubuntu Description: Ubuntu 24.04.3 LTS Release: 24.04 Codename: noble
fongaboo
fongabooOP2w ago
Android app is 2.2.3 So I am able to upload from desktop/browser on port 2283 Is the only way to upload on the Android app to share from another app?
Mraedis
Mraedis2w ago
How the heck does that solve it? It just breaks it more Is your desktop/browser also the host?
fongaboo
fongabooOP2w ago
No. Browsing on another desktop on my LAN
Mraedis
Mraedis2w ago
What android do you have? What network gear?
fongaboo
fongabooOP2w ago
Perhaps. But since the upload problem happens direct to port 2283, no use in troubleshooting nginx proxy yet. Pixel 6 and Pixel 10. Ubiquiti EdgeRouter and an HP managed switch. There is a trunk going to another TP-Link managed switch. One WAP is on the HP side and another WAP is on the TP-link side.
Mraedis
Mraedis2w ago
Can you think of any path the wifi takes that is different from the wired ones? Assuming your desktops are all wired
fongaboo
fongabooOP6d ago
No. But are there logs I could watch in real time while I upload from desktop on LAN vs. Android on LAN (WiFi)? Anything in here that gives us a clue? Just wanted to check in on this. Would love to get going with Immich as my primary photo manager.
Zeus
Zeus6d ago
Sorry. It’s very hard to help with this because it’s not an immich related issue and we don’t really know how your network is setup I think you should start flattening your network topology (both VLANs and hardware) until it resolves to find the issue Can you reach immich using the mobile browser on the phone? At port 2283?
TAC
TAC6d ago
I had a similar issue. The android app was logging SQLite constraint issues (memory_asset_id or similar). Logging out and in again solved the issue for me. I guess schema migration only occurs at that point.
fongaboo
fongabooOP5d ago
Logging in and out of the immich app? I would still contend that it is Immich related. Although I first started concerning myself with the nginx config, the upload problem occurs when connecting directly to port 2283.
Zeus
Zeus5d ago
I’m still confused tbh, on the mobile device, what happens in the mobile browser?
fongaboo
fongabooOP5d ago
I tried desktop browser connected to Port 2283. Uploads did work. But let me try Chrome on Android on Port 2283. I'm not home right now so I will try it within the hour. I appreciate all your help! Reporting back... I can upload from my phone in Chrome for Android while on my LAN connecting to HTTP on port 2283 and upload an image. Next while still on the Wi-Fi of my LAN, I connected VIA HTTPS through the nginx proxy and was able to upload an image via Chrome on my Android device Lastly, I connected to cell data only, connected to the proxy on nginx via https, and uploaded photos successfully. So this problem is squarely with the app itself. Or something about the server and how it is interacting with the app? And perhaps websockets? But the problem happens only with the app. And it happens when connected through proxy on my Wi-Fi or cell data. And it also happens when on my Wi-Fi connecting directly to Port 2283 via http. So one has to conclude that the problem is with the app. Or at least solely involves the app.
fongaboo
fongabooOP5d ago
I feel like I've done this several times before but I tried one more time: I force quit the Android app, I cleared cache and storage. I started the app from scratch. I connected via Wi-Fi on my lan to http://photos.fongaboo.com:2283 Logged in and then shared a photo to immich
No description
No description
No description
No description
No description
No description
No description
No description
fongaboo
fongabooOP5d ago
It just hangs and then goes back to the upload button. There is no green check mark showing that the image was received successfully. It is a gray check mark but when going to photos it's clear that the photo did not upload. Just to be really thorough, I then tried accessing via the app on my Wi-Fi via my lan via HTTP on Port 2283 using the local IP address instead of a host name. Not that that should make any difference because that hostname resolves to a local IP. As long as you are on my Wi-Fi. It still did not work.
Mraedis
Mraedis5d ago
How are you serving https
fongaboo
fongabooOP5d ago
nginx i am flummoxed why the app is no longer uploading images via HTTP on port 2283 however.
NoMachine
NoMachine5d ago
well... if you add the apps logs it would be more helpful. and your nginx config too
fongaboo
fongabooOP5d ago
I had added app logs. But in case something new popped up, here are some from now:
fongaboo
fongabooOP5d ago
I'm guessing this background worker canceled error might be related?
No description
fongaboo
fongabooOP5d ago
Some have suggested that I not focus on nginx at all yet. I am inclined to agree. This is due to the fact that I am connecting on my LAN directly to port 2283 from the app, and uploading fails. However, since they were requested, here is my nginx proxy config file.
fongaboo
fongabooOP5d ago
And is this another clue?: Using server URL: null ApiException 401 (unauthorized) ApiException 301 (moved permanently) Background worker cancelled
NoMachine
NoMachine5d ago
I wonder, why are you using port 2283 in your app? when the proxy is listening in 443
fongaboo
fongabooOP4d ago
If you look at earlier in this ticket, the automated prerequisites designate that you do that. And even make you check off a list item that you did that. Earlier in the chat folks urged me further to do that and not focus on nginx/proxy/443 until I could solve the problem with Immich itself on 2283.
Mraedis
Mraedis4d ago
Did you also move to direct IP @fongaboo ? because I don't understand how else you would get 301s on 2283
Alex Tran
Alex Tran4d ago
they are not related
TAC
TAC3d ago
Yes But reading all this thread shows you have different issues.
fongaboo
fongabooOP13h ago
are you seeing those in the app logs? I see an update to 2.3.1 for server. And update in Play store hope that fixes things. Lemme look what versions I was using when I first started this ticket. I FIXED IT! Immich is running on a KVM VM. Initially the Ubuntu guest OS was only on a 20GB volume. I had grown the qcow, the guest LVM volume, and the PV. But somehow never grew the filesystem from 20G to 200G. all the thumbnails and other housekeeping stuff likely filled the disk.
Mraedis
Mraedis12h ago
good think you found it 👍
fongaboo
fongabooOP5h ago
It may have also been this... Immich 2.3.0 Release Notes https://github.com/immich-app/immich/releases/tag/v2.3.0 Relevant entries: Fix: Background worker not starting properly
Fix background worker sometimes not restarting on mobile.
log showed: BackgroundWorkerBgService | Background worker cancelled Fix: Token / session handling issues
Fixes for token refresh logic causing unauthorized sync errors.
Issue: Upload stuck at “queued” https://github.com/immich-app/immich/issues/10012
Uploads stuck in queue until app restart; fixed in 2.3.0.
🔗 Issue: Share sheet 0/0 uploaded https://github.com/immich-app/immich/issues/9884
Share-intent uploads fail silently; resolves in 2.3.x.
🔗 Issue: Background worker dies silently https://github.com/immich-app/immich/issues/10043
Background worker crashing / never restarting; fixed in mobile 2.3.0.
🔗 Issue: Sync stream randomly disconnects https://github.com/immich-app/immich/issues/9421
Mobile sync stream breaks under certain server/API combinations.
Immich
Immich5h ago
[Issue] immich app crashes while backing up on iphone (immich-app/immich#9884) [Pull Request] Update portainer install docs (immich-app/immich#9421)
fongaboo
fongabooOP5h ago
How do I mark this solved?

Did you find this page helpful?