Comment 1 for bug 794954

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 794954] [NEW] bzr push to smart server error: bzr: ERROR: Server sent an unexpected error: ('error', 'No module named pwd')

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 6/9/2011 12:13 PM, Alexander Belchenko wrote:
> Public bug reported:
>
> Thu 2011-06-09 13:09:47 +0300
> 0.313 bazaar version: 2.3.3
> 0.313 bzr arguments: [u'push']
> 0.407 looking for plugins in C:\work\Bazaar\plugins
> 0.547 looking for plugins in C:/Program Files/Bazaar/plugins
> 0.547 Plugin name colo already loaded
> 0.547 Plugin name explorer already loaded
> 0.547 Plugin name qbzr already loaded
> 0.578 encoding stdout as sys.stdout encoding 'cp866'
> 0.641 opening working tree 'XXX'
> 2.469 Transferred: 2kB (14.0kB/s r:1kB w:1kB)
> 2.469 Traceback (most recent call last):
> File "bzrlib\commands.pyo", line 926, in exception_to_return_code
> File "bzrlib\commands.pyo", line 1126, in run_bzr
> File "bzrlib\commands.pyo", line 691, in run_argv_aliases
> File "bzrlib\commands.pyo", line 713, in run
> File "bzrlib\cleanup.pyo", line 135, in run_simple
> File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
> File "bzrlib\builtins.pyo", line 1132, in run
> File "bzrlib\push.pyo", line 140, in _show_push_branch
> File "bzrlib\controldir.pyo", line 533, in push_branch
> File "bzrlib\branch.pyo", line 1098, in push
> File "bzrlib\branch.pyo", line 3506, in push
> File "bzrlib\branch.pyo", line 3298, in _run_with_write_locked_target
> File "bzrlib\remote.pyo", line 2468, in lock_write
> File "bzrlib\remote.pyo", line 2452, in _remote_lock_write
> File "bzrlib\remote.pyo", line 59, in _call
> File "bzrlib\remote.pyo", line 2314, in _translate_error
> File "bzrlib\remote.pyo", line 825, in _translate_error
> File "bzrlib\remote.pyo", line 175, in _translate_error
> File "bzrlib\remote.pyo", line 3029, in _translate_error
> UnknownErrorFromSmartServer: Server sent an unexpected error: ('error', 'No module named pwd')
>
> On the remote side I have Windows machine with `bzr serve` running. bzr
> is standalone bzr.exe 2.3.3-3.
>
> ** Affects: bzr
> Importance: Undecided
> Status: New
>

This indicates that the server side is unable to determine a username
for the process. Usually this happens when running as a service daemon,
etc. I forget the exact env variable you can set, but I think it is %USER%.

We could certainly use a better error message here, though.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3woAcACgkQJdeBCYSNAAOO/wCfUKLYPvkwjBuI8xAPsye1KCbG
IDgAoNl+Pw+8PvZ6siFacyKIVWq+AdWd
=EYnD
-----END PGP SIGNATURE-----