docwhat / jenkins-job-checker

A stupid simple script to check for problems with job data on disk.
MIT License
1 stars 1 forks source link

jobber.rb --solve fails with Errno:ENOENT #3

Open mgedmin opened 10 years ago

mgedmin commented 10 years ago
$ sudo ruby1.9.1 ~/src/jenkins-job-checker/jobber.rb /var/lib/jenkins/jobs/ivija-my360/ --solve
[sudo] password for mg: 
Scanning: *

**** SOLUTIONS ****
ivija-my360:
 Problem: ORDER: The link builds/19 -> 2014-09-15_19-59-26 is out of order.
 Problem: ORDER: The link builds/20 -> 2014-09-15_23-08-09 is out of order.
 Problem: STOLEN: The date build builds/2013-06-27_06-10-43 had its number stolen by builds/19 -> 2014-09-15_19-59-26
 Problem: STOLEN: The date build builds/2013-07-16_13-56-38 had its number stolen by builds/20 -> 2014-09-15_23-08-09
 Problem: NEXT: The nextBuildNumber is set to 21 but I expected at least 25
 Solving with: Archive out-of-order builds/19 -> 2014-09-15_19-59-26
 Solving with: Archive out-of-order builds/20 -> 2014-09-15_23-08-09
 Solving with: Relink 19 to builds/2013-06-27_06-10-43
 Solving with: Archive newer build builds/2014-09-15_19-59-26
/home/mg/src/jenkins-job-checker/jobber.rb:258:in `archive': No such file or directory - (/var/lib/jenkins/jobs/ivija-my360/builds/2014-09-15_19-59-26, /var/lib/jenkins/jobs/ivija-my360/outOfOrderBuilds/2014-09-15_19-59-26) (Errno::ENOENT)
    from /home/mg/src/jenkins-job-checker/jobber.rb:323:in `block (2 levels) in test_dates_without_numbers'
    from /home/mg/src/jenkins-job-checker/jobber.rb:176:in `call'
    from /home/mg/src/jenkins-job-checker/jobber.rb:176:in `solve'
    from /home/mg/src/jenkins-job-checker/jobber.rb:440:in `block (2 levels) in solve'
    from /home/mg/src/jenkins-job-checker/jobber.rb:438:in `each'
    from /home/mg/src/jenkins-job-checker/jobber.rb:438:in `block in solve'
    from /home/mg/src/jenkins-job-checker/jobber.rb:432:in `each'
    from /home/mg/src/jenkins-job-checker/jobber.rb:432:in `solve'
    from /home/mg/src/jenkins-job-checker/jobber.rb:463:in `run'
    from /home/mg/src/jenkins-job-checker/jobber.rb:475:in 

I've no idea.

mgedmin commented 10 years ago

Re-running gives me no problems:

$ sudo ruby1.9.1 ~/src/jenkins-job-checker/jobber.rb /var/lib/jenkins/jobs/ivija-my360/ --solve
Scanning: *

**** SOLUTIONS ****
ivija-my360:
 Problem: NONUM: The builds/2013-07-16_13-56-38 directory is missing the 20 link.
 Problem: NEXT: The nextBuildNumber is set to 21 but I expected at least 25
 Solving with: Relink 20 to builds/2013-07-16_13-56-38
 Solving with: Reset nextBuildNumber

Found 1 problem jobs.