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.81k stars 1.08k forks source link

Document Server Fattal Error #901

Closed qmadsoft closed 4 years ago

qmadsoft commented 4 years ago

Hi,

I had installed document server 5.4.2. It was working well. Then we have upgrade 5.5.1/5.5.3. After installation document server has given an error that given in attache file as screenshot. In order to solve this issue I tried to re-install and to install 5.4.2 instead of latest. But error was same. I tried to completely remove all neccessary programs (redis, earlang, rabbitmq etc) then installed again. I got same error. Could you help us how I can solve it. (System windows server 2012 R2)

Thank you for reply in advance.

Ekran Resmi 2020-06-09 10 32 15
ShockwaveNN commented 4 years ago

Hi, since DocumentServer installed on windows, @DenisDeeSign please take a look

DenisDeeSign commented 4 years ago

Hi, @qmadsoft. Seems your jwt secret was removed from local.json after upgrade. Look at this to turn it back.

qmadsoft commented 4 years ago

Thank you Denis.

I tried to change but my problem is not solved.

Extra Info: The setting port is 9000. As you can see localhost:9000 is working.

Local.json parameters can be found at attached. Please let me know which one was removed.

Thanks in advance

Denis Spitsyn notifications@github.com şunları yazdı (9 Haz 2020 15:25):

Hi, @qmadsoft https://github.com/qmadsoft. Seems your jwt secret was removed from local.json after upgrade. Look at this https://api.onlyoffice.com/editors/signature/to turn it back.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ONLYOFFICE/DocumentServer/issues/901#issuecomment-641254860, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHP3WDI3ZKMRGBSA3VHCDFTRVYS5BANCNFSM4NZJFK5A.

DenisDeeSign commented 4 years ago

Sorry, I can see no attachment. Please try again. Also can you attach logs from C:\Program Files\ONLYOFFICE\DocumentServer\Log?

qmadsoft commented 4 years ago

Denis ,

Here are your request. Thanks.

Local.json file:

{ "services": { "CoAuthoring": { "sql": { "dbHost": "localhost", "dbUser": "onlyoffice", "dbPass": "onlyoffice", "dbName": "onlyoffice" }, "redis": { "host": "localhost" }, "server": { "port": "8000" }, "utils": { "utils_common_fontdir": "C:/Windows/Fonts" }, "token": { "enable": { "request": { "inbox": false, "outbox": false }, "browser": false }, "inbox": { "header": "Authorization" }, "outbox": { "header": "Authorization" } }, "secret": { "inbox": { "string": "secret" }, "outbox": { "string": "secret" }, "session": { "string": "secret" } } }, "SpellChecker": { "server": { "port": "8080" } } }, "rabbitmq": { "url": "amqp://guest:guest@localhost" }, "license": { "license_file": "C:/ProgramData/ONLYOFFICE/Data/license.lic" } }

In the log file There are 4 log directory: convertor, docservice, nginx, spellchecker

I am sending docservice :

