Firebot icon indicating copy to clipboard operation
Firebot copied to clipboard

[Support] With update to 5.62.1 all custom role assignments are deleted

Open dontcallmechicken opened this issue 1 year ago • 3 comments

I haven't used Firebot for about 6 months because I haven't been live. A few days or week ago, I updated Firebot from version v5.58.1 to the current version 5.62.1.

Now I noticed that all custom roles assigned to the respective users have been deleted from the user database. The roles created are still there, but are no longer assigned to any user. The roles are all still created in the custom-roles.json and are also displayed within Firebot under "Viewer Roles".

Is there a way to restore the custom roles?

  • Excerpt custom-roles.json:
{
    "d7012a50-1b43-11ed-9f55-470e1fb35f76": {
        "id": "d7012a50-1b43-11ed-9f55-470e1fb35f76",
        "name": "Geschmeidig",
        "viewers": []
    },
    "62a74990-1b44-11ed-9f55-470e1fb35f76": {
        "id": "62a74990-1b44-11ed-9f55-470e1fb35f76",
        "name": "Chaostruppe",
        "viewers": []
    },
    "7ae57850-43f9-11ed-ad67-eda6f232f1f9": {
        "id": "7ae57850-43f9-11ed-ad67-eda6f232f1f9",
        "name": "Ehrenvogel",
        "viewers": []
    },
     …
}
  • User database: An example entry from the database. I have changed user-related data with "*".
{"username":"*********","_id":"*********","displayName":"*********",
"profilePicUrl":"https://static-cdn.jtvnw.net/jtv_user_pictures/*********-profile_image-300x300.png",
"twitch":true,"twitchRoles":["sub","vip"],
"online":false,"onlineAt":1702071443201,"lastSeen":1702081985158,
"joinDate":1662923323640,"minutesInChannel":15477,"chatMessages":8289,
"disableAutoStatAccrual":false,"disableActiveUserList":false,"disableViewerList":false,
"metadata":{},"currency":{"2b16b630-318a-11ed-8b28-b763965e79c7":100,"0a0dc3d0-54ed-11ed-8550-4de96cbabc47":0,
"9fe48ce0-55c4-11ed-8195-353763c7a397":0,"d0232ab0-55c4-11ed-8195-353763c7a397":0}}
  • Additional Information: Firebot Version: 5.62.1 (before: 5.58.1) OS: Linux Distribution

dontcallmechicken avatar Jun 28 '24 10:06 dontcallmechicken

You should also still have a customroles.json file. If you log in, then restart, does that sync?

If not, you'll have to pull the file from the latest backup

dennisrijsdijk avatar Jun 28 '24 11:06 dennisrijsdijk

You should also still have a customroles.json file. If you log in, then restart, does that sync?

I have an outdated customroles.json file under this path: .config/Firebot/tmp/restore/profiles/Main Profile/roles/customroles.json The file is from August 2022. So it is not up to date.

dontcallmechicken avatar Jun 28 '24 11:06 dontcallmechicken

If not, you'll have to pull the file from the latest backup

There is also no customroles.json file in the backups. Unfortunately, I no longer have any backups from using Firebot version 5.58.1. It looks like the file was no longer created.

dontcallmechicken avatar Jun 28 '24 11:06 dontcallmechicken

was this fixed?

CKY- avatar Aug 04 '24 09:08 CKY-

@CKY- I don't know what caused that. I reassigned the roles.

However, individual users are removed from custom roles from time to time. So far I have tied this to a role. It could be that it is due to a setting or command or effect of mine. I still need to investigate this more closely.

dontcallmechicken avatar Aug 05 '24 08:08 dontcallmechicken