Installation roundcube avec plugin CardDav

Mon serveur YunoHost

Matériel: Serveur dédié en ligne
Version de YunoHost: 11.1.18
J’ai accès à mon serveur : En SSH & Par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non
Si oui, expliquer:
Si votre requête est liée à une application, précisez son nom et sa version: roundcube 1.6.0~ynh3

Description du problème

Bonjour, je cherche à installer roundcube sur ma nouvelle installation de yunohost.
J’ai laissé le domaine et le préfixe par défaut, j’ai juste mis la langue au français et activé le plugin de synchronisation CardDav. Voici le log.

Au début l’installation a l’air de marcher, puis rate lorsqu’elle arrive à l’installation des plugins. Lorsque je l’installe sans ce plugin l’installation se passe bien, donc à priori c’est le plugin de synchronisation qui pose problème.

L’erreur en question :

2023-05-03 08:20:44,945: DEBUG - Your requirements could not be resolved to an installable set of packages.
2023-05-03 08:20:44,946: DEBUG - 
2023-05-03 08:20:44,946: DEBUG -   Problem 1
2023-05-03 08:20:44,946: DEBUG -     - mstilkerich/carddavclient[v1.2.0, ..., v1.3.0] require psr/http-message ^1.0 -> found psr/http-message[1.0, 1.0.1, 1.1] but the package is fixed to 2.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
2023-05-03 08:20:44,946: DEBUG -     - roundcube/carddav v4.4.3 requires mstilkerich/carddavclient ^1.2.0 -> satisfiable by mstilkerich/carddavclient[v1.2.0, ..., v1.3.0].
2023-05-03 08:20:44,947: DEBUG -     - Root composer.json requires roundcube/carddav 4.4.3 -> satisfiable by roundcube/carddav[v4.4.3].
2023-05-03 08:20:44,947: DEBUG - 
2023-05-03 08:20:44,947: DEBUG - Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Le plugin de synchronisation a l’air d’avoir besoin d’une certaine dépendance. Laquelle est aussi utilisée par roundcube, mais dans une version ultérieure, ce qui cause problème.

Est-ce que quelqu’un sait comment régler ça ? J’aimerai installer ce plugin si possible, car j’ai aussi une instance Nextcloud sur laquelle je stoque mon carnet d’adresses, et donc j’aimerai éviter de jongler entre deux carnets d’adresses sur deux applications différentes. Je peux peut-être installer l’extension manuellement par la suite ?

Not tested yet (CI is kind of broken)
but you can try with cardav updated plugin:
sudo yunohost app install https://github.com/YunoHost-Apps/roundcube_ynh/tree/cardav

The problem is still here.

Apparently, the plugin’s CI is passing, so I suppose it should work with roundcube.

The plugin depends on mstilkerich/carddavclient, which requires at least psr/http-message 1.x, so I think it won’t change anything.

I’m searching which package locks pst/http-message to 2.0.

Ok, I tried to follow the instructions given in the error “Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

When installing roundcube/carddav by executing ./composer.phar require roundcube/carddav -W it does install, but when I enable it in conf.inc.php the server responds with an error:

II can’t find the relevant logs, so I can’t say what the problem is here.

I have added --with-all-dependencies option to the install script and tested the install with sucess.

sudo yunohost app install https://github.com/YunoHost-Apps/roundcube_ynh/tree/testing

Yes, it installs successfuly and works fine :+1:
Thank you very much !

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.