rocketfuel-setup can't resume if fails to complete

Bug #402187 reported by Scott Evans
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Undecided
Unassigned

Bug Description

After getting really excited that Launchpad is now open source! unfortunately, during my installation attempt something went wrong (I think my ISP had an outage) so the script failed to complete... So I figured that I just needed to re run the script and all would be good to go but I got the following error...

Logging bzr into Launchpad (it's okay if this errors)...
make: *** No rule to make target `install'. Stop.
ERROR: Unable to install apache config appropriately

I resolved this by deleting the lp-branches directory and re running rocketfeul-setup again...

Shared repository with trees (format: 2a)
Location:
  shared repository: lp-branches
Logging bzr into Launchpad (it's okay if this errors)...
Making local branch of Launchpad trunk, this may take a while...

So far so good!

Revision history for this message
Scott Evans (vk7hse) wrote :

I also got the following upon completion of this script... So still don't have a working development branch just yet!

utilities/shhh.py python2.4 bootstrap.py --ez_setup-source=ez_setup.py \
  --download-base=download-cache/dist --eggs=eggs
utilities/shhh.py ./bin/buildout configuration:instance_name=development
utilities/shhh.py make -C sourcecode build PYTHON=python2.4 \
     PYTHON_VERSION=2.4 LPCONFIG=development
make[2]: *** [download-cache] Error 1
make[1]: *** [build] Error 2
make[1]: Entering directory `/home/scott/launchpad/lp-branches/devel/sourcecode'
make[2]: Entering directory `/home/scott/launchpad/lp-sourcedeps/sourcecode/cscvs'
scripts/update-bzr-version-info.sh
Creating bzr-version-info.py at revno 8970
Missing ./download-cache.
Developers: please run utilities/link-external-sourcecode.
make[2]: Leaving directory `/home/scott/launchpad/lp-sourcedeps/sourcecode/cscvs'
make[1]: Leaving directory `/home/scott/launchpad/lp-branches/devel/sourcecode'
make: *** [compile] Error 2
make: Leaving directory `/home/scott/launchpad/lp-branches/devel'

Thank you for using this script. You can improve it for everyone by
committing changes to Launchpad in utilities/rocketfuel-setup.

Please see http://dev.launchpad.net/ for more information on
developing and testing Launchpad, and on submitting changes.

You can use the following commands to manage your Launchpad
development environment:

 rocketfuel-get
    Update your copy of devel and the necessary source
    dependencies, and make sure all source dependencies are properly
    linked in to all the branches you are working on.

 rocketfuel-branch foo
    Create a new branch of LP called "foo" in
    /home/scott/launchpad/lp-branches/foo,
    with all the source dependencies properly linked in.

 rocketfuel-status
    Check each of the branches in /home/scott/launchpad/lp-branches
    and show which of them have uncommitted changes; also check which ones
    have revisions that have not yet landed on trunk.

 rocketfuel-push
    Push all of your branches to Launchpad, so that you have a server-side
    backup of everything.

Happy hacking!

Revision history for this message
Scott Evans (vk7hse) wrote :

Traceback (most recent call last):
  File "./link-external-sourcecode", line 115, in <module>
    options.parent = get_parent(options.target)
  File "./link-external-sourcecode", line 37, in get_parent
    parent_dir = Branch.open(branch_dir).get_parent()
  File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 159, in open
    possible_transports=possible_transports)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 836, in open
    return BzrDir.open_from_transport(t, _unsupported=_unsupported)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 866, in open_from_transport
    redirected)
  File "/usr/lib/python2.6/dist-packages/bzrlib/lazy_import.py", line 125, in __call__
    return obj(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/__init__.py", line 1642, in do_catching_redirections
    return action(transport)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 853, in find_format
    transport, _server_formats=_server_formats)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1788, in find_format
    raise errors.NotBranchError(path=transport.base)
bzrlib.errors.NotBranchError: Not a branch: "/home/scott/launchpad/lp-branches/devel/utilities/".

Revision history for this message
No (11111nonononono-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

I can confirm this. When the branch command is interrupted, it won't resume correctly.

Changed in launchpad:
status: New → Confirmed
Changed in launchpad:
assignee: nobody → Simon Olofsson (simono)
status: Confirmed → In Progress
Revision history for this message
No (11111nonononono-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

The linked branch contains a fix for this. It checks if the branch was successful.

Changed in launchpad:
assignee: Simon Olofsson (simono) → nobody
status: In Progress → Confirmed
Revision history for this message
No (11111nonononono-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

Scott, this is fixed in the latest version of rocketfuel-setup. It would be nice, if you could test it:
- run rocketfuel-setup and abort the branch command, this is when it says: "Making local branch of Launchpad trunk, this may take a while..."
- run rocketfuel-setup once again and you should get a message explaining what to do next

Changed in launchpad:
assignee: nobody → Simon Olofsson (simono)
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.