Project

General

Profile

Actions

개발 #14

closed

운영서버 에러처리

Added by 개발팀 이석화 about 1 year ago. Updated about 1 year ago.

Status:
완료
Priority:
보통
Start date:
10/31/2024
Due date:
11/01/2024
% Done:

100%

Estimated time:
8:00 h
Actions #1

Updated by 개발팀 이석화 about 1 year ago

10g-idc 서버에서 에러처리

  • 원인 = 서버에서 apt update, apt upgrade 완료 후 서비스 재시작 중에 반응없음

  • 처리 = mariadb 가 시작되지 않음, service mariadb status 입력시 shutdown 완료되었다고 출력됨
    시스템 reboot (재시작까지 약 40분 걸림)

  • 보완 = mariadb 재시작이 안될경우 process kill 을 사용하여 죽인후 mariadb 재시작을 시도해야 한다.

  • 보완2 = 프로세스 및 서비스 종료 후 여전히 reboot 가 필요한 경우 reboot -f 를 사용한다


로그확인 결과

  • 재부팅에 약 40분 걸리는 원인 = 시스템 종료에 시간이 오래 걸렸음
    2024-10-31 16:24:34 = 시스템 종료 시작 (syslog)
    2024-10-31 16:54:34 = 시스템 강제 재부팅 (journalctl)
    2024-10-31 16:57:36 = 커널 시작 (kern.log)

  • 로그에서 종료되었다고 출력되지 않은 서비스 목록 (systemd 프로세스 제외)

    • apparmor
    • mariadb
    • nftables
  • 문제발생 당시 apparmor 가 named 의 요청을 거부함

Oct 31 16:05:11 thepowerbrains kernel: audit: type=1400 audit(1730358311.819:245): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="rsyslogd" pid=3724552 comm="apparmor_parser"
Oct 31 16:05:50 thepowerbrains kernel: audit: type=1400 audit(1730358350.991:246): apparmor="DENIED" operation="open" class="file" profile="named" name="/proc/version_signature" pid=3734052 comm="named" requested_mask="r" denied_mask="r" fsuid=105 ouid=0
Oct 31 16:05:50 thepowerbrains kernel: audit: type=1400 audit(1730358350.991:247): apparmor="DENIED" operation="capable" class="cap" profile="named" pid=3734052 comm="named" capability=21  capname="sys_admin"
Oct 31 16:20:56 thepowerbrains kernel: audit: type=1400 audit(1730359256.860:248): apparmor="DENIED" operation="open" class="file" profile="named" name="/proc/version_signature" pid=3738300 comm="named" requested_mask="r" denied_mask="r" fsuid=105 ouid=0
Oct 31 16:20:56 thepowerbrains kernel: audit: type=1400 audit(1730359256.877:249): apparmor="DENIED" operation="capable" class="cap" profile="named" pid=3738300 comm="named" capability=21  capname="sys_admin"
Actions

Also available in: Atom PDF