Re: could not rename temporary statistics file "/run/shm/pgstat.tmp" to "/run/shm/pgstat.stat": No such file or directory

From: Alban Hertroys <haramrae(at)gmail(dot)com>
To: basti <mailinglist(at)unix-solution(dot)de>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: could not rename temporary statistics file "/run/shm/pgstat.tmp" to "/run/shm/pgstat.stat": No such file or directory
Date: 2014-04-22 15:46:16
Message-ID: CAF-3MvP7ODYhttJ1jbEwdPpvM4Wisb9a=oPW7FHHOgUEv8mRSw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 22 April 2014 17:13, basti <mailinglist(at)unix-solution(dot)de> wrote:
> 2014-04-22 11:01:42 CEST LOG: could not open temporary statistics file
> "/run/shm/pgstat.tmp": Permission denied
>
> I don't understand what's going on there:
>
> postgres(at)srv1:/home/postgresql_data/postgresql/9.1/main/pg_log$ date &&
> ls -la /run/shm/
> Tue Apr 22 17:08:41 CEST 2014
> total 308
> drwxrwxrwt 2 root root 80 Apr 22 17:08 .
> drwxr-xr-x 20 root root 660 Apr 8 11:15 ..
> -rw------- 1 postgres postgres 314577 Apr 22 17:08 pgstat.stat
> -rw-r--r-- 1 root root 0 Oct 19 2012 .tmpfs
> postgres(at)srv1:/home/postgresql_data/postgresql/9.1/main/pg_log$ touch
> /run/shm/pgstat.tmp

Is the postgres instance that is complaining really running as user postgres?
If you happen to have multiple postgres instances, chances are that
one is running as some user other than postgres. That would explain
why it can't modify those files.

--
If you can't see the forest for the trees,
Cut the trees and you'll see there is no forest.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Craig Libscomb 2014-04-22 19:47:32 Can't delete role because of unknown object
Previous Message Adrian Klaver 2014-04-22 15:35:32 Re: could not rename temporary statistics file "/run/shm/pgstat.tmp" to "/run/shm/pgstat.stat": No such file or directory