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

Error trying to open a document, when I changed IP configurations #243

Open
ivanoterouvigo opened this issue Jan 24, 2019 · 6 comments
Open

Comments

@ivanoterouvigo
Copy link

ivanoterouvigo commented Jan 24, 2019

Hi everyone,

I had a problem perhaps with the configuration.

When I tried to open a document, it showed me the following image with the error.

error_open_new_document_v000

I made some changes on network configurations.

I changed IP of host where the dockers are installed.

Then, I updated config of docker with the new ip and new port.

I said this because now server is behind a firewall.

The config.php looks like this.

<?php
$CONFIG = array (
    'instanceid' => 'oooooooooooo',
    'passwordsalt' => '000000eeee00000',
    'secret' => '0000000eee0000',
    'trusted_domains' =>
    array (
        0 => 'firewall.teleco.uvigo.es:57228',
     ),
     'datadirectory' => '/var/www/html/data',
     'overwrite.cli.url' => 'firewall.teleco.uvigo.es:57228',
     'dbtype' => 'sqlite3',
     'version' => '10.0.10.4',
     'logtimezone' => 'UTC',
     'installed' => 'true',
     'onlyoffice' =>
     array (
         'DocumentServerUrl' => '/ds-vpath/',
         'DocumentServerInternalUrl' => 'http://onlyoffice-document-server/',
         'StoregeUrl' => 'firewall.teleco.uvigo.es:57228',
      ),
);

Some questions:

Is there any way to update date all network configurations, directly?

What will I need to edit?

Could you help me with this?

--------------------------------------------------------------------------------------------------------------
This is some information of my server
--------------------------------------------------------------------------------------------------------------
OCM Provicer: Owncloud10.0.10
Webservers: nginx-server 1.14.2
Distributor ID: Ubuntu
Release: 16.04

Thanks in advance,

@alexanderonlyoffice
Copy link

Hello @ivanoterouvigo, please specify some more information:

  1. Did you install Owncloud-Documentserver-compose? What installation instruction did you use?
  2. This error means that Document Server cannot download the file from Owncloud for editing. Please send us a screenshot of ONLYOFFICE integration application URL settings from Owncloud.
  3. Did you add the section bellow to config.php manually?
array (
         'DocumentServerUrl' => '/ds-vpath/',
         'DocumentServerInternalUrl' => 'http://onlyoffice-document-server/',
         'StoregeUrl' => 'http://IP:port',
      ),

@ivanoterouvigo
Copy link
Author

ivanoterouvigo commented Jan 25, 2019

Hello @alexanderonlyoffice,

1. Did you install Owncloud-Documentserver-compose? What installation instruction did you use?

Yes, I did it.

I used:

$ sudo docker-compose up -d

Then
Go to the project folder and run the set_configuration.sh script:

$ bash set_configuration.sh

2. This error means that Document Server ...

If I understood well, here you are the screenshots:

Screenshot

cloud-settings_v000

3. Did you add the section bellow to config.php manually?

Yes, I only modified manually the following in bold

array (
0 => ### 'firewall.teleco.uvigo.es:57228',
),

'overwrite.cli.url' => ### 'firewall.teleco.uvigo.es:57228,
...
array (
'StoregeUrl' => ### 'firewall.teleco.uvigo.es:57228',
),

@ivanoterouvigo
Copy link
Author

ivanoterouvigo commented Feb 18, 2019

Hi @alexanderonlyoffice, @LinneyS

I've just updated the answer with more information.

Could you please help me?, where I would need to change the url?

https://api.onlyoffice.com/editors/troubleshooting

Thanks in advance

@ivanoterouvigo
Copy link
Author

ivanoterouvigo commented Feb 18, 2019

I've just saw this.

https://helpcenter.onlyoffice.com/server/docker/document/open-ports.aspx

But I only create a rule for the following ports

port_firewall redirected to IP/port
57228 | IP:80
57229 | IP:443
57230 | IP:9000

I hope this help.
Would I need to create a rule for other ports?

@alexanderonlyoffice
Copy link

@ivanoterouvigo, it seems that address firewall.teleco.uvigo.es:57228 is inaccessible for the Document Server. Please try to enter http://nginx-server/ in 'Server address for internal requests from the Document Editing Service' and click on the 'Save'.

@LinneyS
Copy link
Member

LinneyS commented Dec 26, 2019

Could you please specify if the problem recurs or we can close the topic?

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

3 participants