#606982 redmine: fails to upgrade all instances

#606982#5
Date:
2010-12-13 16:23:52 UTC
From:
To:
I have configured redmine to use a specific instance, separate of the "default" one. It is named "koumbit" and has configuration in /etc/redmine/koumbit

During the upgrade, it seems that the session configuration is not updated properly. I was getting an error similar to this one:

http://www.redmine.org/boards/2/topics/11085

To work around the issue, I did the following steps:

# chown redmine /etc/redmine/koumbit/session.yml
# su -s /bin/sh redmine
$ env X_DEBIAN_SITEID=koumbit RAILS_ENV=production rake generate_session_store
(in /usr/share/redmine)
$ env X_DEBIAN_SITEID=koumbit RAILS_ENV=production rake db:migrate
(in /usr/share/redmine)
==  AddIndexOnChangesetsScmid: migrating ======================================
[...]
$ exit
# chown root /etc/redmine/koumbit/session.yml

Once that was done, the errors went away. Note that the session.yml was readable and accessed by the web interface, so that wasn't the problem. It just wasn't generated properly (even though debconf prompted me to replace the
file).

Also note that I chown redmine and su redmine because I isolated my redmine instance using passenger user switching, so this could be "www-data" instead of "redmine" for you.

#606982#10
Date:
2010-12-13 16:33:03 UTC
From:
To:
Comparing with backups, it seems the data we had in session.yml was like
this:

production:
  session_key: _redmine_koumbit
  value: [...]

While the new generated value is:

production:
  key: _redmine_koumbit
  value: [...]

Could this be the issue?

A.

#606982#15
Date:
2010-12-13 16:50:27 UTC
From:
To:
It could, and shouldn't.
From which version where you upgrading ?
0.9 -> 1.0.1 ?

Regards,
Jérémy.

#606982#20
Date:
2010-12-13 16:51:25 UTC
From:
To:
0.9.1 -> 1.0.1
#606982#27
Date:
2011-04-21 15:29:07 UTC
From:
To:
The way we operate now is like this:

