[DRE-maint] Bug#684067: redmine postgresql backend fails in redmine clean

PICCORO McKAY Lenz mckaygerhard at gmail.com
Wed Aug 8 20:03:31 UTC 2012


FIND it!

dpkg-reconfigure -plow --force redmine

follow verbose steps, now in config dialos u can see that in usernames said
"Mysql" and its using pgsql backend.. this was minor mistake.. so change db
name redmine_default to redmine (by removing lIinstance var) in postinst
script (lines: 175 aprox)

this its due in postgresql by default when user connect assumes a equal db
name exist for users , so postinst scritp when connect user redmine this
cant due redmine database dont exist, event redmine_default (in default
instace case) its the db to use..

the right solution its to modifi conection from dbconfig common to use a
specific database name in conection processs.

On Wed, Aug 8, 2012 at 1:28 PM, PICCORO McKAY Lenz
<mckaygerhard at gmail.com>wrote:

> now i will test postgresql backen (i not tested due some space need)
> for that i run "dpkg-reconfigure -plow redmine" and respont all quiestion
> using postgres wihtout none security and xxx user with xxx password, testin
> connection results ok event by localhost or socket, so its clear that
> problem are betweet redmine or debian's dbconfig script due fails
> populating db but not previously conections
>
> I could, I managed to reproduce the error with sqlite backend, the only
> difference between before and after, its that ruby 1.9.1 devel package were
> instaled. Let me explain:
>
> 1) I installed redmine all depends in clean env, but using sqlite backend
> (that installed before perectly) and event fails, even I did not realize
> that bundler had installed so then ruby 1.9.1 also, (bundler now depends
> of), but i had installed with devel ruby1.9.1-dev also.
>
> 2) so then i revise all changelog and bug reports and notice some issues
> about gems and rack, so additional depends installed in a repackaging of
> rails 2.3.14 result that must be : ruby-rack> = 1.4 and rubygems> = 1.8
> explicitly, as it still had the rubygems 1.6 from unstable, this fixes the
> first problem reported, but i put previosly in redmine file config/boot.rb
>  a "require 'thread'" line after RAILS_ROOT related, this are mandatory i
> tested without and in some cases faild redmine to install.
>
> 3) after notice had installed ruby bundler so then ruby 1.9.1, then
> uninstall all ruby 1.9.1 (so i must uninstall bundler), removing
> ruby1.9.1-dev solved the problem and install redmine perfect with sqlite or
> mysql backend if all of those topics are exactly as i said.  There's
> something whit db:migrating that relies on ruby 1.9 ...
>
> 4) then removes and purge all redmine, so repeat install ruby1.9.1-dev and
> redmine and installs fine
> 5) then removes and reinstall but first with bundler installed failds.
> 6) some try after, i cant reproduce this case...
>
> So then if in upgrade redmine from squeeze to wheeze ruby 1.9.1 are
> installed, upgrades will fail!!!! this bug its very famous in debian over
> net, seee google search related ...
>
> with postgres: when i reconfigure, i setup postgres to ask in every
> conection the password (and dbconfig has stored also) result that:
>
> Creating config file /etc/redmine/default/database.yml.new with new version
> Password for user postgres:
> creating postgres user redmine:  Password for user postgres:
> already exists.
> resetting password:  Password for user postgres:
> success.
> Password for user postgres:
> creating database redmine_default: Password for user postgres:
> already exists.
> dbconfig-common: flushing administrative password
> Populating database for redmine instance "default".
> This may take a while.
> NOTE: Gem.source_index is deprecated, use Specification. It will be
> removed on or after 2011-11-01.
> Gem.source_index called from
> /usr/share/redmine/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:21.
> Please install RDoc 2.4.2+ to generate documentation.
> rake aborted!
> server closed the connection unexpectedly
> This probably means the server terminated abnormally
>  before or while processing the request.
>
> Tasks: TOP => db:migrate => environment
> (See full trace by running task with --trace)
> Error when running rake db:migrate, check database configuration.
> exit: 295: Illegal number: -1
>
>
>
> --
> Lenz McKAY Gerardo (PICCORO)
> http://qglochekone.blogspot.com
>
>


-- 
Lenz McKAY Gerardo (PICCORO)
http://qglochekone.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20120808/34d71fb6/attachment-0001.html>


More information about the Pkg-ruby-extras-maintainers mailing list