I have installed cocaine and cocaine-tools, and tried to install the example ( https://github.com/cocaine/cocaine-framework-python/wiki/Echo-application-example ). When I run cocaine-runtime as non-daemon with the following configuration file ( other sections are the same as in /cocaine-core/debian/cocaine-runtime.conf ):
"network": {
"pinned": { "locator": 7800 }
},
"services": {
"locator": {
"type": "locator",
"port": "7800"
},
"logging": {
"type": "logging",
"args": {
"backend": "core"
}
},
"storage": {
"type": "storage",
"args": {
"backend": "core"
}
}
}
It seems that it works:
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp6 0 0 :::22 :::* LISTEN -
tcp6 0 0 :::7800 :::* LISTEN 21732/cocaine-runti
tcp6 0 0 :::36090 :::* LISTEN -
tcp6 0 0 :::40411 :::* LISTEN 21732/cocaine-runti
tcp6 0 0 :::56640 :::* LISTEN 21732/cocaine-runti
tcp6 0 0 :::41091 :::* LISTEN -
tcp6 0 0 :::10053 :::* LISTEN -
udp 0 0 0.0.0.0:68 0.0.0.0:* -
udp 0 0 0.0.0.0:10053 0.0.0.0:* -
udp 0 0 0.0.0.0:49628 0.0.0.0:* -
udp6 0 0 :::20488 :::* -
On the other session, I run cocaine-tools and try to upload example app as it is proposed in docs, and after execution of cocaine-tool profile upload, it stucks, to execute next command I need terminate current cocaine-tools process. Moreover, no feedback from cocaine-runtime.
rshkarin@astor-077-jmj:~/co-ex/app$ cocaine-tool profile upload --name EchoProfile --profile=profile.json --debug=all --port=7800
[2015-08-20 12:30:20,911] cocaine.asio.service: DEBUG : Connecting to the service "locator", candidates: [(10, 1, 6, '', ('::1', 7800, 0, 0)), (2, 1, 6, '', ('127.0.0.1', 7800))]
[2015-08-20 12:30:20,911] cocaine.asio.service: DEBUG : - connecting to "6 ('::1', 7800, 0, 0)"
[2015-08-20 12:30:20,911] cocaine.asio.service: DEBUG : - success
^C[2015-08-20 12:38:44,885] cocaine.tools: ERROR : Terminated by user
Could you please advise what I do wrong, and how to configure it properly?
Thanks!
I have installed
cocaineandcocaine-tools, and tried to install the example ( https://github.com/cocaine/cocaine-framework-python/wiki/Echo-application-example ). When I runcocaine-runtimeas non-daemon with the following configuration file ( other sections are the same as in /cocaine-core/debian/cocaine-runtime.conf ):It seems that it works:
On the other session, I run cocaine-tools and try to upload example app as it is proposed in docs, and after execution of cocaine-tool profile upload, it stucks, to execute next command I need terminate current cocaine-tools process. Moreover, no feedback from
cocaine-runtime.Could you please advise what I do wrong, and how to configure it properly?
Thanks!