Modemmanager error

i have modemmanager 1.22.0 package
after enabling ther service and starting it with:
systemctl start ModemManager.service
systemctl enable ModemManager.service

i try to scan for modems and i get this error:

mmcli --scan-modems                                                                            ✔ 

error: couldn't request to scan devices: 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Cancelled: Operation was cancelled'

in this topic: [SOLVED]Error poking ModemManager: GDBus.Error:org.freedesktop.systemd / Networking, Server, and Protection / Arch Linux Forums
after they removed the following file the problem fixed: /usr/share/dbus-1/system-services/org.freedesktop.ModemManager1.service

i removed it but i’m still having the same issue

You need to restore this file. Your linked Topic is about something different. After the restore restart your system.

Then try again to search for Modems. If you get again an error check the journal. For example with

journalctl --no-pager --no-hostname -b -u ModemManager
journalctl --no-pager --no-hostname -b -u ModemManager                                       1 ✘ 
أفريل 20 07:23:38 systemd[1]: Starting Modem Manager...
أفريل 20 07:23:38 ModemManager[433]: <msg> ModemManager (version 1.22.0-1) starting in system bus...
أفريل 20 07:23:38 systemd[1]: Started Modem Manager.
أفريل 20 07:23:42 ModemManager[433]: <msg> [base-manager] couldn't check support for device '/sys/devices/pci0000:00/0000:00:1c.2/0000:02:00.0': not supported by any plugin
أفريل 20 07:23:42 ModemManager[433]: <msg> [base-manager] couldn't check support for device '/sys/devices/pci0000:00/0000:00:1f.6': not supported by any plugin
أفريل 20 07:25:36 ModemManager[433]: <msg> [sleep-monitor-systemd] system is about to suspend
أفريل 20 07:29:42 ModemManager[433]: <msg> [sleep-monitor-systemd] system is resuming
أفريل 20 07:29:46 ModemManager[433]: <msg> [base-manager] couldn't check support for device '/sys/devices/pci0000:00/0000:00:1c.2/0000:02:00.0': not supported by any plugin
أفريل 20 07:29:46 ModemManager[433]: <msg> [base-manager] couldn't check support for device '/sys/devices/pci0000:00/0000:00:1f.6': not supported by any plugin
أفريل 20 07:51:31 ModemManager[433]: <msg> [sleep-monitor-systemd] system is about to suspend
أفريل 20 10:04:30 ModemManager[433]: <msg> [sleep-monitor-systemd] system is resuming
أفريل 20 10:04:34 ModemManager[433]: <msg> [base-manager] couldn't check support for device '/sys/devices/pci0000:00/0000:00:1c.2/0000:02:00.0': not supported by any plugin
أفريل 20 10:04:34 ModemManager[433]: <msg> [base-manager] couldn't check support for device '/sys/devices/pci0000:00/0000:00:1f.6': not supported by any plugin
أفريل 20 10:08:06 ModemManager[433]: <msg> [base-manager] couldn't check support for device '/sys/devices/pci0000:00/0000:00:1c.2/0000:02:00.0': not supported by any plugin
أفريل 20 10:08:06 ModemManager[433]: <msg> [base-manager] couldn't check support for device '/sys/devices/pci0000:00/0000:00:1f.6': not supported by any plugin
أفريل 20 10:11:34 ModemManager[433]: <wrn> Error cancelling authorization check: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No such cancellation_id `cancellation-id-0' for name :1.8
أفريل 20 10:14:26 ModemManager[433]: <wrn> Error cancelling authorization check: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No such cancellation_id `cancellation-id-1' for name :1.8
أفريل 20 10:20:51 ModemManager[433]: <wrn> Error cancelling authorization check: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No such cancellation_id `cancellation-id-2' for name :1.8
أفريل 20 10:21:09 ModemManager[433]: <wrn> Error cancelling authorization check: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No such cancellation_id `cancellation-id-3' for name :1.8

“You need to restore this file. Your linked Topic is about something different. After the restore restart your system.”
i removed it with sudo krusader. i think it doesnt go to trash and it is removed permanently

The log indicate you did not restart your System. The Problem seems to be with Polkit. Does Polkit authentication works?

For example with

systemctl restart ModemManager 

Do not use sudo, and you should see an authentication window for your local user.

Just reinstall the package.

1 Like

A friendly faery has stopped by to say

This is insanity. There are very very few conditions that would ever warrant
sudo %GUI-Application%

Dont do it.

i have reinstalled it and the file is there again.
“Do not use sudo, and you should see an authentication window for your local user.” yes the windows appear and i enter the password.
now the problem is fixed. i get:

mmcli --scan-modems                                                                            ✔ 

successfully requested to scan devices

thank you
if i want to remove a file that needs root permission so i need to remove it from the command line?

In the relatively few scenarios in which you need to remove a protected file you can use the terminal;

sudo rm /path/to/file

But there also exist GUI ways to do it without creating security risks.
If you are using KDE and Dolphin for example you could make use of kio.

sudo pacman -Syu kio kio-admin

Then you can gain great powers and great responsibility by using admin://;

From the terminal (and opening to /)

dolphin admin:///

Or in dolphin itself you can access the location and manually type admin:// or select it from the drop-down;

2 Likes

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