Bug ID 760556: Running platform_check utility results in 'File exists' error

Last Modified: Sep 14, 2023

Affected Product(s):
BIG-IP TMOS(all modules)

Known Affected Versions:
14.1.0.2, 14.1.0.3, 14.1.0.5, 14.1.0.6, 14.1.2, 14.1.2.1, 14.1.2.2, 14.1.2.3, 14.1.2.4, 14.1.2.5, 14.1.2.6, 14.1.2.7, 14.1.2.8, 14.1.3, 14.1.3.1, 14.1.4, 14.1.4.1, 14.1.4.2, 14.1.4.3, 14.1.4.4, 14.1.4.5, 14.1.4.6, 14.1.5, 14.1.5.1, 14.1.5.2, 14.1.5.3, 14.1.5.4, 14.1.5.6

Opened: Mar 06, 2019

Severity: 4-Minor

Symptoms

When running platform_check utility, you might encounter this error: An unexpected error has occurred: [Errno 17] File exists: '/var/log/platform_check/'

Impact

Cannot run the platform_check utility because of the existing file. This occurs because the later version of the platform_check utility tries to create a directory at that same location, does not consider that existing file as a directory, and hence tries to create a directory on top of that file, which consequently produces that error.

Conditions

-- Running an earlier runs of platform_check that created a file named: /var/log/platform_check. -- Running a later version of the platform_check utility.

Workaround

Log into BIG-IP system as root user to get to bash. Then delete that file as follows: config # rm /var/log/platform_check rm: remove regular empty file '/var/log/platform_check'? y

Fix Information

None

Behavior Change

Guides & references

K10134038: F5 Bug Tracker Filter Names and Tips