# Pydio Cells & FreeBSD

**URL:** <https://forum.pydio.com/t/pydio-cells-freebsd/1154>\
**Category:** Pydio Cells\
**Created:** [May 23, 2018, 9:22am UTC](https://forum.pydio.com/t/pydio-cells-freebsd/1154 "2018-05-23T09:22:31Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![basbebe](https://avatars.discourse-cdn.com/v4/letter/b/8edcca/32.png) [@basbebe](https://forum.pydio.com/u/basbebe)\
**Post date:** [December 19, 2019, 9:59am UTC](https://forum.pydio.com/t/pydio-cells-freebsd/1154/8 "2019-12-19T09:59:04Z")

</div>

I build from sources and now got this:

```
/usr/local/www/cells root@cloud
❯ ./cells install
[Configs] Upgrading: setting default config services/pydio.web.oauth/secret to shFjJp5uqi1uj-10JKQk-If5-FKM1ekb
[Configs] successfully saved config after upgrade - Reloading from source

Welcome to Pydio Cells Home Edition installation
Pydio Cells Home Edition will be configured to run on this machine. Make sure to prepare the following data
 - IPs and ports for binding the webserver to outside world
 - MySQL 5.6+ (or MariaDB equivalent) server access
Pick your installation mode when you are ready.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x4bf7449]

goroutine 1 [running]:
github.com/pydio/cells/vendor/github.com/zalando/go-keyring.Get(...)
	/root/go/src/github.com/pydio/cells/vendor/github.com/zalando/go-keyring/keyring.go:32
github.com/pydio/cells/common/crypto.GetKeyringPassword(0x222f814, 0x13, 0x221f345, 0xe, 0x0, 0x98, 0x1ffe240, 0xc000ca5350, 0x100000000000002, 0x98)
	/root/go/src/github.com/pydio/cells/common/crypto/keyring.go:35 +0x29
github.com/pydio/cells/common/config/vault.(*VaultSource).initMasterPassword(0xc0007dd7c0)
	/root/go/src/github.com/pydio/cells/common/config/vault/source.go:152 +0xe3
github.com/pydio/cells/common/config/vault.NewVaultSource(0xc000afe810, 0x2a, 0xc000afe840, 0x29, 0x0, 0x0, 0x0, 0x0, 0xc000ca3e70)
	/root/go/src/github.com/pydio/cells/common/config/vault/source.go:51 +0x184
github.com/pydio/cells/common/config.Vault.func1()
	/root/go/src/github.com/pydio/cells/common/config/secrets.go:47 +0x393
sync.(*Once).doSlow(0x6e182d0, 0x2361848)
	/usr/local/go/src/sync/once.go:66 +0xe3
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:57
github.com/pydio/cells/common/config.Vault(0xc000b41200, 0x1b6bea0)
	/root/go/src/github.com/pydio/cells/common/config/secrets.go:28 +0x65
github.com/pydio/cells/common/config.Set(0x1b6bea0, 0xc000bda500, 0xc000bdd740, 0x2, 0x2)
	/root/go/src/github.com/pydio/cells/common/config/vars.go:168 +0x17d
github.com/pydio/cells/cmd.glob..func33(0x67aefa0, 0x6e181c8, 0x0, 0x0)
	/root/go/src/github.com/pydio/cells/cmd/install.go:144 +0xbb4
github.com/pydio/cells/vendor/github.com/spf13/cobra.(*Command).execute(0x67aefa0, 0x6e181c8, 0x0, 0x0, 0x67aefa0, 0x6e181c8)
	/root/go/src/github.com/pydio/cells/vendor/github.com/spf13/cobra/command.go:760 +0x2aa
github.com/pydio/cells/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x67afde0, 0xc000b84d90, 0x1, 0x2)
	/root/go/src/github.com/pydio/cells/vendor/github.com/spf13/cobra/command.go:846 +0x2ea
github.com/pydio/cells/vendor/github.com/spf13/cobra.(*Command).Execute(...)
	/root/go/src/github.com/pydio/cells/vendor/github.com/spf13/cobra/command.go:794
github.com/pydio/cells/cmd.Execute()
	/root/go/src/github.com/pydio/cells/cmd/root.go:219 +0x11b
main.main()
	/root/go/src/github.com/pydio/cells/main.go:119 +0x68

```

I found @GwynethLlewelyn 's solution she posted here:

> [@Cells and FreeBSD - panic on install](https://forum.pydio.com/t/cells-and-freebsd-panic-on-install/2256/5):
>
> dbus package was indeed not installed, got it from Freebsd ports now. However, error message still persists: root@Pydio5:~/.gopkg/src/github.com/pydio/cells # ./cells install Welcome to Pydio Cells Home Edition installation Pydio Cells Home Edition will be configured to run on this machine. Make sure to prepare the following data IPs and ports for binding the webserver to outside world MySQL 5.6+ (or MariaDB equivalent) server access Pick your installation mode when you are ready. …

also

> <https://github.com/pydio/cells/issues/115>
>
> In my attempts to get Cells running under FreeBSD, the first thing I needed to c…hange was keyring access. \`github.com/zalando/go-keyring\` only supports Linux, macOS and Windows. However, they provide a \`MockInit()\` function which allows a 'fake' keyring to be created even if the underlying OS does not support it.
> 
> This means that all that is required (for FreeBSD and other non-supported OSes) is to change \`github.com/pydio/cells/common/crypto/keyring.go\` to call \`keyring.MockInit()\` just after each function in that file.
> 
> One possibility would be to add a line to figure out what underlying OS is running (after all, Zalando's \`go-keyring\` works like that), and if none of the supported ones is detected, call \`MockInit()\` automatically.

since this was in May I had hoped that this had been adressed.  
If I make these changes to the source file, what will happen when I upgrade cells through the UI later?

---

_[View the full topic](https://forum.pydio.com/t/pydio-cells-freebsd/1154)._
