Bug 422287 - copy-team: Exception in server output after copying team and restarting server
Summary: copy-team: Exception in server output after copying team and restarting server
Status: ASSIGNED
Alias: None
Product: Hudson
Classification: Technology
Component: Core (show other bugs)
Version: 3.1.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Bob Foster CLA
QA Contact: Geoff Waymark CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-21 14:36 EST by Latha Amujuri CLA
Modified: 2013-11-21 16:42 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Latha Amujuri CLA 2013-11-21 14:36:13 EST
Note: This is not reproducible.
- Server with team authorization enabled and 2-3 teams.
- Add cascading jobs to one of the teams with build triggers (build every minute) set in the parent job
- Run CLI copy-team command and copy to a new team
- In the UI, login as sysadmin and check that new team is created successfully and that the jobs have been copied over along with the cascading properties etc.
- Restart server. Following exception in console:
java.io.FileNotFoundException: C:\Users\lamujuri.ST-USERS\.hudson\teams\TeamIDEQA\jobs\TeamIDEQA.BuildParent\builds\2013-11-20_14-37-53\build.xml (The system cannot find the file specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:146)
        at hudson.XmlFile.unmarshal(XmlFile.java:134)
        at hudson.model.Run.<init>(Run.java:265)
        at hudson.model.AbstractBuild.<init>(AbstractBuild.java:207)
        at hudson.model.Build.<init>(Build.java:92)
        at hudson.model.FreeStyleBuild.<init>(FreeStyleBuild.java:39)
        at sun.reflect.GeneratedConstructorAccessor90.newInstance(Unknown Source
)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at hudson.model.AbstractProject.loadBuild(AbstractProject.java:1271)
        at hudson.model.AbstractProject$1.create(AbstractProject.java:331)
        at hudson.model.AbstractProject$1.create(AbstractProject.java:329)
        at hudson.model.RunMap$LazyRunValueCache$1.load(RunMap.java:755)
        at hudson.model.RunMap$LazyRunValueCache$1.load(RunMap.java:749)
        at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(L
ocalCache.java:3599)
        at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2
379)
        at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache
.java:2342)
        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
        at com.google.common.cache.LocalCache.get(LocalCache.java:4000)
        at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
        at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.j
ava:4874)
        at hudson.model.RunMap$LazyRunValueCache.get(RunMap.java:772)
        at hudson.model.RunMap$LazyRunValueCache.access$1900(RunMap.java:736)
        at hudson.model.RunMap$LazyRunValue.getBuild(RunMap.java:1538)
        at hudson.model.RunMap$6.apply(RunMap.java:1733)
        at hudson.model.RunMap$6.apply(RunMap.java:1729)
        at com.google.common.collect.Maps$6.transformEntry(Maps.java:1562)
        at com.google.common.collect.Maps$TransformedEntriesMap$1$1$1.getValue(M
aps.java:1850)
        at com.google.common.collect.Maps$8.transform(Maps.java:3688)
        at com.google.common.collect.Maps$8.transform(Maps.java:3685)
        at com.google.common.collect.TransformedIterator.next(TransformedIterato
r.java:48)
        at java.util.AbstractCollection.toArray(AbstractCollection.java:141)
        at java.util.ArrayList.<init>(ArrayList.java:164)
        at hudson.util.AbstractRunList.<init>(AbstractRunList.java:27)
        at hudson.util.RunList.<init>(RunList.java:79)
        at hudson.util.RunList.fromRuns(RunList.java:83)
        at hudson.model.Job.getBuilds(Job.java:1032)
        at hudson.tasks.LogRotator.perform(LogRotator.java:108)
        at hudson.model.Job.logRotate(Job.java:713)
        at hudson.model.Run.run(Run.java:1520)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
        at hudson.model.ResourceController.execute(ResourceController.java:82)
        at hudson.model.Executor.run(Executor.java:137)

Nov 20, 2013 2:50:13 PM hudson.model.Run <init>
SEVERE: Unable to load Run object.
java.io.FileNotFoundException: C:\Users\lamujuri.ST-USERS\.hudson\teams\TeamIDEQ
A\jobs\TeamIDEQA.BuildParent\builds\2013-11-20_14-36-44\build.xml (The system ca
nnot find the file specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:146)
        at hudson.XmlFile.unmarshal(XmlFile.java:134)
        at hudson.model.Run.<init>(Run.java:265)
        at hudson.model.AbstractBuild.<init>(AbstractBuild.java:207)
        at hudson.model.Build.<init>(Build.java:92)
        at hudson.model.FreeStyleBuild.<init>(FreeStyleBuild.java:39)
        at sun.reflect.GeneratedConstructorAccessor90.newInstance(Unknown Source
)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at hudson.model.AbstractProject.loadBuild(AbstractProject.java:1271)
        at hudson.model.AbstractProject$1.create(AbstractProject.java:331)
        at hudson.model.AbstractProject$1.create(AbstractProject.java:329)
        at hudson.model.RunMap$LazyRunValueCache$1.load(RunMap.java:755)
        at hudson.model.RunMap$LazyRunValueCache$1.load(RunMap.java:749)
        at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(L
ocalCache.java:3599)
        at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2
379)
        at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache
.java:2342)
        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
        at com.google.common.cache.LocalCache.get(LocalCache.java:4000)
        at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
        at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.j
ava:4874)
        at hudson.model.RunMap$LazyRunValueCache.get(RunMap.java:772)
        at hudson.model.RunMap$LazyRunValueCache.access$1900(RunMap.java:736)
        at hudson.model.RunMap$LazyRunValue.getBuild(RunMap.java:1538)
        at hudson.model.RunMap$6.apply(RunMap.java:1733)
        at hudson.model.RunMap$6.apply(RunMap.java:1729)
        at com.google.common.collect.Maps$6.transformEntry(Maps.java:1562)
        at com.google.common.collect.Maps$TransformedEntriesMap$1$1$1.getValue(M
aps.java:1850)
        at com.google.common.collect.Maps$8.transform(Maps.java:3688)
        at com.google.common.collect.Maps$8.transform(Maps.java:3685)
        at com.google.common.collect.TransformedIterator.next(TransformedIterato
r.java:48)
        at java.util.AbstractCollection.toArray(AbstractCollection.java:141)
        at java.util.ArrayList.<init>(ArrayList.java:164)
        at hudson.util.AbstractRunList.<init>(AbstractRunList.java:27)
        at hudson.util.RunList.<init>(RunList.java:79)
        at hudson.util.RunList.fromRuns(RunList.java:83)
        at hudson.model.Job.getBuilds(Job.java:1032)
        at hudson.tasks.LogRotator.perform(LogRotator.java:108)
        at hudson.model.Job.logRotate(Job.java:713)
        at hudson.model.Run.run(Run.java:1520)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
        at hudson.model.ResourceController.execute(ResourceController.java:82)
        at hudson.model.Executor.run(Executor.java:137)
Comment 1 Winston Prakash CLA 2013-11-21 16:30:32 EST
BTW, this could be informational message also. If it stops Hudson from loading a job then it is a bug.

There could be a rare case when a job is started and build directory is created but the jobs terminated due to unknown reason before writing out the build.xml

In that case this build should be ignored and continue to load other builds and the job.
Comment 2 Bob Foster CLA 2013-11-21 16:38:49 EST
Latha, was TeamIDEQA.BuildParent in the from team or the to team?
Comment 3 Latha Amujuri CLA 2013-11-21 16:42:13 EST
Bob, it was in the from team. It was copied from team IDEQA to TeamIDEQA