Giter Club home page Giter Club logo

Comments (3)

3Hren avatar 3Hren commented on August 16, 2024

Okay, let the debug begins :)

First of all, you can enable debug output to see what exactly happens with cocaine. To do this, open cocaine-runtime's config (the same file you pointed with -c or --config option when cocaine-runtime started) and find logging configuration block. You need to rewrite it like this:

"loggers": {
  "core" : {
    "type" : "files",
    "args" : {
      "path" : "/dev/stdout",
      "verbosity" : "debug"
    }
  }
}

Now, cocaine-runtime will print all log output to the stdout. Just run it: cocaine-runtime -c [CONFIG_FILE] and post here what it prints when you execute service.enqueue('doIt', 'SomeMessage').get(). Sometimes everything becomes clear at this point.

Also you can enable python-framework's debuging output by specifying it directly via python standard logging module:

import logging
log = logging.getLogger('cocaine')
log.setLevel(logging.DEBUG)

...

service.enqueue('doIt', 'SomeMessage').get()

By the way, when you are executing cocaine-tool call command, it has the following signature: cocaine-tool call APP [METHOD] [ARGS]. To see echo app methods just type cocaine-tool call echo and you will see:

Service provides following API:
 - info
 - enqueue

See, there is no method 'doIt' - it is just an event name - the first parameter for enqueue's method. So right command is: cocaine-tool call Echo enqueue "'doIt', 'SomeMessage'".

from cocaine-framework-python.

vanilhorizon avatar vanilhorizon commented on August 16, 2024

Thanks. Debug info was very helpful. I uploaded app with wrong path in manifest.json. I tried re-upload application and manifest, restarted, but it still use old valued, that was in manifest.json before i fixed it. Then i uploaded this app with new name - it worked like charm.

from cocaine-framework-python.

kobolog avatar kobolog commented on August 16, 2024

Apps are cached locally, that's why re-uploading doesn't change anything. If you use Process as your isolate plugin (which is the default), then simply remove the cache section from the configuration file to disable app caching.

from cocaine-framework-python.

Related Issues (17)

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.