Giter Site home page Giter Site logo

cocaine-native-proxy's Issues

cocaine-native-proxy wan't serve requests

I install cocaine-native-proxy with following config:

$ cat /etc/cocaine-native-proxy/default.conf 
{ 
  "endpoints": [ 
    "0.0.0.0:8080" 
  ], 
  "backlog": 2048, 
  "threads": 2, 
  "application": { 
    "locators": ["192.168.50.204:10053"], // <-- My gateway node
    "service_pool": 5, 
    "reconnect_timeout": 180, 
    "request_timeout": 5 
  } 
}

When I start flask app from examples. It works. I can connect to it by Service('flask', host='192.168.50.204') from python scripts.

But when I try to connect by HTTP - I got error 500:

vagrant@front:~$ curl -v http://192.168.50.204:8080/flask/http/read 
* About to connect() to 192.168.50.204 port 8080 (#0) 
* Trying 192.168.50.204... connected 
> GET /flask/http/read HTTP/1.1 
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3 
> Host: 192.168.50.204:8080 
> Accept: */* 
> 
< HTTP/1.1 500 Internal Server Error 
< Content-Length: 0 
< Connection: Keep-Alive 
< 
* Connection #0 to host 192.168.50.204 left intact 
* Closing connection #0

... and got following from syslog on 192.168.50.204:

May 7 00:14:26 front cocaine[1054]: native-proxy: Internal error has occurred while processing event 'http' of application 'flask': Service manager no longer exists; code - 4.

Another two cents. When I use cocaine-tornado-proxy by cocaine-tool proxy start - all works fine.

Thank you in advance for your help

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.