Matériel: Odroid N2+. Version de YunoHost: 11.0.10.2 (stable) J’ai accès à mon serveur : SSH/webadmin Êtes-vous dans un contexte particulier ou avez-vous effectué des modifications particulières sur votre instance ? : non
Bonjour à tous,
depuis la migration vers yuno 11 (encore merci @Aleks pour le support à cette occassion) j’ai une légère fuite mémoire (100 M toutes les 12 heures) et en regardant htop il semble que ce soit pleroma la cause.
J’ai désinstallé et réinstallé pleroma-yuno et supprimé postgresql V11 qui fonctionnait en parrallèle de postgresql V13 (en m’inspirant de Comment restaurer ancienne database de Mobilizon? - #3 by rodinux ) mais rien n’y fait (cela a néanmoins diminué significativement la fuite mémoire).
J’ai fait les commandes suivantes mais je ne sais pas les interpréter :
# grep -inr pleroma /etc/systemd :( 1 22-11-04 - 7:21:53
/etc/systemd/system/pleroma.service:2:Description=pleroma social network
/etc/systemd/system/pleroma.service:10:; Name of the user that runs the Pleroma service.
/etc/systemd/system/pleroma.service:11:User=pleroma
/etc/systemd/system/pleroma.service:12:Group=pleroma
/etc/systemd/system/pleroma.service:13:; Declares that Pleroma runs in production mode.
/etc/systemd/system/pleroma.service:17:; Path to the home directory of the user running the Pleroma service.
/etc/systemd/system/pleroma.service:18:Environment="HOME=/var/www/pleroma/live/"
/etc/systemd/system/pleroma.service:19:; Path to the folder containing the Pleroma installation.
/etc/systemd/system/pleroma.service:20:WorkingDirectory=/var/www/pleroma/live/
/etc/systemd/system/pleroma.service:21:; Path to the Pleroma binary.
/etc/systemd/system/pleroma.service:22:ExecStart=/var/www/pleroma/live/bin/pleroma start
/etc/systemd/system/pleroma.service:23:ExecStop=/var/www/pleroma/live/bin/pleroma stop
/etc/systemd/system/pleroma.service:28:; The /home, /root, and /run/user folders can not be accessed by this service anymore. If your Pleroma user has its home folder in one of the restricted places, or use one of these folders as its working directory, you have to set this to false.
Hello @rodinux,
oui j’avais cherché sur internet des éléments se rapportant à cette phrase mais ma recherche, sans doute lacunaire, n’a rien trouvé de très éclairant…
À quoi ressemble le fichier /etc/systemd/system/plemora.conf ?
en lisant cette doc: Hardening your instance - Pleroma Documentation peut-être il faudrait juste mettre ProtectHome à false ?? mais je ne suis sûr de rien…
alors pleroma.service me donne pour la partie qui nous intéresse
; The /home, /root, and /run/user folders can not be accessed by this service anymore. If your Pleroma user has its home folder in one of the restricted places, or use one of these folders as its working directory, you have to set this to false.
ProtectHome=false
Est-ce que je tente true alors ? Tu vas me dire ça ne coute rien
EDIT (16:35) : j’ai essayé en mettant true mais j’ai toujours le message suivant :
# grep -inr pleroma /etc/systemd 22-11-04 - 16:33:05
/etc/systemd/system/pleroma.service:2:Description=pleroma social network
/etc/systemd/system/pleroma.service:10:; Name of the user that runs the Pleroma service.
/etc/systemd/system/pleroma.service:11:User=pleroma
/etc/systemd/system/pleroma.service:12:Group=pleroma
/etc/systemd/system/pleroma.service:13:; Declares that Pleroma runs in production mode.
/etc/systemd/system/pleroma.service:17:; Path to the home directory of the user running the Pleroma service.
/etc/systemd/system/pleroma.service:18:Environment="HOME=/var/www/pleroma/live/"
/etc/systemd/system/pleroma.service:19:; Path to the folder containing the Pleroma installation.
/etc/systemd/system/pleroma.service:20:WorkingDirectory=/var/www/pleroma/live/
/etc/systemd/system/pleroma.service:21:; Path to the Pleroma binary.
/etc/systemd/system/pleroma.service:22:ExecStart=/var/www/pleroma/live/bin/pleroma start
/etc/systemd/system/pleroma.service:23:ExecStop=/var/www/pleroma/live/bin/pleroma stop
/etc/systemd/system/pleroma.service:28:; The /home, /root, and /run/user folders can not be accessed by this service anymore. If your Pleroma user has its home folder in one of the restricted places, or use one of these folders as its working directory, you have to set this to false.
Dans le doute j’ai donc remis false sans regarder néanmoins si cela avait eu un effet sur le lent mais inexorable remplissage de la RAM