Simple question about redmine, database and apache trouble.
Added by David Teyssiere over 14 years ago
Hello redmine people, I have a simple question because strange thing happened about subject says.
I was changing a simple plugin, then I had to made "/etc/init.d/apache2 restart" to make changes sets. In this short period of time from I push Intro en apache2 really start again... is possible that somebody update an issue with a new comment, appear the flash message that all is ok, but changes not really has made??
Is possible lost any data when you are restarting apache in production environment?? some atomic transaction trouble case?
I know there is not a question about redmine but if somebody can help me I apreciate it.
I'm using redmine 0.9.2, apache 2.2.9 and mysql 5.0.
More info =========
- LOCAL GEMS ***
actionmailer (2.3.5, 2.3.2, 2.1.2)
actionpack (2.3.5, 2.3.2, 2.1.2, 1.13.6)
actionwebservice (1.2.6)
activerecord (2.3.5, 2.3.2, 2.1.2, 1.15.6)
activeresource (2.3.5, 2.3.2, 2.1.2)
activesupport (2.3.5, 2.3.2, 2.1.2, 1.4.4)
fastthread (1.0.7)
nokogiri (1.4.1)
passenger (2.2.2)
rack (1.0.1)
rack-cache (0.5.2)
rack-test (0.5.3)
rails (2.3.5, 2.3.2, 2.1.2)
rake (0.8.7, 0.8.4)
rspec (1.3.0)
rspec-rails (1.3.2)
tzinfo (0.3.14)
webrat (0.7.0)
Thanks in advance.
Replies (2)
RE: Simple question about redmine, database and apache trouble.
-
Added by Felix Schäfer over 14 years ago
Yes, this might happen, because /etc/init.d/apache2 restart
will first stop apache, which can kill running requests. You might prefer /etc/init.d/apache reload
to make apache reload its configuration, the difference here is that apache will not kill active connections but only server new connections with the new configuration, which allows existing connections to finish what they were doing, this especially means that e.g. passenger gets "restarted". Another way to restart only a specific rails app served by passenger is to touch tmp/restart.txt
in the app's directory, passenger will see the updated timestamp of the file and completely reloads the rails app.
RE: Simple question about redmine, database and apache trouble.
-
Added by David Teyssiere over 14 years ago
Thanks for your reply. I thinked that apache knews how had to close conections but it appear to be a little nazi. I didn't know the tmp/restart.txt and it works for me.
Thank you very much.