China-windows-question

I want to: Ask a how-to question

Community Server/Control Panel version: Version 3.5.438

Type of installation of Workspace: exe

OS: Windows Server 2016

Browser version: Chrome 109.0.5414.120 (Official Build) (64-bit)

Additional information:

I did a fresh installation and installed ONLYOFFICE_Workspace_Win-install.latest downloaded from the ONLYOFFICE website to E:\workspace. Everything went smoothly, although it took a very long time.

After installation, I registered and activated according to the instructions. All functions worked fine — upload and download were both successful.

However, when I try to open a document file from the instance, it fails to preview or edit. The page shows the following error:


Document Service Location

Specify the address of the server where the Document Service is installed. Change the server address <editors-dns-name> in the lines below, leaving the rest of the lines unchanged.

Document Editing Service Address

http://10.0.100.50:8083/

Example: https://<editors-dns-name>/

Document Service address for requests from the Community Server

http://10.0.100.50:8083/

Example: https://<editors-dns-name>/

Community Server address for requests from the Document Service

http://10.0.100.50/

Example: http://win-85tqjqpmj73/


Visited: http://10.0.100.50/Products/Files/DocEditor.aspx?fileid=2

Page content: Cannot GET /9.3.1-c0%2035%204f%20c4%20ab%2014%2068%20f8%208f%202a%20c0%2095%20ef%2028%2016%20f8/web-apps/apps/documenteditor/main/index.html


Request for help

Thank you!

问题就在这里:

E:\workspace\DocumentServer\nginx\conf\includes\ds-cache.conf

set $cache_tag “73 3f 5b ae fd ae d2 6a 3a d6 7f 70 15 2c d8 ec”;

这是错误的。

正常的 cache_tag 应该是一个连续字符串,例如:

set $cache_tag “733f5baefdaed26a3ad67f70152cd8ec”;

Hello,

Thank you for the details. We would like to first verify the exact installation method and version before suggesting the next steps.

Could you please provide:

  • The exact installation guide you followed (link);
  • A screenshot showing the current version in your portal or Control Panel after installation;
  • Screenshots from the browser Developer Tools at the moment the issue is reproduced (Console and Network tabs).

Once we confirm this information, we will be able to review the issue more accurately and suggest the appropriate next steps.

步骤1

编辑文件
E:\workspace\DocumentServer\nginx\conf\includes\ds-cache.conf
去掉空格

步骤2

编辑文件
E:\workspace\DocumentServer\web-apps\apps\api\documents\api.js
修改
function extendAppPath(config, path) {
if ( !config.isLocalFile ) {
const ver = ‘’; #内容设置为空 或者复制去除空格后的字符串 1335行
if ( ver.lastIndexOf(‘{{’) < 0 && path.indexOf(ver) < 0 ) {
const pos = path.indexOf(‘/web-apps/app’);
if ( pos > 0 )
return [path.slice(0, pos), ver, path.slice(pos)].join(‘’);
}
}
return path;
}


结束 nginx:
taskkill /F /IM nginx.exe
然后重启相关服务(至少 DocService,最简单是重启服务器)
执行:
net stop DsDocServiceSvc
net start DsDocServiceSvc
以及:
net stop DsConverterSvc
net start DsConverterSvc

让 ONLYOFFICE 重新加载


发现每次更新字体时候,bat文件执行后都会在字符串添加空格,猜想是原厂程序的设置,希望能够提供帮助

感谢您的详细说明。

您判断得对,这个问题确实是由多余的空格导致的。请检查并删除以下文件中与 cache tag 相关的行里的多余空格:

DSinstallationpath\web-apps\apps\api\documents\api.js
const ver = ‘version-**’;

DSinstallationpath\nginx\conf\includes\ds-cache.conf
set $cache_tag “**”;

修改完成后,请重启所有 ONLYOFFICE Document Server 服务,然后再次测试文档的预览和编辑功能。

如果修改后问题仍然存在,请告知我们。