Home > Mobile >  Jenkins error: Unable to configure handler 'debug_file_handler'
Jenkins error: Unable to configure handler 'debug_file_handler'

Time:12-13

I run Jenkins job that supposes to output the logs artifacts.

post {
    always {
        archiveArtifacts artifacts: 'logs/my-job-name_*.log' , fingerprint: true
    }
}

I got this error in the Console Output

Error in Logging Configuration. Using default configs. Unable to configure handler 'debug_file_handler'

And the artifacts don't created

CodePudding user response:

Someone runs the Jenkins job from the VM terminal with the root user. enter image description here

The root user was the owner of the logs, so the further Jenkins runs (with the user jenkins) couldn't write to this log. I deleted the log folder and it worked out.

  • Related