Comments (7)
Do you have only one production server and are daemons running on same machine as application?
from daemons-rails.
yes, only 1 production server
from daemons-rails.
Ok.
Can you describe layout for your daemons? (i.e. lib/daemons/__ctl or app/daemons/__ctl etc)
What returns command bundle exec lib/daemons/<your_daemon_name>_ctl status
on your production server?
Are you sure your daemons are working well and doesn't crashes and restarts?
And what is result of ruby code run from rails console
- Daemons::Rails::Monitoring.default.controllers
?
from daemons-rails.
daemons are in lib/daemons
bundle exec lib/daemons/<your_daemon_name>_ctl status
-> daemon.rb: running [pid 6334]
daemons are working for sure because otherwise my app wouldn't be working.
Daemons::Rails::Monitoring.default.controllers works fine in console production, but when i do
<%= Daemons::Rails::Monitoring.statuses["daemons.rb"] %> in the view it return "not_exists".
from daemons-rails.
Is it behave same if you set instance variable in controller and then display in view? Also, it may be result of page caching and actually you see old version of page when daemons not yet run. So, try to add timestamp to this page - will it change on reload? It it will not help - it may be helpful if you create simplest not working version of application and send me by email or share through github. I just checked your use case and it works for me, so I need more details to find problem.
from daemons-rails.
just tried setting the instance variable in the controller but no dice. still shows not_exists when the daemons are clearly running. I'm using Rails 4.0.0 and daemons-rails (1.2.1) and ruby 2.0.0p247.
oh another piece of info, I had to comment out this line in my daemon or it wouldn't start. I don't know if that has anything to do with this problem:
#ENV["RAILS_ENV"] ||= "production"
from daemons-rails.
@rickygu @hospital-systems Did you get this fixed? I'm having the same issue when deploying to a Digital Ocean VPS running Dokku.
from daemons-rails.
Related Issues (20)
- please clarify the license for this project HOT 1
- Support for restart command
- Error on stop: cannot load such file -- daemons/rails/config (LoadError) HOT 2
- daemon with "_monitor" suffix in name does not stop properly HOT 1
- On JRuby the rake path gets confused HOT 1
- rails generate daemon fails with 'rake/rdoctask' is obsolete HOT 1
- Generate works once. Second execution runs daemons (Rails 4.0.2, Ruby 2.0.0). HOT 6
- 'stop' reruns daemon and then forces stop ungracefully (Rails 4.0.2, Ruby 2.0.0) HOT 3
- Can not attach debugger
- Change pid default location from log/ to tmp/pids/ HOT 2
- TCP server as daemon HOT 18
- How to access active records ? HOT 1
- daemon process is exiting after receiving the first connection abruptly HOT 5
- ERROR -- : Bad file descriptor (Errno::EBADF) HOT 2
- If there is space in the directory, you can not reach HOT 1
- “bundle exec rake daemons:start” now giving a “: No such file or directory” error
- uninitialized constant RenderAnywhere::ActionController (NameError)
- New life for project (please join if you feed you may be useful) HOT 5
- maintainers? HOT 5
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 daemons-rails.