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

Unable to import murmur sqlite database in docker container #67

Open
LeoVerto opened this issue Apr 16, 2020 · 1 comment
Open

Unable to import murmur sqlite database in docker container #67

LeoVerto opened this issue Apr 16, 2020 · 1 comment

Comments

@LeoVerto
Copy link

I've mounted a murmur sqlite database into the container and am running docker-compose run grumble --import-murmurdb /import/mumble.db --cleanup to import it. When I do that, I get the following error message:

panic: sql: unknown driver "sqlite" (forgotten import?)

goroutine 1 [running]:
main.MurmurImport(0x7ffd49818f3e, 0x11, 0xc00017de18, 0x1)
        /go/src/mumble.info/grumble/cmd/grumble/murmurdb.go:45 +0x62f
main.main()
        /go/src/mumble.info/grumble/cmd/grumble/grumble.go:139 +0x767

Seems like whatever dependency is required for sqlite is missing in the container.

@LeoVerto
Copy link
Author

I've managed to get this to somewhat work outside of docker by adding _ "github.com/mattn/go-sqlite3" as a dependency and changing db, err := sql.Open("sqlite", filename) to db, err := sql.Open("sqlite3", filename) and after bypassing the cleanup check (which fails due to the directories not existing) the import seems to work but the server is now stuck in a reboot loop.

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