On Sat, Feb 28, 2009 at 01:46:32PM +0100, Martin Pitt wrote:
> Hello all,
> 
> First, I assume that most of you installed postgresql-8.3 *after* the
> initial Debian installation, i. e. you did not choose the database
> server task in debian-installer? If you did, then please have a look
> at /var/log/installer and check if they have anything regarding to
> postgresql, in particular the package install log.
>

I did an install without the dtabase task and after that I 
selected many packages for instalation, postgresql among them. 
 
> But many reporters pointed out that the installed PostgreSQL later,
> thus I don't think it is an install-time only bug. Can anyone of you
> still say whether you already had the package "locales" installed when
> you installed postgresql-8.3? Did you have a locale configured and
> used?
> 

I was using ca_ES.UTF-8. Apparently well configured/installed. 

> 
> First, failure case: This usually happens if the locale is invalid,
> but that wouldn't leave an /etc/postgresql/ behind (see above). Then
> there can be all sorts of file system things, such as /var not being
> writable, but since it works with a manual pg_createcluster, I don't
> believe that this is the reason for all your reports.
>

I didn't fic any of these before I could manually create the cluster. 
I installed with just the root partition and swap. And the partition 
was writeable. I checked the logs and I didn't see anything unusal, 
so I guess /var/log/ was writable. 

I don't know much more and that system is still running windows :( .
I think it's only been booted to linux once since my report, for some minutes 
only. 
  
> Then, the "not attempted" case: This is determined in
> /usr/share/postgresql-common/maintscripts-functions,
> configure_version():
> 
>    |# arguments: <major version> <most recently configured package version>
>    |configure_version() {
>    |    VERSION="$1"
>    |
>    |    # Create a main cluster for given version ($1) if no cluster already 
> exists
>    |    # for that version and we are installing from scratch.
>    |    [ "$VERSION" ] || { echo "Error: configure_version: need version 
> parameter" >&2; exit 1; }
>    |    if [ ! -d "/etc/postgresql/$VERSION" ] || [ -z "$(ls 
> /etc/postgresql/$VERSION)" ] || \
>    |       [ -z "$(ls /etc/postgresql/$VERSION/*/postgresql.conf 
> 2>/dev/null)" ]; then
>    |        [ "$2" ] || /usr/bin/pg_createcluster -u postgres $VERSION main 
> || {
>    |        echo "Error: could not create default cluster. Please create it 
> manually with
>    |
>    |  pg_createcluster $VERSION main --start
>    |
>    |or a similar command (see 'man pg_createcluster')." >&2
>    |        }
>    |    fi
>    |
>    |    _link_manpages "$VERSION" "postgresql-$VERSION" postmaster.1.gz
>    |}
> 
> So this means that a cluster is only created automatically if:
> 
>  1. /etc/postgresql/8.3/ does not exist, or /etc/postgresql/8.3/ is
>     empty, or /etc/postgresql/8.3/main/postgresql.conf does not exist

Mmm.. I copied some configurations from another machine. I don't think 
I copied  /etc/postgresql/8.3/main/postgresql.conf but I guess I might have. 
But I reported /etc/postgres was empty, so I guess I didn't copy it. 

>  2. The package postgresql-8.3 was not installed before, or was
>     purged.
>


It wasn't installed before and was ony purged after the issue appeared.
 
> It seems very unlikely to me that those conditions were not met with a
> fresh Lenny install, though, but perhaps it gives some of you a clue
> what could have happened.
> 

No clue, sorry. In fact the more I think of it the less I can explained it. 
It just happened. What gives ?

> How exactly did you install Lenny? Which medium, which tasks, which
> locales? Could any of you attach the installer logs
> (/var/log/installer)?
> 

I choosed Catalan language in the installer, and configured ca_ES.UTF-8 
as default locale. I can't attach the logs now, but I guess it doesn't 
matter since it wasn't installed from the debian installer.

Sorry for being unhelpful. 

Thanks for your caring for this bug report. 



-- 
xdru...@tinet.cat
Signa per fer Collserola parc natural com cal
http://www.collserola.org/salvemelparcnatural/



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to