Errors after update from 1.27.0 to 1.28.1 #1643

Closed
opened 2026-04-06 02:06:29 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @GrimAnEye on 4/14/2023

Subject of the issue

After upgrading from version 1.27 to version 1.28.1 it is not possible to create a group or collection in organisation.
The error log shows Error("missing field Users".

Deployment environment

  • vaultwarden version: 1.28.1-1+1.1

Steps to reproduce

  • stop old server (1.27.0-1+1.1)
    • systemctl disable vaultwarden && systemctl stop vaultwarden
  • update and upgrade other packages
    • apt update && apt upgrade
  • download package
    • wget https://download.opensuse.org/repositories/home:/Masgalor:/Vaultwarden/xUbuntu_20.04/amd64/vaultwarden_1.28.1-1+1.1_amd64.deb
  • installing a package with saving the configuration file
    • dpkg -i vaultwarden_1.28.1-1+1.1_amd64.deb

Expected behaviour

collections or groups are created, elements of the collection are added or changed to the group

Actual behaviour

an error is displayed

Troubleshooting data

[2023-04-14 16:17:41.713][request][INFO] POST /api/organizations/ORG_LONG_ID/groups
[2023-04-14 16:17:41.717][vaultwarden::api::core::organizations::_][WARN] Data guard `JsonUpcase < GroupRequest >` failed: Parse("{\"collections\":[],\"name\":\"231\",\"accessAll\":false}", Error("missing field `Users`", line: 1, column: 49)).
[2023-04-14 16:17:41.718][rocket::server::_][WARN] No 422 catcher registered. Using Rocket default.
[2023-04-14 16:17:41.718][response][INFO] (post_groups) POST /api/organizations/<org_id>/groups => 422 Unprocessable Entity
[2023-04-14 16:18:19.888][request][INFO] GET /api/organizations/ORG_LONG_ID/collections
[2023-04-14 16:18:19.894][response][INFO] (get_org_collections) GET /api/organizations/<org_id>/collections => 200 OK
[2023-04-14 16:18:19.937][request][INFO] GET /api/organizations/ORG_LONG_ID/groups/ORG_LONG_GROUP_ID/details
[2023-04-14 16:18:19.943][response][INFO] (get_group_details) GET /api/organizations/<_org_id>/groups/<group_id>/details => 200 OK
[2023-04-14 16:18:22.415][request][INFO] PUT /api/organizations/ORG_LONG_ID/groups/ORG_GROUP_LONG_ID
[2023-04-14 16:18:22.421][vaultwarden::api::core::organizations::_][WARN] Data guard `JsonUpcase < GroupRequest >` failed: Parse("{\"collections\":[{\"id\":\"ORG_COLLECTION_LONG_ID\",\"readOnly\":false,\"hidePasswords\":false},{\"id\":\"ORG_COLLECTION_LONG_ID\",\"readOnly\":false,\"hidePasswords\":false}],\"name\":\"Группа Офисной техподдержки\",\"externalId\":\"10000\",\"accessAll\":false}", Error("missing field `Users`", line: 1, column: 288)).
[2023-04-14 16:18:22.422][rocket::server::_][WARN] No 422 catcher registered. Using Rocket default.
[2023-04-14 16:18:22.422][response][INFO] (put_group) PUT /api/organizations/<org_id>/groups/<group_id> => 422 Unprocessable Entity
[2023-04-14 16:18:29.494][request][INFO] PUT /api/organizations/ORG_LONG_ID/groups/ORG_GROUP_LONG_ID
[2023-04-14 16:18:29.500][vaultwarden::api::core::organizations::_][WARN] Data guard `JsonUpcase < GroupRequest >` failed: Parse("{\"collections\":[{\"id\":\"ORG_COLLECTION_LONG_ID\",\"readOnly\":false,\"hidePasswords\":false},{\"id\":\"ORG_COLLECTION_LONG_ID\",\"readOnly\":true,\"hidePasswords\":false}],\"name\":\"Группа Офисной техподдержки\",\"externalId\":\"10000\",\"accessAll\":false}", Error("missing field `Users`", line: 1, column: 287)).
[2023-04-14 16:18:29.500][rocket::server::_][WARN] No 422 catcher registered. Using Rocket default.
[2023-04-14 16:18:29.501][response][INFO] (put_group) PUT /api/organizations/<org_id>/groups/<group_id> => 422 Unprocessable Entity
*Originally created by @GrimAnEye on 4/14/2023* <!-- # ### NOTE: Please update to the latest version of vaultwarden before reporting an issue! This saves you and us a lot of time and troubleshooting. See: * https://github.com/dani-garcia/vaultwarden/issues/1180 * https://github.com/dani-garcia/vaultwarden/wiki/Updating-the-vaultwarden-image # ### --> <!-- Please fill out the following template to make solving your problem easier and faster for us. This is only a guideline. If you think that parts are unnecessary for your issue, feel free to remove them. Remember to hide/redact personal or confidential information, such as passwords, IP addresses, and DNS names as appropriate. --> ### Subject of the issue <!-- Describe your issue here. --> After upgrading from version 1.27 to version 1.28.1 it is not possible to create a group or collection in organisation. The error log shows Error("missing field `Users`". ### Deployment environment <!-- ========================================================================================= Preferably, use the `Generate Support String` button on the admin page's Diagnostics tab. That will auto-generate most of the info requested in this section. ========================================================================================= --> <!-- The version number, obtained from the logs (at startup) or the admin diagnostics page --> <!-- This is NOT the version number shown on the web vault, which is versioned separately from vaultwarden --> <!-- Remember to check if your issue exists on the latest version first! --> * vaultwarden version: 1.28.1-1+1.1 <!-- How the server was installed: Docker image, OS package, built from source, etc. --> * Install method: dpkg from https://build.opensuse.org/package/show/home:Masgalor:Vaultwarden/vaultwarden * PostgreSQL version: 12+214ubuntu0.1<!-- if applicable --> * Other relevant details: * uname -a * ```Linux vaultwarden 5.4.0-88-generic 99-Ubuntu SMP Thu Sep 23 17:29:00 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux``` * lsb_release -a * ``` Ubuntu 20.04.3 LTS ``` ### Steps to reproduce <!-- Tell us how to reproduce this issue. What parameters did you set (differently from the defaults) and how did you start vaultwarden? --> * stop old server (1.27.0-1+1.1) * ```systemctl disable vaultwarden && systemctl stop vaultwarden``` * update and upgrade other packages * ``` apt update && apt upgrade ``` * download package * ``` wget https://download.opensuse.org/repositories/home:/Masgalor:/Vaultwarden/xUbuntu_20.04/amd64/vaultwarden_1.28.1-1+1.1_amd64.deb ``` * installing a package with saving the configuration file * ``` dpkg -i vaultwarden_1.28.1-1+1.1_amd64.deb ``` ### Expected behaviour <!-- Tell us what you expected to happen --> collections or groups are created, elements of the collection are added or changed to the group ### Actual behaviour <!-- Tell us what actually happened --> an error is displayed ### Troubleshooting data <!-- Share any log files, screenshots, or other relevant troubleshooting data --> ``` [2023-04-14 16:17:41.713][request][INFO] POST /api/organizations/ORG_LONG_ID/groups [2023-04-14 16:17:41.717][vaultwarden::api::core::organizations::_][WARN] Data guard `JsonUpcase < GroupRequest >` failed: Parse("{\"collections\":[],\"name\":\"231\",\"accessAll\":false}", Error("missing field `Users`", line: 1, column: 49)). [2023-04-14 16:17:41.718][rocket::server::_][WARN] No 422 catcher registered. Using Rocket default. [2023-04-14 16:17:41.718][response][INFO] (post_groups) POST /api/organizations/<org_id>/groups => 422 Unprocessable Entity [2023-04-14 16:18:19.888][request][INFO] GET /api/organizations/ORG_LONG_ID/collections [2023-04-14 16:18:19.894][response][INFO] (get_org_collections) GET /api/organizations/<org_id>/collections => 200 OK [2023-04-14 16:18:19.937][request][INFO] GET /api/organizations/ORG_LONG_ID/groups/ORG_LONG_GROUP_ID/details [2023-04-14 16:18:19.943][response][INFO] (get_group_details) GET /api/organizations/<_org_id>/groups/<group_id>/details => 200 OK [2023-04-14 16:18:22.415][request][INFO] PUT /api/organizations/ORG_LONG_ID/groups/ORG_GROUP_LONG_ID [2023-04-14 16:18:22.421][vaultwarden::api::core::organizations::_][WARN] Data guard `JsonUpcase < GroupRequest >` failed: Parse("{\"collections\":[{\"id\":\"ORG_COLLECTION_LONG_ID\",\"readOnly\":false,\"hidePasswords\":false},{\"id\":\"ORG_COLLECTION_LONG_ID\",\"readOnly\":false,\"hidePasswords\":false}],\"name\":\"Группа Офисной техподдержки\",\"externalId\":\"10000\",\"accessAll\":false}", Error("missing field `Users`", line: 1, column: 288)). [2023-04-14 16:18:22.422][rocket::server::_][WARN] No 422 catcher registered. Using Rocket default. [2023-04-14 16:18:22.422][response][INFO] (put_group) PUT /api/organizations/<org_id>/groups/<group_id> => 422 Unprocessable Entity [2023-04-14 16:18:29.494][request][INFO] PUT /api/organizations/ORG_LONG_ID/groups/ORG_GROUP_LONG_ID [2023-04-14 16:18:29.500][vaultwarden::api::core::organizations::_][WARN] Data guard `JsonUpcase < GroupRequest >` failed: Parse("{\"collections\":[{\"id\":\"ORG_COLLECTION_LONG_ID\",\"readOnly\":false,\"hidePasswords\":false},{\"id\":\"ORG_COLLECTION_LONG_ID\",\"readOnly\":true,\"hidePasswords\":false}],\"name\":\"Группа Офисной техподдержки\",\"externalId\":\"10000\",\"accessAll\":false}", Error("missing field `Users`", line: 1, column: 287)). [2023-04-14 16:18:29.500][rocket::server::_][WARN] No 422 catcher registered. Using Rocket default. [2023-04-14 16:18:29.501][response][INFO] (put_group) PUT /api/organizations/<org_id>/groups/<group_id> => 422 Unprocessable Entity ```
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#1643