Bug 25089 - Не запускается сервер
Summary: Не запускается сервер
Status: REOPENED
Alias: None
Product: Branch 5.1
Classification: Distributions
Component: postgresql9.0 (show other bugs)
Version: unspecified
Hardware: all Linux
: P3 major
Assignee: Vladimir V. Kamarzin
QA Contact: QA 5.1
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-15 12:17 MSK by Andrey Cherepanov
Modified: 2013-07-26 10:31 MSK (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Cherepanov 2011-02-15 12:17:23 MSK
[root@ham1 ~]# service postgresql initdb
Creating default database:                                                                                                                                                  [ DONE ]
[root@ham1 ~]# service postgresql start
Adjusting environment for postgresql:                                                                                                                                       [ DONE ]
Starting postgresql service:                                                                                                                                                [FAILED]
See "/var/lib/pgsql/pgstartup.log" for details
[root@ham1 ~]# tail /var/lib/pgsql/pgstartup.log
FATAL:  invalid value for parameter "lc_monetary": "ru_RU.UTF-8"
Comment 1 Vladimir V. Kamarzin 2011-02-15 13:48:34 MSK
Способ воспроизведения?
Comment 2 Andrey Cherepanov 2011-02-15 14:04:32 MSK
(В ответ на комментарий №1)
> Способ воспроизведения?
Установка бэкпорченного пакета в систему без PostgreSQL из p5.

При запуске версии на Сизифе подвисает минуты на 3 на "Adjusting environment for postgresql:", затем всё запускается. Что посоветуешь?
Comment 3 Vladimir V. Kamarzin 2011-02-15 14:12:00 MSK
Если я правильно понял, то либо
control postgresql traditional

либо откатить eb8e6833ae6de2387485848dd64417268ef3e6b4
Comment 4 Andrey Cherepanov 2011-02-15 14:17:30 MSK
Заметил, что на Сизифе есть /usr/lib/locale/, а на p5 - нет.
Comment 5 Andrey Cherepanov 2011-02-15 14:36:14 MSK
Понял. Пакет собрал, тестирую.
Comment 6 Repository Robot 2011-02-15 16:11:35 MSK
postgresql9.0-9.0.3-alt0.N.M50P.1 -> p5:

* Tue Feb 15 2011 Andrey Cherepanov <cas@altlinux> 9.0.3-alt0.N.M50P.1
- fix startup with old glibc-locales (closes: #25089)
Comment 7 Michael Shigorin 2011-02-15 16:25:18 MSK
Спасибо!  Копирую в 5.1.
Comment 8 andrey 2013-07-26 10:31:13 MSK
(В ответ на комментарий №7)
> Спасибо!  Копирую в 5.1.

Столкнулся с тем же при переезде postgres с 8.3 на 9.1.
Ситуация разрулилась добавлением (дублированием+правкой с точностью до 64)

<cut>
locale_dir=`ls -d /usr/lib64/locale/* | tr ' ' "\n" | awk -F '/' '{print $5}'`
for d in $locale_dir; do
<------>mkdir -p usr/lib64/locale/$d/LC_MESSAGES
<------>for f in LC_ADDRESS LC_CTYPE LC_MEASUREMENT LC_MONETARY LC_NUMERIC LC_TELEPHONE LC_COLLATE LC_IDENTIFICATION LC_MESSAGES/SYS_LC_MESSAGES LC_NAME LC_PAPER LC_TIME; do
<------><------>Copy $force "/usr/lib64/locale/$d/$f" "usr/lib64/locale/$d/$f" ||:
<------>done
done
<cut/>

в /etc/chroot.d/postgresql.conf

Осталось непонятым кто и зачем требует наличие каталога usr/lib/locale/