[sisyphus] Error in the apache2-base postinstall scripts

Peter Evdokimov blackp на vpmes.ru
Вт Сен 11 13:08:00 MSK 2012


On Mon, 10 Sep 2012 15:12:22 +0400
Aleksey Avdeev wrote:

>   Прошу выполнить (и предоставить вывод сюда):
> 
> sh -x /etc/init.d/httpd2 condrestart

1-ый контейнер openvz

# sh -x /etc/init.d/httpd2 condrestart
+ WITHOUT_RC_COMPAT=1
+ . /etc/init.d/functions
++ export
PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
++
PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
++ '[' 0 = 0 ']' ++ LANG=POSIX ++ LANGUAGE=POSIX
++ LC_ALL=POSIX
++ '[' -z '' ']'
++ SourceIfNotEmpty /etc/sysconfig/init
++ local f
++ f=/etc/sysconfig/init
++ shift
++ '[' -s /etc/sysconfig/init ']'
++ . /etc/sysconfig/init
+++ BOOTUP=color
+++ RES_OFFSET=8
+++ LOGLEVEL=1
+++ PROMPT=yes
++ '[' -n color ']'
++ '[' -x /sbin/consoletype ']'
+++ consoletype
++ '[' pty = serial ']'
++ '[' color = color ']'
++ . /etc/init.d/outformat
+++ '[' -n xterm ']'
+++ export TERM
+++ : 8
+++ '[' -n 8 ']'
+++ '[' 8 -gt 0 ']'
+++ : 0 1 2 3 4 5 6 7
++ '[' color '!=' verbose ']'
++ INITLOG_ARGS=-q
++ '[' -n 1 ']'
++ '[' 1 -ge 0 ']'
++ '[' -n 1 ']'
+ SourceIfExists /etc/sysconfig/httpd2
+ local f
+ f=/etc/sysconfig/httpd2
+ shift
+ '[' -f /etc/sysconfig/httpd2 ']'
+ . /etc/sysconfig/httpd2
+ INITLOG_ARGS=
+ name=httpd2
+ moduledir=/usr/lib/apache2/modules
+ moduleargs=
+ APACHECTL=/usr/sbin/apachectl2
+ RETVAL=0
+ export TMPDIR=/var/spool/apache2/tmp
+ TMPDIR=/var/spool/apache2/tmp
++ hostname
+ thehost=mail.vopmes.mes
+ hostname -i
+ case "$1" in
+ briefstatus
+ restart
+ stop
+ msg_stopping httpd2
+ local a
+ a=httpd2
+ shift
+ printf 'Stopping %s service: ' httpd2
Stopping httpd2 service: + stop_wait 300
+ (( i=300 ))
+ (( 300>0 ))
+ /usr/sbin/apachectl2 stop
+ RETVAL=0
+ '[' 0 -ne 255 ']'
+ return 0
+ RETVAL=0
+ '[' 0 -eq 0 ']'
+ echo_success
+ MOVE_TO_COL
+ '[' -n 183 ']'
+ local pos=175
+ '[' 175 -le 0 ']'
+ tput -- hpa 175
                                                                                                                                                                               +
