# iOS App Documents "Connection lost" error

**URL:** https://community.onlyoffice.com/t/ios-app-documents-connection-lost-error/727
**Category:** Mobile apps
**Tags:** ios, connection-to-server, solved
**Created:** [18 November 2021 11:58 UTC](https://community.onlyoffice.com/t/ios-app-documents-connection-lost-error/727 "2021-11-18T11:58:24Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Maginos](https://community.onlyoffice.com/letter_avatar_proxy/v4/letter/m/dfb087/32.png) [@Maginos](https://community.onlyoffice.com/u/Maginos)
#### Post date: [18 November 2021 11:58 UTC](https://community.onlyoffice.com/t/ios-app-documents-connection-lost-error/727/1 "2021-11-18T11:58:24Z")

</div>

Hi guys,

I have a problem with the iOS Documents App and I would like to ask, if someone can help me. When I try to open any type of document from my cloud server I get the error “Connection lost. You can view this file, but not edit it” (error message translated by me).

My setup is the following:

- Virtual private server at contabo running Ubuntu 20.04
- OnlyOffice Workspace (MySQL, document server, control panel and community server; the mail server is NOT installed) running as docker container. For the setup I followed [this](https://helpcenter.onlyoffice.com/de/installation/workspace-install-docker-integrated.aspx). guide
- For HTTPS access to the portal I used [this](https://helpcenter.onlyoffice.com/de/installation/groups-https-docker.aspx) guide.
- I also have Nginx Proxy Manager running to get Let’s Encrypt certificates and to connect to the Portal via HTTPS
- A UFW firewall is also installed on the vps.

In the Web Browser the Portal is accessible and I can also view and edit any type of document. For the iOS Apps Portal and Documents, I can login to my account and in Portal I have regular access to everything. But when I try to open any kind of document, I get the error message from above. Log out and back in didn’t help.

Has anyone an idea, where the problem could be?

Thank you very much for your help!

Maginos

Device: iPhone 13  
OS version: 15.1.1  
App version: 6.6  
Mode: Connect to Cloud  
Browser version (for Web editors): Brave, Safari

---

<div class="post-metadata">

### Author: ![Alexandre](https://community.onlyoffice.com/user_avatar/community.onlyoffice.com/alexandre/32/285_2.png) [@Alexandre](https://community.onlyoffice.com/u/Alexandre)
#### Post date: [22 November 2021 09:02 UTC](https://community.onlyoffice.com/t/ios-app-documents-connection-lost-error/727/2 "2021-11-22T09:02:16Z")

</div>

Hello Maginos.

Is it possible to provide us with test account to your portal? So we are able to reproduce the issue.

If so, please send me account credentials via PM.

As for the issue in general. Please reproduce it and make a screenshot of an error. Also attach whole Community server logs folder to your reply. It’s located here: /app/onlyoffice/CommunityServer/logs/

> For HTTPS access to the portal I used this guide.

By the way, docker installation allows you to obtain Let’s Encrypt certificate or use your own one in the most simplest way (using portal Control Panel \> HTTPS). As far as I understand your network scheme, you ran CS container with -p 443:443, but you used proxy server in front of portal for https requests. Is it correct?

---

<div class="post-metadata">

### Author: ![Maginos](https://community.onlyoffice.com/letter_avatar_proxy/v4/letter/m/dfb087/32.png) [@Maginos](https://community.onlyoffice.com/u/Maginos)
#### Post date: [22 November 2021 21:13 UTC](https://community.onlyoffice.com/t/ios-app-documents-connection-lost-error/727/3 "2021-11-22T21:13:51Z")

</div>

> [@Alexandre](#):
>
> Is it possible to provide us with test account to your portal? So we are able to reproduce the issue.
> 
> If so, please send me account credentials via PM.

I just sent you a PM with the required information.

I have port mappings -p 445:443 and -p 85:80 for CS and -p 80:80 and -p 443:443 for Nginx Proxy Manager.

---

<div class="post-metadata">

### Author: ![Maginos](https://community.onlyoffice.com/letter_avatar_proxy/v4/letter/m/dfb087/32.png) [@Maginos](https://community.onlyoffice.com/u/Maginos)
#### Post date: [24 November 2021 09:59 UTC](https://community.onlyoffice.com/t/ios-app-documents-connection-lost-error/727/4 "2021-11-24T09:59:12Z")

</div>

So with the help of Alexandre I got it working. Following steps were required:

On Web Portal:

- Under Settings, Document Service, paste the URL from the web portal in “Community Server address for requests from the Document Service”

- Under Settings, Customization, DNS Settings, enable “Custom DNS Settings” and paste the URL to the web portal again

Since I have running Nginx Proxy Manager running in front of my OO installation, I had to change some settings there as well. Following settings refer to Community Server AND Document server:  
Section “Details”:

- Cache Assets → enabled
- Block Common Exploits → disabled
- Websockets Support → enabled

Section “SSL”:

- Force SSL → enabled
- HTTP/2 Support → enabled
- HSTS Enabled → enabled
- HSTS Subdomains --\>disabled

Maybe not all changes on NPM are required, but with these settings it works.
