Giter Site home page Giter Site logo

Comments (4)

ghjm avatar ghjm commented on September 15, 2024

There are several related problems here.

The reason "receptor status" failed is that it has to start an ephemeral node to communicate with the Receptor mesh (problem 1), so it tried to store its manifest data under /var/lib/receptor, and did not have permission to to so (problem 2). After this failure, it printed a traceback instead of a nicely-formatted error message (problem 3), and while it was doing this, the exception handler itself generated another exception (problem 4), which was then printed as a traceback instead of a nicely-formatted error message (problem 3 again).

Taking these problems one at a time:

  • Problem 1 will be solved if and when ansible/receptor#208 is implemented. Until then, we just have to live with ephemeral nodes.
  • Problem 2 can be solved by giving your uid access to /var/lib/receptor, passing a -d /whatever/dir argument, or by editing /etc/receptor/receptor.conf to specify a different directory (I use /tmp/receptor).
  • Problem 3 probably requires a top-down rethink of how we handle error conditions in Receptor, or if we can't get that done, maybe at least a global exception handler with better default behavior. Also, I'll just mention that the whole concept of exception handling in Python asyncio in general, and Receptor in particular, is a maze of twisty little passages, all different.
  • Problem 4 can probably be fixed by putting the Controller constructor call outside the try..finally block in entrypoints.py.

@elyezer, can you clarify which of these problems you mean for this issue card to track?

from python-receptor.

elyezer avatar elyezer commented on September 15, 2024

@ghjm it seems that problem 3, maybe also 4, would be a great candidate here. Usually it is not a great experience to try things and get all these stacktraces as the output.

About problem 2, we have a separate issue ansible/receptor#195.

from python-receptor.

ghjm avatar ghjm commented on September 15, 2024

@elyezer That's great, I hadn't seen #195 and we do need an issue to track problem 3. Can you edit the title of this to something like "Receptor prints Python tracebacks when it ought to print human-friendly error messages" ?

from python-receptor.

elyezer avatar elyezer commented on September 15, 2024

@ghjm sure thing, I will edit a bit the description to reflect the intents here.

from python-receptor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.