[OnlyOffice] Office editor

Fail with apt install onlyoffice-documentserver : https://paste.yunohost.org/ogirekuyib.sql

onlyoffice-documentserver : Dépend: nodejs (>= 8.0.0) mais ne sera pas installé

That’s an almost unsolvable issue we have here…
And also a stupid idea from onlyoffice, since if you have nodejs 8, you can’t have any other version… Again an app which think you’re going to use a dedicated server only for it…

Well… a way to fix that could be to tweak the deb package to remove the dependency. Or to use a fake package nodejs to deceive apt.

im retry with : https://github.com/liberodark/onlyoffice_ynh/commit/833b06b4576636283f73e7afe66f6fe70ada8193
fail : https://paste.yunohost.org/uvajexayej.sql

That’s exactly why you shouldn’t add a repository. That can cause that kind of conflict between repositories.
And that kind of errors are difficult to understand when it comes from an user without that very context we currently are.

As said before, looks like onlyoffice-documentserver depends of nodejs 8, which can’t be installed properly on debian stretch.
You could eventually try to build a fake package nodejs to deceive apt and install onlyoffice-documentserver

Need this to install : gconf-service gconf2-common gnome-icon-theme gtk-update-icon-cache icu-devtools libasound2 libasound2-data libatk1.0-0 libatk1.0-data libboost-regex-dev libboost-regex1.62-dev libboost-regex1.62.0
libboost1.62-dev libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libfontenc1 libgail-common libgail18 libgconf-2-4 libgconf2-4 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libglu1-mesa
libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libgtkglext1 libice6 libicu-dev libllvm3.9 libpangox-1.0-0 libpciaccess0 librsvg2-2 librsvg2-common libsm6 libtxc-dxtn-s2tc libx11-xcb1 libxaw7 libxcb-dri2-0
libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-sync1 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxfont1 libxfont2 libxi6 libxinerama1 libxkbfile1 libxmu6 libxrandr2 libxshmfence1 libxt6 libxtst6
libxxf86vm1 nodejs postgresql-client pwgen python-meld3 supervisor x11-xkb-utils xfonts-base xfonts-encodings xfonts-utils xserver-common xvfb

Actually im try with no script :frowning:

https://helpcenter.onlyoffice.com/fr/server/linux/document/linux-installation.aspx

Have this errors :

r:73 http://ftp.fr.debian.org/debian stretch/main amd64 xfonts-base all 1:1.0.4+nmu1
Somme de contrôle de hachage incohérente
Hashes of expected file:

  • SHA256:2a655978589a69a93cfee287df5516e6f4eb9d65f3afb557d95877d247823331
  • MD5Sum:3efef57747e4f40e8420125c30b46770 [weak]
  • Filesize:5910716 [weak]
    Hashes of received file:
  • SHA256:673524dae0c7fa5934a8f994e7af8dbd8a56e461dab2d5233755e3001cda640e
  • MD5Sum:f93e65501ac213a44bd39754db840229 [weak]
  • Filesize:2392766 [weak]
    Last modification reported: Wed, 08 Jul 2015 17:39:11 +0000
    Réception de:74 http://ftp.fr.debian.org/debian stretch/main amd64 libtxc-dxtn-s2tc amd64 1.0+git20151227-2 [48,4 kB]
    262 Mo réceptionnés en 3min 52s (1 126 ko/s)
    E: Impossible de récupérer http://ftp.fr.debian.org/debian/pool/main/l/llvm-toolchain-3.9/libllvm3.9_3.9.1-9_amd64.deb Somme de contrôle de hachage incohérente
    Hashes of expected file:
  • SHA256:c9017a11cb5188f215968a825dd1fdb75e1e12ca601acb25252bfa7d5137b9c5
  • MD5Sum:27857e6cfa89c65c5a34a3a80e9e9d5c [weak]
  • Filesize:11290146 [weak]
    Hashes of received file:
  • SHA256:0524ca74adc2231c627f1440b468ca597bd4e5870fb94bc5df7c0baf7e0cbb89
  • MD5Sum:3ab399e0da88e89427427175a7add974 [weak]
  • Filesize:9358069 [weak]
    Last modification reported: Sun, 04 Jun 2017 22:26:17 +0000
    E: Impossible de récupérer http://ftp.fr.debian.org/debian/pool/main/x/xfonts-base/xfonts-base_1.0.4+nmu1_all.deb Somme de contrôle de hachage incohérente
    Hashes of expected file:
  • SHA256:2a655978589a69a93cfee287df5516e6f4eb9d65f3afb557d95877d247823331
  • MD5Sum:3efef57747e4f40e8420125c30b46770 [weak]
  • Filesize:5910716 [weak]
    Hashes of received file:
  • SHA256:673524dae0c7fa5934a8f994e7af8dbd8a56e461dab2d5233755e3001cda640e
  • MD5Sum:f93e65501ac213a44bd39754db840229 [weak]
  • Filesize:2392766 [weak]
    Last modification reported: Wed, 08 Jul 2015 17:39:11 +0000
    E: Impossible de récupérer certaines archives, peut-être devrez-vous lancer apt-get update ou essayer avec --fix-missing ?