dpkg-statoverride --add redmine redmine 644 /usr/share/redmine/config/environment.rb
chown :redmine /etc/redmine/koumbit/*
chown redmine:redmine /var/log/redmine/koumbit/*

A.

#606982#34
Date:
2013-03-11 22:54:07 UTC
From:
To:
found 606982 1.4.4+dfsg1-2
thanks

Even though we used a statoverride, the permissions were still wrong on
the environment.rb file:

apps:/etc/apt# ls -al /usr/share/redmine/config/environment.rb
-rw-r--r-- 1 www-data root 4157 22 jan 12:14 /usr/share/redmine/config/environment.rb
apps:/etc/apt# chown redmine:redmine /usr/share/redmine/config/environment.rb

So it seems this is still a problem in the wheezy version.

A.

#606982#41
Date:
2013-03-11 23:22:17 UTC
From:
To:
What error do you see now ?
Which user:group do you use to run redmine as ?
The debian package sets permissions so that redmine can run as www-data,
is this the case here ?

Jérémy.

#606982#46
Date:
2013-03-11 23:48:53 UTC
From:
To:
I run redmine as the "redmine" user, while the debian package sets it as
"www-data", even though i do a dpkg-statoverride...

A.

#606982#51
Date:
2013-03-12 00:17:28 UTC
From:
To:
of all files and folders created at postinst time.
(to www-data:www-data or root:www-data).

Please have a look at /usr/share/doc/redmine/README.Debian.gz :
MANUAL INSTALL / RUNNING AS UNPRIVILEGED USER WITHOUT COPYING

Better ideas are welcome.

Jérémy.

#606982#58
Date:
2017-11-22 07:46:56 UTC
From:
To:
Quack,

The conclusion of this bug was that running Redmine as a different users
was needed. Currently the maintainer scripts enforce the www-data user
and there is no way to configure this.

For security reasons I think each instance should have its own user, but
there's some work to make this happen in an automated way.

Regards.

#606982#65
Date:
2018-02-15 07:26:21 UTC
From:
To:
Laba diena,


Noriu Jus informuoti apie šių metų pasikeitimą dėl atnaujintos visos Lietuvos įmonių bazės 2018 metų sausio vidurio.
Visi juridiniai asmenys pateikti bazėje yra veikiantys, realiai vykdantys veiklą, turintys įdarbintų darbuotojų. Duomenys pagal Sodrą, Registrų centrą.

Bazėje nurodoma ir apyvarta, darbuotojų atlyginimai, darbuotojų skaičius, transporto skaičius ir daug kitų duomenų, kuriuos matysite pavyzdyje.

Duomenis galima filtruoti pagal veiklas, miestus ir kitus duomenis.


Šią bazę verta turėti visoms įmonėms. Pateiksiu priežastis:

1) Kontaktai pateikti bazėje direktorių ir kitų atsakingų asmenų, didelė tikimybė Jums surasti naujų klientų, partnerių, tiekėjų, kai tiesiogiai bendrausite su direktoriais, komercijos vadovais.

2) Konkurentų analizavimas, tiekėjų atsirinkimas pagal Jums reikalingus kriterijus, galite atsifiltruoti pagal įmonės dydį, bazėje nurodoma kiek įmonės skolingos Sodrai.

3) Lengva, greita ir patogu dirbti su šia baze, elektroninius pašto adresus galite importuoti į elektroninių laiškų siuntimo programas ar sistemas iš kurių siunčiate elektroninius laiškus.
Taip pat galite importuoti mobiliųjų telefonų numerius į SMS siuntimo programas.


Išsirinkite iš "Veiklų sąrašo" veiklas kurių Jums reikia.
( Sąrašas prisegtas laiške excel faile )

Parašykite, kurias veiklas išsirinkote
ir atsiųsime pavyzdį ir pasiūlymą su sąlygomis įmonių bazei įsigyti



Pagarbiai,
Tadas Giedraitis
Tel. nr. +37067881041

#606982#70
Date:
2018-02-15 07:26:21 UTC
From:
To:
Laba diena,


Noriu Jus informuoti apie šių metų pasikeitimą dėl atnaujintos visos Lietuvos įmonių bazės 2018 metų sausio vidurio.
Visi juridiniai asmenys pateikti bazėje yra veikiantys, realiai vykdantys veiklą, turintys įdarbintų darbuotojų. Duomenys pagal Sodrą, Registrų centrą.

Bazėje nurodoma ir apyvarta, darbuotojų atlyginimai, darbuotojų skaičius, transporto skaičius ir daug kitų duomenų, kuriuos matysite pavyzdyje.

Duomenis galima filtruoti pagal veiklas, miestus ir kitus duomenis.


Šią bazę verta turėti visoms įmonėms. Pateiksiu priežastis:

1) Kontaktai pateikti bazėje direktorių ir kitų atsakingų asmenų, didelė tikimybė Jums surasti naujų klientų, partnerių, tiekėjų, kai tiesiogiai bendrausite su direktoriais, komercijos vadovais.

2) Konkurentų analizavimas, tiekėjų atsirinkimas pagal Jums reikalingus kriterijus, galite atsifiltruoti pagal įmonės dydį, bazėje nurodoma kiek įmonės skolingos Sodrai.

3) Lengva, greita ir patogu dirbti su šia baze, elektroninius pašto adresus galite importuoti į elektroninių laiškų siuntimo programas ar sistemas iš kurių siunčiate elektroninius laiškus.
Taip pat galite importuoti mobiliųjų telefonų numerius į SMS siuntimo programas.


Išsirinkite iš "Veiklų sąrašo" veiklas kurių Jums reikia.
( Sąrašas prisegtas laiške excel faile )

Parašykite, kurias veiklas išsirinkote
ir atsiųsime pavyzdį ir pasiūlymą su sąlygomis įmonių bazei įsigyti



Pagarbiai,
Tadas Giedraitis
Tel. nr. +37067881041

#606982#77
Date:
2024-12-14 00:33:51 UTC
From:
To:
I am new to the Debian packaging of Redmine.  I see that the last
communication on this bug was from 8 years ago.  I have not personally tried
to run multiple Redmine instances, but README.Debian indicates it should be
possible.

https://salsa.debian.org/ruby-team/redmine/-/blob/master/debian/README.Debian?
ref_type=heads

Can anyone confirm if this bug is still a problem with the current version of
Redmine?

#606982#82
Date:
2025-02-11 21:46:06 UTC
From:
To:
Antoine,

I sent a response to this bug a while back, but I realized I didn’t specifically direct it to the
submitted, so you might not have seen it if you aren’t subscribed to the bug.  My previous
email is reproduced below.


I am new to the Debian packaging of Redmine.  I see that the last
communication on this bug was from 8 years ago.  I have not personally tried
to run multiple Redmine instances, but README.Debian indicates it should be
possible.

https://salsa.debian.org/ruby-team/redmine/-/blob/master/debian/README.Debian?
ref_type=heads

Can anyone confirm if this bug is still a problem with the current version of
Redmine?

#606982#85
Date:
2025-02-11 21:46:06 UTC
From:
To:
Antoine,

I sent a response to this bug a while back, but I realized I didn’t specifically direct it to the
submitted, so you might not have seen it if you aren’t subscribed to the bug.  My previous
email is reproduced below.


I am new to the Debian packaging of Redmine.  I see that the last
communication on this bug was from 8 years ago.  I have not personally tried
to run multiple Redmine instances, but README.Debian indicates it should be
possible.

https://salsa.debian.org/ruby-team/redmine/-/blob/master/debian/README.Debian?
ref_type=heads

Can anyone confirm if this bug is still a problem with the current version of
Redmine?

#606982#86
Date:
2025-02-11 21:54:04 UTC
From:
To:
Antoine,

Thank you for your quick response.

I am going to close this bug for now, but if someone else has this issue they
should feel free to reopen it or to create a new bug report.