A fresh installation of gentoo-stats version fails to update the stats server, but gives an error message: # gentoo-stats --update Error connecting to server: junk after document element: line 2, column 0 Reproducible: Always Steps to Reproduce: 1. emerge gentoo-stats 2. gentoo-stats --new 3. edit /etc/gentoo-stats/gentoo-stats.conf 4. gentoo-stats --update Actual Results: Got the error message: Error connecting to server: junk after document element: line 2, column 0 Expected Results: The stats server should have been updated and no error message shown. (Honestly, I do not *know* that the stats server did not get updated, but that's what I believe from the precense of the error message.) Please note that this computer runs under User Mode Linux. # emerge info Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.4.22-p hysmem-patch3-5um) ================================================================= System uname: 2.4.22-physmem-patch3-5um i686 UML Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -Os -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/s hare/config /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -Os -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo-distfiles" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://mirror.bytemark.co.uk/gentoo" USE="apm arts avi berkdb crypt encode foomaticdb gdbm gif gpm gtk2 imlib jpeg li bg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib pe rl png pwdb python qt quicktime readline ruby sdl slang spell ssl svga tcpd true type x86 xml2 xmms xv zlib" #
Ouch, I managed to forget to enter the version number of the gentoo-stats client software. The version installed is 0.5.1. Sorry about that Biker
bash-2.05b# gentoo-stats --new Got now system ID: 82dc30f6-2c4b-4b4f-832a-3e140fea8b85 bash-2.05b# nano /etc/gentoo-stats/gentoo-stats.conf bash-2.05b# gentoo-stats --update I'm not running user mode linux. Since you seem to be unable to connect to the server It could possibly be a network related issue. I'd investigate further and then file the appropriate bug for the related issue, since it appears to be working over here. However, if you can find someone else with the bug, please re-open it.
See: http://forums.gentoo.org/viewtopic.php?t=178123 Unfortunately, I'm still unable to get in direct contact with 'ash', who first reported the problem. "Since you seem to be unable to connect to the server..." Not exactly. The gentoo-stats --new works perfectly well, so I doubt it's a network problem.
Hope this is of any interest: When /etc/gentoo-stats/gentoo-stats.conf contains: # Transmit anonymous data about your CPU(s)? (yes/no) # # Default: yes SUBMIT_CPU="yes" then gentoo-stats --update terminates in the said error. When I change the file to contain: # Transmit anonymous data about your CPU(s)? (yes/no) # # Default: yes #SUBMIT_CPU="yes" (which logically should be the same since it's the default), then the update takes place without any errors. So, to make sure I don't have any garbage characters in my configuration file, I tried with: # Transmit anonymous data about your CPU(s)? (yes/no) # # Default: yes #SUBMIT_CPU="yes" SUBMIT_CPU="yes" where I wrote the last line myself, no copy and paste, and again it gives the error. Me thinks that SUBMIT_CPU="yes" is *not* the default(?) and that when I explicitly set SUBMIT_CPU="yes" it will be executed and detects something with the cpu info that it cannot handle correctly. # uname -a Linux schaffter 2.4.22-physmem-patch3-5um #1 Fri Feb 20 11:46:53 GMT 2004 i686 U ML User Mode Linux GNU/Linux # cat /proc/cpuinfo processor : 0 vendor_id : User Mode Linux model name : UML mode : skas host : Linux peacock 2.6.6-bytemark-host-p4-20040602-1 #3 SMP Wed Jun 2 12:27:28 BST 2004 i686 bogomips : 3748.66
In response to comment #4, if I also comment out the SUBMIT_CPU="yes" line, then gentoo-stats --update returns without an error for me. Furthermore, if I leave the line uncommented and change the "yes" to a "no", then "gentoo-stats --update" also returns without an error. I am 'ash' on the gentoo forums, and submitted the orignal forum post regarding this problem. The fact that changing this flag turns the problem on and off indicates that this is not a network problem, but a problem reporting cpu info. I would be interested to see if Gus is running multiple CPU's, or a multi-threaded processor.
I have the same problem on a hyper-threaded system with CPU specs as: # uname -a Linux sleipner 2.6.7-gentoo-r11 #1 SMP Mon Jul 19 09:47:37 CEST 2004 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux # # cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Pentium(R) 4 CPU 3.00GHz stepping : 9 cpu MHz : 3007.221 cache size : 512 KB physical id : 0 siblings : 2 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid bogomips : 5931.00 processor : 1 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Pentium(R) 4 CPU 3.00GHz stepping : 9 cpu MHz : 3007.221 cache size : 512 KB physical id : 0 siblings : 2 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid bogomips : 5996.54 # When I comment out the line: SUBMIT_CPU="yes" in the file /etc/gentoo-stats/gentoo-stats.conf the update works fine.
Since this does seem to be a CPU reporting issue, it might be useful if I posted my CPU specs as reported: $ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) XEON(TM) CPU 2.00GHz stepping : 4 cpu MHz : 1977.805 cache size : 512 KB physical id : 0 siblings : 2 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm bogomips : 3899.39 processor : 1 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) XEON(TM) CPU 2.00GHz stepping : 4 cpu MHz : 1977.805 cache size : 512 KB physical id : 0 siblings : 2 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm bogomips : 3948.54 processor : 2 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) XEON(TM) CPU 2.00GHz stepping : 4 cpu MHz : 1977.805 cache size : 512 KB physical id : 3 siblings : 2 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm bogomips : 3948.54 processor : 3 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) XEON(TM) CPU 2.00GHz stepping : 4 cpu MHz : 1977.805 cache size : 512 KB physical id : 3 siblings : 2 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm bogomips : 3948.54
I'm getting the same on an amd 2 processor system. Although turning off CPU updating doesn't fix it. (so it may not be cpu related after all). Also notice that the error message had an errror in it :) (should be easy to track down). gentoo-stats -u Error updating server: <Fault 802: 'Unknown errror while updating'>
Error connecting to server: junk after document element: line 2, column 0 I'm getting the same error on a hyperthreaded P4. If I comment out SUBMIT_CPU, I do not get this error. This is gento-stats 0.5.1
sDreamGate root # gentoo-stats --update Error updating server: <Fault 802: 'Unknown errror while updating'> DreamGate root # commenting out CPU *doesn't* help. Could this be a server/network error rather than something in the Gentoo Stats client? Speaking of the server, I went to the URL given by "gentoo-stats --new". http://www.mksoft.co.il/gentoo-stats First of all, there are zero AMD CPUs listed and a bunch of "unknown". That's real suspicious ... like the client code isn't counting AMD cpus correctly. And quite a few of the pages returned "not found".
Did any of you update the gentoo profile to a newer one as described here ? http://www.gentoo.org/doc/en/gentoo-upgrading.xml#doc_chap3 I got this same error when i tried to update the profile from 1.4 to 2004.2 and 2004.3. I put that symlink point back to 1.4 profile and "gentoo-stat -u" works again. "Error updating server: <Fault 802: 'Unknown errror while updating'> "
This particular system was a fresh install from 2004.2 CDs. The link points to $ ls -l /etc/make.profile lrwxrwxrwx 1 root root 42 Oct 9 04:57 /etc/make.profile -> ../usr/portage/profiles/default-x86-2004.2 I don't see any point in changing that ... "gentoo-stats" should work with any profile, don't you think?
Yes, i think it should work with any profile, but looking here http://www.mksoft.co.il/gentoo-stats/profiles.php it seems the latest profile there is 2004.0. So maybe its time to look at http://www.gentoo-stats.org/ It's in active development as it seems mksoft's gentoo-stats is not ?
root@raskolnikov wepy # gentoo-stats --update Error updating server: <Fault 802: 'Unknown errror while updating'> i'm on a single cpu athlon system, too lazy to try again, good luck
We don't have any control over the server and I really don't the time to setup one , a few other devs are working on (yet another) replacement for gentoo-stats.