You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the previous-reboot-cause has a broken symlink, the following back trace is shown in the syslog and system-runing state show degraded. And rebooting the system will not be able to generated a new symlink for the new previous reboot cause.
May 3 22:00:49.145591 sonic INFO determine-reboot-cause[2200]: Traceback (most recent call last):
May 3 22:00:49.145671 sonic INFO determine-reboot-cause[2200]: File "/usr/local/bin/determine-reboot-cause", line 228, in <module>
May 3 22:00:49.145752 sonic INFO determine-reboot-cause[2200]: main()
May 3 22:00:49.145801 sonic INFO determine-reboot-cause[2200]: File "/usr/local/bin/determine-reboot-cause", line 215, in main
May 3 22:00:49.145842 sonic INFO determine-reboot-cause[2200]: os.symlink(REBOOT_CAUSE_HISTORY_FILE, PREVIOUS_REBOOT_CAUSE_FILE)
May 3 22:00:49.145877 sonic INFO determine-reboot-cause[2200]: FileExistsError: [Errno 17] File exists: '/host/reboot-cause/history/reboot-cause-2022_05_03_22_00_49.json' -> '/host/reboot-cause/previous-reboot-cause.json'
Manually made the broken symlink of the previous-reboot-cause file by using "ls /host/previous-reboot-cause -al" to find the soft link destination file and removing the destination file
Reboot the system. the system will be in that state
Check the syslog for the back trace and using "systemctl is-system-running" to check the result
Describe the results you received:
The following is shown in the syslog:
May 3 22:00:49.145591 sonic INFO determine-reboot-cause[2200]: Traceback (most recent call last):
May 3 22:00:49.145671 sonic INFO determine-reboot-cause[2200]: File "/usr/local/bin/determine-reboot-cause", line 228, in <module>
May 3 22:00:49.145752 sonic INFO determine-reboot-cause[2200]: main()
May 3 22:00:49.145801 sonic INFO determine-reboot-cause[2200]: File "/usr/local/bin/determine-reboot-cause", line 215, in main
May 3 22:00:49.145842 sonic INFO determine-reboot-cause[2200]: os.symlink(REBOOT_CAUSE_HISTORY_FILE, PREVIOUS_REBOOT_CAUSE_FILE)
May 3 22:00:49.145877 sonic INFO determine-reboot-cause[2200]: FileExistsError: [Errno 17] File exists: '/host/reboot-cause/history/reboot-cause-2022_05_03_22_00_49.json' -> '/host/reboot-cause/previous-reboot-cause.json'
Description
When the previous-reboot-cause has a broken symlink, the following back trace is shown in the syslog and system-runing state show degraded. And rebooting the system will not be able to generated a new symlink for the new previous reboot cause.
Steps to reproduce the issue:
Describe the results you received:
The following is shown in the syslog:
check the system running state:
Describe the results you expected:
admin@sonic:~$ systemctl is-system-running
running
Output of
show version
:It is the latest code.
Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):
The text was updated successfully, but these errors were encountered: