Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 335107 - net-misc/unison-2.32.52 frequently can't contacting server
Summary: net-misc/unison-2.32.52 frequently can't contacting server
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo Team for the ML programming language family
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-29 07:43 UTC by Juergen Rose
Modified: 2010-09-17 06:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2010-08-29 07:43:54 UTC
I have three PCs lynx, grizzly and thinkpad in my homenet. I start unison without parameters at lynx, select Txt_grizzly in the next window and want to synchronize with grizzly. I see the unison->Contacting server... window but nothing happens. I can only press the beenden(finish) button. On the other hand there is no problem to ssh or rsync from lynx to grizzly and I have no problem to unison from thinkpad to grizzly. 
This happens not every time but rather often in the last two weeks.

If I do 'unison Txt_grizzly.prf' I will be ask for password on grizzly and then I get the unison synchronisation window and everthing seems to work.

Any ideas?

Reproducible: Always

Actual Results:  
rose@lynx:/home/rose(7)$ rsync perlMagick.pdf grizzly:
Password: 
rose@lynx:/home/rose(10)$ ping -c2 grizzly
PING grizzly.homenet (192.168.1.53) 56(84) bytes of data.
64 bytes from grizzly.homenet (192.168.1.53): icmp_req=1 ttl=64 time=2.62 ms
64 bytes from grizzly.homenet (192.168.1.53): icmp_req=2 ttl=64 time=0.219 ms

--- grizzly.homenet ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.219/1.420/2.622/1.202 ms
rose@lynx:/home/rose(13)$ ssh grizzly
Password: 
Last login: Sun Aug 29 16:46:15 CEST 2010 from thinkpad.homenet on ssh
...
rose@grizzly:/home/rose(1)$ 



rose@lynx:/home/rose(19)$ emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.4.4, glibc-2.12.1-r1, 2.6.35-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.35-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8300_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 28 Aug 2010 11:00:14 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.2
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.35
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula googleearth AdobeFlash-10.1 cadsoft"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
FFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de fr"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/dotnet /var/lib/layman/lordvan /var/lib/layman/x11 /var/lib/layman/java-overlay /var/lib/layman/sunrise /var/lib/layman/arcon /var/lib/layman/science /var/lib/layman/pro-audio /var/lib/layman/qting-edge /var/lib/layman/n4g /var/lib/layman/ibormuth /usr/local/portage /var/lib/cpan"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit R X Xaw3d a52 aac abiword acl acpi admin afs alsa amd64 ao apache2 applet archive arpack asf aspell assistant audacious audiofile automap automount bash-completion beagle berkdb blas blast bluetooth boo boost branding bzip2 cairo cardbus cdda cddb cdf cdio cdparanoia cdr cg cgi chm cli consolekit corba cracklib crypt css cuda cups curl cxx daap db dbase dbi dbm dbus designer devhelp device-mapper dga dia djvu doc dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds elf emacs emboss empathy encode epiphany evo examples exif expat extensions extra extras fam fame ffmpeg fftw firefox fits flac fltk foomaticdb fortran fpx fts3 fuse galago garmin gd gdal gdbm gedit geoip geolocation geos gif gimp ginac git glade glib glitz gml gmp gmtsuppl gnokii gnome gnome-keyring gnome-print gnuplot gnutls gphoto2 gpm grammar graphics graphtft graphviz grass gs gsl gsm gstreamer gtk guile hal harness hddtemp hdf hdf5 hdri hlapi http httpd hvm iconv icq icu id3 ide imagemagick imap innodb inotify ipod ipv6 irda ithreads jabber jadetex java java5 java6 jbig john jpeg jpeg2k kdrive kerberos kpathsea kqemu kvm ladspa lame lapack laptop latex latex3 lcms ldap lensfun libffi libgda libnotify libsamplerate lirc lua lzo mad mail maildir mailwrapper mapnik math matroska mikmod mkl mmx mmxext mng modules mono moonlight motif mozdevelop mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap multilib musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networking networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs ntp numarray numeric nvidia obex objc ocaml octave odbc ogdi ogg ole openexr opengl openmp overview pae pam pango pcre pda pdf perl plotutils plugins png podcast policykit posix postgres postscript ppds pppd preview-latex proj projectx pstricks pulseaudio pymol python python-bindings qemu qhull qt3support qt4 quicktime readline reflection reiserfs rle romio rpc rrdcgi rrdtool samba sasl science sdl secure-delete semantic-desktop server session sip slang slp smbclient smp sms sndfile snmp soup sox speex spell spl sql sqlite sse sse2 ssl startup-notification stlport subtitles subversion suexec svg swig sysfs szip t1lib tcl tcpd tex tex4ht texmacs theora thinkpad threads thunderbird tidy tiff tk tntc tools truetype udev unicode usb userlocales utempter v4l2 video virtualbox vorbis wav webdav webdav-serf webkit wifi wmf wxwidgets x264 xattr xcb xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" DVB_CARDS="usb-wt220u" ELIBC="glibc" INPUT_DEVICES="keyboard mouse                evdev                synaptics               " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" QEMU_SOFTMMU_TARGETS="i386 ppc ppc64 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18 jruby" USERLAND="GNU" VIDEO_CARDS="nv nvidia nouveau vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Juergen Rose 2010-08-30 13:30:48 UTC
Now also 'unison Txt_grizzly.prf' does not work anymore.  Even a reboot does not help.
Comment 2 Juergen Rose 2010-08-31 16:52:00 UTC
I suppose that the descibed issue has something to to with a not running ssh-agent.
The problems occured, if I was logged in lynx via ssh, and there was no graphic login for me.

If I later logged in via gdm and gnome the issue disappeared.
Comment 3 Juergen Rose 2010-09-13 09:18:34 UTC
The currrent state with unison is, that unison get only contact, if I start unison directly in at the gnome desktop (i.e. not via ssh).

Has anybody an idea?
Comment 4 Juergen Rose 2010-09-14 17:09:47 UTC
I sit at "condor" and have two ssh windows to "thinkpad". In the first ssh window I do the following:

 rose@thinkpad:/home/rose(3)$ cat .unison/Txt_grizzly.prf 
root = /home/rose/Txt
root = ssh://grizzly//home/rose/Txt
rose@thinkpad:/home/rose(4)$ unison -debug all Txt_grizzly.prf 
[startup] Preferences:
ui = graphic
host = 
server = false
prefsdocs = false
doc = 
version = false
silent = false
dumbtty = false
testserver = false
rest = Txt_grizzly.prf
showprev = false
selftest = false
confirmmerge = false
retry = 0
repeat = 
contactquietly = false
key = 
label = 
expert = false
reusewindows = false
height = 20
auto = false
maxthreads = 20
prefer = 
force = 
sortnewfirst = false
sortbysize = false
keeptempfilesaftermerge = false
diff = diff -u CURRENT2 CURRENT1
fastcheck = default
ignorelocks = false
dumparchives = false
showarchive = false
rootsName = 
backupdir = 
maxbackups = 2
backups = false
backupsuffix = 
backupprefix = .bak.$VERSION.
backuploc = central
copyquoterem = default
copythreshold = -1
copyprogrest = rsync --partial --inplace --compress
copyprog = rsync --inplace --compress
rsync = true
allHostsAreRunningWindows = false
someHostIsRunningWindows = false
confirmbigdel = true
batch = false
root = ssh://grizzly//home/rose/Txt
root = /home/rose/Txt
killserver = false
addversionno = false
servercmd = 
sshargs = 
rshargs = 
rshcmd = rsh
sshcmd = ssh
xferbycopying = true
sshversion = 
pretendwin = false
times = false
group = false
owner = false
numericids = false
dontchmod = false
perms = 1023
rsrc-aux = false
rsrc = default
someHostIsInsensitive = false
ignorecase = default
timers = false
terse = false
logfile = /home/rose/unison.log
log = true
debugtimes = false
debug = all
addprefsto = 
[remote] Shell connection: ssh (ssh, grizzly, -e, none, unison, -server)


A new window (Unison (auf thinkpad) Contacting server...  [Beenden])) is opened.
But I can wait several (e.g. 20) minutes and there is no contact.

If I do in the second ssh window of "thinkpad" the following:

rose@thinkpad:/home/rose(1)$ ssh grizzly -e none unison -server
Password: 
Unison 2.32

I will enter my passwort and get a connection. Of course I can only get a normal ssh login from "thinkpad' to "grizzly":

