Skip to content

Error in generating metadata (2.8.0) #60

@phmg701

Description

@phmg701

Hello,

While testing version 2.8.0 I came across 4 failed photos out of 561, the last 4 ones in the catalog.

Here's the logs:

lrgenius-server.log

2026-03-17 11:56:10,068 INFO Get photo data request received
2026-03-17 11:56:10,072 WARNING Photo with photo_id md5p:57086784:788799984:e0381f17a8d7f51944bf0c4cfa2a8545 not found in database
2026-03-17 11:56:10,080 INFO Get photo data request received
2026-03-17 11:56:10,081 WARNING Photo with photo_id md5p:57060160:788800004:ab2feda8e6066fce705ae5c0961ab876 not found in database
2026-03-17 11:56:10,085 INFO Get photo data request received
2026-03-17 11:56:10,085 WARNING Photo with photo_id md5p:57099584:788800006:88b3253a227d8ef20839e9802f8633b6 not found in database
2026-03-17 11:56:10,092 INFO Get photo data request received
2026-03-17 11:56:10,092 WARNING Photo with photo_id md5p:58263872:788800476:4dd39d54486f2b749a01c8ec6a6f72dd not found in database

Origin for the firs one md5p:57086784:788799984:e0381f17a8d7f51944bf0c4cfa2a8545:

2026-03-17 11:31:50,226 INFO Starting batch processing of 1 images...
2026-03-17 11:31:50,226 INFO regenerate_metadata=False, compute_embeddings=True, compute_metadata=True, compute_faces=True, compute_vertexai=False
2026-03-17 11:31:50,226 INFO Checking existing records to determine what needs generation...
2026-03-17 11:31:50,227 INFO Generation needed: 1 embeddings, 1 metadata, 1 faces, 0 vertexai
2026-03-17 11:31:50,790 INFO Generating metadata for 1 images out of 1 total
2026-03-17 11:31:50,790 INFO UUIDs needing metadata: {'md5p:57086784:788799984:e0381f17a8d7f51944bf0c4cfa2a8545'}
2026-03-17 11:31:50,790 INFO Filtered to 1 triplets for metadata generation
2026-03-17 11:31:50,790 INFO Generating metadata for md5p:57086784:788799984:e0381f17a8d7f51944bf0c4cfa2a8545 using lmstudio
2026-03-17 11:31:50,791 INFO {"client": "<lmstudio.sync_api.Client object at 0x3e5243ef0>", "event": "Websocket handling thread started", "thread_id": "Thread-1330"}
2026-03-17 11:31:50,799 INFO HTTP Request: GET http://localhost:1234/lmstudio-greeting "HTTP/1.1 200 OK"
2026-03-17 11:31:50,806 INFO HTTP Request: GET ws://localhost:1234/files "HTTP/1.1 101 Switching Protocols"
2026-03-17 11:31:50,807 INFO {"event": "Websocket session established", "ws_url": "ws://localhost:1234/files"}
2026-03-17 11:31:50,835 INFO HTTP Request: GET ws://localhost:1234/llm "HTTP/1.1 101 Switching Protocols"
2026-03-17 11:31:50,835 INFO {"event": "Websocket session established", "ws_url": "ws://localhost:1234/llm"}
2026-03-17 11:43:56,393 INFO Index request received
2026-03-17 11:43:56,405 INFO Raw indexing option keys received: ['photo_id', 'catalog_id', 'tasks', 'provider', 'model', 'language', 'temperature', 'replace_ss', 'generate_keywords', 'generate_caption', 'generate_title', 'generate_alt_text', 'submit_gps', 'submit_keywords', 'submit_folder_names', 'user_context', 'existing_keywords', 'prompt', 'keyword_categories', 'date_time', 'ollama_base_url', 'lmstudio_base_url', 'regenerate_metadata']
2026-03-17 11:43:56,407 INFO Starting batch processing of 1 images...
2026-03-17 11:43:56,408 INFO regenerate_metadata=False, compute_embeddings=True, compute_metadata=True, compute_faces=True, compute_vertexai=False
2026-03-17 11:43:56,408 INFO Checking existing records to determine what needs generation...
2026-03-17 11:43:56,453 INFO Generation needed: 1 embeddings, 1 metadata, 1 faces, 0 vertexai
2026-03-17 11:44:07,339 INFO Generating metadata for 1 images out of 1 total
2026-03-17 11:44:07,341 INFO UUIDs needing metadata: {'md5p:57086784:788799984:e0381f17a8d7f51944bf0c4cfa2a8545'}
2026-03-17 11:44:07,342 INFO Filtered to 1 triplets for metadata generation
2026-03-17 11:44:07,342 INFO Generating metadata for md5p:57086784:788799984:e0381f17a8d7f51944bf0c4cfa2a8545 using lmstudio
2026-03-17 11:44:07,364 INFO {"client": "<lmstudio.sync_api.Client object at 0x3e52decc0>", "event": "Websocket handling thread started", "thread_id": "Thread-1331"}
2026-03-17 11:44:07,548 INFO HTTP Request: GET http://localhost:1234/lmstudio-greeting "HTTP/1.1 200 OK"
2026-03-17 11:44:07,814 INFO HTTP Request: GET ws://localhost:1234/files "HTTP/1.1 101 Switching Protocols"
2026-03-17 11:44:07,826 INFO {"event": "Websocket session established", "ws_url": "ws://localhost:1234/files"}
2026-03-17 11:44:08,068 INFO HTTP Request: GET ws://localhost:1234/llm "HTTP/1.1 101 Switching Protocols"
2026-03-17 11:44:08,069 INFO {"event": "Websocket session established", "ws_url": "ws://localhost:1234/llm"}
2026-03-17 11:45:08,080 INFO {"event": "Websocket session disconnected (ws://localhost:1234/llm)", "ws_url": "ws://localhost:1234/llm"}
2026-03-17 11:45:08,081 INFO {"event": "Websocket closed.", "ws_url": "ws://localhost:1234/llm"}
2026-03-17 11:45:08,083 INFO {"event": "Websocket session disconnected (ws://localhost:1234/files)", "ws_url": "ws://localhost:1234/files"}
2026-03-17 11:45:08,083 INFO {"event": "Websocket closed.", "ws_url": "ws://localhost:1234/files"}
2026-03-17 11:45:08,083 ERROR Error generating metadata with LM Studio: 
Traceback (most recent call last):
  File "llm_provider_lmstudio.py", line 60, in generate_metadata
