Try the fastest and simplest way to install ONLYOFFICE

Uncaught Reference Error: error is not defined

Issues during installation, usage and configuring

Undefined Error in editor.js

Postby chihotdog13 » Fri Jul 27, 2018 4:03 pm

Hello, I am using the latest Nextcloud docker image (nextcloud:latest) and onlyoffice docker image (documentserver:latest) in separate docker containers. I have the settings working, and nextcloud successfully connects to OO, but when I attempt to open a document, I receive a white page and this in the console (image attached). I do not have a reverse proxy setup, and I am accessing nextcloud via http. I am using self signed certs for OO, and I am successfully connecting to the onlyoffice site on both containers using wget, as I have imported the necessary CA certs. Thank you!
Attachments
tempsnip.png
tempsnip
tempsnip.png (44.34 KiB) Viewed 139 times
chihotdog13
 
Posts: 3
Joined: Fri Jul 27, 2018 3:55 pm

Uncaught Reference Error: error is not defined

Postby chihotdog13 » Sun Jul 29, 2018 8:45 pm

I am receiving "Uncaught Reference Error: error is not defined editor.js" with nextcloud (nextcloud:latest) and onlyoffice (onlyoffice:latest) integration both using docker. I have onlyoffice working via https, and testing with nextcloud working via http. When configuring the settings in nextcloud for only office, I receive the success message, but just a blank white screen when I try to open a document. I am seeing this error in my browser console. I also am getting this error at the same time "failed to load resource: net::ERR_NAME_NOT_RESOLVED" api.js. I am using self singed certificates, but have imported them successfully as well as the self signed CAs within both nextcloud and onlyoffice docker images, as wget https://oo.tld comes back with a success response. Any help would be appreciated! Thank you.
chihotdog13
 
Posts: 3
Joined: Fri Jul 27, 2018 3:55 pm

Re: Uncaught Reference Error: error is not defined

Postby Maxim » Mon Jul 30, 2018 7:20 am

Hello!
as wget https://oo.tld comes back with a success response.

Do you get a success response (wget command) from nextcloud docker container to onlyoffice docker container and vise versa, in both cases?
Maxim
 
Posts: 1701
Joined: Tue Oct 11, 2016 2:34 pm

Re: Uncaught Reference Error: error is not defined

Postby chihotdog13 » Mon Jul 30, 2018 3:02 pm

Sorry for the double post--thank you for combining!

Yes, I received a success response to the onlyoffice server from both the onlyoffice server and the nextcloud server (wget https://office.tld brings back an OK with no self-signed cert errors). I did have the verify_peer_off = true in the php config for nextcloud in the situation mentioned previously, as well as the rejectUnauthorized = false in the onlyoffice default.json as well.

I did some more testing, and attempted to start a fresh setup: I installed nextcloud:latest docker container, set it up with no special modifications to any config other than adding self-signed wildcard certificate and appropriate CA certificates to ca store (/etc/ssl/certs), then set up a container for documentserver:latest, only changing the documentserver conf file to the SSL one obtained via only office website and same certs, and tried to connect them, with nextcloud going over 80 and document server going over 443, both on the same network of course. I am getting a different error this time via the converter log (unable to copy and paste):

[ERROR] nodeJS - error downloadFile:url=http://nextcloud.tld/apps/onlyoffice/empty?dock={string of numbers/letters};attempt=1;code:undefined:connect:undefined;(id=conv_check_1130926551_docx)
Error: Error response: statusCode:404 ; body: <!DOCTYPE html>.......<pre> GET /apps/onlyoffice/empty</pre>

I still can use wget to verify that https://office.tld works from both this new nextcloud server and new only office server. . . .
chihotdog13
 
Posts: 3
Joined: Fri Jul 27, 2018 3:55 pm

Re: Uncaught Reference Error: error is not defined

Postby Maxim » Fri Aug 03, 2018 7:36 am

Hello chihotdog13!
When you press "Save" in configuration page of Nextcloud what you get?
Maxim
 
Posts: 1701
Joined: Tue Oct 11, 2016 2:34 pm


Return to ownCloud/Nextcloud ONLYOFFICE integration app

Who is online

Users browsing this forum: No registered users and 1 guest