UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 273: ordinal not in range(128)"./var/log/vmware/vmware-updatemgr/vum-server/hostUpgradeVMware Update Manager 6.5
As per the above example, the script tries to read /etc/passwd file and fails with "UnicodeDecodeError error".
Open an SSH session to the ESXi host and check the passwd file under /etc/passwd
Example:[root@hostname:~] cat /etc/passwdroot:x:0:0:Administrator:/:/bin/shdaemon:x:2:2:System daemons:/:/sbin/nologinnfsnobody:x:65534:65534:Anonymous NFS User:/:/sbin/nologindcui:x:100:100:DCUI User:/:/sbin/nologinvpxuser:x:500:100:VMware VirtualCenter administration account:/:/bin/shUserID:x:1000:1000:##ÃÂó# #ÃÂÃÂ##:/:/bin/shUserID:x:1001:1001:Example User1:/:/bin/shUserID:x:1002:1002:Example User2:/:/bin/shUserID:x:1003:1003:Example User3:/:/bin/sh
In the above output, there are some invalid characters after the line "vpxuser:x:500:100:VMware VirtualCenter administration account:/:/bin/sh".
To resolve this issue:
/etc/passwd file and take out the lines which have the invalid characters or Edit the file to have the default configurations like the below.Note: Make sure you backup the file before editing.
Edit the file with the command : vi /etc/passwd
root:x:0:0:Administrator:/:/bin/shdaemon:x:2:2:System daemons:/:/sbin/nologinnfsnobody:x:65534:65534:Anonymous NFS User:/:/sbin/nologindcui:x:100:100:DCUI User:/:/sbin/nologinvpxuser:x:500:100:VMware VirtualCenter administration account:/:/bin/sh
2. Once the changes are made, re-run the scan and it should be successful.