Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cocaine-native-proxy wan't serve requests #3

Closed
akaspin opened this issue May 7, 2014 · 4 comments
Closed

cocaine-native-proxy wan't serve requests #3

akaspin opened this issue May 7, 2014 · 4 comments

Comments

@akaspin
Copy link

akaspin commented May 7, 2014

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

@andrusha97
Copy link
Member

Can you tell me, what versions of native proxy and native framework you use? And where did you get the packages?
Seems like the proxy is built with a version of native framework different from the version it runs with.

@akaspin
Copy link
Author

akaspin commented May 7, 2014

I use latest packages from Reverbrain repo under Ubuntu 12.04.

@noxiouz
Copy link
Member

noxiouz commented May 7, 2014

@akaspin please, update to the new latest version 0.11.1.0 of cocaine-native-proxy.

@akaspin
Copy link
Author

akaspin commented May 7, 2014

All works! Thanks a lot.

@akaspin akaspin closed this as completed May 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants