Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Docker Compose 部署 LobeChat 服务端数据库版本存在错误 #5308

Closed
g1021895463 opened this issue Jan 5, 2025 · 6 comments
Closed
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@g1021895463
Copy link

📦 Environment

Docker

📌 Version

1.43.3

💻 Operating System

Windows

🌐 Browser

Edge

🐛 Bug Description

默认帐号的登录密码错误

📷 Recurrence Steps

无法通过 admin——123登录
重启容器后新注册的帐号丢失

🚦 Expected Behavior

提供正确的admin帐号的密码。
admin帐号是存在的,但是教程中的123密码是错的。

📝 Additional Information

该版本通过教程:https://lobehub.com/zh/docs/self-hosting/server-database/docker-compose 中的一个一键启动脚本 setup.sh 部署。
部署后存在两个问题:
1.教程中提到的“默认登录账号即 Casdoor 的默认账号,账号名 admin,密码 123”实测无法登陆
image
2.自行注册账号登录后,其帐号信息在docker容器重启后丢失,只能重新注册账号。

@g1021895463 g1021895463 added the 🐛 Bug Something isn't working | 缺陷 label Jan 5, 2025
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Jan 5, 2025
@lobehubbot
Copy link
Member

👀 @g1021895463

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

Copy link

dosubot bot commented Jan 5, 2025

@g1021895463 你好!我是Dosu,我是一个专注于解决错误、回答问题并帮助您成为贡献者的机器人。我将在这里等待人类维护者为您提供帮助。

I found a similar open issue regarding the loss of configuration when reopening the web interface, which might be related to your problem with account persistence [1]. However, there was no solution found in the comments.

For the issue with the default admin account credentials, the default username is admin and the password is 123 according to the documentation [2]. If these credentials are not working, it might be due to a configuration issue or a change in the default settings in the version you are using.

Regarding the loss of user accounts after restarting the Docker container, ensure that the database persistence is correctly set up. The Docker Compose setup for LobeChat uses a volume mapping ./data:/var/lib/postgresql/data to persist data on the host machine [3]. Make sure this configuration is correctly implemented to prevent data loss upon container restarts.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@g1021895463
Copy link
Author

额解决了
我在init_data.json找到了我的密码:203de6
而且不知道为什么这次打开lobechat网页没有要求我登录,而是直接以匿名用户的身份进去了。
算了,反正能用就行
ヽ( ̄▽ ̄)ノ

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Well solved
I found my password in init_data.json: 203de6
And I don’t know why I was not asked to log in when I opened the lobechat webpage this time, but I entered directly as an anonymous user.
Forget it, as long as it works
ヽ( ̄▽ ̄)ノ

@JoeChen2me
Copy link

在下载一键启动脚本的时候,会在终端输出新生成的admin账户密码。这个就是casdoor的管理员账户密码,不再是默认的admin和123了。估计是提高安全性。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


When downloading the one-click startup script, the newly generated admin account password will be output in the terminal. This is the administrator account password of casdoor, it is no longer the default admin and 123. Probably to improve security.

@lobehub lobehub locked and limited conversation to collaborators Jan 6, 2025
@arvinxx arvinxx converted this issue into discussion #5309 Jan 6, 2025
@github-project-automation github-project-automation bot moved this from Roadmap - Chat 1.x to Done in Lobe Chat Routine Jan 6, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
🐛 Bug Something isn't working | 缺陷
Projects
Status: Done
Development

No branches or pull requests

3 participants