ONLYOFFICE cannot be reached. Please contact admin -- 6/7/2021

Does anyone have any clue what the issue may be? I’m still very much a noob and put this on the back burner a while ago because I just didn’t have time. I cannot remember which tutorial I used but I’ll put the stack below (with obvious stuff redacted).

I can create a document with no problem, the issue is every time I go to open any document (except PDF, they work), I get “ONLYOFFICE cannot be reached. Please contact admin”. Well I’m an admin and I don’t know what is wrong…LOL

I’ve uninstalled ONLYOFFICE and the Community Document Server several times, and get the same result. I’ve Googled a lot and everything I’ve tried I get the same result, so I am thinking I’ve missed something in my setup. So, I’m hoping someone can look and see if I’ve input something inaccurately. I’d post logs but I don’t know exactly which ones or how to get the ones needed, but if you tell me where to find them I’ll post.

My setup:
OVM5
Operating System: Linux 5.10.0-0.bpo.5-amd64 x86_64
CPU: AMD Ryzen 5 3400G with Radeon Vega Graphics (8 cores)
Memory: 13.59 GB
Webserver: nginx/1.18.0 (fpm-fcgi)
PHP Version: 7.4.19
Database: mysql 10.4.14
Nextcloud: 20.0.10

The stack I used in Portainer is:

---
version: "2"
services:
  nextcloud:
    image: linuxserver/nextcloud
    container_name: nextcloud
    environment:
      - PUID=1000
      - PGID=100
      - TZ=America/Indianapolis
    volumes:
      - /srv/dev-disk-by-label-"***REMOVED SENSITIVE VALUE***"/appdata/nextcloud/config:/config
      - /srv/dev-disk-by-label-"***REMOVED SENSITIVE VALUE***"/appdata/nextcloud/data:/data
    depends_on:
      - mariadb
    restart: unless-stopped
  mariadb:
    image: linuxserver/mariadb
    container_name: mariadb
    ports:
      - 3306:3306
    environment:
      - PUID=1000
      - PGID=100
      - MYSQL_ROOT_PASSWORD="***REMOVED SENSITIVE VALUE***"
      - TZ=America/Indianapolis
    volumes:
      - /srv/dev-disk-by-label-"***REMOVED SENSITIVE VALUE***"/appdata/mariadb:/config
    restart: unless-stopped
  swag:
    image: linuxserver/swag
    container_name: swag
    cap_add:
      - NET_ADMIN
    environment:
      - PUID=1000
      - PGID=100
      - TZ=America/Indianapolis
      - URL="***REMOVED SENSITIVE VALUE***".duckdns.org
      - SUBDOMAINS=wildcard
      - VALIDATION=duckdns
      - DNSPLUGIN= #optional
      - PROPAGATION= #optional
      - DUCKDNSTOKEN="***REMOVED SENSITIVE VALUE***"
      - EMAIL="***REMOVED SENSITIVE VALUE***"@gmail.com
      - ONLY_SUBDOMAINS=false #optional
      - EXTRA_DOMAINS= #optional
      - STAGING=false #optional
      - MAXMINDDB_LICENSE_KEY="***REMOVED SENSITIVE VALUE***"
    volumes:
      - /srv/dev-disk-by-label-"***REMOVED SENSITIVE VALUE***"/appdata/swag:/config
    ports:
      - 443:443
      - 80:80
    restart: unless-stopped
  phpmyadmin:
    restart: unless-stopped
    image: phpmyadmin:latest
    container_name: phpmyadmin
    hostname: phpmyadmin
    domainname: example.com
    ports:
      - 8085:80
    volumes: 
      - /srv/dev-disk-by-label-"***REMOVED SENSITIVE VALUE***"/appdata/phpmyadmin/config
    environment:
      - PMA_ARBITRARY=1
      - PMA_HOST=192.168.***.***
      - PMA_VERBOSE=websites
      - PMA_PORT=3306
      - PMA_USER=root
      - PMA_PASSWORD="***REMOVED SENSITIVE VALUE***"

When I run the Configuration summary I get:

{
    "memcache.local": "\\OC\\Memcache\\APCu",
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "nextcloud."***REMOVED SENSITIVE VALUE***".duckdns.org"
    ],
    "dbtype": "mysql",
    "version": "20.0.10.1",
    "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
    "overwrite.cli.url": "https:\/\/nextcloud."***REMOVED SENSITIVE VALUE***".duckdns.org",
    "overwritehost": "nextcloud."***REMOVED SENSITIVE VALUE***".duckdns.org",
    "overwriteprotocol": "https",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpmode": "smtp",
    "mail_sendmailmode": "smtp",
    "mail_smtpauthtype": "LOGIN",
    "mail_smtpauth": 1,
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpsecure": "ssl",
    "mail_smtpport": "465",
    "maintenance": false,
    "loglevel": 0,
    "theme": "",
    "app_install_overwrite": [
        "occweb"
    ]
}

Additionally, my OMV is NOT on port 80 and I have the port forwarding on my router. I can access my Nextcloud anywhere, I just can’t get ONLYOFFICE to open any documents, spreadsheets, etc.

Thank you for your help in advance, I know there is a lot to look at above.

I’m hoping someone can look at this and see if I added something or need to add something to fix this issue. I’m pulling my hair out.

Also at the end of my report is says:

Encryption: no

User-backends:

  • OC\User\Database

Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36