Skip to content
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

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

Open
TrustMe00 opened this issue Feb 8, 2019 · 8 comments

Comments

@TrustMe00
Copy link

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 : #241
but i use a docker container and i don't know how to edit local.json directly on the docker. Any ideas?

@TrustMe00
Copy link
Author

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
Copy link
Author

i solved my problem by reinstallation

@CheckFly
Copy link

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

Thanks

@TrustMe00
Copy link
Author

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 TrustMe00 reopened this Feb 15, 2019
@TrustMe00
Copy link
Author

i reopen this topic to help @tmangeard

@LinneyS
Copy link
Member

LinneyS commented Dec 26, 2019

@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?

@zwarbo
Copy link

zwarbo commented Sep 5, 2022

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
Copy link

zwarbo commented Sep 6, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants