Make sure the log dir is writable