central cerver help please...

Oguz Altun oguz at ce.yildiz.edu.tr
Mon Feb 27 16:58:49 GMT 2006


John Arbash Meinel wrote:
> 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://-----)
>
>   
I have forgotten to tell you that I find/replaced my ip with -----.

> 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()
>
>   
oguz at tarzan /usr/lib
$ python
Python 2.4.1 (#1, May 27 2005, 18:02:40)
[GCC 3.3.3 (cygwin special)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import bzrlib
 >>> import bzrlib.transport
 >>> t = bzrlib.transport.get_transport('sftp://localhost/tmp/')
oguz at localhost's password:
Hello, I'm freeFTPd 1.0>>> f = t.get('.bzr/branch-format')
 >>> print f.read()
Bazaar-NG branch, format 6

 >>>


So I created a new local bzr rep (tmp). I uploaded that to my sftp 
server (Copied locally). Then I sftp'd there:

sftp> cd tmp
sftp> ls
dene.rb      sinav.data   soru2.c      soru3.c      soru4.c
sftp> ls -al
drw-rw-rw   1 root       root             0 Feb 27 18:49 .
drw-rw-rw   1 root       root             0 Feb 27 18:49 ..
drw-rw-rw   1 root       root             0 Feb 27 18:49 .bzr
-rw-rw-rw   1 root       root            34 Feb 17 14:31 dene.rb
-rw-rw-rw   1 root       root             6 Jan 5 13:11 sinav.data
-rw-rw-rw   1 root       root           265 Jan 5 13:15 soru2.c
-rw-rw-rw   1 root       root           331 Jan 5 13:29 soru3.c
-rw-rw-rw   1 root       root           368 Jan 5 13:50 soru4.c
sftp> pwd
Remote working directory: /tmp/

Then, unfortunately:

oguz at tarzan ~
$ bzr branch sftp://localhost/tmp/
oguz at localhost's password:
Hello, I'm freeFTPd 1.0bzr: ERROR: No such file: 'tmp/.bzr/weaves/2b': 
[Errno 2]
 No such file
Connection to localhost closed by remote host.

> 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
> =:->
>
>
>
>   





More information about the bazaar mailing list