Try the fastest and simplest way to install ONLYOFFICE

[Document Server] Problem with Version Histoty

Tech support for Enterprise Version

[Document Server] Problem with Version Histoty

Postby dsi-lille » Thu Apr 20, 2017 11:35 am

Hi,

i have a problem with the Version History functionnality.

When i click on a revision in the version history panel, i get this error message :

version_history.jpg
version_history.jpg (42.05 KiB) Viewed 73 times


I have this in the converter log :

Code: Select all
[2017-04-19 14:31:37.477] [ERROR] nodeJS - error downloadFile:url=KlmLF763_ZxylzKrMBc_;attempt=1;code:undefined;connect:undefined;(id=KlmLF763_ZxylzKrMBc_)
Error: Invalid URI "KlmLF763_ZxylzKrMBc_"
    at Request.init (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:276:31)
    at new Request (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:130:8)
    at request (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/index.js:54:10)
    at Function.get (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/index.js:62:12)
    at /var/www/onlyoffice/documentserver/server/Common/sources/utils.js:221:13
    at Object.downloadUrlPromise (/var/www/onlyoffice/documentserver/server/Common/sources/utils.js:210:10)
    at downloadFile (/var/www/onlyoffice/documentserver/server/FileConverter/sources/converter.js:170:28)
    at next (native)
    at ExecuteTask (/var/www/onlyoffice/documentserver/server/FileConverter/sources/converter.js:460:29)
    at next (native)


So it's because there is no URL in the JSON message send to the converter service :

Code: Select all
{
   "cmd": {
      "c": "open",
      "id": "ll2QR8hru9bw3IijM5o_",
      "userid": "96d32a35-e803-42e2-b11d-9426776dcdab",
      "format": "docx",
      "url": "ll2QR8hru9bw3IijM5o_",
      "title": "testPbMaxime.docx",
      "outputformat": 8192,
      "outputpath": "Editor.bin",
      "embeddedfonts": false,
      "status_info": -81,
      "userconnectionid": "96d32a35-e803-42e2-b11d-9426776dcdab15",
      "closeonerror": true
   }
}


It should be something like this :

Code: Select all
{
   "cmd": {
      "c": "open",
      "id": "ZpqXmRSt1JRBehFqSDk_",
      "userid": "549aec5a-e3cd-11e6-be5e-0242ac120004",
      "format": "docx",
      "url": "https://escola.expr.in.ac-lille.fr/products/files/httphandlers/filehandler.ashx?action=stream&fileid=9&version=4&stream_auth=230198757212.QSN2AJASZDZMJW3PANKKGUOEK2RJLUELSLFESOAM",
      "title": "testWithPierre.docx",
      "outputformat": 8192,
      "outputpath": "Editor.bin",
      "embeddedfonts": false,
      "status_info": 0,
      "userconnectionid": "549aec5a-e3cd-11e6-be5e-0242ac1200041",
      "closeonerror": true
   }
}


This problem appear only in our production environment, the functionality works fine in our test environment.

There is no difference between the two environments : Ubuntu 16.04, latest Docker version, latest document/community server version...

Any idea ?
Thanks for your help,
Yoann
dsi-lille
 
Posts: 76
Joined: Mon Jul 11, 2016 1:47 pm

Re: [Document Server] Problem with Version Histoty

Postby dsi-lille » Thu Apr 20, 2017 1:38 pm

