I installed jenkins as a service and used the default settings.
I solved the same problem for Windows.
if you work as a service and the default home directory (c: / program files (x86) / jenkins /) you need to change the path to another regular folder (ex.c: / jenkins / ").
SET JENKINS_HOME=c:\jenkins\
source
share