Comments (9)
You need to enable allow_url_include in your PHP.ini .
from framework.
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.
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.
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.
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.
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.
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.
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:
- create HTTP server - ex : https://github.com/kraken-php/demo-chat/blob/master/app/Provider/Network/NetworkProvider.php
- 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.
I made a note of this problem in #49 .
from framework.
Related Issues (20)
- Step by tep tutorial HOT 1
- The console problems and fixes HOT 2
- php kraken server:ping returns a remote ip address when it works HOT 5
- Where is the Performance Benchmark Code? HOT 1
- It is impossible to determine end of stream HOT 1
- Async stream readers should not start reading automatically HOT 1
- Implement asynchronous SSH driver
- composer guzzle\* packages is abandoned HOT 2
- Add Aerys and ReactPHP to benchmarks HOT 3
- SSHDriverInterface should propagate SSHResourceInterface events
- Add examples for SSH component
- Implement asynchronous Redis driver
- Socket client is not able to connect async with SSL
- Remove support for PHP5.5
- Error starting kraken.server HOT 3
- Incompatibility with libraries which uses modern version of ReactPHP
- this framework work on windows?
- Dropdown menus are not scrollable
- Dead project ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from framework.