Restart Redmine

Added by Benedikt Naessens over 3 years ago

I'm sorry if this question sounds obvious to some people.

Our ex system administrator has installed Redmine on one of our company servers and it has been running stable since then. Unfortunately, he left our company and now I am responsible for it.

I have installed a plugin (email notification plugin of Goyello) and need to restart Redmine. Unfortunately, I have no clue how to this. Redmine is running on a Debian server with MySQL and Apache. I tried restarting Apache, but that didn't help. When I take a look at the running processes, I see there is a "Passenger ApplicationSpawner" process and a "Passenger spawn server" process running (along a couple of other processes like Apache, backup, gems etc.). After some Google research, I found out that the aforementioned process might be connected to Redmine, but I am not sure. I wanted to know if my guess is right and if yes, how I need to restart these (some details about the Linux commands would be great).

Kind regards,
Benedikt.

Replies (11)

RE: Restart Redmine - Added by Felix Schäfer over 3 years ago

If redmine is running through passenger (seems so from the process you are seeing), restarting apache will restart redmine, you can also restart redmine only without restarting apache with touch tmp/restart.txt in your redmine directory.

RE: Restart Redmine - Added by Benedikt Naessens over 3 years ago

That didn't seem to work. When I restarted Apache2, I still was logged in and the new plugin is not loaded. I tried to download another plugin, which doesn't need database migration also (like the Goyello plugin) and also this one doesn't get loaded.

Anyway, I included the list of processes I'm running. Maybe, you get a bit wiser from that.

redmine.jpg (238 KB)

RE: Restart Redmine - Added by Felix Schäfer over 3 years ago

Benedikt Naessens wrote:

That didn't seem to work. When I restarted Apache2, I still was logged in and the new plugin is not loaded.

Which both are not indicators it wasn't restarted, you can even see from your process list that Passenger runs only since shortly after 13:00.

I tried to download another plugin, which doesn't need database migration also (like the Goyello plugin) and also this one doesn't get loaded.

Make sure you are downloading them to the right directory and that the redmine user has access and read rights on them.

RE: Restart Redmine - Added by Benedikt Naessens over 3 years ago

I downloaded them to the right folder (/vendor/plugins) and made sure they are owned by www-data of the www-data group (like the other plugins in that folder). This was done through chown with the -R option (to do this recursively). All files have read rights on them for all users.

I also checked the "production.log" log file and no new entries are added when I restart Redmine (like "Cannot load plugin X").

I do get a little bit confused about the fact that there is a "redmine" user and a "www-data" user in the process list I attached in the jpg file. The redmine user is the one running the Passenger process, www-data is running Apache. Is this a clue ?

RE: Restart Redmine - Added by Felix Schäfer over 3 years ago

Benedikt Naessens wrote:

I downloaded them to the right folder (/vendor/plugins)

And you are sure it's in the correct redmine directory?

and made sure they are owned by www-data of the www-data group (like the other plugins in that folder). This was done through chown with the -R option (to do this recursively). All files have read rights on them for all users.

I also checked the "production.log" log file and no new entries are added when I restart Redmine (like "Cannot load plugin X").

Redmine/rails won't complain about not being able to load a plugin.

I do get a little bit confused about the fact that there is a "redmine" user and a "www-data" user in the process list I attached in the jpg file. The redmine user is the one running the Passenger process, www-data is running Apache. Is this a clue ?

Passenger has a user-switching feature that per default will run rails apps as the user owning config/environments.rb, though it can also be configured so that it runs all apps as a user defined in the apache config.

RE: Restart Redmine - Added by Benedikt Naessens over 3 years ago

Can you clarify "the correct redmine directory" ? There is only one vendor/plugins/ folder or am I mistaken ?

RE: Restart Redmine - Added by Benedikt Naessens over 3 years ago

I will give you more information. There seems to be a couple of vendor/plugins folders.

There is:
/var/redmine-0.9.1/vendor/plugins

and

/var/www/vendor/plugins

also

usr/local/lib/ruby/gems/..../vendor/plugins

I copied the plugins to the /var/redmine-0.9.1/vendor/plugins folder.

Though, I see that all the plugins that were installed there before (before the 2 most recent plugins) , also can be found in the var/www/vendor/plugins folder (weird ???) and that they are owned by the Redmine user.

RE: Restart Redmine - Added by Benedikt Naessens over 3 years ago

I also added the current state of my redmine/vendor/plugins folder for your information.

Thanks already for all the effort you have made !

plugins.jpg (66.1 KB)

RE: Restart Redmine - Added by Felix Schäfer over 3 years ago

Benedikt Naessens wrote:

I also added the current state of my redmine/vendor/plugins folder for your information.

That doesn't help much, you have to identify the folder from which your redmine is served. It might also be that redmine isn't "attached" to apache anymore than through a reverse proxy, see if you have some more ruby processes or mongrel/webrick/thin/unicorn/... running.

RE: Restart Redmine - Added by Benedikt Naessens over 3 years ago

Thanks. That was valuable information. I copied the plugin folders also to the www/vendor/plugins folder and changed the owner to redmine. Both plugins are now detected, one works. Unfortunately, the one I needed doesn't work (Goyello email configuration). Maybe, because I run Redmine 0.9.1 and it has been tested on 0.9.2. I have no clue how to update.

RE: Restart Redmine - Added by tibor strausz almost 2 years ago

i do:

./ctlscript.sh restart redmine

(from the root of the installation)

this is a bitnami installation on linux (debian)

(1-11/11)