Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

secondman's avatar

Laravel Octane w/Swoole on Mac

Anyone have any success setting Octane up on their Mac with Valet?

I created a configuration file in my local Supervisor instance:

[program:jetstream-octane]
process_name=%(program_name)s
directory=/Users/vince/Sites/jslabs/jetstream
command=/usr/local/bin/php artisan octane:start --port=9501  --watch
autostart=true
autorestart=true
user=vince
redirect_stderr=true
stdout_logfile=/Users/vince/Sites/jslabs/jetstream/storage/logs/octane.log
stopwaitsecs=3600

When I start it with supervisor I get the following error:

FATAL     Exited too quickly (process log may have details)

In my octane.log I get:

   INFO  Server running…

  Local: http://127.0.0.1:9501 

  Press Ctrl+C to stop the server


   ERROR  Watcher process has terminated. Please ensure Node and chokidar are installed.
sh: line 0: exec: : not found

Node and chokidar are most definitely installed as you can see here when I run npm list chokidar

vince@serenity jetstream % npm list chokidar
jetstream@ /Users/vince/Sites/jslabs/jetstream
├─┬ [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│   └── [email protected] deduped
└─┬ [email protected]
  └── [email protected] deduped

I also get a swoole error log with a ton of these entries:

[2021-06-26 19:47:20 @63617.0]	WARNING	set_send_buffer_size(:423): setsockopt(41, SOL_SOCKET, SO_RCVBUF, 10485760) failed, Error: No buffer space available[55]

Any help would be great.

----- ADDING

I does work fine when I run it in the console from my jetstream directory:

php artisan octane:start --port=9501 --watch

My octane-server-state.json file was created and all seems well.

Perhaps I need a simplified supervisor config?

0 likes
8 replies
jethromayuk's avatar

Did you figure this out? I'm also looking into running Octane with Valet..

secondman's avatar

@jethromayuk

No I reverted to just running it the normal way since it wouldn’t run through Nginx.

I have it off for development of my API right now so I’m a little behind on Octane atm.

1 like
thinkverse's avatar

@railer12 Why bump a one-year-old thread with a link to something that has nothing to do with the actual thread? 🤷‍♂️

2 likes
secondman's avatar

@railer12 Reported this reply as spam ... this SO thread has ZERO to do with Swoole, Octane, or Laravel ... why would you think that "Global Node modules not installing correctly" would be relevant here?

1 like

Please or to participate in this conversation.