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

Zeus startup problems - Postgres #645

Open
arizz96 opened this issue Oct 11, 2017 · 8 comments
Open

Zeus startup problems - Postgres #645

arizz96 opened this issue Oct 11, 2017 · 8 comments

Comments

@arizz96
Copy link
Contributor

arizz96 commented Oct 11, 2017

System details

  • uname -a: Darwin MBP.lan 17.0.0 Darwin Kernel Version 17.0.0: Thu Aug 24 21:48:19 PDT 2017; root:xnu-4570.1.46~2/RELEASE_X86_64 x86_64

(macOS High Sierra)

  • ruby -v: ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin17]

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

  • zeus
    Tried with:
    0.15.15.pre
    0.15.14
    0.15.13
    0.15.12
    0.15.10 (this gives segmentation fault)

  • pg gem
    Tried with:
    0.18.3
    0.21.0

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.

@arizz96 arizz96 changed the title Zeus startup problems Zeus startup problems - Postgres Oct 12, 2017
@microspino
Copy link

+1 same problem here

@devonestes
Copy link

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
Copy link

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

@AndrzejJantos
Copy link

any news about this?

@arizz96
Copy link
Contributor Author

arizz96 commented Nov 29, 2017

@AndrzejJantos check out this
#617 (comment)

For me, with this ENV, Zeus works

@AndrzejJantos
Copy link

Nope, it didn't help.

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

@daliborfilus
Copy link

@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
Copy link

sirneb commented Jan 17, 2020

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

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

7 participants