Example not working after move to HTTPS

Hi all,

I’m having a little trouble, even getting the initial example working. On my first attempt (without HTTPS), it seemed to work fine. I added my certificate details (not self signed) to Nginx and since then I’ve been seeing the following attached error since.

Full install on a new clean server Ubuntu 22.04.2 LTS (AWS).

Followed exact instructions at: Installing ONLYOFFICE Docs for Debian, Ubuntu, and derivatives - ONLYOFFICE (not changing port to 443 as per the warning).

Set up SSL as detailed in: Switching ONLYOFFICE Docs to HTTPS protocol - ONLYOFFICE (Switching ONLYOFFICE Docs v5.3 and later to HTTPS section).

I receive the following error in nginx.error.log

2023/10/18 08:13:50 [error] 10208#10208: *16 open() “/var/www/onlyoffice/documentserver/web-apps/vendor/socketio/socket.io.min.js.map” failed (2: No such file or directory), client: {MY IP}, server: , request: “GET /7.5.0-125/web-apps/vendor/socketio/socket.io.min.js.map HTTP/1.1”, host: “{sub domain dot my domain dot come}”

Has anyone experienced this or similar before? Can anyone help? I’ve made no other changes to the server or configuration as yet.

Many thanks in advance!

I should note, 443 is of course open! :slight_smile:

Hey @paulf :handshake:

  1. Open browser’s console (choose Network tab) → Refresh the page → Send us a screenshot of the page with browser’s console opened, if there are any errors;
  2. Open browser’s console (choose Console tab) → Refresh the page → Send us a screenshot of the page with browser’s console opened, if there are any errors.

Hi Nikolas,

Unfortunately neither console nor the networking tab show any errors (or messages for that matter).

Hi Paul, did you run below command after configuring SSL ?
bash documentserver-update-securelink.sh

Hi
i think this solve your problem

“Please open /etc/onlyoffice/documentserver/default.json and change ‘rejectUnauthorized’ value to false . After that run supervisorctl restart all

1 Like

@paulf

  1. bash documentserver-update-securelink.sh as @tsetsiba mentioned.
  2. If problem persists ever after please share log files of Document Server located in /var/log/onlyoffice/documentserver
1 Like

Thanks both @Nikolas @MifiUp that’s exactly what was needed. I wish this was added to the set up instructions as it did slow me down significantly.

As far as I remember, it has always been there :upside_down_face:

https://helpcenter.onlyoffice.com/installation/docs-community-https-linux.aspx

Switching ONLYOFFICE Docs v5.3 and later to HTTPS

image

Hello, @Nikolas !

I have the problem with no generation sockerio.js.min.map file after rebuilding volumes and reconfigure of php server and onlyoffice to use a variability folder:

php:
  ...
  volumes:
   - ${STORAGE_DIR}:/var/www/html/src/web/uploads
  ...
onlyoffice:
 ...
  volumes:
   - ${STORAGE_DIR}/onlyoffice-temp:/var/lib/onlyoffice/documentserver/App_Data/cache/files

I retryed sometimes a previous directory to onlyoffice and run
bash documentserver-update-securelink.sh
Not result. How cant it be a problem?