ONLYOFFICE / DocumentServer

ONLYOFFICE Docs is a free collaborative online office suite comprising viewers and editors for texts, spreadsheets and presentations, forms and PDF, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
https://www.onlyoffice.com
GNU Affero General Public License v3.0
4.91k stars 1.1k forks source link

Bug this.Ec is null in sdk-all-min.js #1924

Open Y0ngg4n opened 2 years ago

Y0ngg4n commented 2 years ago

Do you want to request a feature or report a bug? Bug

What is the current behavior? I have connected Onlyoffice with my Nextcloud. The spreadsheet does not load i get a empty pane. And the console throws following logs:

``` Mutations-Ereignisse sollten nicht mehr verwendet werden. Verwenden Sie MutationObserver stattdessen. [listener.js:151:11](https://cloud.obco.pro/custom_apps/onlyoffice/js/listener.js) Proxying an event bus of version 2.1.1 with 1.3.0 [index.es.js:2337:14](webpack:///notifications/node_modules/@nextcloud/auth/node_modules/@nextcloud/event-bus/dist/index.es.js) Loading theming data for notification bell styling [App.vue:150](webpack:///notifications/src/App.vue) $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 3 [globals.js:62:15](webpack:///nextcloud/core/src/globals.js) Registering notifications container as a menu [App.vue:160](webpack:///notifications/src/App.vue) $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 2 [globals.js:62:15](webpack:///nextcloud/core/src/globals.js) Notifications permissions not yet requested [App.vue:412](webpack:///notifications/src/App.vue) Polling interval updated to 30000 [App.vue:355](webpack:///notifications/src/App.vue) Started background fetcher as session_keepalive is enabled [App.vue:217](webpack:///notifications/src/App.vue) $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 96 [globals.js:62:15](webpack:///nextcloud/core/src/globals.js) [INFO] viewer: 5 viewer handlers registered Object { app: "viewer", uid: "Yonggan", handlers: (5) […] } [ConsoleLogger.js:33:16](webpack:///viewer/node_modules/@nextcloud/logger/dist/ConsoleLogger.js) session heartbeat polling started [session-heartbeat.js:103:9](webpack:///nextcloud/core/src/session-heartbeat.js) $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 3 [globals.js:62:15](webpack:///nextcloud/core/src/globals.js) [DEBUG] files: Templates folder not initialized Object { app: "files", uid: "Yonggan" } [ConsoleLogger.js:29:8](webpack:///nextcloud/node_modules/@nextcloud/logger/dist/ConsoleLogger.js) $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 45 [globals.js:62:15](webpack:///nextcloud/core/src/globals.js) Clipboard is deprecated: please ship your own, this will be removed in Nextcloud 20 [globals.js:62:15](webpack:///nextcloud/core/src/globals.js) $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 22 [globals.js:62:15](webpack:///nextcloud/core/src/globals.js) registerTabView is deprecated! It will be removed in nextcloud 20. [filelist.js:3872:12](https://cloud.obco.pro/apps/files/js/filelist.js) $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 22 [globals.js:62:15](webpack:///nextcloud/core/src/globals.js) jQuery is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. [globals.js:62:15](webpack:///nextcloud/core/src/globals.js) $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 19 [globals.js:62:15](webpack:///nextcloud/core/src/globals.js) Got notification data [App.vue:318](webpack:///notifications/src/App.vue) Polling interval updated to 30000 [App.vue:355](webpack:///notifications/src/App.vue) $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 12 [globals.js:62:15](webpack:///nextcloud/core/src/globals.js) querying Whats New data was successful: nocontent [whatsnew.js:68:9](webpack:///nextcloud/core/src/OCP/whatsnew.js) undefined [whatsnew.js:69:9](webpack:///nextcloud/core/src/OCP/whatsnew.js) $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 41 [globals.js:62:15](webpack:///nextcloud/core/src/globals.js) OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment [util.js:127:11](webpack:///nextcloud/core/src/OC/util.js) OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment [util.js:139:11](webpack:///nextcloud/core/src/OC/util.js) $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 23 [globals.js:62:15](webpack:///nextcloud/core/src/globals.js) OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment [util.js:127:11](webpack:///nextcloud/core/src/OC/util.js) OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment [util.js:139:11](webpack:///nextcloud/core/src/OC/util.js) $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 23 [globals.js:62:15](webpack:///nextcloud/core/src/globals.js) OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment [util.js:127:11](webpack:///nextcloud/core/src/OC/util.js) OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment [util.js:139:11](webpack:///nextcloud/core/src/OC/util.js) $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 23 [globals.js:62:15](webpack:///nextcloud/core/src/globals.js) OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment [util.js:127:11](webpack:///nextcloud/core/src/OC/util.js) OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment [util.js:139:11](webpack:///nextcloud/core/src/OC/util.js) $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 24 [globals.js:62:15](webpack:///nextcloud/core/src/globals.js) OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment [util.js:127:11](webpack:///nextcloud/core/src/OC/util.js) OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment [util.js:139:11](webpack:///nextcloud/core/src/OC/util.js) $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 23 [globals.js:62:15](webpack:///nextcloud/core/src/globals.js) OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment [util.js:127:11](webpack:///nextcloud/core/src/OC/util.js) OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment [util.js:139:11](webpack:///nextcloud/core/src/OC/util.js) $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 24 [globals.js:62:15](webpack:///nextcloud/core/src/globals.js) OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment [util.js:127:11](webpack:///nextcloud/core/src/OC/util.js) OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment [util.js:139:11](webpack:///nextcloud/core/src/OC/util.js) $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 26 [globals.js:62:15](webpack:///nextcloud/core/src/globals.js) OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment [util.js:127:11](webpack:///nextcloud/core/src/OC/util.js) OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment [util.js:139:11](webpack:///nextcloud/core/src/OC/util.js) $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 54 [globals.js:62:15](webpack:///nextcloud/core/src/globals.js) ```
Log of the onlyoffice server: ``` * Starting PostgreSQL 14 database server ...done. * Starting RabbitMQ Messaging Server rabbitmq-server ...done. * Reloading nginx configuration nginx ...done. Starting supervisor: supervisord. cron: unrecognized service * Starting nginx nginx ...done. Generating AllFonts.js, please wait...Done Generating presentation themes, please wait...Done ds:docservice: stopped ds:docservice: started ds:converter: stopped ds:converter: started * Reloading nginx configuration nginx ...done. ==> /var/log/onlyoffice/documentserver/converter/err.log <== ==> /var/log/onlyoffice/documentserver/converter/out.log <== [2022-10-05T22:08:13.298] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers [2022-10-05T22:09:11.092] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers [2022-10-05T22:09:11.098] [WARN] [localhost] [docId] [userId] nodeJS - worker 939 started. [2022-10-05T22:09:11.100] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers [2022-10-05T22:16:23.910] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers [2022-10-05T22:16:23.918] [WARN] [localhost] [docId] [userId] nodeJS - worker 715 started. [2022-10-05T22:16:23.920] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers [2022-10-05T22:17:16.091] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers [2022-10-05T22:17:16.098] [WARN] [localhost] [docId] [userId] nodeJS - worker 938 started. [2022-10-05T22:17:16.099] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers ==> /var/log/onlyoffice/documentserver/docservice/err.log <== ==> /var/log/onlyoffice/documentserver/docservice/out.log <== b/<@https://office.obco.pro/7.2.0-204/web-apps/apps/spreadsheeteditor/main/app.js:8:1249 B.prototype.trigger@https://office.obco.pro/7.2.0-204/sdkjs/cell/sdk-all-min.js:1159:262 cc.prototype.xe@https://office.obco.pro/7.2.0-204/sdkjs/cell/sdk-all-min.js:1422:462 cc.prototype.Zy@https://office.obco.pro/7.2.0-204/sdkjs/cell/sdk-all-min.js:1252:443 cc.prototype.O5e/<@https://office.obco.pro/7.2.0-204/sdkjs/cell/sdk-all-min.js:1260:480 ke@https://office.obco.pro/7.2.0-204/sdkjs/cell/sdk-all-min.js:697:115 G.AscCommon.E3h/<@https://office.obco.pro/7.2.0-204/sdkjs/cell/sdk-all-min.js:697:341 error@https://office.obco.pro/7.2.0-204/sdkjs/cell/sdk-all-min.js:461:402 Sg/jf.onreadystatechange@https://office.obco.pro/7.2.0-204/sdkjs/cell/sdk-all-min.js:477:25 ==> /var/log/onlyoffice/documentserver/metrics/err.log <== ==> /var/log/onlyoffice/documentserver/metrics/out.log <== 5 Oct 22:04:49 - [695] reading config file: ./config/config.js 5 Oct 22:04:49 - server is up INFO 5 Oct 22:08:13 - [680] reading config file: ./config/config.js 5 Oct 22:08:13 - server is up INFO 5 Oct 22:16:23 - [680] reading config file: ./config/config.js 5 Oct 22:16:23 - server is up INFO ==> /var/log/onlyoffice/documentserver/nginx.error.log <== ==> /var/log/onlyoffice/documentserver/docservice/out.log <== [2022-10-05T22:18:42.918] [ERROR] [localhost] [3557616199] [ocw8paat0v9m_Yonggan2] nodeJS - changesError: Error: TypeError: this.Ec is null Script: https://office.obco.pro/7.2.0-204/sdkjs/cell/sdk-all-min.js Line: 1520:368 userAgent: Mozilla/5.0 (X11; Linux x86_64; rv:105.0) Gecko/20100101 Firefox/105.0 platform: Linux x86_64 isLoadFullApi: false isDocumentLoadComplete: false StackTrace: cc.prototype.izh@https://office.obco.pro/7.2.0-204/sdkjs/cell/sdk-all-min.js:1520:368 onDocumentContentReady@https://office.obco.pro/7.2.0-204/web-apps/apps/spreadsheeteditor/main/app.js:8:2367570 onLongActionEnd@https://office.obco.pro/7.2.0-204/web-apps/apps/spreadsheeteditor/main/app.js:8:2362683 D@https://office.obco.pro/7.2.0-204/web-apps/apps/spreadsheeteditor/main/app.js:8:7870 m.bind

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

Setup Nextcloud with Onlyoffice Create a spreadsheet Open the spreadsheet via Nextcloud

What is the expected behavior? Open and edit the spreadsheet

Did this work in previous versions of DocumentServer? No

DocumentServer version: 7.2

Operating System: Kubernetes

Browser version: Firefox 105.0.1

ShockwaveNN commented 2 years ago

May be same as https://github.com/ONLYOFFICE/DocumentServer/issues/1917#issuecomment-1272582700 but not sure

igwyd commented 1 year ago

Hello @Y0ngg4n, a similar problem has been fixed in the other issue. Can you check it in the last version of the documentserver?

Y0ngg4n commented 1 year ago

@igwyd i applied that workaround and then it worked: https://github.com/ONLYOFFICE/DocumentServer/issues/2186#issuecomment-1546698178