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

Error starting kraken.server #71

Open
evilmake opened this issue Nov 15, 2017 · 3 comments
Open

Error starting kraken.server #71

evilmake opened this issue Nov 15, 2017 · 3 comments

Comments

@evilmake
Copy link

evilmake commented Nov 15, 2017

Hello,
I get these errors running : php kraken.server
I've enabled the allow_url_include in php.ini and i also gave permissions to /data folder.

These are the errors:

    Throwable trace:
     0. [WarningError] "date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone." in LogProvider.php:124
     1. [ExecutionException] "ServiceProvider [Kraken\Root\Provider\LogProvider] raised an error." in ServiceProvider:157
     2. [ExecutionException] "ServiceProvider Kraken\Root\Provider\LogProvider failed during registration." in ServiceRegister:352
     3. [ExecutionException] "ServiceRegister could not be booted." in ServiceRegister:92
     4. [InstantiationException] "Core module could not be booted." in Core:79
    Stack trace:
     0. [throwable] Kraken\Throwable\Error\WarningError(...) in ErrorHandler:63
     1. [call] Kraken\Throwable\ErrorHandler::handleError(2, "date(): It is not safe to rely o...", "/home/make/compy/vendor/kraken...", 124, Array) in unknown:0
     2. [call] Undefineddate("Y-m-d") in LogProvider:124
     3. [call] Kraken\Root\Provider\LogProvider->filePath("/home/make/compy/data/log/%lev...", "emergency") in LogProvider:102
     4. [call] Kraken\Root\Provider\LogProvider->createHandler(Kraken\Config\Config, "emergency", 600) in LogProvider:50
     5. [throwable] Kraken\Throwable\Exception\Runtime\ExecutionException(...) in ServiceProvider:157
     6. [call] Kraken\Container\ServiceProvider->throwException(Kraken\Throwable\Error\WarningError) in ServiceProvider:84
     7. [call] Kraken\Container\ServiceProvider->registerProvider(Kraken\Root\Runtime\Core\ProcessCore) in ServiceRegister:342
     8. [throwable] Kraken\Throwable\Exception\Runtime\ExecutionException(...) in ServiceRegister:352
     9. [call] Kraken\Container\ServiceRegister->registerProviders() in ServiceRegister:80
    10. [throwable] Kraken\Throwable\Exception\Runtime\ExecutionException(...) in ServiceRegister:92
    11. [call] Kraken\Container\ServiceRegister->boot() in Core:331
    12. [call] Kraken\Core\Core->bootProviders() in Core:70
    13. [throwable] Kraken\Throwable\Exception\Logic\InstantiationException(...) in Core:79
    14. [call] Kraken\Core\Core->boot() in ProcessBoot:189
    15. [call] Kraken\Root\Runtime\Boot\ProcessBoot->boot("/home/make/compy/data") in kraken.process:37
    16. [main]

Killed

Where is the problem?

Another issue, running a .php file using the Kraken script, i get this error but i think is because kraken.server didn't start:
PHP Fatal error: Cannot instantiate interface Kraken\Loop\LoopInterface

Thanks

@evilmake
Copy link
Author

@khelle can you help me? Thanks!

@emilorol
Copy link

emilorol commented Dec 19, 2017

Seems that the error is due to the timezone not been set. You can set it up on your app or in the PHP config.

date_default_timezone_set('America/New_York');

@dhananjayve
Copy link

another issue while starting server on windows

PS D:\xampp\htdocs\kraken-test> php kraken.server
Server is booting...
Throwable trace:
0. [InstantiationException] "stream_socket_pair() could not establish connection." in Isolate:29
1. [ExecutionException] "ServiceProvider [Kraken\Root\Provider\SystemProvider] raised an error." in ServiceProv
ider:157
2. [ExecutionException] "ServiceProvider Kraken\Root\Provider\SystemProvider failed during registration." in Se
rviceRegister:352
3. [ExecutionException] "ServiceRegister could not be booted." in ServiceRegister:92
4. [InstantiationException] "Core module could not be booted." in Core:79
Stack trace:
0. [throwable] Kraken\Throwable\Exception\Logic\InstantiationException(...) in Isolate:29
1. [call] Kraken\Util\Isolate\Isolate->__construct() in SystemProvider:26
2. [throwable] Kraken\Throwable\Exception\Runtime\ExecutionException(...) in ServiceProvider:157
3. [call] Kraken\Container\ServiceProvider->throwException(Kraken\Throwable\Exception\Logic\InstantiationExcept
ion) in ServiceProvider:84
4. [call] Kraken\Container\ServiceProvider->registerProvider(Kraken\Root\Console\Server\Core\ServerCore) in Ser
viceRegister:342
5. [throwable] Kraken\Throwable\Exception\Runtime\ExecutionException(...) in ServiceRegister:352
6. [call] Kraken\Container\ServiceRegister->registerProviders() in ServiceRegister:80
7. [throwable] Kraken\Throwable\Exception\Runtime\ExecutionException(...) in ServiceRegister:92
8. [call] Kraken\Container\ServiceRegister->boot() in Core:331
9. [call] Kraken\Core\Core->bootProviders() in Core:70
10. [throwable] Kraken\Throwable\Exception\Logic\InstantiationException(...) in Core:79
11. [call] Kraken\Core\Core->boot() in ServerBoot:125
12. [call] Kraken\Root\Console\Server\Boot\ServerBoot->boot("D:\xampp\htdocs\kraken-test/data") in kraken.server
:28
13. [main]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants