-
Notifications
You must be signed in to change notification settings - Fork 537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download failed in mobile browsers, it works in desktop. USE_UNAUTHORIZED doesn't work, only rejectUnauthorized. #797
Comments
Hello @luisnabais, i don't think the issue is in the variable |
Hello @igwyd. Thanks for answering, but I get no errors in OnlyOffice documentserver container, when I open the file, regardless of opening successfully or not. |
It looks like the issue is in specific mobile devices. As far as I know, mobile devices may have some issues with LE certificates https://stackoverflow.com/questions/78049111/android-devices-api-25-not-connecting-to-letsencrypt-ssl-servers-anymore |
I tried multiple browsers in iOS, iPadOS and Android. The certificates are fully valid and tested. They work correctly in all my homelab apps. And I open the onlyoffice container website without issues, with valid certificate on the same browsers. It's the same URL, same certificate. |
I checked |
That's exactly what I'm saying from the beginning. Why is rejectUnauthorized set to false working, but not USE_UNAUTHORIZED_STORAGE to true, when my certificates are letsencrypt (not self-signed), perfectly valid? Thanks a lot for your time and help. |
lets try. Do I understand correctly that if you set |
Exactly. Here is docker-compose.yml: version: '3.2'
services:
onlyoffice:
image: onlyoffice/documentserver:8.3.1.1
container_name: onlyoffice
hostname: onlyoffice
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Lisbon
- DB_TYPE=${DB_TYPE}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- JWT_SECRET=${JWT_SECRET}
- USE_UNAUTHORIZED_STORAGE=true
volumes:
- /data/docker_volumes/onlyoffice_data:/var/www/onlyoffice/Data
networks:
- traefik
labels:
- traefik.http.routers.onlyoffice.tls=true
- traefik.http.services.onlyoffice.loadbalancer.server.port=80
restart: unless-stopped
healthcheck:
test: curl -sSf http://127.0.0.1/healthcheck &>/dev/null || exit 1
start_period: 60s
interval: 5s
timeout: 10s
retries: 3
networks:
traefik:
external: true |
Unfortunately we still don't have an approved configuration for proxy traefik 2+ version (We have only for old version 1) ONLYOFFICE/DocumentServer#2162, issue may be here. Could you try with another proxy server? Nginx for example, here our configs https://helpcenter.onlyoffice.com/installation/docs-community-proxy.aspx |
Hello.
I'm using OnlyOffice in Docker and I'm getting the "Download failed" error, but only in mobile, in desktop browsers it works.
I'm using the image onlyoffice/documentserver:8.3.1.1.
I'm not using self-signed certificates, I'm using valid LE certificates (fullchain/key pair), which resolve successfully using curl in internal network and inside containers, without using -k flag.
Adding USE_UNAUTHORIZED_STORAGE as truedoesn't work, but changing rejectUnauthorized to false in defaults.json works, but as it's not a fixed solution (when I upgrade container it's lost), I believe the option USE_UNAUTHORIZED_STORAGE is somehow broken.
This is the docker compose yaml (cropped, just the essentials for this, but including all the variables):
Can you please check this?
Thank you.
The text was updated successfully, but these errors were encountered: