콘텐츠로 이동

재부팅 처리

워크스페이스 컨테이너는 호스트 재부팅 후 자동으로 재시작되지 않습니다.

재부팅 후 LabPod이 시작되면 조정자(reconciler)가 호스트 부팅 ID가 바뀐 것을 감지하고 다음과 같이 처리합니다:

  1. 재부팅 전에 running 상태였던 워크스페이스를 모두 Stopped after host restart (stopped_by_host_restart) 상태로 표시합니다. 직접 중지했을 때의 일반 중지 상태와는 다른 상태입니다.
  2. 워크스페이스마다 workspace.reconcile_stopped_by_host_restart 감사 로그 항목을 남기고, 상세 정보에 host_rebooted: true 필드를 기록합니다.
  3. 사용자 화면에는 워크스페이스가 Stopped after host restart로 표시되며 Resume 버튼을 누르면 다시 시작합니다.

메모리에 있던 상태는 사라집니다: Jupyter 커널, 실행 중인 학습 프로세스, 터미널 세션은 재부팅하면 남지 않습니다. 하지만 /work(~/work를 bind 마운트한 경로)에 저장한 작업은 모두 유지됩니다.

Terminal window
# 1. Confirm the service is running
sudo systemctl status labpod
# 2. Check the API is responding
curl -s http://127.0.0.1:24680/api/version
# 3. In the UI: verify that previously-running workspaces show
# "Stopped after host restart" with a matching audit entry.
Terminal window
# Run these as root
# 1. Confirm the service is running
systemctl status labpod
# 2. Check the API is responding
curl -s http://127.0.0.1:24680/api/version
# 3. In the UI: verify that previously-running workspaces show
# "Stopped after host restart" with a matching audit entry.

재부팅 후 시작이 실패하는 경우

섹션 제목: “재부팅 후 시작이 실패하는 경우”

워크스페이스 소유자의 루트리스 Podman이 여전히 올바르게 설정되어 있는지 확인하세요:

Terminal window
# 1. Verify user linger is enabled
sudo loginctl show-user <username> | grep Linger
# Should show: Linger=yes
# 2. List the user's containers
sudo runuser -u <username> -- podman ps -a --filter name=labpod-ws-<id>
# 3. Check container logs for the failed start
sudo runuser -u <username> -- podman logs labpod-ws-<id>
Terminal window
# Run these as root
# 1. Verify user linger is enabled
loginctl show-user <username> | grep Linger
# Should show: Linger=yes
# 2. List the user's containers
runuser -u <username> -- podman ps -a --filter name=labpod-ws-<id>
# 3. Check container logs for the failed start
runuser -u <username> -- podman logs labpod-ws-<id>

재부팅 후 흔한 원인은 다음과 같습니다:

  • Linger가 설정되지 않음: sudo loginctl enable-linger <username>을 실행한 뒤 다시 시도하세요.
  • 이미지가 정리됨: Podman이 이미지를 찾지 못한 경우입니다. 이미지를 다시 pull할 때까지 워크스페이스 시작이 실패하며 오류는 워크스페이스 상세 페이지에 표시됩니다.
  • 포트 충돌: LabPod이 관리하는 풀에서 포트를 할당하므로 드뭅니다.

재부팅한 뒤에는 sudo labpod admin doctor를 실행해 전체 상태를 점검하세요.