Pb Etherpad - Python 2.7 - api

,

Bonjour,
je voudrais installer Etherpad sur la dernière version Ynh. C’est possible sur un Raspberry derrière ma box Orange mais pas sur le VPS d’ARN. Je mets le message d’erreur plus loin.

Mon serveur YunoHost

Matériel: VPS
Version de YunoHost: 3.7.0.12
J’ai accès à mon serveur : En SSH | Par la webadmin |

    2020-04-02 09:21:41,659: ERROR - Impossible d'installer etherpad_mypads: Une erreur est survenue dans le script d'installation de l'application
    Traceback (most recent call last):
      File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/api.py", line 301, in wrapper
        curr_v = params[k]
    KeyError: 'label'

J’ai cherché sur le forum, la doc. Je vois pas comment avancer alors je pose la question.
Sinon grâce à la version 3.7, j’ai pu mettre un certificat Let’s Enscrypt en suivant les indications de https://yunohost.org/#/certificate, impeccable.
Bonne journée
Marc

Il faut que tu nous donnes le reste du log … normalement la command aurait du de pointer vers une commande (ou un lien, si tu es dans la webadmin) pour partager le log.

Sinon tu peux le retrouver dans Outils > Journaux > … l’action correspondante, puis utiliser le bouton “Partager avec Yunopaste”

J’essaie : https://paste.yunohost.org/raw/cepabusamo

Ci-après log_etherpad.pdf (41,5 Ko)

Your log says “process out of memory”, so whether your lack of ram or of free space on your hard drive.

By the way, not sure, is it on your raspi or on the VPS that it doesn’t work ?

What gives you df -h ?

I guess 47G is enough :wink:
What about swapon -s ? And free

admin@mhep:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            488M     0  488M   0% /dev
tmpfs           100M   11M   90M  11% /run
/dev/vda1        50G  9.3G   38G  20% /
tmpfs           499M   92K  499M   1% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           499M     0  499M   0% /sys/fs/cgroup
tmpfs           100M     0  100M   0% /run/user/1007
admin@mhep:~$ free -h
              total        used        free      shared  buff/cache   available
Mem:           996M        674M        113M         70M        208M        117M
Swap:            0B          0B          0B

I think that’s the problem.
You don’t have enough memory.

If it’s a VPS, maybe you could ask for more ram.
Otherwise, you can go for a swap file.

If so, I can explain to you how to add a swap file.

I accept your proposal about the swap. Thank you

Ok then
Here step by step how to do it.

Here 2000 is the size of your swap, 2G, you’re free to put whatever you want. Don’t be to greedy :wink:

sudo dd if=/dev/zero of=/swap bs=1024 count=$(( 1024 * 2000 ))
sudo chmod 0600 /swap
sudo mkswap /swap
sudo swapon /swap
echo "/swap swap swap defaults 0 0" | sudo tee -a /etc/fstab

Type free again to see the result.

Is-it ok ?

    root@mhep:/home/admin# dd if=/dev/zero of=/swap bs=1024 count=$(( 1024 * 2000 ))
    2048000+0 records in
    2048000+0 records out
    2097152000 bytes (2.1 GB, 2.0 GiB) copied, 35.0007 s, 59.9 MB/s
    root@mhep:/home/admin# chmod 0600 /swap
    root@mhep:/home/admin# mkswap /swap
    Setting up swapspace version 1, size = 2 GiB (2097147904 bytes)
    no label, UUID=47210f1f-155e-438e-841f-7b623d423d86
    root@mhep:/home/admin# swapon /swap
    root@mhep:/home/admin# echo "/swap swap swap defaults 0 0" | sudo tee -a /etc/fstab
    /swap swap swap defaults 0 0
    root@mhep:/home/admin#

It looks ok, what gives you free now ?

root@mhep:/home/admin# free -h
              total        used        free      shared  buff/cache   available
Mem:           996M        680M         92M         63M        223M        118M
Swap:          2.0G         20M        1.9G

I try to reinstall ?

I think you can retry indeed.

It’s starting

Victory
Perfect
Thank you very much for your intervention and your help
see you soon

1 Like

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