Skip to content

errro at running #49

@vvp3

Description

@vvp3

i verified the integroty of the admin.db and the tables
it doesnt find it from ./backend -- why?

NODE_ENV=production ./backend --debug=true --theme=sword --ui_theme=element
GoAdmin is now running.
Running in "debug" mode. Switch to "release" mode in production.

2024-06-11T15:19:59.005+0300 INFO engine/engine.go:407 Initialize database connections
panic: no such table: goadmin_session

goroutine 1 [running]:
github.com/GoAdminGroup/go-admin/modules/db.CommonQuery(0x103b3f480?, {0x140002f3680?, 0x1033b5cc7?}, {0x1400034e5f0?, 0x140002dc640?, 0x104966ab8?})
/Users/vp/go/pkg/mod/github.com/!go!admin!group/go-admin@v1.2.26/modules/db/performer.go:20 +0x4a0
github.com/GoAdminGroup/go-admin/modules/db.(*Sqlite).QueryWithConnection(...)
/Users/vp/go/pkg/mod/github.com/!go!admin!group/go-admin@v1.2.26/modules/db/sqlite.go:49
github.com/GoAdminGroup/go-admin/modules/db.(*Sqlite).QueryWith(0x10?, 0x10429d5a0?, {0x1033b5cc7?, 0x0?}, {0x140002f3680, 0x32}, {0x1400034e5f0, 0x1, 0x1})
/Users/vp/go/pkg/mod/github.com/!go!admin!group/go-admin@v1.2.26/modules/db/sqlite.go:71 +0x90
github.com/GoAdminGroup/go-admin/modules/db.(*SQL).All(0x140002dc640)
/Users/vp/go/pkg/mod/github.com/!go!admin!group/go-admin@v1.2.26/modules/db/statement.go:442 +0xc8
github.com/GoAdminGroup/go-admin/modules/auth.InitCSRFTokenSrv({0x103c67720, 0x140002f8700})
/Users/vp/go/pkg/mod/github.com/!go!admin!group/go-admin@v1.2.26/modules/auth/auth.go:94 +0x1d8
github.com/GoAdminGroup/go-admin/engine.(*Engine).Use(0x140001197c0, {0x103c35820, 0x140002dc280})
/Users/vp/go/pkg/mod/github.com/!go!admin!group/go-admin@v1.2.26/engine/engine.go:72 +0xd8
main.main()
/Users/vp/CODING/GO_LANG/go_admin/goadmin-vue-example/backend/main.go:73 +0x864

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions