#Error when creating smart albums.

1 messages · Page 1 of 1 (latest)

jaunty dust
#

Hi all,

I've pulled the latest images from Docker, and have the latest Android app version, but see this error when I try to create smart albums.
Any pointers?

[SuperIsolate (in isolate)] [INFO] [2025-08-16 17:10:08.274870] Starting isolate operation IsolateOperation.generateFaceThumbnails in isolate
 [FaceThumbnailGenerator] [INFO] [2025-08-16 17:10:08.636044] Generated face thumbnails
 [EntityService] [INFO] [2025-08-16 17:10:10.188637] EntityKeyNotFound generating key for type EntityType.smartAlbum
 [SmartAlbumPeople] [SEVERE] [2025-08-16 17:10:10.244188] Error saving smart album config
⤷ id: droid_47doH7l9687G1Ebj3CBzo3
⤷ type: DioException
⤷ error: DioException [bad response]: This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code.
The status code of 400 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled"
Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.

⤷ trace: #0      DioMixin.fetch (package:dio/src/dio_mixin.dart:523)
<asynchronous suspension>
#1      EntityGateway.createKey (package:photos/gateways/entity_gw.dart:16)
<asynchronous suspension>
...
#3      EntityService.addOrUpdate (package:photos/services/entity_service.dart:66)
<asynchronous suspension>
#4      SmartAlbumsService._addOrUpdateEntity (package:photos/services/smart_albums_service.dart:253)
<asynchronous suspension>
#5      SmartAlbumsService.saveConfig (package:photos/services/smart_albums_service.dart:225)
<asynchronous suspension>
#6      _SmartAlbumPeopleState.build.<anonymous closure>.<anonymous closure> (package:photos/ui/collections/album/smart_album_people.dart:169)
<asynchronous suspension>
outer valeBOT
#

Sorry, I couldn't find an answer.
-# If your issue is resolved, feel free to use the </solved:1383817028372135986> command to close this thread. If you'd like to ask me another question use </docsearch:1378409618417647708>

floral jolt
#

Had the same issue before. I noticed also a PostgreSQL update. Do you use an external PostgreSQL Server?

jaunty dust
#

No, I use the postgres config as part of the quickstart script..I see it's pinned to v15 though. Is a different version warranted?

barren orbit
#

15 should be fine. While I don't know what is exactly happening in your setup, I can give some background which might help you find the issue: So smart albums is a new feature that required some change both in museum code and also some DB migration. From the error it seems that the museum you're running is still the older one, the one that doesn't have support for smart albums OR somehow the DB migration has not run. The second case really should never happen, so it is either the first, or something unrelated going on.

jaunty dust
#

Hey, thanks for the help.
Everything seems to be working fine again. Here's what I did:

  1. Stop the stack
  2. Run docker compose pull again (though, nothing seemed to actually happen here, as this was already run
  3. Start the stack again

Smart albums now functioning. Not sure what the core of the issue was, but probably related to what you pointed out @barren orbit . Thank you both for your help.

outer valeBOT
#

Thread marked as solved. It will be closed in <t:1755605157:R>.