has anyone else run into a problem like this?  my build system runs some 
scripts which depend on the existence of the injectedEnvVars.txt created by 
jenkins.  users reported that that sometimes, some of these files would 
mysteriously become 0-length.  the files had the correct content initially, 
but somehow hours, days, or weeks after the build, the files became 
truncated.  there was no obvious rhyme or reason to the builds that were 
affected.  sometimes, it'd be one build seemingly struck at random in the 
middle of a series of builds.

the file system has plenty of space.  i also checked the system logs but 
found no related messages.  also, i have found no evidence of any files 
other than injectedEnvVars.txt getting clobbered this way.

to investigate the problem, i started running a cronjob to scan the jobs 
directory for such files.  the cronjob would run every 30 mins and report 
any "new" truncated injectedEnvVars.txt files.  once this cronjob had been 
running for awhile, i noticed an interesting pattern.  that the newly 
truncated files tended to show only on the cron iterations at 6-hour 
intervals.  (eg, 00:30, 06:30, 12:30, 18:30).

later i realized that the jenkins "disk usage" calculation was also 
scheduled for 6-hour intervals (00:00, 06:00, 12:00, 18:00).  as an 
experiment, i tried shifting the schedule of the disk usage calculation by 
3 hours.  result: the times when the truncated files appeared, also shifted 
by 3 hours.

my next experiment was to disable the disk usage calculation altogether.  
no new truncated files have appeared since then.

to me the evidence suggests that the jenkins "disk usage" calculation is 
somehow causing these "random" truncations of injectedEnvVars.txt files.

we are running jenkins v 1.607.

suggestions?






-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/7fe8b6cc-714d-4c07-8a66-52a7ee1576a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to