Skip to content
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

使用Docker部署时 没有办法用admin/root登录 ,显示用户不存在的错误 #143

Open
happyfir opened this issue May 27, 2023 · 6 comments

Comments

@happyfir
Copy link

查看日志后结果显示::ERROR webserver/server.go:143 Error starting TLS management port open /var/toughradius/private/toughradius.tls.crt: no such file or directory

请问如何解决

@jamiesun
Copy link
Contributor

应该是数据库没有连接成功

@jamiesun
Copy link
Contributor

登录系统时增加了对错误的判断, 对可能的数据库连接错误会显示 “Database connection failed”

@v808comd
Copy link

我费了2天时间,更换各种参数也没成功。唉,估计只有作者自己知道怎么部署。

@swimmingchar
Copy link

我也遇到了这个问题,这个错误也有报

@lisbonbar
Copy link

TOUGHRADIUS_DB_HOST=172.20.0.2 #把这个参数改成数据库容器里面的ip地址就可以了。

@jining172
Copy link

jining172 commented Sep 24, 2023

使用Windows 部署时发现 \config\config.go 文件内

Database: DBConfig{
Type:     "postgres",
Host:     "127.0.0.1",
Port:     5432,
Name:     "toughradius_v8",
User:     "postgres",
Passwd:   "myroot",
MaxConn:  100,
IdleConn: 10,
Debug:    false,

的名称 用户 密码 三项与文档中数据库 创建命令 不一样,改三项成 toughradius 后就可以登陆啦。
非专业人员,此信息希望能帮助更多人

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants