burke / zeus

Boot any rails app in under a second.
MIT License
3.33k stars 231 forks source link

Zeus startup problems - Postgres #645

Open arizz96 opened 6 years ago

arizz96 commented 6 years ago

System details

(macOS High Sierra)

(I'm using rbenv, but rvm give me the same error)

Steps to Reproduce

zeus start on a fresh new project, using PostgreSQL, project gives: slavenode.go:226: [default_bundle] read unix ->: EOF

On another fresh project, using SQLite, zeus works.

microspino commented 6 years ago

+1 same problem here

devonestes commented 6 years ago

Also seeing the same issue. Is there any chance it's related to this issue with forking processes in High Sierra? https://blog.phusion.nl/2017/10/13/why-ruby-app-servers-break-on-macos-high-sierra-and-what-can-be-done-about-it/

It seems to have begun reliably only after I upgraded to High Sierra, and if memory serves me right Zeus uses forking pretty heavily.

gaddism77 commented 6 years ago

I'm still seeing the same problem. Is there any progress on it?

AndrzejJantos commented 6 years ago

any news about this?

arizz96 commented 6 years ago

@AndrzejJantos check out this https://github.com/burke/zeus/issues/617#issuecomment-346040927

For me, with this ENV, Zeus works

AndrzejJantos commented 6 years ago

Nope, it didn't help.

Zeus is not working on latest mac update + gem 'pg'.

daliborfilus commented 6 years ago

@devonestes @arizz96 thanks! This worked in my case on zeus v0.15.14:

Available Commands: [waiting] [crashed] [ready]
zeus console (alias: c) [run to see backtrace]
zeus server (alias: s) [run to see backtrace]
zeus generate (alias: g) [run to see backtrace]
zeus destroy (alias: d) [run to see backtrace]
zeus dbconsole [run to see backtrace]
zeus rake [run to see backtrace]
zeus runner (alias: r) [run to see backtrace]
zeus test (alias: rspec, testrb) [run to see backtrace]
slavenode.go:226: [default_bundle] read unix ->: EOF
noice ~/code/crystalmails.com/crystalmails (master)

$ export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

$ zeus --log=./zeus.log start
Starting Zeus server v0.15.14
....
Available Commands: [waiting] [crashed] [ready]
zeus dbconsole
zeus rake
zeus runner (alias: r)
zeus console (alias: c)
zeus server (alias: s)
zeus generate (alias: g)
zeus destroy (alias: d)
zeus test (alias: rspec, testrb)
sirneb commented 4 years ago

I just want to chime in that export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES fixed my issue on my fresh install of OSX mojave.