backintime icon indicating copy to clipboard operation
backintime copied to clipboard

BIT won't start

Open donkarziavelli opened this issue 4 years ago • 9 comments

Hey there! Trying to get it running on Xubuntu 19.04 and this comes up.

`Back In Time Version: 1.2.1

Back In Time comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions; type `backintime --license' for details.

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 363, in get_name_owner 's', (bus_name,), **keywords) File "/usr/lib/python3/dist-packages/dbus/connection.py", line 653, in call_blocking message, timeout) dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'net.launchpad.backintime.serviceHelper': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/share/backintime/qt/app.py", line 1592, in cfg = backintime.startApp('backintime-qt') File "/usr/share/backintime/common/backintime.py", line 521, in startApp return getConfig(args, False) File "/usr/share/backintime/common/backintime.py", line 669, in getConfig cfg = config.Config(config_path = args.config, data_path = args.share_path) File "/usr/share/backintime/common/config.py", line 279, in init self.setupUdev = tools.SetupUdev() File "/usr/share/backintime/common/tools.py", line 1715, in init conn = bus.get_object(SetupUdev.CONNECTION, SetupUdev.OBJECT) File "/usr/lib/python3/dist-packages/dbus/bus.py", line 243, in get_object follow_name_owner_changes=follow_name_owner_changes) 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 280, in start_service_by_name 'su', (bus_name, flags))) File "/usr/lib/python3/dist-packages/dbus/connection.py", line 653, in call_blocking message, timeout) dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ChildExited: Launch helper exited with unknown return code 1 `

Anyone an idea what to do?

donkarziavelli avatar Dec 15 '19 10:12 donkarziavelli

Same here on Manjaro Linux and building from source fails during the test. It seems to be something with python-dbus. I have v1.2.14 installed.

python -m unittest  -b test/test_applicationinstance.py
...................
----------------------------------------------------------------------
Ran 19 tests in 0.048s

OK
python -m unittest  -b test/test_argparser.py
.....................
----------------------------------------------------------------------
Ran 21 tests in 3.647s

OK
python -m unittest  -b test/test_backintime.py
FF
Stderr:
/home/yochanan/Documents/pkgbuilds/backintime/src/backintime-1.2.1/common/test/test_backintime.py:33: DeprecationWarning: Please use assertEqual instead.
  self.assertEquals("", subprocess.getoutput("python3 backintime.py --quiet"))

======================================================================
FAIL: test_local_snapshot_is_successful (test.test_backintime.TestBackInTime)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/yochanan/Documents/pkgbuilds/backintime/src/backintime-1.2.1/common/test/test_backintime.py", line 68, in test_local_snapshot_is_successful
    self.assertEqual(proc.returncode, 0, msg)
