# Pydio cells v2 - Chat throws runtime error (panic)

**URL:** <https://forum.pydio.com/t/pydio-cells-v2-chat-throws-runtime-error-panic/3271>\
**Category:** Pydio Cells\
**Created:** [May 13, 2020, 8:59pm UTC](https://forum.pydio.com/t/pydio-cells-v2-chat-throws-runtime-error-panic/3271 "2020-05-13T20:59:25Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![rhapsody](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@rhapsody](https://forum.pydio.com/u/rhapsody)\
**Post date:** [May 13, 2020, 8:59pm UTC](https://forum.pydio.com/t/pydio-cells-v2-chat-throws-runtime-error-panic/3271/1 "2020-05-13T20:59:25Z")

</div>

Hi there! Wondering if anyone else has experienced this: installation successful, able to access admin page, file uploads, user creation, etc all works fine. But the moment I enter a message in the Chat area, Pydio throws a runtime error (panic: runtime error: invalid memory address or nil pointer dereference).

Would anyone has an idea please? Help will be much appreciated!

---

<div class="post-metadata">

**Author:** ![zayn](https://avatars.discourse-cdn.com/v4/letter/z/a87d85/32.png) [@zayn](https://forum.pydio.com/u/zayn)\
**Post date:** [May 14, 2020, 7:57am UTC](https://forum.pydio.com/t/pydio-cells-v2-chat-throws-runtime-error-panic/3271/2 "2020-05-14T07:57:25Z")

</div>

Hello @rhapsody,

I would like to know which version of Pydio Cells are you using, it would help me try to reproduce the issue.

Also could you tell me your server spec.

---

<div class="post-metadata">

**Author:** ![rhapsody](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@rhapsody](https://forum.pydio.com/u/rhapsody)\
**Post date:** [May 14, 2020, 12:09pm UTC](https://forum.pydio.com/t/pydio-cells-v2-chat-throws-runtime-error-panic/3271/3 "2020-05-14T12:09:48Z")

</div>

Yes, sorry, here goes:

1. DigitalOcean, 2 CPUs, 4G RAM
2. Debian10, MariaDb 10.4
3. Pydio Cells 2.0.6
4. Installation ran smoothly, no warnings, etc.
5. Internal and External URL set to [domain.com:443](http://domain.com:443) and [https://domain.com](https://domain.com) respectively, with TLS and A record pointing to Digital Ocean Instance public IP.
6. All firewalls disabled, for testing.
7. Pydio starts with no errors, no warnings.
8. Pydio admin console reports all services running.

So, login, create new user, create new cell works. The moment I opened the chat tab and entered a text, the system crashed with a nil pointer run-time error.

Thank you so much for helping!

---

<div class="post-metadata">

**Author:** ![zayn](https://avatars.discourse-cdn.com/v4/letter/z/a87d85/32.png) [@zayn](https://forum.pydio.com/u/zayn)\
**Post date:** [May 14, 2020, 1:35pm UTC](https://forum.pydio.com/t/pydio-cells-v2-chat-throws-runtime-error-panic/3271/4 "2020-05-14T13:35:03Z")

</div>

Thank you,

I’ll ask the devs about this.

---

<div class="post-metadata">

**Author:** ![rhapsody](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@rhapsody](https://forum.pydio.com/u/rhapsody)\
**Post date:** [May 14, 2020, 2:18pm UTC](https://forum.pydio.com/t/pydio-cells-v2-chat-throws-runtime-error-panic/3271/5 "2020-05-14T14:18:00Z")

</div>

Thank you very much. Here is the panic message, just in case you might need that:

panic: runtime error: invalid memory address or nil pointer dereference

[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x29e4521]

goroutine 8054 [running]:

[github.com/pydio/cells/vendor/github.com/etcd-io/bbolt.(\*Bucket](http://github.com/pydio/cells/vendor/github.com/etcd-io/bbolt.(*Bucket)).Cursor(…)

/opt/teamcity/agent/work/fb9e7e7133d45375/go/src/github.com/pydio/cells/vendor/github.com/etcd-io/bbolt/bucket.go:84

[github.com/pydio/cells/broker/chat.(\*boltdbimpl](http://github.com/pydio/cells/broker/chat.(*boltdbimpl)).RoomByUuid.func1(0xc001267a40, 0x0, 0xc001267a40)

/opt/teamcity/agent/work/fb9e7e7133d45375/go/src/github.com/pydio/cells/broker/chat/bolt.go:224 +0x91

[github.com/pydio/cells/vendor/github.com/etcd-io/bbolt.(\*DB](http://github.com/pydio/cells/vendor/github.com/etcd-io/bbolt.(*DB)).View(0xc001056600, 0xc009d06eb8, 0x0, 0x0)

/opt/teamcity/agent/work/fb9e7e7133d45375/go/src/github.com/pydio/cells/vendor/github.com/etcd-io/bbolt/db.go:719 +0xa8

[github.com/pydio/cells/broker/chat.(\*boltdbimpl](http://github.com/pydio/cells/broker/chat.(*boltdbimpl)).RoomByUuid(0xc000fb3820, 0x3, 0xc00998c750, 0x24, 0xc008a430b0, 0x0, 0x0)

/opt/teamcity/agent/work/fb9e7e7133d45375/go/src/github.com/pydio/cells/broker/chat/bolt.go:222 +0xf5

[github.com/pydio/cells/broker/chat/grpc.(\*ChatHandler](http://github.com/pydio/cells/broker/chat/grpc.(*ChatHandler)).PostMessage.func1(0xc009019a60, 0x7fde1801f1e0, 0xc000fb3820)

/opt/teamcity/agent/work/fb9e7e7133d45375/go/src/github.com/pydio/cells/broker/chat/grpc/handler.go:129 +0x263

created by [github.com/pydio/cells/broker/chat/grpc.(\*ChatHandler](http://github.com/pydio/cells/broker/chat/grpc.(*ChatHandler)).PostMessage

/opt/teamcity/agent/work/fb9e7e7133d45375/go/src/github.com/pydio/cells/broker/chat/grpc/handler.go:120 +0x371

---

<div class="post-metadata">

**Author:** ![autoize](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/autoize/32/1199_2.png) [@autoize](https://forum.pydio.com/u/autoize)\
**Post date:** [June 4, 2020, 10:40pm UTC](https://forum.pydio.com/t/pydio-cells-v2-chat-throws-runtime-error-panic/3271/6 "2020-06-04T22:40:13Z")

</div>

We can reproduce this. It appears to be a race condition bug, same file (bucket.go) and line (84) in the trace as [https://github.com/etcd-io/bbolt/issues/213](https://github.com/etcd-io/bbolt/issues/213). Pydio Cells 2.0.8 is using a very old version of this dependency, a commit from Jan 2019 according to vendor/vendor.json.

More details in this Github issue. [https://github.com/pydio/cells/issues/242](https://github.com/pydio/cells/issues/242)

Any help would be appreciated as it’s hindering the use of Cells in a production environment. TY!

---

<div class="post-metadata">

**Author:** ![zayn](https://avatars.discourse-cdn.com/v4/letter/z/a87d85/32.png) [@zayn](https://forum.pydio.com/u/zayn)\
**Post date:** [June 9, 2020, 9:29am UTC](https://forum.pydio.com/t/pydio-cells-v2-chat-throws-runtime-error-panic/3271/7 "2020-06-09T09:29:24Z")

</div>

Hello,

We just fixed the bug on the master.

- [https://github.com/pydio/cells/commit/79c33c0831d5dd801a10369bb14321030a71862e](https://github.com/pydio/cells/commit/79c33c0831d5dd801a10369bb14321030a71862e)

It will be available in the next release.

---

<div class="post-metadata">

**Author:** ![rhapsody](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@rhapsody](https://forum.pydio.com/u/rhapsody)\
**Post date:** [June 21, 2020, 3:45am UTC](https://forum.pydio.com/t/pydio-cells-v2-chat-throws-runtime-error-panic/3271/8 "2020-06-21T03:45:15Z")

</div>

Thank you very much! Looking forward to it 🙂

---

<div class="post-metadata">

**Author:** ![bsinou](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/bsinou/32/476_2.png) [@bsinou](https://forum.pydio.com/u/bsinou)\
**Post date:** [June 22, 2020, 7:29am UTC](https://forum.pydio.com/t/pydio-cells-v2-chat-throws-runtime-error-panic/3271/9 "2020-06-22T07:29:55Z")

</div>

FYI, it is included in v2.0.9 that has been released a few days ago.
