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

The console problems and fixes #49

Open
khelle opened this issue Oct 13, 2016 · 2 comments
Open

The console problems and fixes #49

khelle opened this issue Oct 13, 2016 · 2 comments

Comments

@khelle
Copy link
Member

khelle commented Oct 13, 2016

At the moment the console server is bugged. Sometimes it stops working and needs restart to fix the most common problems, but sometimes the message routing fails or it does not clean after itself.

Right now, the best solution for this problem is not to use console, but stick to alternative start method, which in default configuration is:

$> php ./data/autorun/kraken.process undefined Main Main

This is the logic that works underneath project:create command and it is equal in use. If there are any subprocesses or subthreads in Main, they will also be fired. The only con of this approach is, that you will not be able to use console command, therefore when shuting down the project you will need to kill all processes manually.

This is very urgent problem, and should be prioritized to be done for the release of v0.4

@khelle khelle self-assigned this Oct 13, 2016
@khelle khelle added this to the 0.4 milestone Oct 13, 2016
@absiddiqueLive
Copy link

Run the following command in Ubuntu

$ php kraken.server
#active the below port
tcp        0      0 127.0.0.1:2060          0.0.0.0:*               LISTEN      6895/php

$ php kraken project:create
#active the below port
tcp        0      0 127.0.0.1:2061          0.0.0.0:*               LISTEN      6906/php7.0

If those port are not close properly then some error happen.

# Why kraken-php needs 3 ports ? (2060,2061,6080)

@khelle
Copy link
Member Author

khelle commented Oct 13, 2016

  • 2060 is an entry point used by console server to enable remote use of a console client and is the main communication bus between the two.
  • 2061 will be removed in upcoming release, and replacew with unix:// socket, because it does not need to be TCP.
  • 6080 is not a port used by framework. It is only used in demo-chat application as HTTP server port.

@khelle khelle removed this from the 0.4 milestone May 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants