Service mongodb is unknown :(

My YunoHost server

Hardware: VPS bought online
YunoHost version: 4.0.8
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

I upgraded yesterday and encountered a few issues.

When I run a Diagnosis
I get this error

Service mongodb is unknown :frowning:

yunohost service restart mongodb
Failed to restart mongodb.service: Unit mongodb.service not found.
Warning: Could not execute the command ‘systemctl restart mongodb’
Error: Failed to get status information via dbus for service mongodb, systemctl didn’t recognize this service (‘NoSuchUnit’).
Error: Could not restart the service ‘mongodb’

On the page ttps://____/yunohost/admin/#/services/mongodb

Description
Error: failed to get information for this service, it doesn’t exists for systemd
Status
unknown since 51 years ago
Start on boot
unknown
Configuration
unknown

Looking at the logs I see these lines
020-09-21T15:48:58.641+0100 I COMMAND [conn16] dropDatabase wekan starting
2020-09-21T15:48:59.314+0100 I COMMAND [conn16] dropDatabase wekan finished

Could it be because I deleted the Wekan app and something wasn’t deleted?

Any ideas how to solve this error?
Do I need to re-install Wekan?

Thanks

Sounds like the mongodb service wasnt removed by Wekan … I think you can safely run yunohost service remove mongodb

Thank you. I did that and rebooted but it looks like there are still some “traces”
When I try YuoHost system update I ge thte following

Could not to update the cache of APT (Debian’s package manager). Here is a dump of the sources.list lines, which might help identify problematic lines:
sources.list:deb http://ftp.nl.debian.org/debian buster main contrib non-free
sources.list:deb http://ftp.de.debian.org/debian buster-updates main contrib non-free
sources.list.d/ftp_nl_debian_org_debian.list:deb http://ftp.nl.debian.org/debian buster-updates main non-free contrib
sources.list.d/security_debian_org.list:deb http://security.debian.org/ buster/updates main non-free contrib
sources.list.d/yunohost.list:deb http://forge.yunohost.org/debian/ buster stable
sources.list.d/docker.list:deb [arch=amd64] https://download.docker.com/linux/debian buster stable
sources.list.d/sury.list:deb https://packages.sury.org/php/ buster main
sources.list.d/extra_php_version.list:deb https://packages.sury.org/php/ buster main
sources.list.d/onlyoffice.list:deb https://deb.nodesource.com/node_10.x stretch main
sources.list.d/onlyoffice.list:deb http://download.onlyoffice.com/repo/debian squeeze main
sources.list.d/wekan.list:deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.2 main
sources.list.d/ftp_nl_debian_org_debian.list.save:deb http://ftp.nl.debian.org/debian buster-updates main non-free contrib
sources.list.d/security_debian_org.list.save:deb http://security.debian.org/ buster/updates main non-free contrib
sources.list.d/yunohost.list.save:deb http://forge.yunohost.org/debian/ buster stable
sources.list.d/docker.list.save:deb [arch=amd64] https://download.docker.com/linux/debian buster stable
sources.list.d/sury.list.save:deb https://packages.sury.org/php/ buster main
sources.list.d/extra_php_version.list.save:deb https://packages.sury.org/php/ buster main
sources.list.d/onlyoffice.list.save:deb https://deb.nodesource.com/node_10.x stretch main
sources.list.d/onlyoffice.list.save:deb http://download.onlyoffice.com/repo/debian squeeze main
sources.list.d/wekan.list.save:deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.2 main
sources.list.d/ondrej-ubuntu-php-groovy.list:deb http://ppa.launchpad.net/ondrej/php/ubuntu groovy main
sources.list.d/ondrej-ubuntu-php-groovy.list.save:deb http://ppa.launchpad.net/ondrej/php/ubuntu groovy main

Any ideas how to remove this?

What does it says before this message …

This is the message I get when I restart the server and login into admin

Could not to update the cache of APT (Debian’s package manager). Here is a dump of the sources.list lines, which might help identify problematic lines:
sources.list:deb http://ftp.nl.debian.org/debian buster main contrib non-free
sources.list:deb http://ftp.de.debian.org/debian buster-updates main contrib non-free
sources.list.d/ftp_nl_debian_org_debian.list:deb http://ftp.nl.debian.org/debian buster-updates main non-free contrib
sources.list.d/security_debian_org.list:deb http://security.debian.org/ buster/updates main non-free contrib
sources.list.d/yunohost.list:deb http://forge.yunohost.org/debian/ buster stable
sources.list.d/docker.list:deb [arch=amd64] https://download.docker.com/linux/debian buster stable
sources.list.d/sury.list:deb https://packages.sury.org/php/ buster main
sources.list.d/extra_php_version.list:deb https://packages.sury.org/php/ buster main
sources.list.d/onlyoffice.list:deb https://deb.nodesource.com/node_10.x stretch main
sources.list.d/onlyoffice.list:deb http://download.onlyoffice.com/repo/debian squeeze main
sources.list.d/wekan.list:deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.2 main
sources.list.d/ftp_nl_debian_org_debian.list.save:deb http://ftp.nl.debian.org/debian buster-updates main non-free contrib
sources.list.d/security_debian_org.list.save:deb http://security.debian.org/ buster/updates main non-free contrib
sources.list.d/yunohost.list.save:deb http://forge.yunohost.org/debian/ buster stable
sources.list.d/docker.list.save:deb [arch=amd64] https://download.docker.com/linux/debian buster stable
sources.list.d/sury.list.save:deb https://packages.sury.org/php/ buster main
sources.list.d/extra_php_version.list.save:deb https://packages.sury.org/php/ buster main
sources.list.d/onlyoffice.list.save:deb https://deb.nodesource.com/node_10.x stretch main
sources.list.d/onlyoffice.list.save:deb http://download.onlyoffice.com/repo/debian squeeze main
sources.list.d/wekan.list.save:deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.2 main
sources.list.d/ondrej-ubuntu-php-groovy.list:deb http://ppa.launchpad.net/ondrej/php/ubuntu groovy main
sources.list.d/ondrej-ubuntu-php-groovy.list.save:deb http://ppa.launchpad.net/ondrej/php/ubuntu groovy main

W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/sury.list:1

W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/sury.list:1

W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/sury.list:1

W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/sury.list:1

W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/sury.list:1

W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/sury.list:1

E: The repository ‘http://ppa.launchpad.net/ondrej/php/ubuntu groovy Release’ does not have a Release file.

Fetching available upgrades for system packages…

Yeah, that’s because you tried that stuff about 'sudo add-apt-repository -y ppa:ondrej/php' from the other thread, which as expected doesn’t work very much because ppa are for Ubuntu and not Debian …

Also you have some remains of The Big Sury War (though that’s just a warning not preventing things from working properly)

So running these should fix both issues :

rm /etc/apt/sources.list.d/ondrej-ubuntu-php-groovy*
rm /etc/apt/sources.list.d/sury.list*

Also all these duplicate “.save” files in /etc/apt/sources.list.d are kind of madness and I would just clean them with

rm /etc/apt/sources.list.d/*.save

Thank you.
Now I have access to updates.

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