Crash when using serve

Bug #331129 reported by Zwyber
2
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

I am new to Bazaar and I made a little test directory and done some basic bazaar stuff inside (creating files, commiting, changes, deleting, etc). Then I downloaded loggerhead and typed bzr serve, and this is what came in.

BTW I run an Apache2 server (LAMP) on the same machine with the crash.

paul@server:~/bzr_test$ bzr serve
listening on port: 4155
bzr: ERROR: exceptions.TypeError: not all arguments converted during string formatting

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 896, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 842, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 542, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 4377, in run
    self.run_smart_server(smart_server)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 4314, in run_smart_server
    smart_server.serve()
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/server.py", line 113, in serve
    hook(backing_urls, self.get_url())
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/server.py", line 151, in get_url
    return "bzr://%s:%d/" % self._sockname
TypeError: not all arguments converted during string formatting

bzr 1.12 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'serve']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  avahi /usr/lib/python2.5/site-packages/bzrlib/plugins/avahi [0.3dev]
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.12]
  dbus /usr/lib/python2.5/site-packages/bzrlib/plugins/dbus [unknown]
  gtk /usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.95.0.final.1]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  netrc_credential_store /usr/lib/python2.5/site-packages/bzrlib/plugins/netrc_credential_store [unknown]
  qbzr /usr/lib/python2.5/site-packages/bzrlib/plugins/qbzr [0.9.2]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

paul@server:~/bzr_test$ bzr version
Bazaar (bzr) 1.12
  Python interpreter: /usr/bin/python 2.5.2
  Python standard library: /usr/lib/python2.5
  bzrlib: /usr/lib/python2.5/site-packages/bzrlib
  Bazaar configuration: /home/paul/.bazaar
  Bazaar log file: /home/paul/.bzr.log

I reported the bug because of the last bit with the serve command.

Zwyber (zwyber)
description: updated
description: updated
Revision history for this message
Andrew Bennetts (spiv) wrote :

This appears to be bug 293697. The workaround is to use "bzr serve --port=0.0.0.0:4155", or uninstall the plugin that registers a server_started hook.

Revision history for this message
Zwyber (zwyber) wrote : Re: [Bug 331129] Re: Crash when using serve

Ok thank you!

On Thu, Feb 19, 2009 at 12:28 AM, Andrew Bennetts <
<email address hidden>> wrote:

> *** This bug is a duplicate of bug 293697 ***
> https://bugs.launchpad.net/bugs/293697
>
> This appears to be bug 293697. The workaround is to use "bzr serve
> --port=0.0.0.0:4155", or uninstall the plugin that registers a
> server_started hook.
>
> ** This bug has been marked a duplicate of bug 293697
> bzr serve shows error TypeError: not all arguments converted during
> string formatting
>
> --
> Crash when using serve
> https://bugs.launchpad.net/bugs/331129
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Groetjes,
Paul

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.