lmstudio.LMStudioTimeoutError
2026-03-17 11:45:08,087 INFO {"client": "<lmstudio.sync_api.Client object at 0x3e52decc0>", "event": "Websocket thread terminated", "thread_id": "Thread-1331"}
2026-03-17 11:45:08,089 ERROR ✗ Failed to generate metadata for md5p:57086784:788799984:e0381f17a8d7f51944bf0c4cfa2a8545: 
2026-03-17 11:45:08,090 ERROR Metadata generation failed for md5p:57086784:788799984:e0381f17a8d7f51944bf0c4cfa2a8545. Skipping.
2026-03-17 11:45:08,090 INFO Batch processing complete. Success: 0, Failures: 1.
2026-03-17 11:45:08,090 WARNING No images were successfully processed in the batch.
2026-03-17 11:45:08,505 INFO Index base64 request received
2026-03-17 11:45:08,509 INFO Raw indexing option keys received: ['catalog_id', 'date_time', 'existing_keywords', 'filename', 'generate_alt_text', 'generate_caption', 'generate_keywords', 'generate_title', 'image', 'keyword_categories', 'language', 'lmstudio_base_url', 'model', 'ollama_base_url', 'photo_id', 'prompt', 'provider', 'regenerate_metadata', 'replace_ss', 'submit_folder_names', 'submit_gps', 'submit_keywords', 'tasks', 'temperature', 'user_context']

LrGeniusAI.log

2026-03-17 11:56:09.9540000+01:00, TRACE	validatedData: nil
2026-03-17 11:56:09.9540000+01:00, TRACE	Saving title, caption, altText, keywords to catalog
2026-03-17 11:56:09.9560000+01:00, TRACE	Saving keywords to catalog
2026-03-17 11:56:10.0580000+01:00, TRACE	Saving AI model to catalog
2026-03-17 11:56:10.0680000+01:00, TRACE	Retrieving photo data for photo_id: md5p:57086784:788799984:e0381f17a8d7f51944bf0c4cfa2a8545
2026-03-17 11:56:10.0760000+01:00, ERROR	API request failed. HTTP status: 404 - Photo not found
2026-03-17 11:56:10.0760000+01:00, ERROR	Failed to retrieve photo data: API request failed. HTTP status: 404 - Photo not found
2026-03-17 11:56:10.0770000+01:00, TRACE	Got generated data for photo: DSCF7956.RAF
2026-03-17 11:56:10.0770000+01:00, TRACE	Response: nil
2026-03-17 11:56:10.0800000+01:00, TRACE	Retrieving photo data for photo_id: md5p:57060160:788800004:ab2feda8e6066fce705ae5c0961ab876
2026-03-17 11:56:10.0820000+01:00, ERROR	API request failed. HTTP status: 404 - Photo not found
2026-03-17 11:56:10.0820000+01:00, ERROR	Failed to retrieve photo data: API request failed. HTTP status: 404 - Photo not found
2026-03-17 11:56:10.0820000+01:00, TRACE	Got generated data for photo: DSCF7957.RAF
2026-03-17 11:56:10.0820000+01:00, TRACE	Response: nil
2026-03-17 11:56:10.0850000+01:00, TRACE	Retrieving photo data for photo_id: md5p:57099584:788800006:88b3253a227d8ef20839e9802f8633b6
2026-03-17 11:56:10.0860000+01:00, ERROR	API request failed. HTTP status: 404 - Photo not found
2026-03-17 11:56:10.0860000+01:00, ERROR	Failed to retrieve photo data: API request failed. HTTP status: 404 - Photo not found
2026-03-17 11:56:10.0870000+01:00, TRACE	Got generated data for photo: DSCF7958.RAF
2026-03-17 11:56:10.0870000+01:00, TRACE	Response: nil
2026-03-17 11:56:10.0910000+01:00, TRACE	Retrieving photo data for photo_id: md5p:58263872:788800476:4dd39d54486f2b749a01c8ec6a6f72dd
2026-03-17 11:56:10.0930000+01:00, ERROR	API request failed. HTTP status: 404 - Photo not found
2026-03-17 11:56:10.0930000+01:00, ERROR	Failed to retrieve photo data: API request failed. HTTP status: 404 - Photo not found
2026-03-17 11:56:10.0930000+01:00, TRACE	Got generated data for photo: DSCF7959.RAF
2026-03-17 11:56:10.0930000+01:00, TRACE	Response: nil
2026-03-17 12:06:52.2040000+01:00, TRACE	AnalyzeAndIndexTask completed: Status=somefailed, Processed=561, Failed=4

Thanks!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions