OnlyOffice fails to start

What app is this about, and its version: OnlyOffice 9.3.1~ynh1
What YunoHost version are you running: 12.1.40
What type of hardware are you using: Old laptop or computer

Describe your issue

Hello!

OnlyOffice restarts (status auto-restart) in an infinite loop since last update (new attempt, I did revert a previous version after the same issue a few month ago: A chaque mise à jour Only Office l'integration Nexcloud doit être réparée manuellement - #9 by Velocipede ).

The issue is unclear, as the error displayed doesn’t seem to be the real issue:
- Error: Cannot parse config file: '/var/www/onlyoffice/config/default.json': SyntaxError: JSON5: invalid character '\"' at 19:5
But in fact, the file does not seem to have any issue at the specified line:

11  "aiSettings": {
12    "actions": {},
13    "models": [],
14    "providers": {},
15    "version": 3,
16    "timeout": "5m",
17    "allowedCorsOrigins": ["https://onlyoffice.github.io", "https://onlyoffice-plugins.github.io"],
18    "proxy": ""
19  },
20  "log": {
21    "filePath": "",
22    "options": {
23      "replaceConsole": true
24    }
25  },

Any idea what could cause the issue?

Share relevant logs or error messages

Can you share the output of

file /var/www/onlyoffice/config/default.json

sure:

/var/www/onlyoffice/config/default.json: JSON text data

And cat -A /var/www/onlyoffice/config/default.json | sed -n '10,25p' ?

  },$
  "aiSettings": {$
    "actions": {},$
    "models": [],$
    "providers": {},$
    "version": 3,$
    "timeout": "5m",$
    "allowedCorsOrigins": ["https://onlyoffice.github.io", "https://onlyoffice-plugins.github.io"],$
    "proxy": ""$
  },$
  "log": {$
    "filePath": "",$
    "options": {$
      "replaceConsole": true$
    }$
  },$

A real puzzle…
and jq . /var/www/onlyoffice/config/local.json ?

@Velocipede remove your latest post (secrets are displayed) I shloud have only asked you to check whether running jq throws an error.

thanks, I didn’t really look at the output. Is there a way to regenerate new secrets for safety reason?

And any other idea about the cause of the issue?

I uninstalled onlyoffice (with purge), and installed the testing branch (I had to manually change the checksum of server-9.3.0.133.tar.gz in the manifest.json by the way, it seems to have changed on the github repository). But I still have the exact same issue with the clean install. I restored a backup of two days ago, but any tip would still be appreciated :slight_smile:

Still no idea what is wrong here? I simply cannot update or install any new version of onlyoffice, am I the only one to have this issue?

On peut essayer de chercher d’autres fichiers qui seraient lus au démarrage du service mais les chances sont proches de 0…

find / -path "*/onlyoffice*" -name "default.json"
find / -path "*/onlyoffice*" -name "local.json"

Dans ce cas, peut-être y-a-t’il un moyen de réinstaller “plus proprement” que de désinstaller avec `yunohost app remove –purge` et réinstaller? Pour repartir d’une installation propre qui n’ait pas le problème que j’ai à chaque tentative de mise à jour/réinstallation?