Le 17.06.2005 12:00, Martin Pitt a écrit:
> Hi!
> 
> Erwan David [2005-06-17 11:30 +0200]:
> 
>>When installing postgresql-8.0 I get the following errors :
>>
>>sh: /var/log/postgresql/postgresql-8.0-main.log: Permission non accordée
>>The PostgreSQL server failed to start. Please check the log output:
>>Error: Could not open log file /var/log/postgresql/postgresql-8.0-main.log
>>invoke-rc.d: initscript postgresql-8.0, action "start" failed
>>
>>Same message error for the action "autovac-start" triggered by
>>postgresql-contrib-8.0
> 
> 
> Can you please show me the output of
> 
> $ id postgres

uid=118(postgres) gid=118(postgres) groups=118(postgres)

> $ ls -la /var/log/postgresql

drwxrwx---   2       31       32 4096 Jun 17 11:24 .
drwxr-xr-x  15 root     root     4096 Jun 17 06:27 ..
-rw-r--r--   1       31       32    0 Jun  1 06:27 autovacuum_log
-rw-r--r--   1       31       32 2594 Jun  1 06:27 autovacuum_log.1
-rw-r--r--   1       31       32  341 Apr 13 06:25 autovacuum_log.10.gz
-rw-r--r--   1       31       32  340 Jun  1 06:27 autovacuum_log.2.gz
-rw-r--r--   1       31       32  341 May 23 06:27 autovacuum_log.3.gz
-rw-r--r--   1       31       32  340 May 17 06:26 autovacuum_log.4.gz
-rw-r--r--   1       31       32  664 May  9 06:26 autovacuum_log.5.gz
-rw-r--r--   1       31       32  341 May  3 06:27 autovacuum_log.6.gz
-rw-r--r--   1       31       32  340 Apr 27 06:27 autovacuum_log.7.gz
-rw-r--r--   1       31       32  341 Apr 18 06:27 autovacuum_log.8.gz
-rw-r--r--   1       31       32  341 Apr 15 06:25 autovacuum_log.9.gz
-rw-rw----   1 postgres postgres    0 Jun 17 11:24
pg_autovacuum-8.0-main.log
-rw-rw----   1 postgres postgres    0 Jun 17 11:24 postgresql-8.0-main.log


> $ ls -l /etc/postgresql/8.0/main

 ls -l /etc/postgresql/8.0/main
total 20
lrwxrwxrwx  1 root     root        46 Jun 17 11:24 autovacuum_log ->
/var/log/postgresql/pg_autovacuum-8.0-main.log
lrwxrwxrwx  1 root     root        43 Jun 17 11:24 log ->
/var/log/postgresql/postgresql-8.0-main.log
-rw-r-----  1 postgres postgres  3588 Jun 17 11:24 pg_hba.conf
-rw-r-----  1 postgres postgres  1460 Jun 17 11:24 pg_ident.conf
lrwxrwxrwx  1 root     root        28 Jun 17 11:24 pgdata ->
/var/lib/postgresql/8.0/main
-rw-r--r--  1 postgres postgres 11020 Jun 17 11:24 postgresql.conf




> $ pg_lsclusters

Version Cluster   Port Status Owner    Data directory
8.0     main      5432 down   postgres /var/lib/postgresql/8.0/main

Log File
/var/log/postgresql/postgresql-8.0-main.log


Ok,  I see this 31-32 in /var/log/postgresql.

It may come I used to have postgresql 7.4 which I purged some time ago.

-- 
Erwan

Reply via email to