Can you still SSH into your RPi? If so, check the contents of the /storage/.kodi/userdata/profiles.xml file.
If it's empty, try writing a new one via the nano editor.
Code Display More<profiles> <lastloaded>0</lastloaded> <useloginscreen>false</useloginscreen> <autologin>-1</autologin> <nextIdProfile>1</nextIdProfile> <profile> <id>0</id> <name>Master user</name> <directory pathversion="1">special://masterprofile/</directory> <thumbnail pathversion="1"></thumbnail> <hasdatabases>true</hasdatabases> <canwritedatabases>true</canwritedatabases> <hassources>true</hassources> <canwritesources>true</canwritesources> <lockaddonmanager>false</lockaddonmanager> <locksettings>0</locksettings> <lockfiles>false</lockfiles> <lockmusic>false</lockmusic> <lockvideo>false</lockvideo> <lockpictures>false</lockpictures> <lockprograms>false</lockprograms> <lockgames>false</lockgames> <lockmode>0</lockmode> <lockcode></lockcode> <lastdate></lastdate> </profile> </profiles>
Registered here to left this comment.
Thank you very much for this solution. This is worked for me.
Just inserted config above to my empty config file
My error log was exactly like this: