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

新环境,如果没有创建数据库和表,直接启动服务会panic #23

Open
xuyz opened this issue Nov 7, 2018 · 0 comments
Open

Comments

@xuyz
Copy link
Member

xuyz commented Nov 7, 2018

启动服务
./qmoon --db.addr=127.0.0.1:5432 server

启动失败,打印错误信息

panic: 读取版本失败pq: relation "qmoon_status" does not exist

goroutine 1 [running]:
github.com/QOSGroup/qmoon/cmd/commands.server(0x12c86a0, 0xc00018de40, 0x0, 0x1, 0x0, 0x0)
	/Users/xutao/go/src/github.com/QOSGroup/qmoon/cmd/commands/server.go:38 +0x2c9
github.com/spf13/cobra.(*Command).execute(0x12c86a0, 0xc00018de20, 0x1, 0x1, 0x12c86a0, 0xc00018de20)
	/Users/xutao/go/pkg/mod/github.com/spf13/[email protected]/command.go:762 +0x473
github.com/spf13/cobra.(*Command).ExecuteC(0x12c8440, 0x8, 0x4, 0x12c81e0)
	/Users/xutao/go/pkg/mod/github.com/spf13/[email protected]/command.go:852 +0x2fd
github.com/spf13/cobra.(*Command).Execute(0x12c8440, 0xc0001f5f60, 0x5)
	/Users/xutao/go/pkg/mod/github.com/spf13/[email protected]/command.go:800 +0x2b
main.main()
	/Users/xutao/go/src/github.com/QOSGroup/qmoon/cmd/main.go:17 +0xb2
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

1 participant