← Back to team overview

touch-packages team mailing list archive

[Bug 1392529] Re: Error executing scope with long name on PC

 

In real l ife, the path is something like /run/user/<uid>/zmq<scope_id>
or /run/user/<uid>/zmq/priv/<scope_id>. That leaves around 80 characters
for the scope ID.

The 107 character limit is hard-baked into the kernel, so we can't
change that. We could do something along the lines of computing an MD4
hash and using that as the name instead, but that would leave the
endpoint names incomprehensible, which is not good.

Pragmatically, I think a better solution would be for the scope tool to
shorten the prefix it creates.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity8 in Ubuntu.
https://bugs.launchpad.net/bugs/1392529

Title:
  Error executing scope with long name on PC

Status in “unity-scopes-api” package in Ubuntu:
  Confirmed
Status in “unity8” package in Ubuntu:
  Triaged

Bug description:
  I'm developing a scope, but I have this error after the launch, and
  I'm not able have any response by any query:

  com.ubuntu.developer.rpadovani.discerningduck_discerningduck-c
  query(): unity::scopes::MiddlewareException: Socket path name too long (max = 107): /tmp/rpadovani/scope-dev-endpoints.USoi22/priv/com.ubuntu.developer.rpadovani.discerningduck_discerningduck-c

  The interesting part it's I have two computers, a desktop and a netbook, and I have the error only on the netbook.
  Both have same code, both have utopic updated with same apt sources, I have the same username (rpadovani) on both and both are 64bit.

  I have no idea on why on one fails and on other doesn't, please let me
  know if I could provide some logs to debug this.

  Alejandro J. Cura suggests this is a bug in the scope registry,
  because sockets paths do have the limit that the error shows:
  http://bugs.mysql.com/bug.php?id=42512

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-scopes-api/+bug/1392529/+subscriptions


References