migration from 6.1 to 7.0 failing

Asked by izme

i am trying to migrate from 6.1 to 7.0 and the migrate.py is failing with below error
any idea how i can fix and get going ,

----------------------------------------
now at rev4186
getting lp:openupgrade-addons/7.0
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
Traceback (most recent call last):
  File "migrate.py", line 195, in <module>
    name), lightweight=True)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 1328, in run
    accelerator_tree, hardlink)
  File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 1334, in create_checkout
    hardlink=hardlink)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1614, in create_workingtree
    accelerator_tree=accelerator_tree, hardlink=hardlink)
  File "/usr/lib/python2.6/dist-packages/bzrlib/workingtree_4.py", line 1462, in initialize
    delta_from_tree=delta_from_tree)
  File "/usr/lib/python2.6/dist-packages/bzrlib/transform.py", line 2253, in build_tree
    delta_from_tree)
  File "/usr/lib/python2.6/dist-packages/bzrlib/transform.py", line 2346, in _build_tree
    accelerator_tree, hardlink)
  File "/usr/lib/python2.6/dist-packages/bzrlib/transform.py", line 2412, in _create_files
    tree.iter_files_bytes(new_desired_files)):
  File "/usr/lib/python2.6/dist-packages/bzrlib/revisiontree.py", line 81, in iter_files_bytes
    for result in self._repository.iter_files_bytes(repo_desired_files):
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 2199, in iter_files_bytes
    for record in self.texts.get_record_stream(text_keys, 'unordered', True):
  File "/usr/lib/python2.6/dist-packages/bzrlib/groupcompress.py", line 1413, in get_record_stream
    orig_keys, ordering, include_delta_closure):
  File "/usr/lib/python2.6/dist-packages/bzrlib/groupcompress.py", line 1564, in _get_remaining_record_stream
    for factory in batcher.yield_factories():
  File "/usr/lib/python2.6/dist-packages/bzrlib/groupcompress.py", line 1130, in yield_factories
    block_read_memo, block = blocks.next()
  File "/usr/lib/python2.6/dist-packages/bzrlib/groupcompress.py", line 1369, in _get_blocks
    zdata = raw_records.next()
  File "/usr/lib/python2.6/dist-packages/bzrlib/knit.py", line 3371, in get_raw_records
    for names, read_func in reader.iter_records():
  File "/usr/lib/python2.6/dist-packages/bzrlib/pack.py", line 290, in _iter_records
    for record in self._iter_record_objects():
  File "/usr/lib/python2.6/dist-packages/bzrlib/pack.py", line 295, in _iter_record_objects
    record_kind = self.reader_func(1)
  File "/usr/lib/python2.6/dist-packages/bzrlib/pack.py", line 236, in reader_func
    return self._source.read(length)
  File "/usr/lib/python2.6/dist-packages/bzrlib/pack.py", line 192, in read
    self._next()
  File "/usr/lib/python2.6/dist-packages/bzrlib/pack.py", line 187, in _next
    offset, data = self.readv_result.next()
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/__init__.py", line 249, in _readv
    rfile.seek(start, 0)
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/response.py", line 268, in seek
    self._seek_to_next_range()
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/response.py", line 191, in _seek_to_next_range
    self.read_boundary()
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/response.py", line 122, in read_boundary
    % (self._boundary, boundary_line))
bzrlib.errors.InvalidHttpResponse: Invalid http response for http://bazaar.launchpad.net/~openupgrade-committers/openupgrade-addons/7.0/.bzr/repository/packs/ee574760d528e40047e4345f57518546.pack: Expected a boundary (FYlGp:?XZGb=22y)RX1e) line, got ''
root@debian:/home/debian/Downloads#
--------------------------------

thanks

Question information

Language:
English Edit question
Status:
Answered
For:
OpenUpgrade Server Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

  • by izme
Revision history for this message
Holger Brunn (Therp) (hbrunn) said :
#1

This looks a lot like some temporary error with launchpad. Did you try again after a while?

Revision history for this message
izme (afsaroon) said :
#2

ok
i managed to go a little further to below error
any help appriciated

------------------
updating 7.0/addons rev8162
Tree is up to date at revision 8162 of branch http://bazaar.launchpad.net/~openupgrade-committers/openupgrade-addons/7.0
now at rev8162
updating 7.0/server rev4651
Traceback (most recent call last):
  File "scripts/migrate.py", line 181, in <module>
    name))
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 1386, in run
    tree = WorkingTree.open_containing(dir)[0]
  File "/usr/lib/python2.6/dist-packages/bzrlib/workingtree.py", line 345, in open_containing
    return control.open_workingtree(), relpath
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1759, in open_workingtree
    format = WorkingTreeFormat.find_format(self)
  File "/usr/lib/python2.6/dist-packages/bzrlib/workingtree.py", line 2804, in find_format
    raise errors.NoWorkingTree(base=transport.base)
bzrlib.errors.NoWorkingTree: No WorkingTree exists for "file:///var/tmp/openupgrade/7.0/server/.bzr/checkout/".
root@debian:/home/debian/openupgrade-server#
----------------------------------

Revision history for this message
Holger Brunn (Therp) (hbrunn) said :
#3

that should be leftovers from your previous try:

rm -rf /var/tmp/openupgrade

Revision history for this message
izme (afsaroon) said :
#4

Many thanks Holger Brunn .
rm -rf /var/tmp/openupgrade helped me get started
but another error again

thanks again

---------------------
copying database PG to PG_migrated...
Traceback (most recent call last):
  File "scripts/migrate.py", line 200, in <module>
    conn = psycopg2.connect(**conn_parms)
ValueError: invalid literal for int() with base 10: 'False'
-------------------------

Revision history for this message
Holger Brunn (Therp) (hbrunn) said :
#5

look for a line db_port in your openerp configuration file, this is set to False I think. simply remove the whole line, that won't do any harm to your existing installation. If there are any Falses in other db_* (db_host, db_user, db_password) parameters, remove them too.

Revision history for this message
izme (afsaroon) said :
#6

thanks again for the quick reply

i think its working on the migration now . but the screen reads
----------------
copying database PG to PG_migrated...
Copying the database using 'with template'
Failed, fallback on creating empty database + loading a dump
-----------------

will this be a problem ?

Revision history for this message
izme (afsaroon) said :
#8

also am getting error

-----------------
running migration for 6.1
Running as user 'root' is a security risk, aborting.
running migration for 7.0
Running as user 'root' is a security risk, aborting.
debian@debian:~/Downloads/openupgrade-server$
------------------

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

Hi,

You have not to run openupgrade (neither openerp) as root.

Maybe you should read a little more about openerp administration before doing your migration. (just an advice)
you could find informations here : https://doc.openerp.com/7.0/install/linux/ (if you do installation by package) or here https://doc.openerp.com/7.0/contribute/05_developing_modules/ (if you do installation by Bzr / Git).

Regards.

Revision history for this message
izme (afsaroon) said :
#10

when i run migrate without root am getting this error

---------------------
 result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
OperationalError: fe_sendauth: no password supplied
-------------------

Revision history for this message
Jack Chen (jackchen) said :
#11

1. specified a config file include db name,user,password
2. run the migration again.

python migrate.py --config=/path/to/config_file/server.cfg --database=dbname --run-migrations=7.0

Can you help with this problem?

Provide an answer of your own, or ask izme for more information if necessary.

To post a message you must log in.