# Fixed : Unknown datastore type: flatfs

**URL:** https://discuss.ipfs.tech/t/fixed-unknown-datastore-type-flatfs/15805
**Category:** Help
**Tags:** go-ipfs
**Created:** [January 7, 2023, 3:10am UTC](https://discuss.ipfs.tech/t/fixed-unknown-datastore-type-flatfs/15805 "2023-01-07T03:10:02Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![yNito-eng](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/ynito-eng/32/7288_2.png) [@yNito-eng](https://discuss.ipfs.tech/u/yNito-eng)
#### Post date: [January 7, 2023, 3:10am UTC](https://discuss.ipfs.tech/t/fixed-unknown-datastore-type-flatfs/15805/1 "2023-01-07T03:10:02Z")

</div>

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.

 ![スクリーンショット 2023-01-07 12.00.23](https://us1.discourse-cdn.com/flex020/uploads/ipfs1/original/2X/4/43c1d106225dac789615ccb51f1ba3bc611183c3.png)

---

<div class="post-metadata">

### Author: ![yNito-eng](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/ynito-eng/32/7288_2.png) [@yNito-eng](https://discuss.ipfs.tech/u/yNito-eng)
#### Post date: [January 7, 2023, 5:48am UTC](https://discuss.ipfs.tech/t/fixed-unknown-datastore-type-flatfs/15805/3 "2023-01-07T05:48:22Z")

</div>

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

thanks

---

<div class="post-metadata">

### Author: ![Discordian](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/discordian/32/4692_2.png) [@Discordian](https://discuss.ipfs.tech/u/Discordian)
#### Post date: [January 10, 2023, 8:28pm UTC](https://discuss.ipfs.tech/t/fixed-unknown-datastore-type-flatfs/15805/4 "2023-01-10T20:28:19Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![mackinleysmith](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/mackinleysmith/32/7763_2.png) [@mackinleysmith](https://discuss.ipfs.tech/u/mackinleysmith)
#### Post date: [June 22, 2023, 3:09pm UTC](https://discuss.ipfs.tech/t/fixed-unknown-datastore-type-flatfs/15805/5 "2023-06-22T15:09:09Z")

</div>

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

```auto
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))
}

```