PS : My VM is clean no have external depot im revert that with snapshot

On my side, with your script, I have an error with apt because of rabbitmq-server failing to start (without any interesting info in the log…)

If I understand well (not sure though), you’re trying to follow the official procedure, so you should have some extra repositories, either from onlyoffice or from nodejs.
Try to install all the dependencies without nodejs, in order to see if it’s related.

If you’re more comfortable with french, do not bother you, I’ll understand both.

Ok bien en gros pour l’instant je pense avoir trouvé l’un des problème le réseau internet qui me créer plein d’erreur on dirait voilà pourquoi j’ia changer de bureau et de vm pour refaire un test que je vias commencer rabbitmq ne sert que pour les mails normalement donc c’est pas très grave !

Il me reste donc à installer correctement l’app via ynh en script et aussi le mettre en ssl !

Avec ceci la j’ai besoin d’aide car je ne sais pas comment faire !
https://helpcenter.onlyoffice.com/fr/server/linux/document/switch-to-https.aspx

Si vous pouvez m’aider la dessus !

SSL is already handle by the main configuration of the domain.
The only thing you have to do is to force the usage of https

Ok donc mon fichier est correct ? : https://github.com/liberodark/onlyoffice_ynh/blob/master/conf/nginx.conf

Je test avec : https://github.com/liberodark/onlyoffice_ynh/commit/ce8e15e8c36c9198ece0a0ecbd8e4c0ac472a9cb

is working :smiley: on test 3

Comment mettre tout ça au propre ?

Well, maybe it’s working that way, but it’s not a good way for the users who are going to use it.
Installing node that way, without ynh_install_nodejs can lead to many errors for others app using node. As well as for this one if node is already installed by another app, or reinstall.

And adding an extra repository… as said before, it could induce many conflicts with apt for the users.

Voilà pourquoi je demande comment mettre cela au propre !
J’ai prouvé que cela fonctionne maintenant j’attends de savoir si les gens voudrons bien faire un effort pour améliorer mon script.

Car de mon coté j’ai fait tout ce que je pouvais !
Donc maintenant il est sur github donc tout le monde peut m’envoyer des pull requests.

Si quelqu’un pourrait vérifier mon code ce serait super !

https://paste.yunohost.org/ehoqucenet.bash

Quickly, as I’m working a little on it.
Your remove script does not remove the database.

Your nginx config is broken, the app gives a “Welcome to nginx!” instead of the app itself.

im go to fix remove database
I do not have trouble with nginx

With commit 55 :

Have this error

131491 DEBUG Dépaquetage de onlyoffice-documentserver (5.2.3-64) ...

158430 WARNING dpkg: des problèmes de dépendances empêchent la configuration de onlyoffice-documentserver :
158440 WARNING onlyoffice-documentserver dépend de postgresql-client (>= 9.1) ; cependant :
158450 WARNING Le paquet postgresql-client n’est pas installé.
158452 WARNING La version de postgresql-client sur le système, fournie par postgresql-client-9.6:amd64, est .
158453 WARNING
158454 WARNING dpkg: erreur de traitement du paquet onlyoffice-documentserver (–install) :
158462 WARNING problèmes de dépendances - laissé non configuré
158564 DEBUG + ynh_exit_properly
158565 WARNING Des erreurs ont été rencontrées pendant l’exécution :
158565 DEBUG + local exit_code=1
158565 WARNING onlyoffice-documentserver
158566 DEBUG + ‘[’ 1 -eq 0 ‘]’
158566 WARNING !!
158566 DEBUG + trap ‘’ EXIT
158567 WARNING onlyoffice’s script has encountered an error. Its execution was cancelled.
158567 DEBUG + set +eu
158567 WARNING !!
158568 DEBUG + echo -e ‘!!\n onlyoffice’’‘s script has encountered an error. Its execution was cancelled.\n!!’
158568 WARNING

Have fix that but have :

Install Success
https://paste.yunohost.org/iqakolabef.sql

can you help me please ?

nginx acces.log https://paste.yunohost.org/demubuheda.coffeescript

nginx error.log https://paste.yunohost.org/odiqaqejet.pas