laravel / octane

Supercharge your Laravel application's performance.
https://laravel.com/docs/octane
MIT License
3.74k stars 291 forks source link

Freeze #122

Closed jihadismail8 closed 3 years ago

jihadismail8 commented 3 years ago

Directive => Local Value => Master Value swoole.enable_coroutine => On => On swoole.enable_library => On => On swoole.enable_preemptive_scheduler => Off => Off swoole.display_errors => On => On swoole.use_shortname => On => On swoole.unixsock_buffer_size => 8388608 => 8388608

Description:

i can only get to login page , and after the login page , the home page loads and only some elements are visible , then the page freezes and never receives any response .

what i noticed is that the livewire components or the ones that have alpine.js in them are not being loaded . to reproduce , install by composer mediconesystems/livewire-datatables , and just make a datatable .

Namoshek commented 3 years ago

Are you missing an Nginx/Apache in front which serves static assets like the .js files required for Alpine.js?

jihadismail8 commented 3 years ago

Well i am on local development, so i just start the octane server as in the docs , no apache and no nginx .i thought it works same as artisan serve . what do you mean by infront ?? like start nginx on the same port as octane ???

themsaid commented 3 years ago

Stick to the default swoole configurations and try again. There are known issues with coroutines and that's why they are disabled.

jihadismail8 commented 3 years ago

Stick to the default swoole configurations and try again. There are known issues with coroutines and that's why they are disabled.

But thats exactly what i did !! I changed absolutely nothing in configs and sticked to the docs . The app i tested it on is also minimalist just a boilerplate with tailwind and livewire+alpine , with a home page of a datatable . But as i mentioned in the description the table loads only half of it (visually) the other half down (even the pagination) doesn't load . And the browser just keeps waiting for the response. Any idea of at least how to debug it ?

jihadismail8 commented 3 years ago

ok now iam tried to switch to RoadRunner : but am getting another error .

Unable to locate RoadRunner binary. Should Octane download the binary for your operating system? (yes/no) [yes]:

y

Environment:

Whats Next?

aftabnaveed commented 3 years ago

Are you using WSL?

themsaid commented 3 years ago

Well if a response is received that means Octane server is working. Don't have experience with livewire tho so maybe it's something related to how it works.

jihadismail8 commented 3 years ago

Are you using WSL?

Yea WSL2

jihadismail8 commented 3 years ago

Well if a response is received that means Octane server is working. Don't have experience with livewire tho so maybe it's something related to how it works.

Yea thats what i don't understand , so is it an issue in livewire? Or octane? The pages with no livewire (pure blade ) are working fine .

jihadismail8 commented 3 years ago

Stick to the default swoole configurations and try again. There are known issues with coroutines and that's why they are disabled.

when i installed octane/swoole i answered all the questions by NO , but still in php --ri swoole as we can see above , everything is enabled ( json , coroutine , sockets ..etc ) does not make sense . i uninstalled swoole , and installed it again and made sure i pressed NO on all the questions . but it still says everything is enabled . so it could be an issue in swoole installation on WSL2 .

jihadismail8 commented 3 years ago

@driesvints can you please drop something to debug , some ways or at least from where to start ?? as this is some how new to the community !! which info i can provide more ?

driesvints commented 3 years ago

Please try a support channel:

Thanks