ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] pgbouncer
@ 2017-04-14 16:16 Ivan Zakharyaschev
  2017-04-14 20:14 ` [sisyphus] [devel] pgbouncer Ivan Zakharyaschev
  0 siblings, 1 reply; 2+ messages in thread
From: Ivan Zakharyaschev @ 2017-04-14 16:16 UTC (permalink / raw)
  To: sisyphus, devel

[-- Attachment #1: Type: text/plain, Size: 199 bytes --]

Свежесобранный пакет pgbouncer17 планируется переименовать в pgbouncer, 
чтобы заменить старую версию 1.4.2.

Есть у кого-нибудь замечания к pgbouncer17? (Опубликуется ночью.)

-- 
Best regards,
Ivan

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [sisyphus] [devel] pgbouncer
  2017-04-14 16:16 [sisyphus] pgbouncer Ivan Zakharyaschev
@ 2017-04-14 20:14 ` Ivan Zakharyaschev
  0 siblings, 0 replies; 2+ messages in thread
From: Ivan Zakharyaschev @ 2017-04-14 20:14 UTC (permalink / raw)
  To: ALT Linux Team development discussions; +Cc: sisyphus

[-- Attachment #1: Type: text/plain, Size: 2016 bytes --]


On Fri, 14 Apr 2017, Ivan Zakharyaschev wrote:

> Свежесобранный пакет pgbouncer17 планируется переименовать в pgbouncer, чтобы 
> заменить старую версию 1.4.2.
>
> Есть у кого-нибудь замечания к pgbouncer17? (Опубликуется ночью.)

Уже есть такие замечания при попытке использования (больше тестировать 
нет смысла, смысл есть только исправлять пакет):

Не хватает /var/log/pgbouncer/

Нет .service-файла для systemd, поэтому systemctl идёт к 
/etc/init.d/pgbouncer, ждёт /var/run/pgbouncer.pid -- journalctl -r:

апр 14 23:06:44 db2.box.nct systemd[1]: pgbouncer.service: Failed with 
result 'protocol'.
апр 14 23:06:44 db2.box.nct systemd[1]: pgbouncer.service: Unit entered 
failed state.
апр 14 23:06:44 db2.box.nct systemd[1]: Failed to start Cluster 
Controlled pgbouncer.
апр 14 23:06:44 db2.box.nct systemd[1]: pgbouncer.service: Daemon never 
wrote its PID file. Failing.
апр 14 23:06:44 db2.box.nct systemd[1]: pgbouncer.service: PID file 
/var/run/pgbouncer.pid not readable (yet?) after start: No such file or 
directory
апр 14 23:06:44 db2.box.nct pgbouncer[24158]: Starting pgbouncer service: 
[ DONE ]
апр 14 23:06:44 db2.box.nct systemd[1]: Starting Cluster Controlled 
pgbouncer...

а сам процесс бы создал другой файл, если бы была директория:

# strace -Ff -e trace=file /etc/init.d/pgbouncer start 2>&1 | fgrep /var/
stat("/var/run/pgbouncer/pgbouncer.pid", 0x7ffea58174a0) = -1 ENOENT (No 
such file or directory)
...
[pid 24037] open("/var/run/pgbouncer/pgbouncer.pid", 
O_WRONLY|O_CREAT|O_EXCL, 0644) = -1 ENOENT (No such file or directory)

Не хватает /var/run/pgbouncer/

В пакете пакуется:

%define         pgb_runtimedir   /var/run/%name

т.е. /var/run/pgbouncer17/ (не то).

Да и паковать что-то в /var/run/ неправильно в соврменных системах 
(tmpfs), нужны ещё правила для tmpfiles.

Пока это успел заметить, но не успел исправить. Начал в 
git.alt:/people/imz/packages/pgbouncer17.git ветка alt. Там косметические 
коммиты, и я пока прекращаю вносить изменения.

-- 
Best regards,
Ivan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-14 20:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-14 16:16 [sisyphus] pgbouncer Ivan Zakharyaschev
2017-04-14 20:14 ` [sisyphus] [devel] pgbouncer Ivan Zakharyaschev

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