Update fails when list has WEBP background image #1236

Closed
opened 2022-08-15 09:54:03 +00:00 by rocketfuelindustries · 1 comment

Version information:
docker-compose: image: vikunja/api
Frontend Version: 0.19.0
API Version: v0.19.0
Browser and OS Version: Vivaldi/Kubuntu 22.04

Steps to reproduce:

  1. Have a list with a .webp background image
  2. Pull latest docker image and apply

Expected behavior:

Vikunja will work the same as before but with latest updates

Actual behavior:

Vikunja API doesn't start. Logs:

usermod: no changes
No config file found, using default or config from environment variables.
WARNING	▶ [DATABASE] 04e Table lists has column title but struct has not related field
WARNING	▶ [DATABASE] 04f Table lists has column description but struct has not related field
WARNING	▶ [DATABASE] 050 Table lists has column identifier but struct has not related field
WARNING	▶ [DATABASE] 051 Table lists has column hex_color but struct has not related field
WARNING	▶ [DATABASE] 052 Table lists has column owner_id but struct has not related field
WARNING	▶ [DATABASE] 053 Table lists has column namespace_id but struct has not related field
WARNING	▶ [DATABASE] 054 Table lists has column is_archived but struct has not related field
WARNING	▶ [DATABASE] 055 Table lists has column position but struct has not related field
WARNING	▶ [DATABASE] 056 Table lists has column created but struct has not related field
WARNING	▶ [DATABASE] 057 Table lists has column updated but struct has not related field
INFO	▶ migration/func1 059 Creating BlurHash for 26 list backgrounds, this might take a while...
CRITICAL	▶ migration/Migrate 080 Migration failed: migration 20211212210054 failed: image: unknown format

Checking mariadb database list table I found that all lists (with backgrounds) up to id 78 had calculated values in background_blur_hash field, but from 78 onwards the field had value NULL. Checking the file from 78's background_file_id I found that file was a WEBP file, whereas the others were all JPEG. I converted the file to JPEG, restarted the container, and functionality was restored. All lists with a background image now have a calculated background_blur_hash and Vikunja seems to be operating normally.

Unable to repro on try due to the nature of the problem (occurring during an upgrade).

Checklist:

  • I have provided all required information
  • I am using the latest release or the latest unstable build
  • I was able to reproduce the bug on try
**Version information:** docker-compose: image: vikunja/api Frontend Version: 0.19.0 API Version: v0.19.0 Browser and OS Version: Vivaldi/Kubuntu 22.04 **Steps to reproduce:** 1. Have a list with a .webp background image 2. Pull latest docker image and apply **Expected behavior:** Vikunja will work the same as before but with latest updates **Actual behavior:** Vikunja API doesn't start. Logs: ``` usermod: no changes No config file found, using default or config from environment variables. WARNING ▶ [DATABASE] 04e Table lists has column title but struct has not related field WARNING ▶ [DATABASE] 04f Table lists has column description but struct has not related field WARNING ▶ [DATABASE] 050 Table lists has column identifier but struct has not related field WARNING ▶ [DATABASE] 051 Table lists has column hex_color but struct has not related field WARNING ▶ [DATABASE] 052 Table lists has column owner_id but struct has not related field WARNING ▶ [DATABASE] 053 Table lists has column namespace_id but struct has not related field WARNING ▶ [DATABASE] 054 Table lists has column is_archived but struct has not related field WARNING ▶ [DATABASE] 055 Table lists has column position but struct has not related field WARNING ▶ [DATABASE] 056 Table lists has column created but struct has not related field WARNING ▶ [DATABASE] 057 Table lists has column updated but struct has not related field INFO ▶ migration/func1 059 Creating BlurHash for 26 list backgrounds, this might take a while... CRITICAL ▶ migration/Migrate 080 Migration failed: migration 20211212210054 failed: image: unknown format ``` Checking mariadb database `list` table I found that all lists (with backgrounds) up to `id` 78 had calculated values in `background_blur_hash` field, but from 78 onwards the field had value `NULL`. Checking the file from 78's `background_file_id` I found that file was a WEBP file, whereas the others were all JPEG. I converted the file to JPEG, restarted the container, and functionality was restored. All lists with a background image now have a calculated `background_blur_hash` and Vikunja seems to be operating normally. Unable to repro on try due to the nature of the problem (occurring during an upgrade). **Checklist:** * [x] I have provided all required information * [x] I am using the latest release or the latest unstable build * [ ] I was able to reproduce the bug on [try](https://try.vikunja.io)
konrad added the
kind/bug
label 2022-08-15 13:47:56 +00:00
Owner

Fixed in 8bf0f8bb57.

Please check with the next unstable release if the problem went away.

Fixed in https://kolaente.dev/vikunja/api/commit/8bf0f8bb571ddff69a7142be1acaa2e4e0c38e3b. Please check with the next unstable release if the problem went away.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#1236
No description provided.