일부 서비스가 다시 시작되고 있지만 이유를 알 수 없습니다. Nexus를 실행하는 Ubuntu 20.04.4 서버가 재부팅에 열광했습니다. 새로운 VM이 아니며 한동안 Ubuntu 20.04.4에서 실행되었으며 지난 주에 패치가 적용되었습니다. AWS에서 실행됩니다.
Atlassian Bamboo를 실행하는 새로운 온프레미스 VMWare Ubuntu 20.04.x를 설정한 후 약 8개월 전에 동일한 문제가 발생했습니다. 로그 출력은 Nexus 서비스가 Bamboo 서비스로 대체된다는 점을 제외하면 다음과 거의 동일합니다. 근본 원인을 알 수 없어서 새 가상 머신을 설정하고 다시 시작했습니다. 아직 생산되지 않았으므로 해당 옵션이 있습니다.
이 시점에서는 반복되는 문제일 수 있으므로 근본 원인과 해결 방법을 파악해야 한다고 생각합니다.
원인을 확인할 수 없거나 문제 해결 단계를 진행할 수 없습니다.
이것은 한 시간 분량의 로그 조각이지만 몇 시간 동안은 거의 동일합니다. 이전에 이 문제를 겪은 적이 있거나 이 문제를 조사하는 방법에 대한 조언을 제공할 수 있는 사람이 있습니까?
Aug 2 10:54:01 beta-nexus dbus-daemon[585]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.1989' (uid=0 pid=362880 comm="/usr/bin/hostnamectl " label="unconfined")
Aug 2 10:54:01 beta-nexus systemd[1]: Starting Hostname Service...
Aug 2 10:54:02 beta-nexus dbus-daemon[585]: [system] Successfully activated service 'org.freedesktop.hostname1'
Aug 2 10:54:02 beta-nexus systemd[1]: Started Hostname Service.
Aug 2 10:54:06 beta-nexus dbus-daemon[585]: [system] Activating via systemd: service name='org.freedesktop.PackageKit' unit='packagekit.service' requested by ':1.1991' (uid=0 pid=363670 comm="/usr/bin/gdbus call --system --dest org.freedeskto" label="unconfined")
Aug 2 10:54:06 beta-nexus systemd[1]: Starting PackageKit Daemon...
Aug 2 10:54:06 beta-nexus PackageKit: daemon start
Aug 2 10:54:06 beta-nexus dbus-daemon[585]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Aug 2 10:54:06 beta-nexus systemd[1]: Started PackageKit Daemon.
Aug 2 10:54:11 beta-nexus systemd[1]: Stopping Nexus Service...
Aug 2 10:54:11 beta-nexus nexus[363835]: Shutting down nexus
Aug 2 10:54:14 beta-nexus nexus[363835]: Stopped.
Aug 2 10:54:14 beta-nexus systemd[1]: nexus.service: Succeeded.
Aug 2 10:54:14 beta-nexus systemd[1]: Stopped Nexus Service.
Aug 2 10:54:16 beta-nexus systemd[1]: Starting Nexus Service...
Aug 2 10:54:16 beta-nexus nexus[364093]: Starting nexus
Aug 2 10:54:16 beta-nexus systemd[1]: Started Nexus Service.
Aug 2 10:54:32 beta-nexus systemd[1]: systemd-hostnamed.service: Succeeded.
Aug 2 10:59:12 beta-nexus PackageKit: daemon quit
Aug 2 10:59:12 beta-nexus systemd[1]: packagekit.service: Succeeded.
Aug 2 11:17:01 beta-nexus CRON[364689]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Aug 2 11:24:22 beta-nexus dbus-daemon[585]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.2000' (uid=0 pid=364954 comm="/usr/bin/hostnamectl " label="unconfined")
Aug 2 11:24:22 beta-nexus systemd[1]: Starting Hostname Service...
Aug 2 11:24:22 beta-nexus dbus-daemon[585]: [system] Successfully activated service 'org.freedesktop.hostname1'
Aug 2 11:24:22 beta-nexus systemd[1]: Started Hostname Service.
Aug 2 11:24:27 beta-nexus dbus-daemon[585]: [system] Activating via systemd: service name='org.freedesktop.PackageKit' unit='packagekit.service' requested by ':1.2002' (uid=0 pid=365742 comm="/usr/bin/gdbus call --system --dest org.freedeskto" label="unconfined")
Aug 2 11:24:27 beta-nexus systemd[1]: Starting PackageKit Daemon...
Aug 2 11:24:27 beta-nexus PackageKit: daemon start
Aug 2 11:24:27 beta-nexus dbus-daemon[585]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Aug 2 11:24:27 beta-nexus systemd[1]: Started PackageKit Daemon.
Aug 2 11:24:31 beta-nexus systemd[1]: Stopping Nexus Service...
Aug 2 11:24:31 beta-nexus nexus[365908]: Shutting down nexus
Aug 2 11:24:34 beta-nexus nexus[365908]: Stopped.
Aug 2 11:24:34 beta-nexus systemd[1]: nexus.service: Succeeded.
Aug 2 11:24:34 beta-nexus systemd[1]: Stopped Nexus Service.
Aug 2 11:24:36 beta-nexus systemd[1]: Starting Nexus Service...
Aug 2 11:24:36 beta-nexus nexus[366166]: Starting nexus
Aug 2 11:24:36 beta-nexus systemd[1]: Started Nexus Service.
Aug 2 11:24:53 beta-nexus systemd[1]: systemd-hostnamed.service: Succeeded.
Aug 2 11:29:32 beta-nexus PackageKit: daemon quit
Aug 2 11:29:32 beta-nexus systemd[1]: packagekit.service: Succeeded.
Aug 2 11:31:17 beta-nexus snapd[601]: storehelpers.go:722: cannot refresh: snap has no updates available: "amazon-ssm-agent", "core", "core18", "core20"
Aug 2 11:31:17 beta-nexus snapd[601]: autorefresh.go:539: auto-refresh: all snaps are up-to-date
Aug 2 11:39:45 beta-nexus systemd[1]: Starting Message of the Day...
Aug 2 11:39:46 beta-nexus 50-motd-news[366751]: * Ubuntu ....
Aug 2 11:39:46 beta-nexus systemd[1]: motd-news.service: Succeeded.
Aug 2 11:39:46 beta-nexus systemd[1]: Finished Message of the Day.
Aug 2 11:54:44 beta-nexus dbus-daemon[585]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.2011' (uid=0 pid=367055 comm="/usr/bin/hostnamectl " label="unconfined")
Aug 2 11:54:44 beta-nexus systemd[1]: Starting Hostname Service...
Aug 2 11:54:44 beta-nexus dbus-daemon[585]: [system] Successfully activated service 'org.freedesktop.hostname1'
Aug 2 11:54:44 beta-nexus systemd[1]: Started Hostname Service.
Aug 2 11:54:48 beta-nexus dbus-daemon[585]: [system] Activating via systemd: service name='org.freedesktop.PackageKit' unit='packagekit.service' requested by ':1.2013' (uid=0 pid=367843 comm="/usr/bin/gdbus call --system --dest org.freedeskto" label="unconfined")
Aug 2 11:54:48 beta-nexus systemd[1]: Starting PackageKit Daemon...
Aug 2 11:54:48 beta-nexus PackageKit: daemon start
Aug 2 11:54:48 beta-nexus dbus-daemon[585]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Aug 2 11:54:48 beta-nexus systemd[1]: Started PackageKit Daemon.
Aug 2 11:54:55 beta-nexus systemd[1]: Stopping Nexus Service...
Aug 2 11:54:55 beta-nexus nexus[368017]: Shutting down nexus
Aug 2 11:54:58 beta-nexus nexus[368017]: Stopped.
Aug 2 11:54:58 beta-nexus systemd[1]: nexus.service: Succeeded.
Aug 2 11:54:58 beta-nexus systemd[1]: Stopped Nexus Service.
Aug 2 11:55:00 beta-nexus systemd[1]: Starting Nexus Service...
Aug 2 11:55:00 beta-nexus nexus[368276]: Starting nexus
Aug 2 11:55:00 beta-nexus systemd[1]: Started Nexus Service.
Aug 2 11:55:14 beta-nexus systemd[1]: systemd-hostnamed.service: Succeeded.
이 기사는 원래 stackoverflow에 게시되었지만 여기에 게시하라는 친근한 제안이 있었습니다.
편집: nexus.service 파일을 추가했습니다. 이 문제가 없는 Ubuntu 20.04.4에서 실행되는 다른 두 Nexus 서버와 동일한 것을 확인했습니다.
[Unit]
Description = Nexus Service
After = network.target
[Service]
Type = forking
LimitNOFILE = 65536
WorkingDirectory = /opt/sonatype/nexus
ExecStart = /opt/sonatype/nexus/bin/nexus start
ExecStop = /opt/sonatype/nexus/bin/nexus stop
User = nexus
Group = nexus
Restart = on-abort
[Install]
WantedBy = multi-user.target
편집: 도움이 될 수도 있고 그렇지 않을 수도 있는 추가 정보... 저는 세 개의 Nexus 서버를 가지고 있습니다. 모두 셰프가 관리합니다. 모든 우분투 20.04.4. 하나는 온프레미스 VMWare이고 나머지 두 개는 AWS입니다. VMWare 및 기타 AWS 설정이 제대로 작동합니다. 또한 최근에 Ubuntu 20.04.4로 업그레이드되지 않았지만 지난주에 다른 버전으로 패치가 되었기 때문에 정정해야 합니다.
편집: 나열된 타이머를 추가했습니다 systemctl list-timers
.
NEXT LEFT LAST PASSED UNIT ACTIVATES
Wed 2022-08-03 06:59:48 EDT 1min 4s left Tue 2022-08-02 06:51:03 EDT 24h ago apt-daily-upgrade.timer apt-daily-upgrade.service
Wed 2022-08-03 07:10:24 EDT 11min left Tue 2022-08-02 20:07:47 EDT 10h ago fwupd-refresh.timer fwupd-refresh.service
Wed 2022-08-03 10:19:46 EDT 3h 21min left Wed 2022-08-03 04:04:26 EDT 2h 54min ago ua-timer.timer ua-timer.service
Wed 2022-08-03 14:12:57 EDT 7h left Tue 2022-08-02 14:12:57 EDT 16h ago systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.service
Wed 2022-08-03 16:48:43 EDT 9h left Tue 2022-08-02 18:26:57 EDT 12h ago apt-daily.timer apt-daily.service
Wed 2022-08-03 21:01:28 EDT 14h left Wed 2022-08-03 04:30:02 EDT 2h 28min ago motd-news.timer motd-news.service
Thu 2022-08-04 00:00:00 EDT 17h left Wed 2022-08-03 00:00:37 EDT 6h ago logrotate.timer logrotate.service
Thu 2022-08-04 00:00:00 EDT 17h left Wed 2022-08-03 00:00:37 EDT 6h ago man-db.timer man-db.service
Sun 2022-08-07 03:10:37 EDT 3 days left Sun 2022-07-31 03:10:29 EDT 3 days ago e2scrub_all.timer e2scrub_all.service
Mon 2022-08-08 00:00:00 EDT 4 days left Mon 2022-08-01 00:00:47 EDT 2 days ago fstrim.timer fstrim.service
편집: systemd 로그 조각을 추가했습니다. Dominoes는 동일한 항목으로 시작합니다.
Aug 03 06:36:35 beta-nexus.******.tld dbus-daemon[599]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.365' (uid=0 pid=65537 comm="/usr/bin/hostnamectl " label="unconfined")
Aug 03 06:36:35 beta-nexus.******.tld systemd[1]: Starting Hostname Service...
-- Subject: A start job for unit systemd-hostnamed.service has begun execution
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit systemd-hostnamed.service has begun execution.
--
-- The job identifier is 7793.
Aug 03 06:36:35 beta-nexus.******.tld dbus-daemon[599]: [system] Successfully activated service 'org.freedesktop.hostname1'
Aug 03 06:36:35 beta-nexus.******.tld systemd[1]: Started Hostname Service.
-- Subject: A start job for unit systemd-hostnamed.service has finished successfully
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit systemd-hostnamed.service has finished successfully.
--
-- The job identifier is 7793.
Aug 03 06:36:39 beta-nexus.******.tld dbus-daemon[599]: [system] Activating via systemd: service name='org.freedesktop.PackageKit' unit='packagekit.service' requested by ':1.367' (uid=0 pid=66327 comm="/usr/bin/gdbus call --system --dest org.freedeskto" label="unconfined")
Aug 03 06:36:39 beta-nexus.******.tld systemd[1]: Starting PackageKit Daemon...
-- Subject: A start job for unit packagekit.service has begun execution
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit packagekit.service has begun execution.
--
-- The job identifier is 7861.
Aug 03 06:36:39 beta-nexus.******.tld PackageKit[66330]: daemon start
Aug 03 06:36:39 beta-nexus.******.tld dbus-daemon[599]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Aug 03 06:36:39 beta-nexus.******.tld systemd[1]: Started PackageKit Daemon.
-- Subject: A start job for unit packagekit.service has finished successfully
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit packagekit.service has finished successfully.
--
-- The job identifier is 7861.
Aug 03 06:36:46 beta-nexus.******.tld systemd[1]: Stopping Nexus Service...
-- Subject: A stop job for unit nexus.service has begun execution
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A stop job for unit nexus.service has begun execution.
--
-- The job identifier is 7929.
Aug 03 06:36:46 beta-nexus.******.tld nexus[66504]: Shutting down nexus
Aug 03 06:36:49 beta-nexus.******.tld nexus[66504]: Stopped.
Aug 03 06:36:49 beta-nexus.******.tld systemd[1]: nexus.service: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit nexus.service has successfully entered the 'dead' state.
Aug 03 06:36:49 beta-nexus.******.tld systemd[1]: Stopped Nexus Service.
-- Subject: A stop job for unit nexus.service has finished
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A stop job for unit nexus.service has finished.
--
-- The job identifier is 7929 and the job result is done.
Aug 03 06:36:51 beta-nexus.******.tld systemd[1]: Starting Nexus Service...
-- Subject: A start job for unit nexus.service has begun execution
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit nexus.service has begun execution.
--
-- The job identifier is 7930.
Aug 03 06:36:51 beta-nexus.******.tld nexus[66763]: Starting nexus
Aug 03 06:36:51 beta-nexus.******.tld systemd[1]: Started Nexus Service.
-- Subject: A start job for unit nexus.service has finished successfully
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit nexus.service has finished successfully.
--
-- The job identifier is 7930.
Aug 03 06:37:05 beta-nexus.******.tld systemd[1]: systemd-hostnamed.service: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit systemd-hostnamed.service has successfully entered the 'dead' state.
Aug 03 06:41:44 beta-nexus.******.tld PackageKit[66330]: daemon quit
Aug 03 06:41:44 beta-nexus.******.tld systemd[1]: packagekit.service: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit packagekit.service has successfully entered the 'dead' state.
답변1
packagekit과 관련된 것 같습니다. Nexus는 packagekit이 시작된 후 약 5초 후에 다시 시작됩니다.
이 PID가 무엇인지 알아낼 수 있는지 궁금합니다.
Aug 2 11:54:48 beta-nexus dbus-daemon[585]: ... (uid=0 pid=367843 comm="/usr/bin/gdbus call --system --dest org.freedeskto" label="unconfined")