Bazaar smart server via BZR+SSH on Cygwin treats all paths as relative
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
New
|
Undecided
|
Unassigned |
Bug Description
I have just installed Cygwin on a MS Win 2003 R2 (virtual) server with BZR (2.6+b2-1) and OpenSSH (6.1p1-1). I set up SSH via ssh-host-config with all the defaults and "ntsec xterm" for the "value of CYGWIN for the daemon". The actual repository was on the "D:" drive, so I set up a symbolic link in the root (ln -s /cygdrive/
I had a profitable day setting up a number of bazaar repositories and moving over my CVS exports. I created a number of bound branches around my environment and earned a beer that night. Next day I did a reboot test, and found that all my bound branches were now giving a "Not a branch" error. Investigations (below) showed that BZR+SSH was treating every path as relative but refusing to use symbolic links.
I then spent an unprofitable day trying to understand this. In summary:
- using BZR directly from the cygwin terminal (bzr check /path/to/repo) worked fine.
- running "bzr check bzr+ssh:
- running a smart server (bzr server -d /bzr) worked (but I want authentication)
- initing a branch up to the server (bzr init --create-prefix bzr+ssh:
- initing a branch in "bzr+ssh:
- a symbolic link (ln -s /cygdrive/
- removing all symbolic links and copying the repositories around only worked if I copied them into /home/me/bzr
- reinstalling openssh, bzr and completely uninstalling and reinstalling cygwin made no difference (including deleting and readding the services and service usernames of cygserver and sshd)
- rebooting the development server that I did my evaluation of BZR on two weeks did not reproduce the problems ?!?!?
My final work around has been to edit the /etc/passwd file to ensure that every user who will be using the repositories has a home folder of /cygdrive/
I am hoping someone can explain if this is an issue in SSH, BZR or BZR+SSH. I am a very talented Python developer, so if someone could refer me to the Python file that chooses paths, I would be happy to debug it.
Maurice Maneschi
cygcheck.out
Cygwin Configuration Diagnostics
Current System Time: Thu Jan 03 22:19:01 2013
Windows 2003 Server R2 Ver 5.2 Build 3790 Service Pack 2
Running in Terminal Service session
Path: C:\cygwin\
C:\cygwin\bin
C:\Program Files\CVSNT
C:\Program Files\Common Files\March Hare Software Ltd
C:\Program Files\CVSNT
C:\Program Files\Common Files\March Hare Software Ltd
C:\Program Files\PHP
C:\Program Files\ImageMagi
C:\WINDOWS\
C:\WINDOWS
C:\WINDOWS\
C:\Program Files\Bazaar
C:\Program Files\CVSNT
Output from C:\cygwin\
UID: 12208(mauricem) GID: 10513(Domain Users)
10513(Domain Users) 544(Administrators)
545(Users) 14606(CERTSVC_
12163(AAAOakval
11152(All Staff) 11631(Application Service Provider)
12121(RMS) 15105(SydHelpdesk)
13612(VPN Access)
SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS
USER = 'mauricem'
PWD = '/cygdrive/
HOME = '/cygdrive/
HOMEPATH = '\Documents and Settings\MauriceM'
MANPATH = '/usr/local/
APPDATA = 'C:\Documents and Settings\
HOSTNAME = 'sydrms11'
SHELL = '/bin/bash'
TERM = 'xterm'
PROCESSOR_
WINDIR = 'C:\WINDOWS'
OLDPWD = '/cygdrive/
USERDOMAIN = 'OAK'
PHPRC = 'C:\Program Files\PHP\'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'C:\Documents and Settings\All Users'
temp = 'C:\DOCUME~
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
TMP = '/tmp'
USERNAME = 'MauriceM'
ClusterLog = 'C:\WINDOWS\
PROCESSOR_LEVEL = '6'
FP_NO_HOST_CHECK = 'NO'
SYSTEMDRIVE = 'C:'
LANG = 'en_US.UTF-8'
USERPROFILE = 'C:\Documents and Settings\MauriceM'
CLIENTNAME = 'S031'
TZ = 'Australia/Sydney'
PS1 = '\[\e]0;
LOGONSERVER = '\\SSU'
PROCESSOR_
SHLVL = '1'
USERDNSDOMAIN = 'OAK.LOCAL'
PATHEXT = '.COM;.
HOMEDRIVE = 'C:'
COMSPEC = 'C:\WINDOWS\
SYSTEMROOT = 'C:\WINDOWS'
PRINTER = 'HP Color LaserJet CM6040 MFP PCL 6 on oaksydfps02 (from S031) in session 1'
PROCESSOR_REVISION = '1a05'
INFOPATH = '/usr/local/
PROGRAMFILES = 'C:\Program Files'
NUMBER_
SESSIONNAME = 'RDP-Tcp#1'
COMPUTERNAME = 'SYDRMS11'
_ = '/usr/bin/cygcheck'
HKEY_CURRENT_
HKEY_CURRENT_
HKEY_CURRENT_
HKEY_CURRENT_
(default) = (unsupported type)
HKEY_LOCAL_
HKEY_LOCAL_
(default) = '\??\C:\cygwin'
HKEY_LOCAL_
HKEY_LOCAL_
(default) = 'C:\cygwin'
obcaseinsensitive set to 1
Cygwin installations found in the registry:
System: Key: c5e39b7a9d22bafb Path: C:\cygwin
a: fd N/A N/A
c: hd NTFS 20473Mb 72% CP CS UN PA FC System
d: hd NTFS 10235Mb 60% CP CS UN PA FC Data
e: cd N/A N/A
f: net NTFS 122876Mb 91% CP CS UN PA FC Data
p: net NTFS 122876Mb 89% CP CS UN PA FC Data
r: net NTFS 20476Mb 62% CP CS UN PA FC iRMS
s: net NTFS 122876Mb 91% CP CS UN PA FC Data
C:\cygwin / system binary,auto
C:\cygwin\bin /usr/bin system binary,auto
C:\cygwin\lib /usr/lib system binary,auto
cygdrive prefix /cygdrive user binary,auto
Found: C:\cygwin\bin\awk
-> C:\cygwin\
Found: C:\cygwin\
Found: C:\cygwin\
Found: C:\cygwin\
Not Found: cpp (good!)
Not Found: crontab
Found: C:\cygwin\
Found: C:\WINDOWS\
Warning: C:\cygwin\
Not Found: gcc
Not Found: gdb
Found: C:\cygwin\
Found: C:\cygwin\
Not Found: ld
Found: C:\cygwin\
Not Found: make
Found: C:\cygwin\
Not Found: patch
Not Found: perl
Found: C:\cygwin\
Found: C:\cygwin\
Found: C:\cygwin\
Found: C:\cygwin\
Found: C:\cygwin\
Found: C:\cygwin\
Not Found: vi
Not Found: vim
449k 2012/07/16 C:\cygwin\
14k 2012/05/04 C:\cygwin\
62k 2011/05/21 C:\cygwin\
10k 2012/11/04 C:\cygwin\
7k 2012/05/07 C:\cygwin\
1246k 2012/05/11 C:\cygwin\
1516k 2012/09/01 C:\cygwin\
929k 2011/11/10 C:\cygwin\
93k 2011/11/10 C:\cygwin\
140k 2012/05/03 C:\cygwin\
148k 2012/06/08 C:\cygwin\
21k 2011/10/26 C:\cygwin\
43k 2010/01/02 C:\cygwin\
47k 2010/01/02 C:\cygwin\
79k 2011/10/26 C:\cygwin\
19k 2009/02/26 C:\cygwin\
8k 2009/02/26 C:\cygwin\
317k 2011/07/31 C:\cygwin\
180k 2012/07/16 C:\cygwin\
11k 2012/07/16 C:\cygwin\
20k 2012/07/16 C:\cygwin\
25k 2012/05/04 C:\cygwin\
211k 2012/07/16 C:\cygwin\
358k 2012/04/14 C:\cygwin\
985k 2011/10/16 C:\cygwin\
35k 2011/10/16 C:\cygwin\
21k 2012/07/16 C:\cygwin\
373k 2012/07/16 C:\cygwin\
6k 2012/10/19 C:\cygwin\
9k 2012/10/19 C:\cygwin\
123k 2011/05/19 C:\cygwin\
94k 2012/04/22 C:\cygwin\
25k 2010/01/02 C:\cygwin\
25k 2010/01/02 C:\cygwin\
213k 2011/07/31 C:\cygwin\
63k 2010/01/02 C:\cygwin\
63k 2010/01/02 C:\cygwin\
195k 2010/01/02 C:\cygwin\
244k 2010/01/02 C:\cygwin\
13k 2010/01/02 C:\cygwin\
13k 2010/01/02 C:\cygwin\
255k 2012/02/10 C:\cygwin\
22k 2002/06/09 C:\cygwin\
162k 2012/05/04 C:\cygwin\
51k 2012/07/16 C:\cygwin\
8k 2011/05/05 C:\cygwin\
566k 2012/08/08 C:\cygwin\
282k 2012/05/11 C:\cygwin\
359k 2012/09/01 C:\cygwin\
8k 2011/10/26 C:\cygwin\
780k 2011/10/26 C:\cygwin\
48k 2010/01/02 C:\cygwin\
48k 2010/01/02 C:\cygwin\
157k 2012/07/16 C:\cygwin\
28k 2010/03/28 C:\cygwin\
71k 2012/05/13 C:\cygwin\
2791k 2012/10/19 C:\cygwin\
Cygwin DLL version info:
DLL version: 1.7.17
DLL epoch: 19
DLL old termios: 5
DLL malloc env: 28
Cygwin conv: 181
API major: 0
API minor: 262
Shared data: 5
DLL identifier: cygwin1
Mount registry: 3
Cygwin registry name: Cygwin
Program options name: Program Options
Cygdrive default prefix:
Build date:
Shared id: cygwin1S5
Service : sshd
Display name : CYGWIN sshd
Current State : Running
Controls Accepted : Stop
Command : /usr/sbin/sshd -D
stdin path : /dev/null
stdout path : /var/log/sshd.log
stderr path : /var/log/sshd.log
Environment : CYGWIN="ntsec xterm"
Process Type : Own Process
Startup : Automatic
Dependencies : tcpip
Account : .\cyg_server
Cygwin Package Information
Last downloaded files to: C:\Documents and Settings\
Last downloaded files from: http://
Package Version Status
_autorebase 000182-1 OK
_update-info-dir 01094-1 OK
alternatives 1.3.30c-10 OK
base-cygwin 3.1-1 OK
base-files 4.1-1 OK
bash 4.1.10-4 OK
bzip2 1.0.6-2 OK
bzr 2.6+b2-1 OK
coreutils 8.15-1 OK
crypt 1.2-1 OK
csih 0.9.6-1 OK
cygrunsrv 1.40-2 OK
cygutils 1.4.10-2 OK
cygwin 1.7.17-1 OK
cygwin-doc 1.7-1 OK
dash 0.5.7-1 OK
diffutils 3.2-1 OK
dos2unix 6.0.2-1 OK
editrights 1.01-2 OK
file 5.11-1 OK
findutils 4.5.9-2 OK
gawk 4.0.1-1 OK
gettext 0.18.1.1-2 OK
grep 2.6.3-1 OK
groff 1.21-2 OK
gzip 1.4-1 OK
ipc-utils 1.0-1 OK
less 444-1 OK
libasn1_8 1.5.2-3 OK
libattr1 2.4.46-1 OK
libbz2_1 1.0.6-2 OK
libcom_err2 1.42.6-1 OK
libdb4.5 4.5.20.2-3 OK
libedit0 20120311-1 OK
libexpat1 2.1.0-1 OK
libffi4 4.5.3-3 OK
libgcc1 4.5.3-3 OK
libgdbm4 1.8.3-20 OK
libgmp3 4.3.2-1 OK
libgssapi3 1.5.2-3 OK
libheimbase1 1.5.2-3 OK
libheimntlm0 1.5.2-3 OK
libhx509_5 1.5.2-3 OK
libiconv2 1.14-2 OK
libintl8 0.18.1.1-2 OK
libkafs0 1.5.2-3 OK
libkrb5_26 1.5.2-3 OK
liblzma5 5.0.2_20110517-1 OK
libncurses10 5.7-18 OK
libncursesw10 5.7-18 OK
libopenssl098 0.9.8x-1 OK
libopenssl100 1.0.1c-2 OK
libpcre0 8.21-2 OK
libpopt0 1.6.4-4 OK
libreadline7 6.1.2-3 OK
libroken18 1.5.2-3 OK
libsigsegv2 2.10-1 OK
libsqlite3_0 3.7.13-1 OK
libssp0 4.5.3-3 OK
libstdc++6 4.5.3-3 OK
libwind0 1.5.2-3 OK
libwrap0 7.6-21 OK
login 1.10-10 OK
man 1.6g-1 OK
mintty 1.1.2-1 OK
nano 2.2.5-1 OK
openssh 6.1p1-1 OK
python 2.6.8-2 OK
rebase 4.3.0-1 OK
run 1.1.13-1 OK
sed 4.2.1-2 OK
tar 1.26-1 OK
terminfo 5.7_20091114-14 OK
texinfo 4.13-4 OK
tzcode 2012j-1 OK
which 2.20-2 OK
xz 5.0.2_20110517-1 OK
zlib0 1.2.7-1 OK
Use -h to see help about each section
tags: | added: check-for-breezy |