bazaar fails on golang project: Internal Server Error 500

Paulo Janotti's Avatar

Paulo Janotti

13 Feb, 2019 03:47 AM

Recently I dependency that requires bazaar was added to the golang project, at first it started to fail because bzr was not found. I added it using "choco install bzr" plus "refreshenv" so it could pick up it from the path. However, the attempts to run bzr are failing with:

go:[email blocked].0-20140225173054-000000000087: bzr branch --use-existing-dir . in c:\gopath\pkg\mod\cache\vcs\f46ce2ae80d31f9b0a29099baa203e3b6d269dace4e5357a2cf74bd109e13339: exit status 3:
bzr: ERROR: Invalid http response for Unable to handle http code 500: Internal Server Error

which at first sounds like an external problem but same bzr tool succeeds on unix and mac. Search results didn't help much. I suspect that some other golang project may have faced the same issue.

  1. 1 Posted by Paulo Janotti on 13 Feb, 2019 04:12 AM

    Paulo Janotti's Avatar

    I tried to change the order of the setup and got a different bzr error (

    go:[email blocked].0-20140225173054-000000000087: bzr branch --use-existing-dir . in c:\gopath\pkg\mod\cache\vcs\f46ce2ae80d31f9b0a29099baa203e3b6d269dace4e5357a2cf74bd109e13339: exit status 4:
    bzr: ERROR: httplib.IncompleteRead: IncompleteRead(34 bytes read)

    Traceback (most recent call last):
    File "bzrlib\commands.pyo", line 920, in exception_to_return_code
    File "bzrlib\commands.pyo", line 1131, in run_bzr
    File "bzrlib\commands.pyo", line 673, in run_argv_aliases
    File "bzrlib\commands.pyo", line 695, in run
    File "bzrlib\cleanup.pyo", line 136, in run_simple
    File "bzrlib\cleanup.pyo", line 166, in _do_with_cleanups
    File "bzrlib\builtins.pyo", line 1438, in run
    File "bzrlib\controldir.pyo", line 779, in open_tree_or_branch
    File "bzrlib\controldir.pyo", line 459, in _get_tree_branch
    File "bzrlib\bzrdir.pyo", line 1082, in open_branch
    File "bzrlib\branch.pyo", line 2375, in open
    File "bzrlib\controldir.pyo", line 687, in open
    File "bzrlib\controldir.pyo", line 716, in open_from_transport
    File "bzrlib\transport\__init__.pyo", line 1718, in do_catching_redirections
    File "bzrlib\controldir.pyo", line 704, in find_format
    File "bzrlib\controldir.pyo", line 1149, in find_format
    File "C:/Program Files (x86)/Bazaar/plugins\git\", line 235, in probe_transport
    File "C:/Program Files (x86)/Bazaar/plugins\git\", line 182, in probe_http_transport
    File "socket.pyo", line 348, in read
    File "httplib.pyo", line 522, in read
    File "httplib.pyo", line 565, in _read_chunked
    IncompleteRead: IncompleteRead(34 bytes read)

    bzr 2.5.1 on python 2.6.6 (Windows-post2008Server-6.2.9200)
    arguments: ['bzr', 'branch', '--use-existing-dir',
    '', '.']
    plugins: bzrtools[2.5.0], changelog_merge[2.5.1], colo[0.4.0],
    explorer[1.2.2], fastimport[0.14.0dev], git[0.6.8], launchpad[2.5.1],
    loom[2.3.0dev], netrc_credential_store[2.5.1], news_merge[2.5.1],
    pipeline[1.4.0], qbzr[0.22.3], rewrite[0.6.4dev], svn[1.2.2],
    upload[1.2.0dev], xmloutput[0.8.8]
    encoding: 'cp1252', fsenc: 'mbcs', lang: None

    *** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
    including this traceback and a description of the problem.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

21 Aug, 2019 11:06 PM
21 Aug, 2019 02:08 PM
21 Aug, 2019 01:37 PM
21 Aug, 2019 10:21 AM
21 Aug, 2019 09:10 AM


21 Aug, 2019 05:56 AM
21 Aug, 2019 03:08 AM
20 Aug, 2019 11:33 PM
20 Aug, 2019 08:07 PM
20 Aug, 2019 05:50 PM
20 Aug, 2019 12:35 PM