rose@thinkpad:/home/rose(2)$ ssh grizzly 
Password: 
Last login: Tue Sep 14 19:07:31 CEST 2010 from thinkpad.homenet on ssh
##############################################################
99servers.sh:  CUR_RUNLEVEL=|3| PREV_RUNLEVEL=|N|
##############################################################
==== Interface eth0 is OK! =====
---  i_f=eth   i_f_state=OK,  before 'route | grep eth'
.bash_profile: after .bashrc PS1=|\[\033[01;31m\]rose@grizzly:\[\033[01;34m\]/home/rose(\#)$ \[\033[00m\]| LC_ALL=||
rose@grizzly:/home/rose(1)$ 

Why unison does not get a connection?


Comment 5 Juergen Rose 2010-09-14 17:11:42 UTC
Sorry for the type, I wanted say "I can also get a normal ssh login" and not "get only".
Comment 6 Juergen Rose 2010-09-15 14:29:40 UTC
Sometimes unison still works if it is started in a ssh window. I open a xterm window with ssh to "tiger". I looking for running keyrings:
rose@tiger:/home/rose(7)$  psgrep key
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
rose      4424  0.0  0.0  13840     0 ?        Sl   Aug18   0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
rose     21969  0.0  0.0  22284     8 ?        Sl   Jun14   0:00 /usr/bin/gnome-keyring-daemon --daemonize
rose     23140  0.0  0.0  22280   284 ?        Sl   Jun02   0:00 /usr/bin/gnome-keyring-daemon --daemonize
rose     26692  0.0  0.0  13840   500 ?        Sl   14:42   0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
rose     30949  0.0  0.0  22280   276 ?        Sl   May28   0:00 /usr/bin/gnome-keyring-daemon --daemonize

I try to ssh to orca:
rose@tiger:/home/rose(8)$ ssh orca
Password: 
Last login: Tue Sep 14 19:28:10 CEST 2010 from tiger.bioinf.cs.uni-potsdam.de on ssh
##############################################################
99servers.sh:  CUR_RUNLEVEL=|3| PREV_RUNLEVEL=|N|
##############################################################
==== Interface eth0 is OK! =====
---  i_f=eth   i_f_state=OK,  before 'route | grep eth'

 * keychain 2.7.1 ~ http://www.funtoo.org
 * Found existing ssh-agent: 3820
 * Found existing gpg-agent: 3845
 * Warning: can't find *dsa; skipping

.bash_profile: after .bashrc PS1=|\[\033[01;31m\]rose@orca:\[\033[01;34m\]/home/rose(\#)$ \[\033[00m\]| LC_ALL=||

It works, but I have to enter a password.

I try to open a unison connection to orca:

Connection to orca closed.
rose@tiger:/home/rose(9)$ unison

I enter the profile for orca, unison does not(!!!) ask me for a password and hangs endless trying 'Contacting server...'.
I try to open a unison connection to orca with the profile name on the command line:

I get first the "Contacting server..." window, some milliseconds later a "Connecting to 'ssh://orca/Txt'..." window is opened, where I can enter my password for orca. And then unison looks for changes and I can synchronize the two directories.


On other boxes I see an other behaviour (e.g. lynx).  I have a ssh window to lynx:

rose@lynx:/home/rose(13)$ ps -ef | grep key | grep -v grep
rose     22981     1  0 16:18 ?        00:00:00 /usr/bin/gnome-keyring-daemon --daemonize --login

(I don't know why this gnome-keyring-daemon is running for rose, I am only logged in via ssh, no gnome-session is running:

rose@lynx:/home/rose(15)$ ps -ef | grep gnome | grep -v grep
rose     22981     1  0 16:18 ?        00:00:00 /usr/bin/gnome-keyring-daemon --daemonize --login

)

There is no problem to log into grizzly, but I am ask for password:

rose@lynx:/home/rose(16)$ ssh grizzly
Password: 
Last login: Wed Sep 15 16:21:26 CEST 2010 from lynx.homenet on pts/7
##############################################################
99servers.sh:  CUR_RUNLEVEL=|3| PREV_RUNLEVEL=|N|
##############################################################
==== Interface eth0 is OK! =====
---  i_f=eth   i_f_state=OK,  before 'route | grep eth'
.bash_profile: after .bashrc PS1=|\[\033[01;31m\]rose@grizzly:\[\033[01;34m\]/home/rose(\#)$ \[\033[00m\]| LC_ALL=||


If I am running unison, it does not ask for a password:

rose@lynx:/home/rose(17)$ unison Txt_grizzly

It is hanging with the "Contacting server..." window. If I sitting at the console of lynx and have a gnome-session, I have no problem to connect with unison to grizzly.

Can anybody help me?


Comment 7 Juergen Rose 2010-09-17 06:09:57 UTC
I found a workaround. If I start manually ssh-agent and add my ssh-key, then unison works.