Fixed : Unknown datastore type: flatfs

I have a error message.
I tryed fsrepo.Init() → "Unknown datastore type: flatfs "

I running IPFS image use docker-compose.yml.
Do I need setup something?

I use go-ipfs(version: 0.17.0) and golang 1.19.1.

I self-solutioned this error message.
I closed this quession.

thanks

Hello! I’m glad you got your issue resolved! If you get a moment, would you mind explaining how you resolved it, so future users don’t stumble on this?

I encountered this issue and was able to get past it by adding the following before initializing ipfs:

plugins, err := loader.NewPluginLoader(repoPath)
if err != nil {
	panic(fmt.Errorf("error loading plugins: %s", err))
}

if err := plugins.Initialize(); err != nil {
	panic(fmt.Errorf("error initializing plugins: %s", err))
}

if err := plugins.Inject(); err != nil {
	panic(fmt.Errorf("error initializing plugins: %s", err))
}
1 Like