ONLYOFFICE / Docker-DocumentServer

ONLYOFFICE Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
GNU Affero General Public License v3.0
1.44k stars 498 forks source link

Regarding opening of a document from local on document server. #369

Closed bharatramawat28 closed 2 years ago

bharatramawat28 commented 3 years ago

I am unable to open any document for the java example given on site. I have installed onlyoffice document server on Docker and now I have changed all the URL required in settings.property. but still, it is not opening and showing

[2021-07-22T14:30:04.460] [ERROR] nodeJS - postData error: docId = -191991650;url = http://localhost:8088/OnlineEditorsExampleJava/IndexServlet?type=track&fileName=TestExcelOnlyOffice.xlsx&userAddress=192.168.29.241;data = {"key":"-191991650","status":1,"users":["uid-1"],"actions":[{"type":1,"userid":"uid-1"}]} Error: connect ECONNREFUSED 127.0.0.1:8088 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)

Please help me out.

ShockwaveNN commented 3 years ago

Hi, I need more details

Judging by url are you using 8088 port for both DocumentServer and java example?

bharatramawat28 commented 3 years ago

I have my docker installed on localhost port 80 and then I am running this example from eclipse tomcat whose port is 8088.

bharatramawat28 commented 3 years ago

These are my settings.property

filesize-max=5242880 storage-folder=app_data

files.docservice.viewed-docs=.pdf|.djvu|.xps files.docservice.edited-docs=.docx|.xlsx|.csv|.pptx|.txt files.docservice.convert-docs=.docm|.dotx|.dotm|.dot|.doc|.odt|.fodt|.ott|.xlsm|.xltx|.xltm|.xlt|.xls|.ods|.fods|.ots|.pptm|.ppt|.ppsx|.ppsm|.pps|.potx|.potm|.pot|.odp|.fodp|.otp|.rtf|.mht|.html|.htm|.xml|.epub|.fb2 files.docservice.timeout=120000

files.docservice.url.site=http://localhost/ files.docservice.url.converter=ConvertService.ashx files.docservice.url.command=coauthoring/CommandService.ashx files.docservice.url.api=web-apps/apps/api/documents/api.js files.docservice.url.preloader=web-apps/apps/api/documents/cache-scripts.html files.docservice.url.example=

files.docservice.secret=Secret files.docservice.header=Authorization

ShockwaveNN commented 3 years ago

files.docservice.url.site=http://localhost/

If you run DocumentServer in docker I think this should be your local ip, not localhost because there may be connection issues

bharatramawat28 commented 3 years ago

Still Having issues:

2021/07/22 15:09:16 [error] 6237#6237: 56 open() "/var/www/onlyoffice/documentserver/sdkjs/common/libfont/wasm/file.js" failed (2: No such file or directory), client: 172.17.0.1, server: , request: "GET /sdkjs/common/libfont/wasm/file.js HTTP/1.1", host: "192.168.29.241", referrer: "http://192.168.29.241/web-apps/apps/api/documents/cache-scripts.html" 2021/07/22 15:09:16 [error] 6237#6237: 56 open() "/var/www/onlyoffice/documentserver/sdkjs/common/libfont/wasm/engine.js" failed (2: No such file or directory), client: 172.17.0.1, server: , request: "GET /sdkjs/common/libfont/wasm/engine.js HTTP/1.1", host: "192.168.29.241", referrer: "http://192.168.29.241/web-apps/apps/api/documents/cache-scripts.html" 2021/07/22 15:09:16 [error] 6237#6237: *56 open() "/var/www/onlyoffice/documentserver/sdkjs/common/libfont/wasm/manager.js" failed (2: No such file or directory), client: 172.17.0.1, server: , request: "GET /sdkjs/common/libfont/wasm/manager.js HTTP/1.1", host: "192.168.29.241", referrer: "http://192.168.29.241/web-apps/apps/api/documents/cache-scripts.html"

ShockwaveNN commented 3 years ago

Those errors are normal, for wasm files

Does opening files are not working?

Could you attach a video of error

bharatramawat28 commented 3 years ago

https://user-images.githubusercontent.com/63096895/126665445-88f5bf64-4f7f-4751-a73b-c3121883c5f8.mp4

Hi please find the attached mp4 file.

Thanks a lot for helping me out on this.

ShockwaveNN commented 3 years ago

On 11 second it opened on localhost, it should be opened on local ip

bharatramawat28 commented 3 years ago

I have changed this as you said => files.docservice.url.site=http://192.168.29.241/ still, it is opening on that. How can I change that?

ShockwaveNN commented 3 years ago

You missing my point

Your setting in config is correct

You should open chrome with http://192.168.29.241:8088/, not withhttp://localhost:8088/ (see 11 second)

bharatramawat28 commented 3 years ago

image

Now I have done that but it's showing an error and the file is not opening to edit.

bharatramawat28 commented 3 years ago

image

This screen is opening after the ok button part.

bharatramawat28 commented 3 years ago

When I upload any file then it remains forever stuck in the conversion part.

image

bharatramawat28 commented 3 years ago

Please help me out with this conversion issue.

ShockwaveNN commented 3 years ago

Is there any errors in logs of DocumentServer?

bharatramawat28 commented 3 years ago

No just the wasm errors.

bharatramawat28 commented 3 years ago

once I upload the file then this conversion process is running like forever.

ShockwaveNN commented 3 years ago

Hm, did you say you downloaded version from site? There is maybe incorrect version there

Could you try this: https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/java

It should you older design like this: image

ShockwaveNN commented 2 years ago

This issue was closed due to no response.