[GH-ISSUE #505] Bugs in example #243

Closed
opened 2026-02-26 10:31:15 +03:00 by kerem · 5 comments
Owner

Originally created by @murrometz on GitHub (Sep 27, 2022).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/505

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

What is the current behavior?
I install onlyoffice/documentserver and follow all the recomendations, but when I'm trying to use the installed example - I get an error.

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

  1. sudo docker run -i -t -d -p 1082:80 onlyoffice/documentserver
  2. sudo docker exec 4b9090d54f43 /var/www/onlyoffice/documentserver/npm/json -f /etc/onlyoffice/documentserver/local.json 'services.CoAuthoring.secret.session.string'
  3. sudo docker exec 4b9090d54f43 sudo supervisorctl start ds:example
  4. sudo docker exec 4b9090d54f43 sudo sed 's,autostart=false,autostart=true,' -i /etc/supervisor/conf.d/ds-example.conf
  5. Go to http://localhost:1082/welcome/ in browser
  6. Go to text example http://localhost:1082/example/
  7. Click Document in the left top corner block "Create new"
  8. As a result I always get this error:
    "The document could not be saved. Please check connection settings or contact your administrator.
    When you click the 'OK' button, you will be prompted to download the document."
    followed by
    "Download failed"

Though the files in "Your documents" at http://localhost:1082/example/ that were created automatically are downloading correctly.

What is the expected behavior?
User can create a file or upload a new one

Did this work in previous versions of DocumentServer?
I don't know. I am a new user

DocumentServer Docker tag:
onlyoffice/documentserver:latest

Host Operating System:
Ubuntu 20.04.1 LTS
Docker 20.10.7

Originally created by @murrometz on GitHub (Sep 27, 2022). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/505 **Do you want to request a *feature* or report a *bug*?** Bug **What is the current behavior?** I install onlyoffice/documentserver and follow all the recomendations, but when I'm trying to use the installed example - I get an error. **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.** 1. sudo docker run -i -t -d -p 1082:80 onlyoffice/documentserver 2. sudo docker exec 4b9090d54f43 /var/www/onlyoffice/documentserver/npm/json -f /etc/onlyoffice/documentserver/local.json 'services.CoAuthoring.secret.session.string' 3. sudo docker exec 4b9090d54f43 sudo supervisorctl start ds:example 4. sudo docker exec 4b9090d54f43 sudo sed 's,autostart=false,autostart=true,' -i /etc/supervisor/conf.d/ds-example.conf 5. Go to http://localhost:1082/welcome/ in browser 6. Go to text example http://localhost:1082/example/ 7. Click Document in the left top corner block "Create new" 8. As a result I always get this error: "The document could not be saved. Please check connection settings or contact your administrator. When you click the 'OK' button, you will be prompted to download the document." followed by "Download failed" Though the files in "Your documents" at http://localhost:1082/example/ that were created automatically are downloading correctly. **What is the expected behavior?** User can create a file or upload a new one **Did this work in previous versions of DocumentServer?** I don't know. I am a new user **DocumentServer Docker tag:** onlyoffice/documentserver:latest **Host Operating System:** Ubuntu 20.04.1 LTS Docker 20.10.7
kerem 2026-02-26 10:31:15 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@ShockwaveNN commented on GitHub (Oct 4, 2022):

Hi, you shouldn't use localhost in your browser.
Use your local IP or external IP

<!-- gh-comment-id:1267319821 --> @ShockwaveNN commented on GitHub (Oct 4, 2022): Hi, you shouldn't use localhost in your browser. Use your local IP or external IP
Author
Owner

@AndreySolod commented on GitHub (Apr 18, 2023):

Hi, I have the same problem, and use 127.0.0.1 didn't work;
I want to note that when using 80:80 everything works correctly (even as localhost) (443:443 not tested).

<!-- gh-comment-id:1512528674 --> @AndreySolod commented on GitHub (Apr 18, 2023): Hi, I have the same problem, and use 127.0.0.1 didn't work; I want to note that when using 80:80 everything works correctly (even as localhost) (443:443 not tested).
Author
Owner

@AndreySolod commented on GitHub (Apr 20, 2023):

Ok, I figured out the problem
Need instead of using http://localhost:81 / or http://127.0.0.1:81 use http://192.168.0.1:81 - why so I do not know.
There are also some problems with docker network, as I wrote in https://github.com/ONLYOFFICE/onlyoffice-redmine/issues/49

<!-- gh-comment-id:1515631419 --> @AndreySolod commented on GitHub (Apr 20, 2023): Ok, I figured out the problem Need instead of using http://localhost:81 / or http://127.0.0.1:81 use http://192.168.0.1:81 - why so I do not know. There are also some problems with docker network, as I wrote in https://github.com/ONLYOFFICE/onlyoffice-redmine/issues/49
Author
Owner

@igwyd commented on GitHub (Dec 28, 2023):

@AndreySolod it's because docker inside the container resolves to the localhost container's IP address, you should use IP address instead of localhost.

<!-- gh-comment-id:1871344979 --> @igwyd commented on GitHub (Dec 28, 2023): @AndreySolod it's because docker inside the container resolves to the localhost container's IP address, you should use IP address instead of localhost.
Author
Owner

@Rita-Bubnova commented on GitHub (Dec 28, 2023):

I close this issue. Feel free to comment or reopen it if you got further questions.

<!-- gh-comment-id:1871345526 --> @Rita-Bubnova commented on GitHub (Dec 28, 2023): I close this issue. Feel free to comment or reopen it if you got further questions.
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#243
No description provided.