Problem using OpenUpgrade on a 6.1 Database

Asked by Sylvain LE GAL (GRAP)

Hi

after the execution of the migration script migrate.py 6.1 to 7 openupgrade I got the following errors, please help to solve the problem.

updating 6.1/web rev2538
Traceback (most recent call last):
  File "./migrate.py", line 268, in <module>
    dir=os.path.join(options.branch_dir, version, name))
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 1791, in run
    show_base=show_base)
  File "/usr/lib/python2.7/dist-packages/bzrlib/workingtree.py", line 1473, in update
    return self._update_tree(old_tip, change_reporter, revision, show_base)
  File "/usr/lib/python2.7/dist-packages/bzrlib/mutabletree.py", line 52, in tree_write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/workingtree.py", line 1522, in _update_tree
    to_tree = self.branch.repository.revision_tree(revision)
  File "<string>", line 4, in revision_tree_read_locked
  File "/usr/lib/python2.7/dist-packages/bzrlib/vf_repository.py", line 1839, in revision_tree
    inv = self.get_inventory(revision_id)
  File "<string>", line 4, in get_inventory_read_locked
  File "/usr/lib/python2.7/dist-packages/bzrlib/vf_repository.py", line 1732, in get_inventory
    return self.iter_inventories([revision_id]).next()
  File "/usr/lib/python2.7/dist-packages/bzrlib/vf_repository.py", line 1750, in iter_inventories
    for inv, revid in self._iter_inventories(revision_ids, ordering):
  File "/usr/lib/python2.7/dist-packages/bzrlib/repofmt/groupcompress_repo.py", line 982, in _iter_inventories
    for record in stream:
  File "/usr/lib/python2.7/dist-packages/bzrlib/groupcompress.py", line 1456, in get_record_stream
    orig_keys, ordering, include_delta_closure):
  File "/usr/lib/python2.7/dist-packages/bzrlib/groupcompress.py", line 1617, in _get_remaining_record_stream
    for factory in batcher.yield_factories(full_flush=True):
  File "/usr/lib/python2.7/dist-packages/bzrlib/groupcompress.py", line 1170, in yield_factories
    block_read_memo, block = blocks.next()
  File "/usr/lib/python2.7/dist-packages/bzrlib/groupcompress.py", line 1412, in _get_blocks
    zdata = raw_records.next()
  File "/usr/lib/python2.7/dist-packages/bzrlib/repofmt/pack_repo.py", line 2043, in get_raw_records
    for names, read_func in reader.iter_records():
  File "/usr/lib/python2.7/dist-packages/bzrlib/pack.py", line 279, in iter_records
    self._read_format()
  File "/usr/lib/python2.7/dist-packages/bzrlib/pack.py", line 320, in _read_format
    format = self._read_line()
  File "/usr/lib/python2.7/dist-packages/bzrlib/pack.py", line 247, in _read_line
    line = self._source.readline()
  File "/usr/lib/python2.7/dist-packages/bzrlib/pack.py", line 210, in readline
    self._next()
  File "/usr/lib/python2.7/dist-packages/bzrlib/pack.py", line 195, in _next
    offset, data = self.readv_result.next()
  File "/usr/lib/python2.7/dist-packages/bzrlib/transport/http/__init__.py", line 201, in _readv
    for cur_coal, rfile in self._coalesce_readv(relpath, coalesced):
  File "/usr/lib/python2.7/dist-packages/bzrlib/transport/http/__init__.py", line 293, in _coalesce_readv
    for c, rfile in get_and_yield(relpath, ranges):
  File "/usr/lib/python2.7/dist-packages/bzrlib/transport/http/__init__.py", line 256, in get_and_yield
    code, rfile = self._get(relpath, coalesced)
  File "/usr/lib/python2.7/dist-packages/bzrlib/transport/http/_urllib.py", line 120, in _get
    response = self._perform(request)
  File "/usr/lib/python2.7/dist-packages/bzrlib/transport/http/_urllib.py", line 76, in _perform
    response = self._opener.open(request)
  File "/usr/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/dist-packages/bzrlib/transport/http/_urllib2_wrappers.py", line 1806, in http_response
    code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/transport/http/_urllib2_wrappers.py", line 1819, in http_error_default
    ' for %s' % req.get_full_url())
bzrlib.errors.TransportError: Transport error: Server refuses to fulfill the request (403 Forbidden) for http://bazaar.launchpad.net/~openerp/openerp-web/6.1/.bzr/repository/packs/8ee230de30708416187f6e5c0f80bb11.pack

Thanks for your attention.

Question information

Language:
English Edit question
Status:
Solved
For:
OpenUpgrade Server Edit question
Assignee:
No assignee Edit question
Solved by:
Stefan Rijnhart (Opener)
Solved:
Last query:
Last reply:
Revision history for this message
Best Stefan Rijnhart (Opener) (stefan-opener) said :
#1

Thanks for the bugfix. Someone else reported and fixed it too, here: https://bugs.launchpad.net/openupgrade-server/+bug/1191827

Q1: See https://code.launchpad.net/~therp-nl/openupgrade-server/7.0-do_not_raise_premature_view_errors/+merge/150076 for more info

Q2: Yes, we need to develop a module that facilitates controlled removal of unused columns and tables. Wanted but not planned.

Q3: Upgrade related columns need to be available for migration scripts of other modules that have such a module as a dependency, and for debugging purposes. For cleanup, same as Q2.

Revision history for this message
Sylvain LE GAL (GRAP) (sylvain-legal) said :
#2

Thanks Stefan Rijnhart (Therp), that solved my question.