From: Maxim Dzumanenko <mvd@altlinux.ru> To: sisyphus@altlinux.ru Subject: Re: [sisyphus] Re: [sisyphus] postgresql из sisyphus, установка? Date: Sat, 13 Apr 2002 11:30:20 +0300 Message-ID: <20020413113020.332a9010.mvd@altlinux.ru> (raw) In-Reply-To: <5323791340.20020412151354@ssserv.scm.ru> [-- Attachment #1.1: Type: text/plain, Size: 6131 bytes --] On Fri, 12 Apr 2002 15:13:54 +0600 Alex Volkov <wn@ssserv.scm.ru> wrote: > >> > [FAILED] > >> > ls: /var/lib/pgsql-root/tmp/.s.PGSQL.*: No such file or directory > MD> Кстати, у меня postgresql так и не старует при запуске системы - > MD> выводит вышеуказанное сообюшение, > MD> а вот при /etc/rc.d/init.d/postrgesql start/stop/restart все нормально > У меня было то же самое. Версия 7.2-alt5. IMHO это из-за того, что > скрипт пытается создать симлинк для сокета из chroot tmp в /tmp, а > сервер еще не поднялся и сокета в chroot'е нет :) Свой я вылечил так: > + until filelist=`ls $PG_CHROOT_DIR/tmp/.s.PGSQL.*`; do sleep 1s; done Не помогло, та же надпись, только в цикле После добавления отладочной опции -d 4 выяснилась следующая разница При запуске системы постгрес НЕ ВИДИТ переменную окружения TMPDIR которая ему установлена в /etc/rc.d/init.d/postgresql Очевидно это и есть причина такого поведения А вот почему не видит - это надо спросить у кого-то другого Вот лог при запуске системы Apr 13 11:09:26 max postgresql: Adjusting environment for postgresql: succeeded Apr 13 11:09:27 max postmaster: /usr/bin/postmaster: PostmasterMain: initial environ dump: Apr 13 11:09:27 max postmaster: ----------------------------------------- Apr 13 11:09:27 max postmaster: ^IPWD=/ Apr 13 11:09:27 max postmaster: ^IHOSTNAME=max.april.local Apr 13 11:09:27 max postmaster: ^ICONSOLE=/dev/console Apr 13 11:09:27 max postmaster: ^ILOGLEVEL=1 Apr 13 11:09:27 max postmaster: ^IPREVLEVEL=N Apr 13 11:09:27 max postmaster: ^Irunlevel=3 Apr 13 11:09:27 max postmaster: ^IBOOTUP=color Apr 13 11:09:27 max postmaster: ^IMACHTYPE=i586-alt-linux-gnu Apr 13 11:09:27 max postmaster: ^ISHLVL=2 Apr 13 11:09:27 max postmaster: ^Iprevious=N Apr 13 11:09:27 max postmaster: ^IBOOT_IMAGE=2418-alt4-up Apr 13 11:09:27 max postmaster: ^ISHELL=/bin/bash Apr 13 11:09:27 max postmaster: ^IHOSTTYPE=i586 Apr 13 11:09:27 max postmaster: ^IOSTYPE=linux-gnu Apr 13 11:09:27 max postmaster: ^IHOME=/ Apr 13 11:09:27 max postmaster: ^ITERM=linux Apr 13 11:09:27 max postmaster: ^IPGDATA=/var/lib/pgsql/data Apr 13 11:09:27 max postmaster: ^IPATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin Apr 13 11:09:27 max postmaster: ^IRUNLEVEL=3 Apr 13 11:09:27 max postmaster: ^IINIT_VERSION=sysvinit-2.84 Apr 13 11:09:27 max postmaster: ^I_=/bin/nice Apr 13 11:09:27 max postmaster: ----------------------------------------- Apr 13 11:09:27 max postgresql: postmaster startup succeeded После ручного запуска Кв╕ 13 11:11:58 max last message repeated 3 times Apr 13 11:12:12 max postgresql: Adjusting environment for postgresql: succeeded Apr 13 11:12:12 max postmaster: /usr/bin/postmaster: PostmasterMain: initial environ dump: Apr 13 11:12:12 max postmaster: ----------------------------------------- Apr 13 11:12:12 max postmaster: ^IPWD=/root Apr 13 11:12:12 max postmaster: ^ICATALINA_HOME=/usr/local/jakarta-tomcat Apr 13 11:12:12 max postmaster: ^ITMPDIR=/var/lib/pgsql-root/tmp Apr 13 11:12:12 max postmaster: ^ILC_MESSAGES=uk_UA.KOI8-U Apr 13 11:12:12 max postmaster: ^IHOSTNAME=max.april.local Apr 13 11:12:12 max postmaster: ^IHISTFILESIZE=9999 Apr 13 11:12:12 max postmaster: ^ICLASSPATH=:/usr/share/pgsql/jdbc7.0-1.2.jar:/usr/local/mysqljdbc/caucho-jdbc-mysql-0.2.7.jar:.:/usr/local/xalan/bin/xalan.jar:/usr/local/xalan/bin/xerces.jar Apr 13 11:12:12 max postmaster: ^ILESSKEY=/etc/.less Apr 13 11:12:12 max postmaster: ^ILESSOPEN=|/usr/bin/lesspipe.sh %s Apr 13 11:12:12 max postmaster: ^ILANGUAGE=POSIX Apr 13 11:12:12 max postmaster: ^ILESS=-MM Apr 13 11:12:12 max postmaster: ^IUSER=root Apr 13 11:12:12 max postmaster: ^ILS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.tar=01;31:*.tgz=01;31:*.tgy=01;31:*.tbz2=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lha=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:*.tiff=01;35: Apr 13 11:12:12 max postmaster: ^IMACHTYPE=i586-alt-linux-gnu Apr 13 11:12:12 max postmaster: ^IMAIL=/var/mail/root Apr 13 11:12:12 max postmaster: ^ICVS_RSH=ssh Apr 13 11:12:12 max postmaster: ^IINPUTRC=/etc/inputrc Apr 13 11:12:12 max postmaster: ^IBASH_ENV=/root/.bashrc Apr 13 11:12:12 max postmaster: ^ILANG=POSIX Apr 13 11:12:12 max postmaster: ^IJAVA_HOME=/usr/local/IBMJava2-13 Apr 13 11:12:12 max postmaster: ^ILC_NUMERIC=uk_UA.KOI8-U Apr 13 11:12:12 max postmaster: ^ILOGNAME=root Apr 13 11:12:12 max postmaster: ^ISHLVL=2 Apr 13 11:12:12 max postmaster: ^ILC_CTYPE=uk_UA.KOI8-U Apr 13 11:12:12 max postmaster: ^IMINICOM= -c on -8 Apr 13 11:12:12 max postmaster: ^IMPAGE=-CKOI8-U Apr 13 11:12:12 max postmaster: ^ISHELL=/bin/bash Apr 13 11:12:12 max postmaster: ^IJDK_HOME=/usr/local/j2sdk1.4.0 Apr 13 11:12:12 max postmaster: ^IUSERNAME= Apr 13 11:12:12 max postmaster: ^IHOSTTYPE=i586 Apr 13 11:12:12 max postmaster: ^IOSTYPE=linux-gnu Apr 13 11:12:12 max postmaster: ^IHISTSIZE=9999 Apr 13 11:12:12 max postmaster: ^ITERM=linux Apr 13 11:12:12 max postmaster: ^IHOME=/root Apr 13 11:12:12 max postmaster: ^IPGDATA=/var/lib/pgsql/data Apr 13 11:12:12 max postmaster: ^IPATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin Apr 13 11:12:12 max postmaster: ^ILC_MONETARY=uk_UA.KOI8-U Apr 13 11:12:12 max postmaster: ^ILC_COLLATE=uk_UA.KOI8-U Apr 13 11:12:12 max postmaster: ^Imc=() { mkdir -p $HOME/.mc/tmp 2>/dev/null; Apr 13 11:12:12 max postmaster: chmod 700 $HOME/.mc/tmp; Apr 13 11:12:12 max postmaster: MC=$HOME/.mc/tmp/mc-$$; Apr 13 11:12:12 max postmaster: /usr/bin/mc -P "$@" >"$MC"; Apr 13 11:12:12 max postmaster: cd "`cat $MC`"; Apr 13 11:12:12 max postmaster: rm -f "$MC"; Apr 13 11:12:12 max postmaster: unset MC Apr 13 11:12:12 max postmaster: } Apr 13 11:12:12 max postmaster: ^I_=/bin/nice Apr 13 11:12:12 max postmaster: ----------------------------------------- Apr 13 11:12:12 max postgresql: postmaster startup succeeded емы: -- С Уважением, Максим Дзюманенко [-- Attachment #1.2: 00000001.mimetmp --] [-- Type: text/plain, Size: 6131 bytes --] On Fri, 12 Apr 2002 15:13:54 +0600 Alex Volkov <wn@ssserv.scm.ru> wrote: > >> > [FAILED] > >> > ls: /var/lib/pgsql-root/tmp/.s.PGSQL.*: No such file or directory > MD> ëÓÔÁÔÉ, Õ ÍÅÎÑ postgresql ÔÁË É ÎÅ ÓÔÁÒÕÅÔ ÐÒÉ ÚÁÐÕÓËÅ ÓÉÓÔÅÍÙ - > MD> ×Ù×ÏÄÉÔ ×ÙÛÅÕËÁÚÁÎÎÏÅ ÓÏÏÂÀÛÅÎÉÅ, > MD> Á ×ÏÔ ÐÒÉ /etc/rc.d/init.d/postrgesql start/stop/restart ×ÓÅ ÎÏÒÍÁÌØÎÏ > õ ÍÅÎÑ ÂÙÌÏ ÔÏ ÖÅ ÓÁÍÏÅ. ÷ÅÒÓÉÑ 7.2-alt5. IMHO ÜÔÏ ÉÚ-ÚÁ ÔÏÇÏ, ÞÔÏ > ÓËÒÉÐÔ ÐÙÔÁÅÔÓÑ ÓÏÚÄÁÔØ ÓÉÍÌÉÎË ÄÌÑ ÓÏËÅÔÁ ÉÚ chroot tmp × /tmp, Á > ÓÅÒ×ÅÒ ÅÝÅ ÎÅ ÐÏÄÎÑÌÓÑ É ÓÏËÅÔÁ × chroot'Å ÎÅÔ :) ó×ÏÊ Ñ ×ÙÌÅÞÉÌ ÔÁË: > + until filelist=`ls $PG_CHROOT_DIR/tmp/.s.PGSQL.*`; do sleep 1s; done îÅ ÐÏÍÏÇÌÏ, ÔÁ ÖÅ ÎÁÄÐÉÓØ, ÔÏÌØËÏ × ÃÉËÌÅ ðÏÓÌÅ ÄÏÂÁ×ÌÅÎÉÑ ÏÔÌÁÄÏÞÎÏÊ ÏÐÃÉÉ -d4 ×ÙÑÓÎÉÌÁÓØ ÓÌÅÄÕÀÝÁÑ ÒÁÚÎÉÃÁ ðÒÉ ÚÁÐÕÓËÅ ÓÉÓÔÅÍÙ ÐÏÓÔÇÒÅÓ îå ÷éäéô ÐÅÒÅÍÅÎÎÕÀ ÏËÒÕÖÅÎÉÑ TMPDIR ËÏÔÏÒÁÑ ÅÍÕ ÕÓÔÁÎÏ×ÌÅÎÁ × /etc/rc.d/init.d/postgresql ïÞÅ×ÉÄÎÏ ÜÔÏ É ÅÓÔØ ÐÒÉÞÉÎÁ ÔÁËÏÇÏ ÐÏ×ÅÄÅÎÉÑ á ×ÏÔ ÐÏÞÅÍÕ ÎÅ ×ÉÄÉÔ - ÜÔÏ ÎÁÄÏ ÓÐÒÏÓÉÔØ Õ ËÏÇÏ-ÔÏ ÄÒÕÇÏÇÏ ÷ÏÔ ÌÏÇ ÐÒÉ ÚÁÐÕÓËÅ ÓÉÓÔÅÍÙ Apr 13 11:09:26 max postgresql: Adjusting environment for postgresql: succeeded Apr 13 11:09:27 max postmaster: /usr/bin/postmaster: PostmasterMain: initial environ dump: Apr 13 11:09:27 max postmaster: ----------------------------------------- Apr 13 11:09:27 max postmaster: ^IPWD=/ Apr 13 11:09:27 max postmaster: ^IHOSTNAME=max.april.local Apr 13 11:09:27 max postmaster: ^ICONSOLE=/dev/console Apr 13 11:09:27 max postmaster: ^ILOGLEVEL=1 Apr 13 11:09:27 max postmaster: ^IPREVLEVEL=N Apr 13 11:09:27 max postmaster: ^Irunlevel=3 Apr 13 11:09:27 max postmaster: ^IBOOTUP=color Apr 13 11:09:27 max postmaster: ^IMACHTYPE=i586-alt-linux-gnu Apr 13 11:09:27 max postmaster: ^ISHLVL=2 Apr 13 11:09:27 max postmaster: ^Iprevious=N Apr 13 11:09:27 max postmaster: ^IBOOT_IMAGE=2418-alt4-up Apr 13 11:09:27 max postmaster: ^ISHELL=/bin/bash Apr 13 11:09:27 max postmaster: ^IHOSTTYPE=i586 Apr 13 11:09:27 max postmaster: ^IOSTYPE=linux-gnu Apr 13 11:09:27 max postmaster: ^IHOME=/ Apr 13 11:09:27 max postmaster: ^ITERM=linux Apr 13 11:09:27 max postmaster: ^IPGDATA=/var/lib/pgsql/data Apr 13 11:09:27 max postmaster: ^IPATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin Apr 13 11:09:27 max postmaster: ^IRUNLEVEL=3 Apr 13 11:09:27 max postmaster: ^IINIT_VERSION=sysvinit-2.84 Apr 13 11:09:27 max postmaster: ^I_=/bin/nice Apr 13 11:09:27 max postmaster: ----------------------------------------- Apr 13 11:09:27 max postgresql: postmaster startup succeeded ðÏÓÌÅ ÒÕÞÎÏÇÏ ÚÁÐÕÓËÁ ëצ 13 11:11:58 max last message repeated 3 times Apr 13 11:12:12 max postgresql: Adjusting environment for postgresql: succeeded Apr 13 11:12:12 max postmaster: /usr/bin/postmaster: PostmasterMain: initial environ dump: Apr 13 11:12:12 max postmaster: ----------------------------------------- Apr 13 11:12:12 max postmaster: ^IPWD=/root Apr 13 11:12:12 max postmaster: ^ICATALINA_HOME=/usr/local/jakarta-tomcat Apr 13 11:12:12 max postmaster: ^ITMPDIR=/var/lib/pgsql-root/tmp Apr 13 11:12:12 max postmaster: ^ILC_MESSAGES=uk_UA.KOI8-U Apr 13 11:12:12 max postmaster: ^IHOSTNAME=max.april.local Apr 13 11:12:12 max postmaster: ^IHISTFILESIZE=9999 Apr 13 11:12:12 max postmaster: ^ICLASSPATH=:/usr/share/pgsql/jdbc7.0-1.2.jar:/usr/local/mysqljdbc/caucho-jdbc-mysql-0.2.7.jar:.:/usr/local/xalan/bin/xalan.jar:/usr/local/xalan/bin/xerces.jar Apr 13 11:12:12 max postmaster: ^ILESSKEY=/etc/.less Apr 13 11:12:12 max postmaster: ^ILESSOPEN=|/usr/bin/lesspipe.sh %s Apr 13 11:12:12 max postmaster: ^ILANGUAGE=POSIX Apr 13 11:12:12 max postmaster: ^ILESS=-MM Apr 13 11:12:12 max postmaster: ^IUSER=root Apr 13 11:12:12 max postmaster: ^ILS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.tar=01;31:*.tgz=01;31:*.tgy=01;31:*.tbz2=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lha=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:*.tiff=01;35: Apr 13 11:12:12 max postmaster: ^IMACHTYPE=i586-alt-linux-gnu Apr 13 11:12:12 max postmaster: ^IMAIL=/var/mail/root Apr 13 11:12:12 max postmaster: ^ICVS_RSH=ssh Apr 13 11:12:12 max postmaster: ^IINPUTRC=/etc/inputrc Apr 13 11:12:12 max postmaster: ^IBASH_ENV=/root/.bashrc Apr 13 11:12:12 max postmaster: ^ILANG=POSIX Apr 13 11:12:12 max postmaster: ^IJAVA_HOME=/usr/local/IBMJava2-13 Apr 13 11:12:12 max postmaster: ^ILC_NUMERIC=uk_UA.KOI8-U Apr 13 11:12:12 max postmaster: ^ILOGNAME=root Apr 13 11:12:12 max postmaster: ^ISHLVL=2 Apr 13 11:12:12 max postmaster: ^ILC_CTYPE=uk_UA.KOI8-U Apr 13 11:12:12 max postmaster: ^IMINICOM= -c on -8 Apr 13 11:12:12 max postmaster: ^IMPAGE=-CKOI8-U Apr 13 11:12:12 max postmaster: ^ISHELL=/bin/bash Apr 13 11:12:12 max postmaster: ^IJDK_HOME=/usr/local/j2sdk1.4.0 Apr 13 11:12:12 max postmaster: ^IUSERNAME= Apr 13 11:12:12 max postmaster: ^IHOSTTYPE=i586 Apr 13 11:12:12 max postmaster: ^IOSTYPE=linux-gnu Apr 13 11:12:12 max postmaster: ^IHISTSIZE=9999 Apr 13 11:12:12 max postmaster: ^ITERM=linux Apr 13 11:12:12 max postmaster: ^IHOME=/root Apr 13 11:12:12 max postmaster: ^IPGDATA=/var/lib/pgsql/data Apr 13 11:12:12 max postmaster: ^IPATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin Apr 13 11:12:12 max postmaster: ^ILC_MONETARY=uk_UA.KOI8-U Apr 13 11:12:12 max postmaster: ^ILC_COLLATE=uk_UA.KOI8-U Apr 13 11:12:12 max postmaster: ^Imc=() { mkdir -p $HOME/.mc/tmp 2>/dev/null; Apr 13 11:12:12 max postmaster: chmod 700 $HOME/.mc/tmp; Apr 13 11:12:12 max postmaster: MC=$HOME/.mc/tmp/mc-$$; Apr 13 11:12:12 max postmaster: /usr/bin/mc -P "$@" >"$MC"; Apr 13 11:12:12 max postmaster: cd "`cat $MC`"; Apr 13 11:12:12 max postmaster: rm -f "$MC"; Apr 13 11:12:12 max postmaster: unset MC Apr 13 11:12:12 max postmaster: } Apr 13 11:12:12 max postmaster: ^I_=/bin/nice Apr 13 11:12:12 max postmaster: ----------------------------------------- Apr 13 11:12:12 max postgresql: postmaster startup succeeded ÅÍÙ: -- ó õ×ÁÖÅÎÉÅÍ, íÁËÓÉÍ äÚÀÍÁÎÅÎËÏ [-- Attachment #1.3: 00000000.mimetmp --] [-- Type: application/pgp-signature, Size: 191 bytes --] [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2002-04-13 8:30 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-04-11 21:53 Anton Farygin 2002-04-12 3:38 ` Konstantin Timoshenko 2002-04-12 5:22 ` Anton Farygin 2002-04-12 5:29 ` Anton Farygin 2002-04-12 5:59 ` Anton Farygin 2002-04-12 8:29 ` Maxim Dzumanenko 2002-04-12 9:13 ` [sisyphus] " Alex Volkov 2002-04-12 9:23 ` Sergey Bolshakov 2002-04-15 12:02 ` Konstantin Timoshenko 2002-04-13 8:30 ` Maxim Dzumanenko [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=20020413113020.332a9010.mvd@altlinux.ru \ --to=mvd@altlinux.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