Hmmm, i don't know why but all the js script in /app/onlyoffice/CommunityServer/data/bundle/files/javascript are outdated on our production server :
-rw-r--r-- 1 _apt syslog 287K juin 30 2016 N-P3IDmLrf28rb_el2tnOA2.js
-rw-r--r-- 1 _apt syslog 438K juin 30 2016 niUhl6WMiF8ls6oa9Zv_EQ2.js
-rw-r--r-- 1 _apt syslog 284K juin 30 2016 Q1-HuPWmmzz9cku6--OOSQ2.js
-rw-r--r-- 1 _apt syslog 402K juin 30 2016 K6iEOHCzrMaQSpfQVfRU0w2.js
-rw-r--r-- 1 _apt syslog 129K juil. 1 2016 H627axUMyPXpVmLH6VnWHg2.js
-rw-r--r-- 1 _apt syslog 75K juil. 1 2016 i0PZfa3-0-Lg9CYl9uVMAg2.js
-rw-r--r-- 1 _apt syslog 82K juil. 1 2016 NEkjG7I-bAKayERM-TRtHw2.js
-rw-r--r-- 1 _apt syslog 56K juil. 1 2016 1BWe8Cyg1YUios2bRdlm6Q2.js
-rw-r--r-- 1 _apt syslog 267K juil. 4 2016 U3z2kMvnYfJ6N3ryoyQNDQ2.js
-rw-r--r-- 1 _apt syslog 280K sept. 21 2016 YOjdepk0xDWWSFh68Udvzg2.js
-rw-r--r-- 1 _apt syslog 129K sept. 21 2016 5v-ZdNUO3eJuq40ToBDa_g2.js
-rw-r--r-- 1 _apt syslog 402K sept. 21 2016 7rb-ZtVodSAJoE4b_fETCQ2.js
-rw-r--r-- 1 _apt syslog 439K sept. 21 2016 dnFveDEVRhcV5cX8e9TDPA2.js
-rw-r--r-- 1 _apt syslog 280K sept. 21 2016 wOQayKWffhabcC6jRcTljw2.js
-rw-r--r-- 1 _apt syslog 263K sept. 21 2016 Y0lJKJGzxuVFeUL-9WwAGw2.js
-rw-r--r-- 1 _apt syslog 75K sept. 22 2016 Dbe6y6X8AKSi0tfV3yLkcg2.js
-rw-r--r-- 1 _apt syslog 56K sept. 30 2016 _eCTY7v_o8B-MmMQ6gn62g2.js
-rw-r--r-- 1 _apt syslog 254K nov. 1 08:53 Iv6XbjW4SI1V9UYn6lVjqw2.js
-rw-r--r-- 1 _apt syslog 82K nov. 3 15:32 Cmtm1Ueni21fci25MYu4ng2.js
-rw-r--r-- 1 _apt syslog 85K déc. 9 09:37 56S_UcZjiKljj6LzdJ2VLQ2.js
-rw-r--r-- 1 _apt syslog 254K déc. 12 14:30 -jOCaBg5M2zRmT8qIBTZ4w2.js



same folder in our test server :

-rw-r--r-- 1 _apt syslog 438K janv. 26 14:46 niUhl6WMiF8ls6oa9Zv_EQ2.js
-rw-r--r-- 1 _apt syslog 287K janv. 26 14:46 N-P3IDmLrf28rb_el2tnOA2.js
-rw-r--r-- 1 _apt syslog 402K janv. 26 15:23 K6iEOHCzrMaQSpfQVfRU0w2.js
-rw-r--r-- 1 _apt syslog 130K janv. 26 15:56 H627axUMyPXpVmLH6VnWHg2.js
-rw-r--r-- 1 _apt syslog 75K janv. 30 14:58 i0PZfa3-0-Lg9CYl9uVMAg2.js
-rw-r--r-- 1 _apt syslog 85K avril 10 10:02 ypZP8Uj-vb1TCwutQ_EUWA2.js
-rw-r--r-- 1 _apt syslog 130K avril 12 15:38 5v-ZdNUO3eJuq40ToBDa_g2.js
-rw-r--r-- 1 _apt syslog 402K avril 12 15:48 7rb-ZtVodSAJoE4b_fETCQ2.js
-rw-r--r-- 1 _apt syslog 438K avril 13 00:40 dnFveDEVRhcV5cX8e9TDPA2.js
-rw-r--r-- 1 _apt syslog 287K avril 13 00:40 7NprcykKcN7Juvm9qnm7yw2.js


How can i do to force the update for all the js script ?
dsi-lille
 
Posts: 76
Joined: Mon Jul 11, 2016 1:47 pm

Re: [Document Server] Problem with Version Histoty

Postby dsi-lille » Fri Apr 21, 2017 7:47 am

Hi,

my problem is solved :)
I have stopped onlyoffice and deleted /app/onlyoffice/CommunityServer/data/bundle/ folder.

But i still have a little problem : when i select a revision, the change should be highlighted with a different color by user, am i right ?
Because in our both environment, there is no highlighting.

Thanks for your help,
Yoann
dsi-lille
 
Posts: 76
Joined: Mon Jul 11, 2016 1:47 pm

Re: [Document Server] Problem with Version Histoty

Postby Maxim » Mon Apr 24, 2017 12:18 pm

Hello Yoann!
It must be like this
Can you attach screenshot?
Maxim
 
Posts: 529
Joined: Tue Oct 11, 2016 2:34 pm


Return to Enterprise Version

Who is online

Users browsing this forum: No registered users and 1 guest