[linux] podivne spravanie servera po restarte
Ondrej Zilinec
cievo na network.sk
Pátek Leden 11 11:41:05 CET 2008
Ahoj
Len tak z prce si neskusal apt-get clean a apt-get autoclean predtym ako si
spustil upgrade.
Ked caka na spadnutie indiana, neskusal si pokillovat tie procesy, ktore ti
killuju indiana? Existuje ti lock file pre indiana (/var/run/apache.pid).
Ahoj
Quoting Martin Kyrc <martin.kyrc na gmail.com>:
> ahojte,
> vsetky baliky su uz upgradnute, okrem toho indiana. ten ma dependency
> problem, ale to sa da vyriesit, no riesenie nezbehne korektne, pretoze
> sa apache nezastavi. vid nizsie. podla dependencies sa ma
> apache2-mpm-prefork upgradnut z verzie 2.2.3-4+etch1, na 2.2.3-4+etch3.
>
> strace som robil ako jednu z prvych veci, nebol som prilis mudry. tu je
> aktualny stav spolu s apt-get upgrade/install:
>
> (som v single mode, inak sa neviem prihlasit na server)
>
> debian:~# apt-get upgrade
> Reading package lists... Done
> Building dependency tree... Done
> You might want to run `apt-get -f install' to correct these.
> The following packages have unmet dependencies:
> apache2-mpm-prefork: Depends: apache2.2-common (= 2.2.3-4+etch1) but
> 2.2.3-4+etch3 is installed
> E: Unmet dependencies. Try using -f.
> debian:~#
>
> debian:~# apt-get -f install
> Reading package lists... Done
> Building dependency tree... Done
> Correcting dependencies... Done
> The following extra packages will be installed:
> apache2-mpm-prefork
> The following packages will be upgraded:
> apache2-mpm-prefork
> 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> Need to get 0B/419kB of archives.
> After unpacking 0B of additional disk space will be used.
> Do you want to continue [Y/n]? y
> (Reading database ... 34551 files and directories currently installed.)
> Preparing to replace apache2-mpm-prefork 2.2.3-4+etch1 (using
> .../apache2-mpm-prefork_2.2.3-4+etch3_i386.deb) ...
> Stopping web server (apache2)...
> [1]+ Stopped apt-get -f install
> debian:~# bg
> [1]+ apt-get -f install &
>
>
> root 2133 0.0 0.0 1944 240 ttyS0 Ss 10:02 0:00 init
> [S]
> root 2134 0.0 0.1 2824 1688 ttyS0 S 10:02 0:00 \_ bash
> root 2408 6.8 0.6 11864 9944 ttyS0 S 10:31 0:00 \_
> apt-get -f install
> root 2419 1.5 0.4 8336 6984 ttyS0 S 10:31 0:00 |
> \_ /usr/bin/dpkg --status-fd 12 --unpack /var/cache/apt/ar
> root 2425 0.0 0.0 2412 1056 ttyS0 S 10:31 0:00 |
> \_ /bin/sh -e /var/lib/dpkg/info/apache2-mpm-prefork.p
> root 2426 0.1 0.0 2476 1172 ttyS0 S 10:31 0:00 |
> \_ /bin/sh /usr/sbin/invoke-rc.d apache2 stop
> root 2442 0.1 0.0 2504 1208 ttyS0 S 10:31 0:00 |
> \_ /bin/sh -e /etc/init.d/apache2 stop
> root 2443 0.0 0.0 2508 748 ttyS0 S 10:31 0:00 |
> \_ /bin/sh -e /etc/init.d/apache2 stop
> root 2444 0.3 0.2 9396 3308 ttyS0 S 10:31 0:00 |
> \_ apache2 -t
> root 2445 0.0 0.0 2216 884 ttyS0 R+ 10:31 0:00 \_
> ps fxawu
>
> a samotne procesy podla zavislosti:
>
> debian:~# strace -s 4096 -p 2408
> Process 2408 attached - interrupt to quit
> restart_syscall(<... resuming interrupted call ...>) = 0
> waitpid(2419, 0xbfa8858c, WNOHANG) = 0
> read(4, 0xbfa8861e, 1) = -1 EAGAIN (Resource
> temporarily unavailable)
> nanosleep({0, 1000000}, NULL) = 0
> waitpid(2419, 0xbfa8858c, WNOHANG) = 0
> read(4, 0xbfa8861e, 1) = -1 EAGAIN (Resource
> temporarily unavailable)
> nanosleep({0, 1000000}, NULL) = 0
> waitpid(2419, 0xbfa8858c, WNOHANG) = 0
> read(4, 0xbfa8861e, 1) = -1 EAGAIN (Resource
> temporarily unavailable)
> nanosleep({0, 1000000}, NULL) = 0
> waitpid(2419, 0xbfa8858c, WNOHANG) GAIN (Resource temporarily unavailable)
> Process 2408 detached
> debian:~#
>
> debian:~# strace -s 4096 -p 2419
> Process 2419 attached - interrupt to quit
> waitpid(2425, <unfinished ...>
> Process 2419 detached
> debian:~#
>
> debian:~# strace -s 4096 -p 2425
> Process 2425 attached - interrupt to quit
> waitpid(-1, <unfinished ...>
> Process 2425 detached
> debian:~#
>
> debian:~# strace -s 4096 -p 2426
> Process 2426 attached - interrupt to quit
> waitpid(-1, <unfinished ...>
> Process 2426 detached
> debian:~#
>
> debian:~# strace -s 4096 -p 2442
> Process 2442 attached - interrupt to quit
> read(3, <unfinished ...>
> Process 2442 detached
> debian:~#
>
> debian:~# strace -s 4096 -p 2443
> Process 2443 attached - interrupt to quit
> waitpid(-1, <unfinished ...>
> Process 2443 detached
> debian:~#
>
> debian:~# strace -s 4096 -p 2444
> Process 2444 attached - interrupt to quit
> futex(0xb775c548, FUTEX_WAIT, 2, NULL <unfinished ...>
> Process 2444 detached
> debian:~#
>
>
> debian:~# fg
> apt-get -f install
> (ctrl+c)
> dpkg: error processing
> /var/cache/apt/archives/apache2-mpm-prefork_2.2.3-4+etch3_i386.deb
> (--unpack):
> dpkg: warning - old pre-removal script killed by signal (Interrupt)
>
> Errors were encountered while processing:
> /var/cache/apt/archives/apache2-mpm-prefork_2.2.3-4+etch3_i386.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> debian:~#
>
> proces 2442 sa snazi cosi citat, len asi nezistim co, kedze tam chybaju
> predchadzajuce riadky. o co sa pokusa proces 2444 mi akosi nie je jasne.
>
> (skusal som aj ldconconfig -v. ten je bez naznaku nejakeho problemu)
> debian:~# ldconfig
> debian:~#
>
> podobnym sposobom sa spravaju aj ine procesy (syslog, freeradius, mc,...
> ale napr. ssh daemon spustim, editovat pomocou vi ide v pohode).
>
> uz sa zmierujem s reinstalaciou systemu (data viem odzalohovat), bude to
> asi rychlejsie ako riesenie aktualneho stavu, no rad by som sa dopatral
> priciny takehoto spravania. po hw stranke nevykazuje server ziaden
> viditelny problem. knoppix nabootuje a rozpozna vsetky zariadenia. po
> pripojeni lvm particii ich viem citat, fsck neukazuje ziaden problem.
>
> m.
>
> _______________________________________________
> https://lists.linux.sk/mailman/listinfo/linux
> Meta FAQ: http://www.sklug.sk/lists/linux/metafaq.html
>
--
Tel. #: ++421 907 408 813
ICQ #: 76 - 405 - 297
AOL AIM: cievo01
Yahoo IM: zilinec
MSN IM: cievo na hotmail.com
IRC: cievo(at)irc.debian.org #debian
www: http://cievo.nfo.sk
Další informace o konferenci linux