I ran the install instructions more or less just as they were here:
https://todo.sr.ht/~anteater/mms-stack-bugs/16
It worked! vgmms installed successfully (after fixing a few things, which I can cover in a follow-up). However...
$ sudo service ofono start
Failed to start ofono.service: Unit ofono.service not found.
$ ~/mms/vgmms/target/release/vgmms
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: D-Bus error: The name org.ofono was not provided by any .service files (org.freedesktop.DBus.Error.ServiceUnknown)', src/state.rs:195:34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
$ ~/mms/ofono/test/enable-modem
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 177, in activate_name_owner
return self.get_name_owner(bus_name)
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner
return self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH,
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
reply_message = self.send_message_with_reply_and_block(
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.ofono': no such name
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/mobian/mms/ofono/test/enable-modem", line 11, in <module>
manager = dbus.Interface(bus.get_object('org.ofono', '/'),
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in get_object
return self.ProxyObjectClass(self, bus_name, object_path,
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 250, in __init__
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 182, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 277, in start_service_by_name
return (True, self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH,
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
reply_message = self.send_message_with_reply_and_block(
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.ofono was not provided by any .service files
These errors indicate that
ofonod
is not running, and the metadata used to activate it from systemd and DBus is not where programs expect it to be.Are you sure ofono is installed properly (e.g., to
/usr
rather than/usr/local
)? You may need to change theprefix
specified at the configure step.For example, I configured ofono with
./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin
.After reconfiguring you'll have to run
make
and (as root)make install
again.
Some combination of the above and making sure ModemManager was stopped before running has resolved this. Can probably close.
Sorry for update spam, I waffled on the right closure for user-support tickets a bit. I'd rather use INVALID for spam/nonsense. BY_DESIGN is less negative, and our BY_DESIGN closures should be informative like outright support requests are.