currently processing stuck on one photo
I have A-Eye running which is stuck on a photo. if i go into a see all photos and i ask it to repurpose say 10 photos it does that but the pending photos around 39000 are stuck. it had processed just over 3000, i did have to stop all docker containers and restarted them. i dont see anything in the logs.
I have the same issue - I had to reboot the machine Ollama was running on, and A-Eye seems to have 'lost its place'. Ollama is confirmed as reconnected, but nothing is progressing. Also nothing in the logs.
With a little debugging help from its namesake :), it looks like that image was left marked as processing in the DB. After the container restart, A-Eye did not repopulate the worker queue from the existing pending rows, or retry the 'processing' image. So the app now looks busy, but is actually idle with stale DB state.
I was able to 'unstick' it by:
- Stop the container
- Back up the DB
- Check for 'processing' images.
- Change state of 'processing' to 'pending'
- Start container.
- Wait for it to resume. It didn't.
Command to check for 'processing':
sqlite3 -header -column photo_renamer.db "
select id, original_filename, file_path, status
from images
where status = 'processing';
"
Command to reset status (use the image ID you got from the command above):
sqlite3 photo_renamer.db "
update images
set status = 'pending',
processed_at = null,
error_message = null
where id = {imageID}
and status = 'processing';
"
Unfortunately it won't just resume after this. We need some way to shift 'pending' items back into the queue itself. I had an agent slap something together which seems to work, but it's obviously a workaround for the root cause. If you want, I can open a PR but I didn't want to without prior agreement.
I love this clever app! It's beavering away adding sidecars to all my Immich files, and thanks for putting it together.
if i set the status of in_queue in the database to 1 for those that the status is pending then i can go page for page and reprocess without context but that does 50 at a time.
Similar issue here. 33k photos... stuck at 18k processed and not budging. Webui has really slowed down too.
I have the same issue, my server crashed, and once I restarted everything its stuck at processing, and no more are being processed...
ok so Im not the only one with these issues. App has been stuck for weeks
Turns out I'm just an idiot - My queue finished successfully after running it WITHOUT the interruption of an appdata backup. Striking my previous comments on the queue being stuck and opening a separate issue for the webui.
+1'ing this issue. It processed over 31K photos, but stopped with 16K stuck as pending. Nothing in the logs indicate what caused/is causing the log-jam. I can manually "reprocess" these images one at a time, and the system does move them from the "pending" to "completed" tabs successfully. My UI has also slowed significantly.
Potentially related - the dashboard stopped updating on the latest version as well. The status bar for Processing Progress is stuck "calculating" and never updates, even with small queues of photos. The "worker" status on the bottom left of the dashboard only shows "loading" and there are no image previews shown during processing. On the previous version, the "workers" showed 1-4, and an equal number of image previews popped across the dashboard as they were processed.
Happy to provide logs or anything else to troubleshoot.
Update: I was going through my workflow and realized I had an appdata backup scheduled overnight that would have closed/rebooted A-Eye whilst it was processing images. I ran a new round of metadata processing on 18K images, then restarted the container. A-Eye opens and the webUI looks like it's functioning, but it doesn't do anything when I try to scan a new folder of unprocessed images. I'm going to delete photo_renamer.db and start again to see if it will process all of my images without an appdata backup interrupting it overnight.
I still don't see any indications in the logs, but I'm wondering if restarting the container causes some sort of disconnect with the photo_renamer.db? The issue seems to be potentially related to rebooting the container, whether actively processing or not.
Sorry it's taken so long to get to this one, and thanks to everyone who added their details. The new release should sort it.
A container restart now picks up where it left off. Anything stuck in processing gets reset and the pending queue is re-enqueued on startup. There's a Resume Processing button on the dashboard for when you've stopped it yourself, and a Retry All Errors button so you're not doing it 50 at a time. A photo that hangs Ollama for five minutes now ends up as an error with a reason, rather than quietly blocking the worker.
I'm closing this, but if you update and still see it get stuck, open a new issue with the log and I'll take a look.