failure to clear the log is an indication that file system permissions are not correct. It can no longer write to the log file so it cannot clear the log.
The /Data folder and all child folders and files as well as the /App_Data folder all need to be writable by the user that is the identity oin the application pool.