Closed absiddiqueLive closed 8 years ago
You need to enable allow_url_include in your PHP.ini .
It's work, but unable to access via browser
>php kraken server:ping
Kraken 0.3.1 by Kamil Jamroz and contributors.
Executing : server:ping ...
success!
Response : ip=127.0.1.1
>php kraken project:create
>php kraken project:status
Kraken 0.3.1 by Kamil Jamroz and contributors.
Executing : project:status ... failure!
Response : Container is currently in failed state and cannot execute any tasks.
Reason : Kraken\Throwable\Exception\Runtime\RejectionException
>netstat -tplun | grep LI
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:69 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:587 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:2060 0.0.0.0:* LISTEN 18984/php
tcp 0 0 127.0.0.1:2061 0.0.0.0:* LISTEN 19053/php7.0
tcp 0 0 127.0.0.1:465 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:5939 0.0.0.0:* LISTEN -
tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN -
tcp6 0 0 :::69 :::* LISTEN -
tcp6 0 0 :::80 :::* LISTEN -
From what I see, you are running our application skeleton. Did you make any changes to it? The message Container is currently in failed state and cannot execute any tasks.
points out that container went from normal to failed state, which means the uncaught exception has been thrown. Do the logs have any error messages? If not, could you try to run main container via the alternative start method and show the output?
Alternative:
php ./data/autorun/kraken.process undefined Main Main
do not made any change !
>php ./data/autorun/kraken.process undefined Main Main
string(41) "\App\Runtime\Container\Main\MainContainer"
Runtime::[Main] is alive and 1476367728
Runtime::[Main] is alive and 1476367729
Runtime::[Main] is alive and 1476367730
Runtime::[Main] is alive and 1476367731
Runtime::[Main] is alive and 1476367732
Runtime::[Main] is alive and 1476367733
Runtime::[Main] is alive and 1476367734
Runtime::[Main] is alive and 1476367735
Runtime::[Main] is alive and 1476367736
Runtime::[Main] is alive and 1476367737
Runtime::[Main] is alive and 1476367738
Runtime::[Main] is alive and 1476367739
Now create project giving error !
>php kraken project:create
Kraken 0.3.1 by Kamil Jamroz and contributors.
Executing : project:create ... failure!
Response : No response was received during specified timeout.
Reason : Kraken\Throwable\Exception\Runtime\TimeoutException
>php kraken server:ping
Kraken 0.3.1 by Kamil Jamroz and contributors.
Executing : server:ping ... success!
Response : ip=127.0.1.1
Whenever you run the kraken script you have to ensure that kraken.server is active. Without it, the timeout exception will be returned as there is nothing to connect to. The console server is little bugged as of v0.3 that's why there is an alternative way of starting the project. It seems there is unidentified problem in your cofiguration so for now please stick to alternative method of running the project via :
php ./data/autorun/kraken.process undefined Main Main
As it seems to be working for you fine. The kraken-php/kraken is empty applicaiton skeleton, so nothing will be shown in the browser, as it is clean of any business logic.
kraken.server
is runing though giving the blow error
>php kraken project:create
Kraken 0.3.1 by Kamil Jamroz and contributors.
Executing : project:create ... failure!
Response : No response was received during specified timeout.
Reason : Kraken\Throwable\Exception\Runtime\TimeoutException
Will you please provide total commands to run the project from scratch & also the server port
As I said the console is little buggy as for v0.3. If you restart the console server, the problem with connection will probably solve itself. The alternative method of
php ./data/autorun/kraken.process undefined Main Main
Will start the whole project just fine, this is the same script that is fired underneath the project:create
command. Before we identify the culprit here and apply patches, stick to this method. The only con of this is that you will be unable to use console, but it is not required for making working apps.
kraken-php/kraken is an empty skeleton, it does not have running HTTP server attachd to it so nothing will be shown and there is no working HTTP port. If you want to return something, for example HTTP response, you have to:
If you don't want to do manually and want to experiment with working example that already has HTTP in it, use https://github.com/kraken-php/demo-chat .
I made a note of this problem in #49 .
Composer version 1.2.1 2016-09-12 11:27:19
PHP 7.0.8-0ubuntu0.16.04.3 (cli) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.8-0ubuntu0.16.04.3, Copyright (c) 1999-2016, by Zend Technologies