DB版出现同账户配置不同 #6268
-
📦 部署环境Docker 📦 部署模式服务端模式(lobe-chat-database 镜像) 📌 软件版本1.59.0 💻 系统环境Ubuntu 🌐 浏览器Edge 🐛 问题描述DB版,原本手机浏览器端和电脑Edge浏览器端用同一账号进去,添加的智能助手,对话记录能够完全一致,两边基本上是同步状态。前面电脑浏览器出了点问题,用删除浏览记录选项,将全部记录清空以后,电脑浏览器登陆进去后,所有添加的智能助手和对话记录都没了。账号确定是同一个账号,手机上相关信息都还在,请问这是什么情况?现在有什么办法能够恢复? 📷 复现步骤No response 🚦 期望结果No response 📝 补充信息No response |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
👀 @Roiung Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
📦 Deployment environmentDocker 📦 Deployment ModeServer-side mode (lobe-chat-database mirror) 📌 Software version1.59.0 💻 System environmentUbuntu 🌐 BrowserEdge 🐛 Question descriptionDB version, the original mobile browser and computer Edge browser are used to enter the same account, and the added smart assistant can be completely consistent in the dialogue records, and the two sides are basically in a synchronous state. There was something wrong with the computer browser in front. After using the option to delete browsing history, after the computer browser logs in, all the added smart assistants and dialogue records are gone. The account is confirmed to be the same account, and the relevant information on the mobile phone is still there. What is the situation? Is there any way to recover now? 📷 Reproduction stepsNo response 🚦 Expected resultsNo response 📝 Supplementary informationNo response |
Beta Was this translation helpful? Give feedback.
-
Hello @Roiung! I'm here to assist you with any bugs, questions, or contributions. Let's work together to resolve the issue you're experiencing. I found a similar closed issue that might be relevant to your problem. The suggested solution involves several steps to address the issue of assistants and message logs disappearing in Lobe Chat:
These steps might help you recover the missing data or understand why it disappeared [1]. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
-
日志提示如下: |
Beta Was this translation helpful? Give feedback.
-
找到原因了,清除掉浏览器记录之后,用原有账号登录会导致pg数据库中casdoor库中user表的id至发生变化,产生了一个新的id,然后在lobe库中,新的id跟lobe库中的agent和user中的id都对不上,就相当于变成了一个新账号。从agent表中复制id到casdoor中修改,再登陆就OK了。 |
Beta Was this translation helpful? Give feedback.
-
The reason was found. After clearing the browser record, logging in with the original account will cause the id of the user table in the casdoor library in the pq database to change, resulting in a new id. Then in the lobe library, the new id and lobe If the agent in the library and the id in the user are not in line with each other, it is equivalent to becoming a new account. Copy the id from the agent table and modify it in casdoor, and then log in. |
Beta Was this translation helpful? Give feedback.
-
神奇的是这个问题不是每次都能出现,我前不久出现过一次,当时数据少,我重新搭环境了。这次恢复数据后,我想再次复现,我清空多次浏览器数据后再没出现过,不知何故。 |
Beta Was this translation helpful? Give feedback.
-
The magical thing is that this problem does not occur every time. I happened to it not long ago. At that time, there was little data and I re-built the environment. After recovering the data this time, I wanted to reproduce it again. I cleared the browser data several times and never appeared again, for some reason. |
Beta Was this translation helpful? Give feedback.
找到原因了,清除掉浏览器记录之后,用原有账号登录会导致pg数据库中casdoor库中user表的id至发生变化,产生了一个新的id,然后在lobe库中,新的id跟lobe库中的agent和user中的id都对不上,就相当于变成了一个新账号。从agent表中复制id到casdoor中修改,再登陆就OK了。