Issue Details (XML | Word | Printable)

Key: BAM-933
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Rich Dredge
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Bamboo

Export and Import doesn't work when moving to a new Bamboo Home path

Created: 28/Feb/07 10:19 AM   Updated: 06/Mar/07 08:08 PM
Component/s: Administration (General)
Affects Version/s: 1.0
Fix Version/s: 1.0.1

Time Tracking:
Not Specified

Participants: Edwin Wong [Atlassian] and Rich Dredge
Since last comment: 1 year, 38 weeks, 5 days ago
Number of comments: 5
Internal Priority: 1. Highest
Labels:


 Description  « Hide
I tried migrating a Bamboo installation from one server to another. One server's bamboo home was set to "/home/appuser/bamboo/Bamboo". On the other server that I tried importing on, the bamboo home is /local/bamboo/Bamboo". After running the import on the new server, when trying to do a build. I get the following error:

28-Feb-2007 10:30:31 The source code directory (/home/​appuser/​bamboo/​Bamboo/​xml-data/​build-dir/​ IRISWEB-IRISWEBPLAN) for build "Iris-Web - Iris Web Plan" does not exist, requires full checkout.
28-Feb-2007 10:30:33 Failed to get the build source code:Failed to get source code
28-Feb-2007 10:34:11 Processing request to build 'Iris-Web - Iris Web Plan' with reason 'Manual build'
28-Feb-2007 10:46:03 Processing request to build 'Iris-Web - Iris Web Plan' with reason 'Manual build'
28-Feb-2007 10:53:29 The source code directory (/home/​appuser/​bamboo/​Bamboo/​xml-data/​build-dir/​ IRISWEB-IRISWEBPLAN) for build "Iris-Web - Iris Web Plan" does not exist, requires full checkout.
28-Feb-2007 10:53:33 Failed to get the build source code:Failed to get source code
28-Feb-2007 10:53:35 Processing request to build 'Iris-Web - Iris Web Plan' with reason 'Manual build'
Edit Plan

The /home/appuser directory doesn't exist on the new box.... it needs to be using the directory /local/bamboo/Bamboo... folder.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Rich Dredge added a comment - 28/Feb/07 10:22 AM
here is the actual stacktrace in the error log:

com.atlassian.bamboo.repository.RepositoryException: Failed to get source code
at com.atlassian.bamboo.repository.svn.SvnRepository.getAllSourceCode(SvnRepository.java:405)
at com.atlassian.bamboo.build.DefaultBuildChangeDetector.getCleanBuild(DefaultBuildChangeDetector.java:257)
at com.atlassian.bamboo.build.DefaultBuildChangeDetector.checkIfBuildNeedsBuilding(DefaultBuildChangeDetector.java:160)
at com.atlassian.bamboo.build.DefaultBuildChangeDetector.doTask(DefaultBuildChangeDetector.java:114)
at com.atlassian.bamboo.build.DefaultBuildChangeDetector.run(DefaultBuildChangeDetector.java:77)
at edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34)
at java.lang.Thread.run(Thread.java:595)
Caused by: com.atlassian.bamboo.repository.RepositoryException: Failed to get source code
at com.atlassian.bamboo.repository.svn.SvnRepository.checkout(SvnRepository.java:605)
at com.atlassian.bamboo.repository.svn.SvnRepository.getAllSourceCode(SvnRepository.java:399)
... 6 more
Caused by: org.tmatesoft.svn.core.SVNException: svn: Cannot create new file '/home/appuser/bamboo/Bamboo/xml-data/build-dir/IRISWEB-IRISWEBPLAN/.svn/lock'
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:48)
at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.createEmptyFile(SVNFileUtil.java:110)
at org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea14.createVersionedDirectory(SVNAdminArea14.java:1355)
at org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea14Factory.doCreateVersionedDirectory(SVNAdminArea14Factory.java:36)
at org.tmatesoft.svn.core.internal.wc.admin.SVNAdminAreaFactory.createVersionedDirectory(SVNAdminAreaFactory.java:181)
at org.tmatesoft.svn.core.internal.wc.admin.SVNAdminAreaFactory.createVersionedDirectory(SVNAdminAreaFactory.java:188)
at org.tmatesoft.svn.core.wc.SVNUpdateClient.doCheckout(SVNUpdateClient.java:321)
at com.atlassian.bamboo.repository.svn.SvnRepository.checkout(SvnRepository.java:599)


Edwin Wong [Atlassian] added a comment - 05/Mar/07 02:14 AM
Hi Rich,

We are looking at this and should have a fix shortly.

Cheers,
Edwin


Edwin Wong [Atlassian] added a comment - 05/Mar/07 02:17 AM
Rich,

Futher to this, would you like to go to your System Info screen under Administration and tell us where the: Configuration Path, Build Path, and Bamboo home are?

Thanks,
Edwin


Edwin Wong [Atlassian] added a comment - 05/Mar/07 10:03 PM
After some more extensive testing, an issue is found in the import code which caused the build working directory to be saved incorrectly. This will be resolved in the next release.

Cheers,
Edwin


Rich Dredge added a comment - 06/Mar/07 08:08 PM
Thanks Edwin, I ended up just rebuilding my projects from scratch... I appreciate your help!