Workspace upgrade to 9.4.0.129 fails with communityserver install (packages version)

Hello Community,
Ugrading packages version of workspace 9.3 to 9.4 with the provided script install-debian.sh -u true -it WORKSPACE , the install fails with communityserver.
When I look the install logs, it says “apt-get install -o Dpkg::options::=–force confnew -y -only-upgrade onlyoffice-communityserver elasticsearch=7.16.3”
There is also a warning saying /usr/local/bin is not in the path, but after checking it
Linux debian 12
Have I missed something ?
Fernand

Hello @sosfc
Did you use fresh installation script for the update process? Could you also please attach the installation logs for our review?

Hi

Thanks for your reply. I used the same script that I used for installing. Should I update it ?
Here are the apt log

history.log (3.6 KB)

logs

Hi

Just did the upgrade with the new script install-debian.sh and it fails at the same step. I tried to force it with dpkg –configure onlyoffice-communityserver but did not succeed
Here are the apt logs

history.log (4.1 KB)

Hello @sosfc

Thanks for the log. Can you share current versions of all Workspace components? You can find them in Control Panel.

Hi, Is that what you expected ?

Even better, thank you. Can you run the script again and share outputs from the terminal too? Also, please share logs of Workspace after running the script and check /var/log/dpkg.log for the time of update too.

Hi
Thank for your reply. Here are the files

dpkg.log (32.8 KB)

terminal.log (46.3 KB)

Would it possible to share logs of Workspace too? They are located in /var/log/onlyoffice/.

Hi
There is the archive

radicale.log (12.8 KB)

svcBackup.log (8.7 KB)

svcFeed.log (9.2 KB)

svcFilesTrashCleaner.log (15.0 KB)

web.api-system.sql.log (6.2 KB)

web.api.log (4.9 KB)

web.controlpanel.06-08.log (4.7 KB)

web.files.log (1.1 KB)

web.log (3.9 KB)

web.sso.05-25.log (88 Bytes)

Many thanks. According to the provided logs, the update fails at this step:

-> removing [ingest-attachment]...
dpkg: error processing package onlyoffice-communityserver (--configure):
 installed onlyoffice-communityserver package post-installation script subprocess returned error exit status 1

Apparently, it fails to download the dependency. Please try running the command /usr/share/elasticsearch/bin/elasticsearch-plugin install -b ingest-attachment to install it manually.

In case this solution fails, try downloading it from this link, placing it somewhere on the server, e.g. /tmp, and changing the postinstall script.

Here are the details:

  1. Find /var/lib/dpkg/info/onlyoffice-communityserver.postinst script;
  2. Locate /usr/share/elasticsearch/bin/elasticsearch-plugin install line;
  3. Change it to /usr/share/elasticsearch/bin/elasticsearch-plugin install -b file:///tmp/ingest-attachment-7.16.3.zip;
  4. Run dpkg --configure onlyoffice-communityserver.

If this workaround fails, first of all, please check availability of https://artifacts.elastic.co, then for the postinst script change set -e to set -xe and run dpkg --configure onlyoffice-communityserver again. This will provide more detailed log, which you will be able to share for additional analysis.

I’ll try that.
Please confirm that to upgrade, I must first run the script install_Debian.sh and run your command once it has failed

Thanks

Ok, here is what I did :

/home/sosfc# usr/share/elasticsearch/bin/elasticsearch-plugin install -b ingest-attachment
bash: usr/share/elasticsearch/bin/elasticsearch-plugin: Aucun fichier ou dossier de ce type
root@workspace:/home/sosfc# /usr/share/elasticsearch/bin/elasticsearch-plugin install -b ingest-attachment
→ Installing ingest-attachment
→ Downloading ingest-attachment from elastic
→ Failed installing ingest-attachment
→ Rolling back ingest-attachment
→ Rolled back ingest-attachment

ERROR: plugin directory [/usr/share/elasticsearch/plugins/ingest-attachment] already exists; if you need to update the plugin, uninstall it first using command ‘remove ingest-attachment’

I tried to remove it / reinstall it :

/usr/share/elasticsearch/bin/elasticsearch-plugin remove ingest-attachment
→ removing [ingest-attachment]…
root@workspace:/home/sosfc# /usr/share/elasticsearch/bin/elasticsearch-plugin install -b ingest-attachment
→ Installing ingest-attachment
→ Downloading ingest-attachment from elastic
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: plugin requires additional permissions @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

  • java.lang.RuntimePermission accessClassInPackage.sun.java2d.cmm.kcms
  • java.lang.RuntimePermission accessDeclaredMembers
  • java.lang.RuntimePermission getClassLoader
  • java.lang.reflect.ReflectPermission suppressAccessChecks
  • java.security.SecurityPermission createAccessControlContext
    See Permissions in the JDK
    for descriptions of what these permissions allow and the associated risks.
    → Installed ingest-attachment
    → Please restart Elasticsearch to activate any plugins installed
    sudo dpkg --configure onlyoffice-communityserver

When I run sudo dpkg --configure onlyoffice-communityserver, it fails (see attached log file)
Thanhs

terminal.log (5.4 KB)