ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Max A Mazin <max@allpack.ru>
To: sisyphus@altlinux.ru
Subject: Re: [sisyphus] Re: Не стартует postgresql
Date: Wed, 26 Nov 2003 16:50:33 +0300
Message-ID: <200311261650.33326.max@allpack.ru> (raw)
In-Reply-To: <200311260840.36591.iadzhubey@rics.bwh.harvard.edu>

В сообщении от Среда 26 Ноябрь 2003 16:40 Ivan Adzhubey написал(a):
> On Wednesday 26 November 2003 07:01 am, Maxim Tyurin wrote:
> > On Wed, Nov 26, 2003 at 02:26:59PM +0300, Max A Mazin wrote:
> > > > EY> Никак не могу найти причину... может кто сталкивался? :o(
> > > >
> > > > по PG вопрос снят... спать надо больше...
> > >
> > > Столкнулся с тем же. Чем снимали вопрос?
> >
> > Нужно вытереть сокет
> > лежит в tmp
>
> У меня было другое. Падало в процессе инициализации, при первом запуске.
> Оказалось - конфликт по локалям. Скрипт /etc/chroot.d/postgresql.conf
> копирует в chroot jail локали основываясь на /etc/sysconfig/i18n, а при
> инициализации БД локаль берется из текущего окружения. А "su -" оставляет
> локаль какой была у пользователя, который делал su. На одной машине у меня
> в /etc/sysconfig/i18n было LANG=ru_RU.KOI8-R, а у пользователя LANG=en_US.
> После исправления /etc/sysconfig/i18n на LANG=en_US все отработало
> нормально. Но я честно говоря не могу признать это фичей, скорее все же
> багом. У меня ушел час на то чтобы разобраться в чем дело. Так не должно
> быть.

Дело оказалось в другом: Я вчера обновился (в том числе и постгрес), в 
результате чего pid/lock файл или еще что пропали (может еще что произошло), 
а процесс остался висеть, занимая порт. service postgresql status говорил, 
что postgres not running, при рестарте/стопе старый постгрес не 
останавливался, новый постгрес не мог занять уже занятый старым постгресом 
порт. Вылечилось убийством старого постгресного процесса.
-- 
Max A Mazin                                            (max@allpack.ru)

      reply	other threads:[~2003-11-26 13:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-11  4:22 [sisyphus] " Evgeny Yugov
2003-11-11  5:52 ` [sisyphus] " Evgeny Yugov
2003-11-26 11:26   ` Max A Mazin
2003-11-26 12:01     ` Maxim Tyurin
2003-11-26 13:06       ` Max A Mazin
2003-11-26 13:40       ` Ivan Adzhubey
2003-11-26 13:50         ` Max A Mazin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200311261650.33326.max@allpack.ru \
    --to=max@allpack.ru \
    --cc=sisyphus@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git