Switching Patchbox modules fails

I’m having similar problems here…
but it doesn’t stop at the touchosc2midi package.
As soon as I try to enable either ORAC or MODEP from the patchbox CLI I get

patch@patchbox:~ $ patchbox
Service: jack.service enabled
Service: jack.service started
Service: pisound-ctl.service enabled
Service: pisound-ctl.service started
Manager: ERROR: org.freedesktop.systemd1.NoSuchUnit: Unit file modep-touchosc2midi.service does not exist.
Service: modep-mod-ui.service stopped
Service: modep-mod-ui.service disabled
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/patchbox/service.py", line 126, in enable_unit
    dbus.Boolean(True))
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.systemd1.NoSuchUnit: Unit file modep-touchosc2midi.service does not exist.

when trying ORAC, I get

patch@patchbox:~ $ patchbox
Jack service restarted!
Waiting for Jack to boot...
Jack is running!

Press any key to continue...

Manager: ERROR: org.freedesktop.systemd1.NoSuchUnit: Unit file orac.service does not exist.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/patchbox/service.py", line 126, in enable_unit
    dbus.Boolean(True))
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.systemd1.NoSuchUnit: Unit file orac.service does not exist.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/patchbox/module.py", line 624, in activate
    self._activate_module(module)
  File "/usr/lib/python3/dist-packages/patchbox/module.py", line 645, in _activate_module
    self._service_manager.enable_start_unit(service)
  File "/usr/lib/python3/dist-packages/patchbox/service.py", line 71, in enable_start_unit
    self.enable_unit(pservice)
  File "/usr/lib/python3/dist-packages/patchbox/service.py", line 130, in enable_unit
    raise ServiceError(str(err))
patchbox.service.ServiceError: org.freedesktop.systemd1.NoSuchUnit: Unit file orac.service does not exist.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/patchbox/service.py", line 95, in stop_unit
    interface.StopUnit(pservice.name, mode)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.systemd1.NoSuchUnit: Unit orac.service not loaded.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/patchbox", line 11, in <module>
    load_entry_point('patchbox-cli==1.0', 'console_scripts', 'patchbox')()
  File "/usr/lib/python3/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1114, in invoke
    return Command.invoke(self, ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/lib/python3/dist-packages/patchbox/cli.py", line 16, in cli
    do_group_menu(ctx, cancel='Exit')
  File "/usr/lib/python3/dist-packages/patchbox/utils.py", line 208, in do_group_menu
    ctx.invoke(ctx.command.get_command(ctx, cmd))
  File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/lib/python3/dist-packages/patchbox/modules/jack/cli.py", line 129, in cli
    do_group_menu(ctx)
  File "/usr/lib/python3/dist-packages/patchbox/utils.py", line 208, in do_group_menu
    ctx.invoke(ctx.command.get_command(ctx, cmd))
  File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/lib/python3/dist-packages/patchbox/modules/jack/cli.py", line 185, in config
    do_go_back_if_ineractive(ctx)
  File "/usr/lib/python3/dist-packages/patchbox/utils.py", line 278, in do_go_back_if_ineractive
    ctx.invoke(context.command)
  File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/lib/python3/dist-packages/patchbox/modules/jack/cli.py", line 129, in cli
    do_group_menu(ctx)
  File "/usr/lib/python3/dist-packages/patchbox/utils.py", line 201, in do_group_menu
    go_home_or_exit(ctx)
  File "/usr/lib/python3/dist-packages/patchbox/utils.py", line 182, in go_home_or_exit
    ctx.invoke(context.parent.command)
  File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/lib/python3/dist-packages/patchbox/cli.py", line 16, in cli
    do_group_menu(ctx, cancel='Exit')
  File "/usr/lib/python3/dist-packages/patchbox/utils.py", line 208, in do_group_menu
    ctx.invoke(ctx.command.get_command(ctx, cmd))
  File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/lib/python3/dist-packages/patchbox/modules/module/cli.py", line 26, in cli
    ctx.invoke(ctx.command.get_command(ctx, 'config'))
  File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/lib/python3/dist-packages/patchbox/modules/module/cli.py", line 173, in config
    manager.activate(module, autolaunch=False, autoinstall=True)
  File "/usr/lib/python3/dist-packages/patchbox/module.py", line 627, in activate
    self._deactivate_module(module)
  File "/usr/lib/python3/dist-packages/patchbox/module.py", line 663, in _deactivate_module
    self._service_manager.stop_disable_unit(service)
  File "/usr/lib/python3/dist-packages/patchbox/service.py", line 84, in stop_disable_unit
    if not self.stop_unit(pservice):
  File "/usr/lib/python3/dist-packages/patchbox/service.py", line 101, in stop_unit
    raise ServiceError(str(err))
patchbox.service.ServiceError: org.freedesktop.systemd1.NoSuchUnit: Unit orac.service not loaded.

I’m running a freshly burned image on a RPi3B+, right now USB soundcard, awaiting my PiSound in the mail…

the error occurs even after apt-get upgrade (and above tips), and with both the wifi hotspot and the regular connection…

This is a separate issue from TouchOSC2MIDI failure message, so moved into its own topic.

patchbox.service.ServiceError: org.freedesktop.systemd1.NoSuchUnit: Unit orac.service not loaded.

Manager: ERROR: org.freedesktop.systemd1.NoSuchUnit: Unit file modep-touchosc2midi.service does not exist.

Lines like those above indicate some issue with software installation. I am not sure what is the way to end up with such a state of the system, I’m trying to reproduce this myself, but so far I wasn’t able to.

Did you install / uninstall some software using apt-get? Could you attach your /var/log/apt/history.log here (or PM me)? It should show the apt-get history that should help debug this issue.

I think I may have found the issue - module install errors were not getting detected properly, in case installer fails or there’s a network failure. I have fixed that in patchbox 1.1.3 version.

You should run patchbox update to get the fix. In addition to that, to restore the modules state, run this once:

sudo rm /root/.patchbox/state.json

Then try installing modules through patchbox again.

1 Like

works! for MODEP, will test other modules soon…

1 Like