ONLYOFFICE / DocSpace

ONLYOFFICE DocSpace is a room-based collaborative platform which allows organizing a clear file structure depending on users' needs or project goals. Flexible access permissions and user roles allow fine-tuning the access to the whole space or separate rooms.
https://www.onlyoffice.com/docspace.aspx
GNU Affero General Public License v3.0
176 stars 93 forks source link

Wrong port configuration after docker deployment #1822

Closed cheng-yeung closed 2 months ago

cheng-yeung commented 3 months ago

Hi, I was deploying docspace community version with docker on my ubuntu 22.04 for a test run last Friday, using the installation sh script you offered. The script ran gracefully, and all docker containers are up (excluding migration container exited). However, so far I have encountered a few issues:

  1. After deploying, I was able to access onlyoffice in my browser for the first time and have successfully registered; but the /wizard page have never rendered. Specifically, it loaded for a while, and redirected to /login with an 500 internal server error page rendered.
  2. I cannot access any documents. The server logs indicates that onlyoffice-doceditor throws an ERR_INVALID_URL, with input 'http://127.0.0.1:8083:8083/api/2.0/files/file/5/openedit?', where 8083 is the external port (-ep) argument I provided to the installation script.
  3. I attempt to log in after a while, and even the login page would not render. Below is a logged example of failed request:
screenshot

If needed, the following is the full argument set I ran with (sensitive info replaced with placeholder <>):

sudo bash docspace-install.sh docker -hub https://dockerhub.icu/ -it community -js <> -mysqlrp <> -mysqlu <> -mysqlp <> -rdsu <> -rdspass <> -rbtu <> -rbtpass <> -dsv latest -docsv latest -mysqlport 33061 -ep 8083

All containers are healthy, except for onlyoffice/docspace-doceditor:latest. I do believe that these problems are somewhat due to the wrongly configured axios baseUrl "http://:8083:8083". Would you shed some light on this?

Carazyda commented 3 months ago

Hello @cheng-yeung Yes, we have an issue with running on a custom external port (-ep). We will fix it in the next release.

moritzdawo commented 2 months ago

Hey @Carazyda Can you tell us how long we will have to wait for a fix (or a new release)?

Carazyda commented 2 months ago

Fixed in https://github.com/ONLYOFFICE/DocSpace-buildtools/pull/306. New version will be released in about two weeks.