central cerver help please...
John Arbash Meinel
john at arbash-meinel.com
Mon Feb 27 14:41:23 GMT 2006
Oguz Altun wrote:
> John Arbash Meinel wrote:
...
>>>
>>
>> You said that you are using cygwin, right? Do you have openssh
>> installed? (I'm guessing that you do).
>>
>> Can you run the command again, and send us the traceback from
>> $HOME/.bzr.log?
>>
>> That will help to localize the problem.
>>
>> John
>> =:->
>>
>>
> ah... you got me. I found hard to configure openssh (though it is
> installed), so I downloaded a free simple sftp server. (mentioned
> above). The problem might not be caused by their software, but still I
> should use openssh.... The thing is, I tried to follow some tutes found
> on the web on configuring openssh, but not being a linux system admin,
> but they just didn't work. And I tried to find an alternative...
>
>
>
...
Actually, I was talking about openssh the client, not the server. I
don't fault you at all about the server (I haven't ever successfully
setup openssh on windows either).
But I can see that you are using openssh in the log.
>
> bzr 0.7 invoked on python 2.4.1.final.0 (cygwin)
> arguments: ['/usr/bin/bzr', 'push', 'sftp://-----']
> working dir: u'/cygdrive/f/home/tmp'
> looking for plugins in /usr/lib/python2.4/site-packages/bzrlib/plugins
> Plugin name __init__ already loaded
> Plugin name __init__ already loaded
> looking for plugins in /cygdrive/f/home/.bazaar/plugins
> WARNING: using slower ElementTree; consider installing cElementTree and make sure it's on your PYTHONPATH
> trying to open u'/cygdrive/f/home/tmp' with transport <bzrlib.transport.local.LocalTransport object at 0x18d68e0c>
> got branch format u'Bazaar-NG branch, format 6\n'
> ssh implementation is OpenSSH
^^^^^^^^
This part
> trying to open u'sftp://-----' with transport <bzrlib.transport.sftp.SFTPTransport object at 0x18d7536c>
Well, this url looks awfully weird. Why would it try to open '------'?
Unless you just edited out the url on your own. (Since the command was
also bzr push sftp://-----)
One thing we might try. Go into your browser, and type a url that you
know doesn't exist. One thing we ran into in the past, was ISPs who
resolve any URL to one of their own machines, and then give you a valid,
but incorrect, page. (This doesn't effect sftp in the same way, though).
> [ 2868] Fri 15:11:56.812 ERROR: Permission denied: u'.bzr/branch-format': [Errno 13] Permission denied
> Traceback (most recent call last):
> File "commands.py", line 572, in run_bzr_catch_errors
> File "commands.py", line 534, in run_bzr
> File "commands.py", line 233, in run_argv
> File "builtins.py", line 480, in run
> File "branch.py", line 120, in open
> File "branch.py", line 568, in __init__
> File "branch.py", line 826, in _check_format
> File "branch.py", line 736, in controlfile
> File "sftp.py", line 333, in get
> File "sftp.py", line 442, in _translate_io_exception
> File "__init__.py", line 76, in _translate_error
> PermissionDenied: Permission denied: u'.bzr/branch-format': [Errno 13] Permission denied
>
> return code 3
It is also failing during 'get', not during 'put'. So it looks like it
is failing to read the file.
Can you try this:
cd $bzr (cd to wherever bzr is)
python (This might be "C:\Program Files\Python24\python.exe")
>>> import bzrlib
>>> import bzrlib.transport
>>> t =
bzrlib.transport.get_transport('sftp://localhost/full/path/to/branch')
>>> f = t.get('.bzr/branch-format')
>>> print f.read()
I'm actually wondering if the problem isn't how we are handling full
paths on windows over sftp. Off the top of my head, I don't know if it
is supposed to be "sftp://host/h|/path", or if it is "sftp://host/h:/path".
Also, you might try using a relative path, by doing
"sftp://host/~/path", where ~ should expand to whatever the default
working directory is. (Though this might only be supported after bzr 0.7).
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060227/636b61bf/attachment.pgp
More information about the bazaar
mailing list