Comments (12)
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.
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.
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.
The getpgid
is not legitimate. The cache classes started since 24cc80e
from spring.
Does getpgid
error still happens when you have cache_classes
set to false
in the test environment?
from spring.
Haven't seen in happen. Only in production.
from spring.
Why is spring being used in production?
from spring.
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.
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.
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.
Got it. I'm closing this issue since the fix is to either change cache_classes
or disable spring. Thanks
from spring.
Thanks. I think that's fair
from spring.
Related Issues (20)
- Should a Puma server started from feature tests on Rails 6 fork from a Spring process? HOT 1
- Freebsd terminal detach minor problem
- Processes just hang with Spring 4.0 HOT 10
- NoMethodError when invoking `rails` command without arguments (undefined method `start_with?' for nil:NilClass)
- Unable to start rails console HOT 5
- `Bundler.with_original_env` vs `Bundler.with_unbundled_env` HOT 6
- Periodically auto restart HOT 5
- spring 4.0.0 bundles with rails < 6.0 HOT 1
- spring 4.0.0 gets hanged with rails 6.1 HOT 2
- Different exit code for SIGKILL'ed processes with Spring
- Bundler::GemNotFound when starting running `rails` commands when Gemfile has changed dependencies HOT 4
- `rails db:system:change` command fails via spring HOT 2
- Cut new gem to include latest fix to `digest` HOT 1
- Unable to Ctrl C out of errored rails console
- Server leaks memory HOT 2
- spring binstub modifier does not check for class presence HOT 1
- spring binstub causes Gem::LoadError after bundle update default gem with ext
- Mac forking error HOT 1
- Spring 4.2.0 crashing when running rake
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring.