[GH-ISSUE #164] DocumentBuilder return "urls": {} if /var/lib/onlyoffice mounted #91

Closed
opened 2026-02-26 09:36:16 +03:00 by kerem · 3 comments
Owner

Originally created by @ShockwaveNN on GitHub (May 29, 2019).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/164

Originally assigned to: @agolybev on GitHub.

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

  1. run document server with
    docker run -i -t -p 80:80 -v /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice onlyoffice/documentserver:5.3.0.243
  2. Send request to DocumentBuilder to http://localhost/docbuilder?async=false
    with body
builder.CreateFile("docx");
var oDocument = Api.GetDocument();
var oParagraph, oRun;
oParagraph = oDocument.GetElement(0);
oRun = Api.CreateRun();
oRun.AddText("This is just a sample text. Nothing special.");
oParagraph.AddElement(oRun);
builder.SaveFile("docx", "/tmp/add_text.js20180324-4106-83z5wy.docx");
builder.CloseFile();
  1. Get
{
    "key": "bld_db7c917505909e2a",
    "urls": {},
    "end": true
}

If docker container run without mount /var/lib/onlyoffice we got file in responce

Seems problem that if /var/lib/onlyoffice not mounted there is /var/lib/onlyoffice/documentserver/App_Data/docbuilder/ folder
If /var/lib/onlyoffice is mounted - do not exists /var/lib/onlyoffice/documentserver/App_Data/docbuilder/
DocumentServer Docker tag: 5.3.0.243

Host Operating System: Ubuntu 18.04

Originally created by @ShockwaveNN on GitHub (May 29, 2019). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/164 Originally assigned to: @agolybev on GitHub. **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.** 1. run document server with `docker run -i -t -p 80:80 -v /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice onlyoffice/documentserver:5.3.0.243` 2. Send request to DocumentBuilder to `http://localhost/docbuilder?async=false` with body ``` builder.CreateFile("docx"); var oDocument = Api.GetDocument(); var oParagraph, oRun; oParagraph = oDocument.GetElement(0); oRun = Api.CreateRun(); oRun.AddText("This is just a sample text. Nothing special."); oParagraph.AddElement(oRun); builder.SaveFile("docx", "/tmp/add_text.js20180324-4106-83z5wy.docx"); builder.CloseFile(); ``` 3. Get ``` { "key": "bld_db7c917505909e2a", "urls": {}, "end": true } ``` If docker container run without mount `/var/lib/onlyoffice` we got file in responce Seems problem that if `/var/lib/onlyoffice` not mounted there is `/var/lib/onlyoffice/documentserver/App_Data/docbuilder/` folder If `/var/lib/onlyoffice` is mounted - do not exists `/var/lib/onlyoffice/documentserver/App_Data/docbuilder/` **DocumentServer Docker tag:** 5.3.0.243 **Host Operating System:** Ubuntu 18.04
kerem 2026-02-26 09:36:16 +03:00
Author
Owner

@agolybev commented on GitHub (May 29, 2019):

I fix it by creation /var/lib/onlyoffice/documentserver/App_Data/docbuilder inside container but I can't verify solution because I always get response from documentserver like this: {"key":"bld_9817bd66bd4ed698","urls":{},"end":true}

<!-- gh-comment-id:496939203 --> @agolybev commented on GitHub (May 29, 2019): I fix it by creation `/var/lib/onlyoffice/documentserver/App_Data/docbuilder` inside container but I can't verify solution because I always get response from documentserver like this: `{"key":"bld_9817bd66bd4ed698","urls":{},"end":true}`
Author
Owner

@ShockwaveNN commented on GitHub (May 31, 2019):

Can confirm fix on onlyoffice/4testing-documentserver-ie:5.3.1.18

<!-- gh-comment-id:497676296 --> @ShockwaveNN commented on GitHub (May 31, 2019): Can confirm fix on `onlyoffice/4testing-documentserver-ie:5.3.1.18`
Author
Owner

@ShockwaveNN commented on GitHub (Jul 9, 2019):

Fixed on onlyoffice/documentserver:5.3.1.26

<!-- gh-comment-id:509619263 --> @ShockwaveNN commented on GitHub (Jul 9, 2019): Fixed on `onlyoffice/documentserver:5.3.1.26`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-DocumentServer-ONLYOFFICE#91
No description provided.