Macro Plugin Installation | Docker + Nextcloud

Issues during installation and related to database
Post Reply
Yonggan
Posts: 3
Joined: Sun Mar 07, 2021 3:32 pm

Macro Plugin Installation | Docker + Nextcloud

Post by Yonggan » Sun Mar 07, 2021 3:43 pm

Hey,
i have a problem with installation of the Macro Plugin in OnlyOffice in combination with Nextcloud.

The Problem is that the Plugins tab does not appear in onlyoffice when i edit a xlsx file via Nextcloud.

I am using the Docker Image: onlyoffice/documentserver

I have mounted the latest release of the macro plugin into the Docker container at /var/www/onlyoffice/documentserver/sdkjs-plugins

so the plugin lays at /var/www/onlyoffice/documentserver/sdkjs-plugins/macros in the container

I mounted the production-linux.json to the host so i can add the plugin via config.

My config looks now like this:

Code: Select all

{
  "log": {
    "filePath": "/etc/onlyoffice/documentserver/log4js/production.json"
  },
  "storage": {
    "fs": {
      "folderPath": "/var/lib/onlyoffice/documentserver/App_Data/cache/files"
    }
  },
  "services": {
    "CoAuthoring": {
	   "plugins":{
            "uri":"/sdkjs-plugins",
            "autostart":[
               "asc.{E6978D28-0441-4BD7-8346-82FAD68BCA3B}"
            ]
         },
      "server": {
        "static_content": {
          "/fonts": {
            "path": "/var/www/onlyoffice/documentserver/fonts",
            "options": {"maxAge": "7d"}
          },
          "/sdkjs": {
            "path": "/var/www/onlyoffice/documentserver/sdkjs",
            "options": {"maxAge": "7d"}
          },
          "/web-apps": {
            "path": "/var/www/onlyoffice/documentserver/web-apps",
            "options": {"maxAge": "7d"}
          },
          "/welcome": {
            "path": "/var/www/onlyoffice/documentserver/server/welcome",
            "options": {"maxAge": "7d"}
          },
          "/info": {
            "path": "/var/www/onlyoffice/documentserver/server/info",
            "options": {"maxAge": "7d"}
          },
          "/sdkjs-plugins": {
            "path": "/var/www/onlyoffice/documentserver/sdkjs-plugins",
            "options": {"maxAge": "7d"}
          }
        }
      },
      "utils": {
        "utils_common_fontdir": "/usr/share/fonts"
      },
      "sockjs": {
        "sockjs_url": "/web-apps/vendor/sockjs/sockjs.min.js"
      }
    }
  },
  "license": {
    "license_file": "/var/www/onlyoffice/documentserver/../Data/license.lic",
    "warning_limit_percents": 70,
    "packageType": 0
  },
  "FileConverter": {
    "converter": {
      "fontDir": "/usr/share/fonts",
      "presentationThemesDir": "/var/www/onlyoffice/documentserver/sdkjs/slide/themes",
      "x2tPath": "/var/www/onlyoffice/documentserver/server/FileConverter/bin/x2t",
      "docbuilderPath": "/var/www/onlyoffice/documentserver/server/FileConverter/bin/docbuilder",
      "docbuilderAllFontsPath": "/var/lib/onlyoffice/documentserver/App_Data/docbuilder/AllFonts.js"
    }
  },
  "FileStorage": {
    "directory": "/var/lib/onlyoffice/documentserver/App_Data"
  },
  "SpellChecker": {
    "server": {
      "dictDir": "/var/www/onlyoffice/documentserver/server/SpellChecker/dictionaries"
    }
  }
}
I can access the plugin config.json in the browser.
The sdkjs-plugins folder belongs to the ds user and has 755 Permission.

In the logs does not stand anything about loading a plugin or something (err.log is empty):

Code: Select all

[2021-03-07T15:29:29.524] [WARN] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 6.2.0. Build: 123
[2021-03-07T15:30:28.092] [WARN] nodeJS - Express server starting...
[2021-03-07T15:30:28.095] [WARN] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability
[2021-03-07T15:30:28.218] [WARN] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 6.2.0. Build: 123
I now have spent 8 hours just trying to get this plugin installed im really struggling here.
It would be nice if somebody could help me.

psanf
Posts: 1
Joined: Sat Mar 13, 2021 2:20 pm

Re: Macro Plugin Installation | Docker + Nextcloud

Post by psanf » Sat Mar 13, 2021 2:22 pm

Hi!

I have exactly the same problem, and searching for hours without success.
Did anyone here found a solution?

Thanks a lot,
Pierre.

Carl
Posts: 616
Joined: Thu Apr 12, 2018 10:00 am

Re: Macro Plugin Installation | Docker + Nextcloud

Post by Carl » Mon Mar 15, 2021 1:12 pm

Hello Yonggan & psanf,

Please try installing the Document Server without mounting the plugin folder. I cannot reproduce the issue this way as the Plugin tab appears in the spreadsheet editor by default and Macros are available there.

Yonggan
Posts: 3
Joined: Sun Mar 07, 2021 3:32 pm

Re: Macro Plugin Installation | Docker + Nextcloud

Post by Yonggan » Wed Mar 17, 2021 7:03 am

Carl wrote:
Mon Mar 15, 2021 1:12 pm
Hello Yonggan & psanf,

Please try installing the Document Server without mounting the plugin folder. I cannot reproduce the issue this way as the Plugin tab appears in the spreadsheet editor by default and Macros are available there.
I allready tried without mounting Plugins Folder but the Plugins Tab doesn´t appears either.

Yonggan
Posts: 3
Joined: Sun Mar 07, 2021 3:32 pm

Re: Macro Plugin Installation | Docker + Nextcloud

Post by Yonggan » Wed Mar 17, 2021 3:19 pm

Doesn´t work either.
The Tab is also not there without mounted plugins folder

Carl
Posts: 616
Joined: Thu Apr 12, 2018 10:00 am

Re: Macro Plugin Installation | Docker + Nextcloud

Post by Carl » Mon Mar 22, 2021 2:09 pm

Hello Yonggan,

We have reproduced the issue. It is a bug that will be fixed in the upcoming hotfix version 6.2.1 of the Document Server (to be released in 1-2 weeks). Sorry for the inconvenience.

As a workaround, you can use the previous Document Server version 6.1.1, Plugin tab is displayed correctly there.

Post Reply