# Bug COMMS-610 - hocupocus logs [onAuthenticate] fetch failed and connection to collaboration server not possible

Project: Stream Communicator
Status: closed
URL: https://community.openproject.org/work_packages/COMMS-610

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Text editor / Real time collaboration |
| Target versions | 17.1.0 |
| Observed in versions | 17.0.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.0.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee | Markus Kahl |
| Accountable |  |
| Product manager |  |
| Developers | Bruno Pagno |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Before filing a report

### Steps to reproduce

1.  OpenProject installed via Docker Compose Setup

2.  navigating to hostname/hocuspocus in the browser shows "Welcome to Hocuspocus\!"

3.  OpenProject can't reach hocuspocus and returns `hocuspocus-1 &nbsp;| [onAuthenticate] fetch failed` in the logs

<!-- end list -->

``` text
OPENPROJECT_COLLABORATIVE__EDITING__HOCUSPOCUS__URL: "${COLLABORATIVE_SERVER_URL:-wss://${OPENPROJECT_HOST__NAME}/hocuspocus}"
OPENPROJECT_COLLABORATIVE__EDITING__HOCUSPOCUS__SECRET: "${COLLABORATIVE_SERVER_SECRET:-OVERRIDE_ME_PLEASE}"
```

env variable for OPENPROJECT\_HOST\_\_NAME ist reused and COLLABORATIVE\_SERVER\_SECRET is explicitly set in the .env.prod file.

### What is the buggy behavior?

  - Even though hocuspocus is running and reachable via /hocuspocus OpenProject can't connect to it using the docker compose of the stable/17 branch

### What is the expected behavior?

1.  collaboration server can be reached or at least more debug output to see why the connection didn't work

### **Logs**

`hocuspocus-1 &nbsp;| [onAuthenticate] fetch failed`

### Screenshots and other files

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/918207/content">

### Environment information

**OpenProject installation type**

  - Docker-compose installation with an additional nginx-proxy for SSL handling in front

**OpenProject version**

v17.0.0

**Browser**

- [x] Chrome
- [x] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Operating System**

- [ ] Windows
- [ ] Mac OS X
- [ ] Mobile iOS
- [ ] Mobile Android
- [x] Linux (please specify distro)
- [ ] Chrome OS
- [ ] Other (please specify)
