ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Ivan Zakharyaschev <imz@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Cc: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] [devel] pgbouncer
Date: Fri, 14 Apr 2017 23:14:54 +0300 (MSK)
Message-ID: <alpine.LFD.2.20.1704142303290.1081@imap.altlinux.org> (raw)
In-Reply-To: <alpine.LFD.2.20.1704141912500.1081@imap.altlinux.org>

[-- 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

      reply	other threads:[~2017-04-14 20:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-14 16:16 [sisyphus] pgbouncer Ivan Zakharyaschev
2017-04-14 20:14 ` Ivan Zakharyaschev [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=alpine.LFD.2.20.1704142303290.1081@imap.altlinux.org \
    --to=imz@altlinux.org \
    --cc=devel@lists.altlinux.org \
    --cc=sisyphus@lists.altlinux.org \
    /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