Giter VIP home page Giter VIP logo

Comments (12)

thebravoman avatar thebravoman commented on June 10, 2024

Downgraded to 3.1.0 - did not fix the issue

/usr/local/rvm/gems/ruby-2.6.5/gems/spring-3.1.0/lib/spring/server.rb:84:in `getpgid': No such process (Errno::ESRCH)
	from /usr/local/rvm/gems/ruby-2.6.5/gems/spring-3.1.0/lib/spring/server.rb:84:in `set_pgid'
	from /usr/local/rvm/gems/ruby-2.6.5/gems/spring-3.1.0/lib/spring/server.rb:39:in `boot'
	from /usr/local/rvm/gems/ruby-2.6.5/gems/spring-3.1.0/lib/spring/server.rb:14:in `boot'
	from /usr/local/rvm/gems/ruby-2.6.5/gems/spring-3.1.0/lib/spring/client/server.rb:10:in `call'
	from /usr/local/rvm/gems/ruby-2.6.5/gems/spring-3.1.0/lib/spring/client/command.rb:7:in `call'
	from /usr/local/rvm/gems/ruby-2.6.5/gems/spring-3.1.0/lib/spring/client.rb:30:in `run'
	from /usr/local/rvm/gems/ruby-2.6.5/gems/spring-3.1.0/bin/spring:49:in `<main>'

from spring.

rafaelfranca avatar rafaelfranca commented on June 10, 2024

The cache_classes error is legitmate. Your need to fix it. Either you should disable cache classes, or disable spring in production. After you fix that, does the getpgid error still happens?

from spring.

thebravoman avatar thebravoman commented on June 10, 2024

I guess it is a legitimate error. It surprised me that it started occurring about 2 weeks ago and it was not an issue for 3-4 years.

If I disable spring with DISABLE_SPRING=true then the error does not occur.

from spring.

rafaelfranca avatar rafaelfranca commented on June 10, 2024

The getpgid is not legitimate. The cache classes started since 24cc80e

from spring.

rafaelfranca avatar rafaelfranca commented on June 10, 2024

Does getpgid error still happens when you have cache_classes set to false in the test environment?

from spring.

thebravoman avatar thebravoman commented on June 10, 2024

Haven't seen in happen. Only in production.

from spring.

rafaelfranca avatar rafaelfranca commented on June 10, 2024

Why is spring being used in production?

from spring.

thebravoman avatar thebravoman commented on June 10, 2024

Durring the years we've had cases where we make a change and an error In config/environments/production.rb

Tests and dev are passing and we only find out about the error when we deploy to production.

What we did then is as last step of the CI, before deploy, we start in production env as a way to check that there are no errors in the config.

We start and then kill the process

RAILS_ENV=production rails s -d && kill -SIGTERM `cat tmp/pids/

from spring.

rafaelfranca avatar rafaelfranca commented on June 10, 2024

Ah, got it. Maybe you should disable spring in that command as well, or you will need to disable cache_classes.

DISABLE_SPRING=1 RAILS_ENV=production rails s -d && kill -SIGTERM `cat tmp/pids/

from spring.

thebravoman avatar thebravoman commented on June 10, 2024

Yes this is exactly what I did In comment #664 (comment)

But I only found out about the env variable after creating the issue

from spring.

rafaelfranca avatar rafaelfranca commented on June 10, 2024

Got it. I'm closing this issue since the fix is to either change cache_classes or disable spring. Thanks

from spring.

thebravoman avatar thebravoman commented on June 10, 2024

Thanks. I think that's fair

from spring.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.