🐛 Bug Report: Logo and background image is not visible after upgrading to 1.0.0 #118

Closed
opened 2025-07-08 08:40:19 -04:00 by AtHeartEngineer · 0 comments

Originally created by @gepbird on 5/31/2025

Reproduction steps

  1. Download this database that went through some Pocket ID version updates
  2. Start Pocket ID with UI_CONFIG_DISABLED=1 environment variable
  3. Visit http://localhost:1411/login in a browser and observe the logo and background image not loading

Expected behavior

The logo and background image loads.

Actual Behavior

The logo and background image falls back to it's alt text:

Image

Version and Environment

I started noticing this from version 1.0.0, our database was created ~3 months ago.

Note that the data dump which is attached is heavily stripped to protect privacy and hopefully make debugging simpler (if needed I may share more data via email), the only relevant information in that is some empty logo and background image fields:

Image

I assume these should've been deleted from the database with a previous migration, but wasn't. There's also a chance of me making a mistake and starting an older version after the database was upgraded to a newer version, but whenever I noticed errors from this, I immediately rolled back.

(When starting Pocket ID 1.0.0 with the attached data dumps, uploads/application-images with the logo, background and other images are automatically created.)

Log Output

[user@nixos:~]$ UI_CONFIG_DISABLED=1 /nix/store/383ag5qk1r1kl5g45y5jrm348w6kw1ip-pocket-id-1.0.0/bin/pocket-id
2025/05/31 09:26:41 MAXMIND_LICENSE_KEY environment variable is empty. The GeoLite2 City database won't be updated.
2025/05/31 09:26:41 Starting job scheduler
2025/05/31 09:26:41 Server listening on 0.0.0.0:1411
[GIN] 2025/05/31 - 09:26:45 | 200 |    5.030639ms |       127.0.0.1 | GET      "/login"
[GIN] 2025/05/31 - 09:26:45 | 200 |    5.060951ms |       127.0.0.1 | GET      "/login"
[GIN] 2025/05/31 - 09:26:45 | 401 |     116.152µs |       127.0.0.1 | GET      "/api/users/me"
Error #01: You are not signed in
[GIN] 2025/05/31 - 09:26:45 | 401 |     150.828µs |       127.0.0.1 | GET      "/api/users/me"
Error #01: You are not signed in
[GIN] 2025/05/31 - 09:26:45 | 200 |      84.048µs |       127.0.0.1 | GET      "/api/application-configuration"
[GIN] 2025/05/31 - 09:26:45 | 200 |     112.781µs |       127.0.0.1 | GET      "/api/application-configuration"
[GIN] 2025/05/31 - 09:26:45 | 404 |     213.909µs |       127.0.0.1 | GET      "/api/application-configuration/background-image"
[GIN] 2025/05/31 - 09:26:45 | 404 |     318.602µs |       127.0.0.1 | GET      "/api/application-configuration/background-image"
[GIN] 2025/05/31 - 09:26:45 | 404 |      37.099µs |       127.0.0.1 | GET      "/api/application-configuration/logo?light=true"
[GIN] 2025/05/31 - 09:26:45 | 404 |     285.884µs |       127.0.0.1 | GET      "/api/application-configuration/logo?light=true"
[GIN] 2025/05/31 - 09:26:46 | 200 |    3.146247ms |       127.0.0.1 | GET      "/_app/immutable/nodes/9.CgYX03vl.js"
[GIN] 2025/05/31 - 09:26:46 | 200 |    3.330558ms |       127.0.0.1 | GET      "/_app/immutable/nodes/9.CgYX03vl.js"
[GIN] 2025/05/31 - 09:26:46 | 401 |     180.945µs |       127.0.0.1 | GET      "/api/users/me"
Error #01: You are not signed in
[GIN] 2025/05/31 - 09:26:46 | 401 |     427.025µs |       127.0.0.1 | GET      "/api/users/me"
Error #01: You are not signed in
[GIN] 2025/05/31 - 09:26:46 | 200 |     115.367µs |       127.0.0.1 | GET      "/api/application-configuration"
[GIN] 2025/05/31 - 09:26:46 | 200 |     171.427µs |       127.0.0.1 | GET      "/api/application-configuration"
^C2025/05/31 09:26:47 Received interrupt signal. Shutting down…
2025/05/31 09:26:47 Job scheduler shut down
*Originally created by @gepbird on 5/31/2025* ### Reproduction steps 1. Download [this database](https://github.com/user-attachments/files/20532836/data.zip) that went through some Pocket ID version updates 2. Start Pocket ID with `UI_CONFIG_DISABLED=1` environment variable 3. Visit http://localhost:1411/login in a browser and observe the logo and background image not loading ### Expected behavior The logo and background image loads. ### Actual Behavior The logo and background image falls back to it's alt text: ![Image](https://github.com/user-attachments/assets/9aba259b-650a-435c-a576-14173304a42d) ### Version and Environment I started noticing this from version 1.0.0, our database was created ~3 months ago. Note that the data dump which is attached is heavily stripped to protect privacy and hopefully make debugging simpler (if needed I may share more data via email), the only relevant information in that is some empty logo and background image fields: ![Image](https://github.com/user-attachments/assets/3587d75a-6541-405a-9598-a638d46817a1) I assume these should've been deleted from the database with a previous migration, but wasn't. There's also a chance of me making a mistake and starting an older version after the database was upgraded to a newer version, but whenever I noticed errors from this, I immediately rolled back. (When starting Pocket ID 1.0.0 with the attached data dumps, uploads/application-images with the logo, background and other images are automatically created.) ### Log Output ```console [user@nixos:~]$ UI_CONFIG_DISABLED=1 /nix/store/383ag5qk1r1kl5g45y5jrm348w6kw1ip-pocket-id-1.0.0/bin/pocket-id 2025/05/31 09:26:41 MAXMIND_LICENSE_KEY environment variable is empty. The GeoLite2 City database won't be updated. 2025/05/31 09:26:41 Starting job scheduler 2025/05/31 09:26:41 Server listening on 0.0.0.0:1411 [GIN] 2025/05/31 - 09:26:45 | 200 | 5.030639ms | 127.0.0.1 | GET "/login" [GIN] 2025/05/31 - 09:26:45 | 200 | 5.060951ms | 127.0.0.1 | GET "/login" [GIN] 2025/05/31 - 09:26:45 | 401 | 116.152µs | 127.0.0.1 | GET "/api/users/me" Error #01: You are not signed in [GIN] 2025/05/31 - 09:26:45 | 401 | 150.828µs | 127.0.0.1 | GET "/api/users/me" Error #01: You are not signed in [GIN] 2025/05/31 - 09:26:45 | 200 | 84.048µs | 127.0.0.1 | GET "/api/application-configuration" [GIN] 2025/05/31 - 09:26:45 | 200 | 112.781µs | 127.0.0.1 | GET "/api/application-configuration" [GIN] 2025/05/31 - 09:26:45 | 404 | 213.909µs | 127.0.0.1 | GET "/api/application-configuration/background-image" [GIN] 2025/05/31 - 09:26:45 | 404 | 318.602µs | 127.0.0.1 | GET "/api/application-configuration/background-image" [GIN] 2025/05/31 - 09:26:45 | 404 | 37.099µs | 127.0.0.1 | GET "/api/application-configuration/logo?light=true" [GIN] 2025/05/31 - 09:26:45 | 404 | 285.884µs | 127.0.0.1 | GET "/api/application-configuration/logo?light=true" [GIN] 2025/05/31 - 09:26:46 | 200 | 3.146247ms | 127.0.0.1 | GET "/_app/immutable/nodes/9.CgYX03vl.js" [GIN] 2025/05/31 - 09:26:46 | 200 | 3.330558ms | 127.0.0.1 | GET "/_app/immutable/nodes/9.CgYX03vl.js" [GIN] 2025/05/31 - 09:26:46 | 401 | 180.945µs | 127.0.0.1 | GET "/api/users/me" Error #01: You are not signed in [GIN] 2025/05/31 - 09:26:46 | 401 | 427.025µs | 127.0.0.1 | GET "/api/users/me" Error #01: You are not signed in [GIN] 2025/05/31 - 09:26:46 | 200 | 115.367µs | 127.0.0.1 | GET "/api/application-configuration" [GIN] 2025/05/31 - 09:26:46 | 200 | 171.427µs | 127.0.0.1 | GET "/api/application-configuration" ^C2025/05/31 09:26:47 Received interrupt signal. Shutting down… 2025/05/31 09:26:47 Job scheduler shut down ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pocket-id#118