onlyoffice-owncloud icon indicating copy to clipboard operation
onlyoffice-owncloud copied to clipboard

Owncloud + docker : Error while downloading the document file to be converted

Open TrustMe00 opened this issue 6 years ago • 8 comments

Hi, i have read some posts about my problem but i'm still blocked.

Technical envrionement : Owncloud : ownCloud 10.1.0 (stable) Debian 9.7 PHP7 & apache2

OnlyOffice : last docker version

The docker container is installed on my owncloud server. I have installed letsencrypt certs on owncloud and only office and it work well.

But when i want to use onlyoffice with my owncloud i have this error message : Error while downloading the document file to be converted

My owncloud server : https://imgur.com/a/JGnFu4K My OnlyOffice server (docker) : https://imgur.com/a/EcuVEcL

this is my config.php :

<?php
$CONFIG = array (
  'instanceid' => 'id',
  'passwordsalt' => 'salt',
  'secret' => 'secret',
  'trusted_domains' =>
  array (
    0 => 'cloud.mywebsite.com',
  ),
  'datadirectory' => '/var/www/owncloud/data',
  'overwrite.cli.url' => 'http://cloud.mywebsite.com',
  'dbtype' => 'mysql',
  'version' => '10.1.0.4',
  'dbname' => 'owncloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'owncloud',
  'dbpassword' => 'passwordispassword',
  'logtimezone' => 'UTC',
  'installed' => true,
  'onlyoffice' =>
  array (
    'verify_peer_off' => true,
  ),
);

i have read this post : https://github.com/ONLYOFFICE/onlyoffice-owncloud/issues/241 but i use a docker container and i don't know how to edit local.json directly on the docker. Any ideas?

TrustMe00 avatar Feb 08 '19 08:02 TrustMe00

another thing : this onlyoffice is reachable from internet and i'm able to use it with the owncloud installed in my company (older version maybe)

TrustMe00 avatar Feb 08 '19 08:02 TrustMe00

i solved my problem by reinstallation

TrustMe00 avatar Feb 13 '19 09:02 TrustMe00

Hello, I have the same problem. what did you retinstall? system, owncloud? onlyoffice?

Thanks

CheckFly avatar Feb 15 '19 02:02 CheckFly

Hello, I have the same problem. what did you retinstall? system, owncloud? onlyoffice?

Thanks

Owncloud. And i ha'd another problem because i create a bad rule in my nat firewall i forward 5443 -> 443 (owncloud) and i open 8080 for the docker. i have just changed the apache port 443 to 5443 and edit the rule: 5443 -> 5443 (owncloud) and everything is ok 👍 i've also tried to install owncloud and onlyoffice with the univention distro .ISO.

TrustMe00 avatar Feb 15 '19 07:02 TrustMe00

i reopen this topic to help @tmangeard

TrustMe00 avatar Feb 15 '19 07:02 TrustMe00

@Thomas-Clauzel @CheckFly Try setting internal addresses between OC and OO in the Advanced server settings panel. Could you please specify if the problem recurs?

LinneyS avatar Dec 26 '19 09:12 LinneyS

Hi @TrustMe00, My google searches finally brought me to this issue where I have exactly the same setup and resulting in the same initial error. Owncloud on Ubuntu v20 with Apache2 running on the machine directly. Onlyoffice in the docker container. Two Letsencrypt certs - domainname.org & office.domainname.org which resolve fine individually. I think I can find instructions to change the apache 443 port ok (will look into this) For docker, do I just change the ports: - 80:80 line to 8080:8080 in the docker-compose.yml file? I have setup virtual hosts in the apache enabled sites with a proxy 8006:80 but not sure if this is correct or not. Where is the advanced server panel? I realise I am trying to put too much onto one box, but I really want to learn how to get this working and don't have any other machines to use. Hopefully after all this time, you can remember what is the trick to getting this working on one box. Thanks

zwarbo avatar Sep 05 '22 22:09 zwarbo

I now have Apache on 80 and 443 for Owncloud as they only enabled sites for owncloud 80 redirects to HTTPS. This resolves via a LE cert with https://domainname.org I have onlyoffice on 8080:80 and 8443:443 with LE certs loaded into ../data/certs folder bind mounted into the document-server container. This resolves in the browser as https://office.domainname.org:8443/welcome JWT token enabled and present in /local.json. But when I click save in Owncloud > Additional > onlyoffice I get the same result again as this issue title.

zwarbo avatar Sep 06 '22 04:09 zwarbo