echo -n '[ ' [ + SETCOLOR_SUCCESS
+ echo bold
+ echo setaf 2
+ tput -S
+ echo -n DONE
DONE+ SETCOLOR_NORMAL
+ echo op
+ echo sgr0
+ tput -S
+ echo -ne ' ]\r'
+ return 0
+ echo

+ return 0
+ RETVAL=0
+ '[' 0 -eq 0 ']'
+ conftest
+ action 'Checking configuration sanity for httpd2: ' /usr/sbin/apachectl2 configtest
+ local STRING
+ STRING='Checking configuration sanity for httpd2: '
+ shift
+ echo -n 'Checking configuration sanity for httpd2:  '
Checking configuration sanity for httpd2:  + initlog -c '/usr/sbin/apachectl2 configtest'
Syntax OK
+ local rc=0
+ '[' 0 -eq 0 ']'
+ success 'Checking configuration sanity for httpd2: '
+ '[' -z '' ']'
+ initlog -n /etc/init.d/httpd2 -s 'Checking configuration sanity for httpd2: ' -e 1
+ echo_success
+ MOVE_TO_COL
+ '[' -n 183 ']'
+ local pos=175
+ '[' 175 -le 0 ']'
+ tput -- hpa 175
                                                                                                                                                                               + echo -n '[ '
[ + SETCOLOR_SUCCESS
+ echo bold
+ echo setaf 2
+ tput -S
+ echo -n DONE
DONE+ SETCOLOR_NORMAL
+ echo op
+ echo sgr0
+ tput -S
+ echo -ne ' ]\r'
+ return 0
+ return 0
+ echo

+ return 0
+ RETVAL=0
+ return 0
+ start
++ msg_starting httpd2
++ local a
++ a=httpd2
++ shift
++ printf 'Starting %s service: ' httpd2
+ action 'Starting httpd2 service:  ' /usr/sbin/apachectl2 start
+ local STRING
+ STRING='Starting httpd2 service:  '
+ shift
+ echo -n 'Starting httpd2 service:   '
Starting httpd2 service:   + initlog -c '/usr/sbin/apachectl2 start'
+ local rc=3
+ '[' 3 -eq 0 ']'
+ failure 'Starting httpd2 service:  '
+ local rc=1
+ '[' -z '' ']'
+ initlog -n /etc/init.d/httpd2 -s 'Starting httpd2 service:  ' -e 2
+ echo_failure
+ MOVE_TO_COL
+ '[' -n 183 ']'
+ local pos=175
+ '[' 175 -le 0 ']'
+ tput -- hpa 175
                                                                                                                                                                               + echo -n '['
[+ SETCOLOR_FAILURE
+ echo bold
+ echo setaf 1
+ tput -S
+ echo -n FAILED
FAILED+ SETCOLOR_NORMAL
+ echo op
+ echo sgr0
+ tput -S
+ echo -ne ']\r'
+ return 1
+ return 1
+ echo

+ return 3
+ RETVAL=3
+ return 3
+ RETVAL=3
+ return 3
+ RETVAL=3
+ exit 3

2-ой контейнер openvz

# sh -x /etc/init.d/httpd2 condrestart
+ WITHOUT_RC_COMPAT=1
+ . /etc/init.d/functions
++ export PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
++ PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
++ '[' 0 = 0 ']'
++ LANG=POSIX
++ LANGUAGE=POSIX
++ LC_ALL=POSIX
++ '[' -z '' ']'
++ SourceIfNotEmpty /etc/sysconfig/init
++ local f
++ f=/etc/sysconfig/init
++ shift
++ '[' -s /etc/sysconfig/init ']'
++ . /etc/sysconfig/init
+++ BOOTUP=color
+++ RES_OFFSET=8
+++ LOGLEVEL=1
+++ PROMPT=yes
++ '[' -n color ']'
++ '[' -x /sbin/consoletype ']'
+++ consoletype
++ '[' pty = serial ']'
++ '[' color = color ']'
++ . /etc/init.d/outformat
+++ '[' -n xterm ']'
+++ export TERM
+++ : 8
+++ '[' -n 8 ']'
+++ '[' 8 -gt 0 ']'
+++ : 0 1 2 3 4 5 6 7
++ '[' color '!=' verbose ']'
++ INITLOG_ARGS=-q
++ '[' -n 1 ']'
++ '[' 1 -ge 0 ']'
++ '[' -n 1 ']'
+ SourceIfExists /etc/sysconfig/httpd2
+ local f
+ f=/etc/sysconfig/httpd2
+ shift
+ '[' -f /etc/sysconfig/httpd2 ']'
+ . /etc/sysconfig/httpd2
+ INITLOG_ARGS=
+ name=httpd2
+ moduledir=/usr/lib/apache2/modules
+ moduleargs=
+ APACHECTL=/usr/sbin/apachectl2
+ RETVAL=0
+ export TMPDIR=/var/spool/apache2/tmp
+ TMPDIR=/var/spool/apache2/tmp
++ hostname
+ thehost=maild.vopmes.mes
+ hostname -i
+ case "$1" in
+ briefstatus
+ restart
+ stop
+ msg_stopping httpd2
+ local a
+ a=httpd2
+ shift
+ printf 'Stopping %s service: ' httpd2
Stopping httpd2 service: + stop_wait 300
+ (( i=300 ))
+ (( 300>0 ))
+ /usr/sbin/apachectl2 stop
+ RETVAL=0
+ '[' 0 -ne 255 ']'
+ return 0
+ RETVAL=0
+ '[' 0 -eq 0 ']'
+ echo_success
+ MOVE_TO_COL
+ '[' -n 183 ']'
+ local pos=175
+ '[' 175 -le 0 ']'
+ tput -- hpa 175
                                                                                                                                                                               + echo -n '[ '
[ + SETCOLOR_SUCCESS
+ echo bold
+ echo setaf 2
+ tput -S
+ echo -n DONE
DONE+ SETCOLOR_NORMAL
+ echo op
+ echo sgr0
+ tput -S
+ echo -ne ' ]\r'
+ return 0
+ echo

+ return 0
+ RETVAL=0
+ '[' 0 -eq 0 ']'
+ conftest
+ action 'Checking configuration sanity for httpd2: ' /usr/sbin/apachectl2 configtest
+ local STRING
+ STRING='Checking configuration sanity for httpd2: '
+ shift
+ echo -n 'Checking configuration sanity for httpd2:  '
Checking configuration sanity for httpd2:  + initlog -c '/usr/sbin/apachectl2 configtest'
Syntax OK
+ local rc=0
+ '[' 0 -eq 0 ']'
+ success 'Checking configuration sanity for httpd2: '
+ '[' -z '' ']'
+ initlog -n /etc/init.d/httpd2 -s 'Checking configuration sanity for httpd2: ' -e 1
+ echo_success
+ MOVE_TO_COL
+ '[' -n 183 ']'
+ local pos=175
+ '[' 175 -le 0 ']'
+ tput -- hpa 175
                                                                                                                                                                               + echo -n '[ '
[ + SETCOLOR_SUCCESS
+ echo bold
+ echo setaf 2
+ tput -S
+ echo -n DONE
DONE+ SETCOLOR_NORMAL
+ echo op
+ echo sgr0
+ tput -S
+ echo -ne ' ]\r'
+ return 0
+ return 0
+ echo

+ return 0
+ RETVAL=0
+ return 0
+ start
++ msg_starting httpd2
++ local a
++ a=httpd2
++ shift
++ printf 'Starting %s service: ' httpd2
+ action 'Starting httpd2 service:  ' /usr/sbin/apachectl2 start
+ local STRING
+ STRING='Starting httpd2 service:  '
+ shift
+ echo -n 'Starting httpd2 service:   '
Starting httpd2 service:   + initlog -c '/usr/sbin/apachectl2 start'
+ local rc=0
+ '[' 0 -eq 0 ']'
+ success 'Starting httpd2 service:  '
+ '[' -z '' ']'
+ initlog -n /etc/init.d/httpd2 -s 'Starting httpd2 service:  ' -e 1
+ echo_success
+ MOVE_TO_COL
+ '[' -n 183 ']'
+ local pos=175
+ '[' 175 -le 0 ']'
+ tput -- hpa 175
                                                                                                                                                                               + echo -n '[ '
[ + SETCOLOR_SUCCESS
+ echo bold
+ echo setaf 2
+ tput -S
+ echo -n DONE
DONE+ SETCOLOR_NORMAL
+ echo op
+ echo sgr0
+ tput -S
+ echo -ne ' ]\r'
+ return 0
+ return 0
+ echo

+ return 0
+ RETVAL=0
+ return 0
+ RETVAL=0
+ return 0
+ RETVAL=0
+ exit 0
 
> > Править /etc/init.d/httpd2 ? 
> 
>   Пока не знаю как именно.
> 


sy,
	peter


Подробная информация о списке рассылки Sisyphus