Unable to remove pleroma

My YunoHost server

Hardware: Raspberry Pi at home
YunoHost version: 4.1.7
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

After installing and uninstalling pleroma a couple of times, I am unable to remove it completely. The system freezes when trying to remove pleroma because it seems the last installation failed. My goal is to remove it completely and make a fresh installation.

The uninstall process stops at the end. Please see the log below.

Info: Removing pleroma...
Info: [+...................] > Loading installation settings...
Info: [#+..................] > Removing service integration in YunoHost...
Warning: Failed to stop pleroma.service: Unit pleroma.service not loaded.
Info: [##++................] > Stopping all pleroma services...
Warning: [Error]
Warning: pkill: invalid user name: pleroma
Info: [####+...............] > Stopping and removing the systemd service...
Info: [#####++.............] > Removing the PostgreSQL database...
Warning: /etc/profile.d/wifi-check.sh: line 17: echo: write error: Broken pipe
Warning: ERROR:  relation "database" does not exist
Warning: dropdb: missing required argument database name
Warning: Try "dropdb --help" for more information.
Warning: /etc/profile.d/wifi-check.sh: line 17: echo: write error: Broken pipe
Warning: ERROR:  syntax error at or near ";"
Warning: LINE 1: DROP USER ;
Warning:                   ^
Info: [#######+............] > Removing dependencies...
Warning: E: Unable to locate package pleroma-ynh-deps
Warning: ynh_secure_remove called with empty argument, ignoring.
Info: [########++..........] > Removing app main directory...
Info: [##########+.........] > Removing nginx web server configuration...
Info: '/etc/nginx/conf.d/plero.nimbus.selfhost.co.d/pleroma.conf' wasn't deleted because it doesn't exist.
Info: '/etc/nginx/conf.d/pleroma-cache.conf' wasn't deleted because it doesn't exist.
Info: [###########+........] > Closing a port...
Info: [############++......] > Removing directories...
Warning: ynh_secure_remove called with empty argument, ignoring.
Info: '/etc/pleroma' wasn't deleted because it doesn't exist.
Warning: The user pleroma was not found
Info: [##############+.....] > Removing the dedicated system user...

Hi @jorgesat,

Not a user of that package, but let me try to help out anyway.

Your error seems to be related to a script /etc/profile.d/wifi-check.sh do you know where it comes from ?

I’ve got the same problem as you (Pleroma and Mastodon) including system freezing.

i resolved it by shell command

sudo yunohost app remove pleroma

and then restart the server
and that’s it!

1 Like

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