GithubHelp home page GithubHelp logo

Comments (9)

khelle avatar khelle commented on May 20, 2024

You need to enable allow_url_include in your PHP.ini .

from framework.

absiddiqueLive avatar absiddiqueLive commented on May 20, 2024

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 framework.

khelle avatar khelle commented on May 20, 2024

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

from framework.

absiddiqueLive avatar absiddiqueLive commented on May 20, 2024

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

from framework.

absiddiqueLive avatar absiddiqueLive commented on May 20, 2024

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

from framework.

khelle avatar khelle commented on May 20, 2024

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.

from framework.

absiddiqueLive avatar absiddiqueLive commented on May 20, 2024

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

from framework.

khelle avatar khelle commented on May 20, 2024

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:

  1. create HTTP server - ex : https://github.com/kraken-php/demo-chat/blob/master/app/Provider/Network/NetworkProvider.php
  2. create Routes - ex : https://github.com/kraken-php/demo-chat/blob/master/app/Runtime/Provider/HttpBroker/RoutesProvider.php

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 .

from framework.

khelle avatar khelle commented on May 20, 2024

I made a note of this problem in #49 .

from framework.

Related Issues (20)

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.