Docker-DocumentServer
Docker-DocumentServer copied to clipboard
Bugs in example
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.
- sudo docker run -i -t -d -p 1082:80 onlyoffice/documentserver
- sudo docker exec 4b9090d54f43 /var/www/onlyoffice/documentserver/npm/json -f /etc/onlyoffice/documentserver/local.json 'services.CoAuthoring.secret.session.string'
- sudo docker exec 4b9090d54f43 sudo supervisorctl start ds:example
- sudo docker exec 4b9090d54f43 sudo sed 's,autostart=false,autostart=true,' -i /etc/supervisor/conf.d/ds-example.conf
- Go to http://localhost:1082/welcome/ in browser
- Go to text example http://localhost:1082/example/
- Click Document in the left top corner block "Create new"
- 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
Hi, you shouldn't use localhost in your browser. Use your local IP or external IP
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).
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
@AndreySolod it's because docker inside the container resolves to the localhost container's IP address, you should use IP address instead of localhost.
I close this issue. Feel free to comment or reopen it if you got further questions.