a-eye icon indicating copy to clipboard operation
a-eye copied to clipboard

Container stuck - not able to stop processing.

Open frodm opened this issue 7 months ago • 12 comments

Hi,

During a few processed images (55), the container is stuck, not able to stop processing.

Log: 2026-04-07 18:15:49,995 INFO httpx: HTTP Request: GET http://XX.XX.XX.XX:434/api/tags "HTTP/1.1 200 OK" 2026-04-07 18:15:49,997 INFO httpx: HTTP Request: GET http://XX.XX.XX.XX:11434/api/tags "HTTP/1.1 200 OK" INFO: 10.10.60.220:34626 - "GET /api/health HTTP/1.1" 200 OK INFO: 10.10.60.220:34626 - "GET /api/dashboard/status HTTP/1.1" 200 OK INFO: 10.10.60.220:34626 - "GET /api/dashboard/status HTTP/1.1" 200 OK

frodm avatar Apr 07 '26 16:04 frodm

same issue and same log info for me as well. I now have 75% of my library sitting in pending with no way to requeue them other than individually selecting each photo

zbryant91 avatar Apr 10 '26 12:04 zbryant91

same here. and ollama has no ai loaded

Dhg4dragon8 avatar Apr 12 '26 19:04 Dhg4dragon8

Same here. 5K processed 50K to go. Restarted, rebooted but nothing doing.

martindell avatar Apr 16 '26 07:04 martindell

Confirm that selecting images from all images and reprocessing kicks off processing again. Something to do with queuing, I guess?

martindell avatar Apr 16 '26 19:04 martindell

I've been doing this but you can only select 50 at a time, I haven't found a way to reprocess all

zbryant91 avatar Apr 16 '26 20:04 zbryant91

A bit of. hack / workaround but paste this into the a-eye docker console. It queues 200 pending images (hard limit in the code according to Claude) and keeps repeating until there aren't any left.

python3 << 'EOF' import urllib.request, json, time while True: r = urllib.request.urlopen("http://localhost:8000/api/images?status=pending&limit=200") data = json.loads(r.read()) ids = [i['id'] for i in data['images']] if not ids: print("Done!") break print(f"Enqueuing {len(ids)} images...") payload = json.dumps({"image_ids": ids}).encode() req = urllib.request.Request( "http://localhost:8000/api/images/process-batch", data=payload, headers={"Content-Type": "application/json"}, method="POST" ) resp = urllib.request.urlopen(req) print(json.loads(resp.read())) time.sleep(2) EOF

martindell avatar Apr 16 '26 21:04 martindell

See https://github.com/SpaceinvaderOne/a-eye/pull/18. I suspect what's happening (in my case) is that the nightly appdata backup restarts the a-eye container and it never kicks off the processing queue again. This PR is designed to recover gracefully if a-eye restarts

martindell avatar Apr 18 '26 06:04 martindell

I have the same problem. Even restarting the container doesn't solve it. The only way I can restart after stopping is to remove the entire container and start over.

JN8086 avatar Apr 20 '26 14:04 JN8086

A bit of. hack / workaround but paste this into the a-eye docker console. It queues 200 pending images (hard limit in the code according to Claude) and keeps repeating until there aren't any left.

@martindell Hack works for me. You must turn off authentication and format it so python doesn't complain.

python3 << 'EOF'
import urllib.request
import json
import time

while True:
    r = urllib.request.urlopen("http://localhost:8000/api/images?status=pending&limit=200")
    data = json.loads(r.read())
    ids = [i['id'] for i in data['images']]
    
    if not ids:
        print("Done!")
        break
        
    print(f"Enqueuing {len(ids)} images...")
    
    payload = json.dumps({"image_ids": ids}).encode()
    req = urllib.request.Request(
        "http://localhost:8000/api/images/process-batch",
        data=payload,
        headers={"Content-Type": "application/json"},
        method="POST"
    )
    
    resp = urllib.request.urlopen(req)
    print(json.loads(resp.read()))
    
    time.sleep(2)
EOF

jamesj2 avatar Apr 21 '26 13:04 jamesj2

try giving my fork a try I think I fixed this issue, he has yet to pull my changes. https://github.com/vonhex/a-eye its also on Unraid in the community apps.

vonhex avatar May 15 '26 18:05 vonhex

I guess my situation is a bit different. I started the process by selecting a folder that has 200-ish photos. The scanner is showing me 1800+ scanned. I've clicked on "Stop processing". The button changed to "Stopping" and it got stuck there. If I navigate away from the page and come back, the button is back to "Stop processing" My Ollama (remote machine on the same network) is showing no activity.

I've even tried restarting the docker container (stop & start). Same situation.

I wonder: is this the same situation?

LE: I ended up stopping the container and deleting the photo_renamer.db file. That fixed MY problem (back to 0)

constantin-baciu avatar Aug 31 '26 14:08 constantin-baciu

Thanks for the reports and the workarounds people posted here, and a nod to martindell and vonhex whose fixes made it into this release.

Stop Processing now stops properly. It drains the queue straight away and the button turns into Resume Processing, which puts everything pending back in. A restart also recovers on its own now, so the nightly appdata backup won't leave the queue stranded any more. And there's a Retry All Errors button, so no more selecting 50 at a time.

constantin, your case where the button sat on Stopping should be covered by the same change. If anyone's still stuck after updating, open a new issue with the log.

SpaceinvaderOne avatar Sep 26 '26 13:09 SpaceinvaderOne