AssertionError: 1 != 0 : Returncode: 1
stderr: Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/dbus/bus.py", line 177, in activate_name_owner
    return self.get_name_owner(bus_name)
  File "/usr/lib/python3.8/site-packages/dbus/bus.py", line 361, in get_name_owner
    return self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH,
  File "/usr/lib/python3.8/site-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 'net.launchpad.backintime.serviceHelper': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/yochanan/Documents/pkgbuilds/backintime/src/backintime-1.2.1/common/backintime.py", line 1165, in <module>
    startApp()
  File "/home/yochanan/Documents/pkgbuilds/backintime/src/backintime-1.2.1/common/backintime.py", line 517, in startApp
    args.func(args)
  File "/home/yochanan/Documents/pkgbuilds/backintime/src/backintime-1.2.1/common/backintime.py", line 1150, in checkConfig
    cfg = getConfig(args)
  File "/home/yochanan/Documents/pkgbuilds/backintime/src/backintime-1.2.1/common/backintime.py", line 669, in getConfig
    cfg = config.Config(config_path = args.config, data_path = args.share_path)
  File "/home/yochanan/Documents/pkgbuilds/backintime/src/backintime-1.2.1/common/config.py", line 279, in __init__
    self.setupUdev = tools.SetupUdev()
  File "/home/yochanan/Documents/pkgbuilds/backintime/src/backintime-1.2.1/common/tools.py", line 1715, in __init__
    conn = bus.get_object(SetupUdev.CONNECTION, SetupUdev.OBJECT)
  File "/usr/lib/python3.8/site-packages/dbus/bus.py", line 241, in get_object
    return self.ProxyObjectClass(self, bus_name, object_path,
  File "/usr/lib/python3.8/site-packages/dbus/proxies.py", line 250, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python3.8/site-packages/dbus/bus.py", line 182, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python3.8/site-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.8/site-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.Spawn.ChildExited: Launch helper exited with unknown return code 1

stdout: 
Back In Time
Version: 1.2.1

Back In Time comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; type `backintime --license' for details.

INFO: Update to config version 6


======================================================================
FAIL: test_quiet_mode (test.test_backintime.TestBackInTime)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/yochanan/Documents/pkgbuilds/backintime/src/backintime-1.2.1/common/test/test_backintime.py", line 33, in test_quiet_mode
    self.assertEquals("", subprocess.getoutput("python3 backintime.py --quiet"))
AssertionError: '' != 'Traceback (most recent call last):\n  Fil[2163 chars]de 1'
Diff is 2241 characters long. Set self.maxDiff to None to see it.

Stderr:
/home/yochanan/Documents/pkgbuilds/backintime/src/backintime-1.2.1/common/test/test_backintime.py:33: DeprecationWarning: Please use assertEqual instead.
  self.assertEquals("", subprocess.getoutput("python3 backintime.py --quiet"))

----------------------------------------------------------------------
Ran 2 tests in 0.966s

FAILED (failures=2)
make: *** [Makefile:566: unittest] Error 1

yochananmarqos avatar Dec 15 '19 16:12 yochananmarqos

I also have the same error on Manjaro Testing.

`Back In Time Version: 1.2.1

Back In Time comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions; type `backintime --license' for details.

INFO: Update to config version 6 Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/dbus/bus.py", line 177, in activate_name_owner return self.get_name_owner(bus_name) File "/usr/lib/python3.8/site-packages/dbus/bus.py", line 361, in get_name_owner return self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH, File "/usr/lib/python3.8/site-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 'net.launchpad.backintime.serviceHelper': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/share/backintime/common/backintime.py", line 1165, in startApp() File "/usr/share/backintime/common/backintime.py", line 521, in startApp return getConfig(args, False) File "/usr/share/backintime/common/backintime.py", line 669, in getConfig cfg = config.Config(config_path = args.config, data_path = args.share_path) File "/usr/share/backintime/common/config.py", line 279, in init self.setupUdev = tools.SetupUdev() File "/usr/share/backintime/common/tools.py", line 1715, in init conn = bus.get_object(SetupUdev.CONNECTION, SetupUdev.OBJECT) File "/usr/lib/python3.8/site-packages/dbus/bus.py", line 241, in get_object return self.ProxyObjectClass(self, bus_name, object_path, File "/usr/lib/python3.8/site-packages/dbus/proxies.py", line 250, in init self._named_service = conn.activate_name_owner(bus_name) File "/usr/lib/python3.8/site-packages/dbus/bus.py", line 182, in activate_name_owner self.start_service_by_name(bus_name) File "/usr/lib/python3.8/site-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.8/site-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.Spawn.ChildExited: Launch helper exited with unknown return code 1`

usulofarakis avatar Dec 15 '19 17:12 usulofarakis

The issue was resolved with the python-pyqt5 5.13.2-8 update today.

yochananmarqos avatar Dec 16 '19 15:12 yochananmarqos

The issue was resolved with the python-pyqt5 5.13.2-8 update today.

Confirmed, now running as expected.

usulofarakis avatar Dec 16 '19 19:12 usulofarakis

I still got the same error with version 5.14.1 (ubuntu 20.04)

picousse avatar May 13 '20 09:05 picousse

I found a solution, However not sure what did the trick...

I uninstalled pip3 PyQt5 and installed using python3-pyqt5

Fixed it for me on ubuntu 20.04

running /usr/bin/python3 -Es /usr/share/backintime/qt/serviceHelper.py was helpfull

picousse avatar May 13 '20 10:05 picousse

Same Problem here, Ubuntu 20.04 LTS, python3-pyqt5-5.14.1+dfsg-3build1, same error:

$ backintime-qt

Back In Time
Version: 1.2.1

Back In Time comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; type `backintime --license' for details.

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 'net.launchpad.backintime.serviceHelper': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/backintime/qt/app.py", line 1592, in <module>
    cfg = backintime.startApp('backintime-qt')
  File "/usr/share/backintime/common/backintime.py", line 521, in startApp
    return getConfig(args, False)
  File "/usr/share/backintime/common/backintime.py", line 669, in getConfig
    cfg = config.Config(config_path = args.config, data_path = args.share_path)
  File "/usr/share/backintime/common/config.py", line 279, in __init__
    self.setupUdev = tools.SetupUdev()
  File "/usr/share/backintime/common/tools.py", line 1715, in __init__
    conn = bus.get_object(SetupUdev.CONNECTION, SetupUdev.OBJECT)
  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.Spawn.ExecFailed: Failed to execute program net.launchpad.backintime.serviceHelper: Permission denied

Interesting though, I have another similar machine just with slight differences and there BIT works normal. The challenge is to find the difference ... but I got no good idea where to start. All installed BIT and python3-pyqt5* packages are the same ...

Thanks a lot in advance! Stefan.

bighegi avatar Jan 17 '22 18:01 bighegi

Thanks for reporting and debugging! Does this bug still happen for anyone, or have updates eliminated the problem?

emtiu avatar Sep 10 '22 22:09 emtiu

dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'net.launchpad.backintime.serviceHelper': no such name

This error message is reported in several issues:

Related to: #1233, #1014, #1013, #963, #921, #756 Possibly also to: #1068

@emtiu Could/should this type of issue be "escalated" to a "high incident"?

aryoda avatar Sep 17 '22 22:09 aryoda

Thanks for the good spot! I'll try and combine/collect those Issues. Yes, https://github.com/bit-team/backintime/labels/High is the right label for this problem.

It's always the rolling release distros that run into this kind of trouble, isn't it? ;) Moving target makes it so much harder to reproduce.

emtiu avatar Sep 23 '22 11:09 emtiu

If this here is the main/collecting issue for all the duplicates can we modify its title to a more informative one please?

buhtz avatar Sep 26 '22 08:09 buhtz

Closing as duplicate of #921.

@bighegi: Your report is almost the only one about this problem from a recent, non-rolling-release distro. Please comment in #921 if you have more information. Thanks :)

emtiu avatar Oct 08 '22 21:10 emtiu