LINUX.ORG.RU

Ubuntu Server каждый час перезагружается! Как с этим бороться?

 , ,


0

4

Прошу вашей помощи новичку!

Установлена Ubuntu Server 12.04.1 - Kernel and CPU Linux 3.2.0-38-generic on x86_64
System uptime 59 minutes далее перезагрузка!
Осознаю, что выполняется задание cron но где копать не как не фкурю :( Googl-eние не помогло, слишком мало моего опыта.

Помогите новичку как побороть данную проблему, какие исходные данные необходимы для представления полной картины?

Вот мой crontab:

# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user	command
17 *	* * *	root    cd / && run-parts --report /etc/cron.hourly
25 6	* * *	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6	* * 7	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6	1 * *	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#



Последнее исправление: old (всего исправлений: 1)
Ответ на: *.* /var/log/all от old

Если в 16:35 был ребут, то это больше похоже на аппаратные проблемы. В логе не одной записи, говорящей о том, что был запущен процесс штатного завершения работы. Конечно, можно командой послать сервер в такой вот «жёсткий» reboot, но в скриптах обычно так не делают.

Ещё мне не понятны сообщения:

cron main process (2165) killed by KILL signal
Вы в это время запускали какие-либо команды (например ″kill″ или через ″top″ «убивали» cron) или это само вылазит?

mky ★★★★★
()
Ответ на: комментарий от outsider

Результат выполнения grep -R reboot /etc

make sure privileges don't persist across reboots
grep: /etc/security/opasswd: Permission denied
/etc/rc2.d/S75sudo:     # make sure privileges don't persist across reboots
grep: /etc/ssh/ssh_host_ecdsa_key: Permission denied
grep: /etc/ssh/ssh_host_rsa_key: Permission denied
grep: /etc/ssh/ssh_host_dsa_key: Permission denied
grep: /etc/fuse.conf: Permission denied
grep: /etc/gshadow-: Permission denied
grep: /etc/mysql/debian.cnf: Permission denied
grep: /etc/group-: Permission denied
/etc/init/control-alt-delete.conf:# pressed, and performs a safe reboot of the machine.
/etc/init/mountall-shell.conf:  echo "CONTROL-D will terminate this shell and reboot the system."
/etc/init/mountall-shell.conf:  echo "CONTROL-D will terminate this shell and reboot the system."
/etc/init/mountall-shell.conf:      exec reboot -f
/etc/init/mountall-reboot.conf:# mountall-reboot - Reboot after filesystems are changed
/etc/init/mountall-reboot.conf:# If mountall exits to indicate a reboot is required, this does the
/etc/init/mountall-reboot.conf:# necessary reboot.
/etc/init/mountall-reboot.conf:exec reboot -f
grep: /etc/dbconfig-common/config: Permission denied
grep: /etc/dbconfig-common/phpmyadmin.conf: Permission denied
Binary file /etc/alternatives/php matches
grep: /etc/apparmor.d/cache/usr.sbin.mysqld: Permission denied
grep: /etc/apparmor.d/cache/usr.sbin.tcpdump: Permission denied
grep: /etc/apparmor.d/cache/sbin.dhclient: Permission denied
grep: /etc/at.deny: Permission denied
grep: /etc/apt/trustdb.gpg: Permission denied
/etc/apt/apt.conf.d/50unattended-upgrades:// Automatically reboot *WITHOUT CONFIRMATION* if a
/etc/apt/apt.conf.d/50unattended-upgrades:// the file /var/run/reboot-required is found after the upgrade
/etc/dhcp/dhclient.conf:#reboot 10;
grep: /etc/sudoers.d/README: Permission denied
/etc/rc0.d/S30urandom:#                    It is called from the boot, halt and reboot scripts.
/etc/rc0.d/S60umountroot:# Should-Stop:       halt reboot kexec
/etc/rc0.d/S31umountnfs.sh:     # Write a reboot record to /var/log/wtmp before unmounting
grep: /etc/mail/aliases.db: Permission denied
grep: /etc/mail/tls/sendmail-common.key: Permission denied
grep: /etc/mail/tls/sendmail-client.cfg: Permission denied
grep: /etc/mail/tls/sendmail-server.csr: Permission denied
grep: /etc/mail/tls/sendmail-client.csr: Permission denied
grep: /etc/mail/tls/sendmail-server.cfg: Permission denied
grep: /etc/mail/tls/sendmail-common.prm: Permission denied
grep: /etc/mail/access: Permission denied
grep: /etc/mail/m4/provider.m4: Permission denied
grep: /etc/mail/m4/dialup.m4: Permission denied
grep: /etc/mail/access.db: Permission denied
grep: /etc/shadow: Permission denied
/etc/kernel/postinst.d/update-notifier:echo "*** $(eval_gettext "System restart required") ***" > /var/run/reboot-required
/etc/kernel/postinst.d/update-notifier:echo "$DPKG_MAINTSCRIPT_PACKAGE" >> /var/run/reboot-required.pkgs
/etc/ltrace.conf:int   SYS_reboot(int,int,int,addr);
grep: /etc/shadow-: Permission denied
/etc/rc4.d/S75sudo:     # make sure privileges don't persist across reboots
grep: /etc/ssl/private: Permission denied
grep: /etc/denyhosts.conf: Permission denied
grep: /etc/ppp/pap-secrets: Permission denied
grep: /etc/ppp/chap-secrets: Permission denied
/etc/bash_completion.d/xm:        dump-core list mem-max mem-set migrate pause reboot rename reset \
/etc/bash_completion.d/xm:                reboot)
/etc/bash_completion.d/xm:                pause|reboot|rename|shutdown|unpause|vcpu-list|vcpu-pin| \
/etc/bash_completion.d/qemu:            -s -p -S -d -hdachs -L -std-vga -no-acpi-no-reboot -loadvm \
/etc/bash_completion.d/grub:# grub-set-default & grub-reboot
/etc/bash_completion.d/grub:__grub_reboot_program=$( echo grub-reboot | sed "s,x,x," )
/etc/bash_completion.d/grub:have ${__grub_reboot_program} && \
/etc/bash_completion.d/grub: complete -F _grub_set_entry -o filenames ${__grub_reboot_program}
/etc/bash_completion.d/grub:unset __grub_reboot_program
/etc/blkid.conf:# udev-based systems should not store the cache over a reboot, so we
/etc/rc3.d/S75sudo:     # make sure privileges don't persist across reboots
grep: /etc/passwd-: Permission denied
grep: /etc/blkid.tab: No such file or directory
/etc/update-motd.d/98-fsck-at-reboot:if [ -x /usr/lib/update-notifier/update-motd-fsck-at-reboot ]; then
/etc/update-motd.d/98-fsck-at-reboot:    exec /usr/lib/update-notifier/update-motd-fsck-at-reboot
/etc/update-motd.d/98-reboot-required:if [ -x /usr/lib/update-notifier/update-motd-reboot-required ]; then
/etc/update-motd.d/98-reboot-required:    exec /usr/lib/update-notifier/update-motd-reboot-required
/etc/rcS.d/S55urandom:#                    It is called from the boot, halt and reboot scripts.
grep: /etc/ufw/before6.rules: Permission denied
grep: /etc/ufw/after.rules: Permission denied
grep: /etc/ufw/before.rules: Permission denied
grep: /etc/ufw/after6.rules: Permission denied
grep: /etc/gshadow: Permission denied
grep: /etc/webmin/pptp-client: Permission denied
grep: /etc/webmin/* Permission denied

Как - это — atq — выполнить из по root-а не понял? :(

old
() автор топика
Ответ на: комментарий от mky

cron main process (2165) killed by KILL signal

Да руками убивал cron :) Наивно пологая, что время продлиться :(
В общем эксперементировал!
На счёт аппаратных я тоже думал но в какой именно железяке проблема пока не понимаю :(
Всё дело в то, что вся эта конструкция работала стабильно более двух месяцев и ребутилась руками за пару раз по необходимости

old
() автор топика
Ответ на: комментарий от outsider

grep -r reboot /etc

/etc/webmin/init/config:reboot_command=reboot
/etc/webmin/package-updates/available.cache: 'desc' => 'automatically email a list of admins when a system reboots',
/etc/webmin/package-updates/available.cache: 'desc' => 'manage post-m ount/pre-unmount scripts for tmpfs across reboot',
/etc/webmin/package-updates/available.cache: 'desc' => 'GRand Unified Bootloader, version 2 (Coreboot version)',
/etc/webmin/package-updates/available.cache: 'name' => 'grub-coreboot',
/etc/webmin/package-updates/available.cache: 'update' => 'grub-coreboot'
/etc/webmin/package-updates/available.cache: 'desc' => 'GRand Unified Bootloader, version 2 (Coreboot binaries)',
/etc/webmin/package-updates/available.cache: 'name' => 'grub-coreboot-bin',
/etc/webmin/package-updates/available.cache: 'update' => 'grub-coreboot-bin'
/etc/webmin/package-updates/available.cache: 'name' => 'grub-coreboot-bin:i386',
/etc/webmin/package-updates/available.cache: 'update' => 'grub-coreboot-bin:i386'
/etc/webmin/package-updates/available.cache: 'name' => 'grub-coreboot:i386',
/etc/webmin/package-updates/available.cache: 'update' => 'grub-coreboot:i386'
/etc/webmin/package-updates/available.cache: 'desc' => 'tools to support fast kexec reboots',
/etc/webmin/package-updates/available.cache: 'desc' => 'Patching live kernel without having to reboot',
/etc/webmin/package-updates/available.cache: 'desc' => 'do unattended reboots with an encrypted root file system',
/etc/webmin/package-updates/available.cache: 'desc' => 'protects mach ines from accidental shutdowns/reboots',
/etc/webmin/package-updates/available.cache: 'desc' => 'Read/write co reboot-related NVRAM/CMOS information',
/etc/webmin/package-updates/available.cache: 'desc' => 'Qt program to shutdown/reboot/suspend/hibernate the system',
/etc/webmin/package-updates/available.cache: 'desc' => 'legacy BIOS i mplementation which can be used as a coreboot payload',
/etc/webmin/package-updates/available.cache: 'name' => 'secureboot-db',
/etc/webmin/package-updates/available.cache: 'update' => 'secureboot-db'
/etc/webmin/package-updates/available.cache: 'name' => 'secureboot-db:i386',
/etc/webmin/package-updates/available.cache: 'update' => 'secureboot-db:i386'
/etc/webmin/package-updates/available.cache: 'desc' => 'show the number of reboots before next forced fsck',
/etc/webmin/package-updates/available.cache: 'desc' => 'dockapp to shutdown or reboot your machine',[\code]

Со второй так и не фкурил :(

sudo grep -r atq /etc
/etc/bash_completion.d/gnatmake:           -gnatO -gnatp -gnatP -gnatq -gnatR -g                                              nats \
grep: /etc/blkid.tab: No such file or directory[\code]
old
() автор топика
Ответ на: комментарий от old

atq - это отдельная команда, показывает все отложенные команды, если они есть

sudo grep -R reboot /etc

- что то мало показал, это точно все что там было?

outsider ★★
()
Последнее исправление: outsider (всего исправлений: 1)
Ответ на: комментарий от mky
″cat /proc/sys/kernel/panic″ и ″sudo grep -r sysrq-trigger /etc″

Пусто :(

old
() автор топика

а перезагрузка в каком смысле?

штатное завершение работы, или типа как экран гаснет черным и потом биос

ii343hbka ★★★
()
Ответ на: комментарий от tazhate

System uptime 1 hours, 27 minutes

Бесконечные ребуты закончились :)
Вопросы все = остались
Что сделал:
Отключил в БИВисе аудио драйвер+флопик (БреДятина и ужас скока времени потрачено)
На данный момент времени System uptime 1 hours, 27 minutes
Дальше буду наблюдать!
Всем спасибо!
ps/ Если есть какие мысли с удовольствием выслушаю

old
() автор топика
21 июня 2013 г.

Ubuntu Server каждый час перезагружается!

Так у тебя пиратская версия. Она небось ещё обои менять не даёт, игрухи не шпилят?

Alve ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.