[2020-06-12T10:12:45.247] [WARN] nodeJS - Express server starting... [2020-06-12T10:12:45.254] [WARN] nodeJS - Plugins watch exception (https://nodejs.org/docs/latest/api/fs.html#fs_availability). [2020-06-12T10:12:45.317] [WARN] nodeJS - Express server listening on port 8000 in production-windows mode [2020-06-12T10:29:46.452] [ERROR] nodeJS - changesError: docId = M1SMn8TwHn6fNvoZ Error: Uncaught SyntaxError: Unexpected token '<' Script: http://192.168.2.111:9000/5.5.3-39/spellchecker/doc/M1SMn8TwHn6fNvoZ/c/679/dkxj5hne/jsonp?c=_jp.a0ctre1 Line: 1:1 userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36 platform: Win32 isLoadFullApi: true isDocumentLoadComplete: true StackTrace: SyntaxError: Unexpected token '<' [2020-06-12T11:56:14.565] [ERROR] nodeJS - changesError: docId = Cts7npQBEriByRlE Error: Uncaught SyntaxError: Unexpected token '<' Script: http://192.168.2.111:9000/5.5.3-39/spellchecker/doc/Cts7npQBEriByRlE/c/082/mao3g0rs/jsonp?c=_jp.adkiz3d Line: 1:1 userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36 platform: Win32 isLoadFullApi: true isDocumentLoadComplete: false StackTrace: SyntaxError: Unexpected token '<' [2020-06-12T11:56:21.327] [ERROR] nodeJS - changesError: docId = Cts7npQBEriByRlE Error: Uncaught SyntaxError: Unexpected token '<' Script: http://192.168.2.111:9000/5.5.3-39/spellchecker/doc/Cts7npQBEriByRlE/c/361/urrljh2n/jsonp?c=_jp.aqwfr5m Line: 1:1 userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36 platform: Win32 isLoadFullApi: true isDocumentLoadComplete: false StackTrace: SyntaxError: Unexpected token ‘<'

The file is attached

Denis Spitsyn notifications@github.com şunları yazdı (15 Haz 2020 11:16):

Sorry, I can see no attachment. Please try again. Also can you attach logs from C:\Program Files\ONLYOFFICE\DocumentServer\Log?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ONLYOFFICE/DocumentServer/issues/901#issuecomment-643977107, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHP3WDMKHXCU7L7PRYUGLM3RWXKFDANCNFSM4NZJFK5A.

DenisDeeSign commented 4 years ago

As I can see JWT is turned off by section

"token": {
        "enable": {
          "request": {
            "inbox": false,
            "outbox": false
          },
          "browser": false
        },
        ...
},

What document management system do you use? Is JWT enabled on their side?

qmadsoft commented 4 years ago

Thank you Denis

We use document server. What is the jwt ? I don’t know how I can check jwt enabled or not?

Extra info : another customer is using document server version 5.4.2 and locale.json file completly same as below. And v5.4.2 is working well. In other hand, the v5.5.3 which I completely fresh installed on windows server 2012 I saw same file.

Denis Spitsyn notifications@github.com şunları yazdı (15 Haz 2020 13:38):

As I can see JWT is turned off by section

"token": { "enable": { "request": { "inbox": false, "outbox": false }, "browser": false }, ... }, What document management system do you use? Is JWT enabled on their side?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ONLYOFFICE/DocumentServer/issues/901#issuecomment-644049529, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHP3WDJTAYI6Q5D6OIZZLPLRWX22ZANCNFSM4NZJFK5A.

DenisDeeSign commented 4 years ago

If you don't know what is JWT you was not able to use it in previous version. My first assumption is incorrect.

An errors in your logs in not a cause of main error. Please check DocumentServer stasus at http://192.168.2.111:9000/healthcheck

Also I need to know config that is connect DocumentServer to your document management system. Since 5.4.2 we made a few fixes that might be causing the error.

qmadsoft commented 4 years ago

Healtcheck result is true.

Denis Spitsyn notifications@github.com şunları yazdı (16 Haz 2020 10:20):

If you don't know what is JWT you was not able to use it in previous version. My first assumption is incorrect.

An errors in your logs in not a cause of main error. Please check DocumentServer stasus at http://192.168.2.111:9000/healthcheck http://192.168.2.111:9000/healthcheck Also I need to know config that is connect DocumentServer to your document management system. Since 5.4.2 we made a few fixes that might be causing the error.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ONLYOFFICE/DocumentServer/issues/901#issuecomment-644582024, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHP3WDNVOZQITY5LIKR4RPDRW4MKLANCNFSM4NZJFK5A.

DenisDeeSign commented 4 years ago

So DocumentServer works fine. Seems the issue is how you connect it to your document management system. We cannot help you if we will not see your config, as I said before.

qmadsoft commented 4 years ago

Hi Denis,

I need your help please?

a) do you think there is any block by firewall? b) which kind of info do you need to check? We can share with you.

Thanks in advance

Mehmet.

Denis Spitsyn notifications@github.com şunları yazdı (19 Haz 2020 10:46):

So DocumentServer works fine. Seems the issue is how you connect it to your document management system. We cannot help you if we will not see your config, as I said before.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ONLYOFFICE/DocumentServer/issues/901#issuecomment-646492171, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHP3WDP5EVHKAIB6N7B66DTRXMJUDANCNFSM4NZJFK5A.

qmadsoft commented 4 years ago

ekstra information

info@qmad.com.tr şunları yazdı (6 Tem 2020 14:24):

Hi Denis,

I need your help please?

a) do you think there is any block by firewall? b) which kind of info do you need to check? We can share with you.

Thanks in advance

Mehmet.

Denis Spitsyn <notifications@github.com mailto:notifications@github.com> şunları yazdı (19 Haz 2020 10:46):

So DocumentServer works fine. Seems the issue is how you connect it to your document management system. We cannot help you if we will not see your config, as I said before.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ONLYOFFICE/DocumentServer/issues/901#issuecomment-646492171, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHP3WDP5EVHKAIB6N7B66DTRXMJUDANCNFSM4NZJFK5A.

DenisDeeSign commented 4 years ago

Hi, @qmadsoft. a) Yes, you may check if servers are accessible for each other via telnet specifing current ports. b) DocumentServer is initializing with some config. In other words, when you click on a document in your document management system DocumentServer receives a parameters and open an editor according to it. There is an error somewhere in your config and I need to know its content.

ShockwaveNN commented 4 years ago

This issue was closed due to no response.