I have seen this issue reported a couple of times. On each occasion it was resolved by a clean install of Raspbian, followed by an install of CODESYS for Raspberry Pi and running the install script that installed as part of CODESYS for UniPi (See the data sheet for install instructions).
L