1 (edited by stamaimer 2013-01-19 21:27:18)

Topic: TypeError: Parsing primary.xml error: Start tag expected, '<' not foun

==== Required information ====
- iRedMail version: iredmail-0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: centos 6.3
- Related log if you're reporting an issue:

< INFO > Generating yum repository ...
< INFO > Fetching source tarballs ...
< INFO > + 1 of 6: http://173.254.22.21/yum/misc/iRedAdmin-0.2.tar.bz2
< INFO > + 2 of 6: http://173.254.22.21/yum/misc/roundcube … 8.2.tar.gz
< INFO > + 3 of 6: http://173.254.22.21/yum/misc/phpldapadmin-1.2.2.tgz
< INFO > + 4 of 6: http://173.254.22.21/yum/misc/phpMyAdmi … es.tar.bz2
< INFO > + 5 of 6: http://173.254.22.21/yum/misc/iRedAPD-1.3.8.tar.bz2
< INFO > + 6 of 6: http://173.254.22.21/yum/misc/phpPgAdmin-5.0.4.tar.bz2
< INFO > Validate packages ...    [ OK ]
< INFO > Install package: dialog
< INFO > Installing package(s): dialog
Loaded plugins: fastestmirror, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: mirrors.grandcloud.cn
* extras: mirrors.grandcloud.cn
* updates: mirrors.grandcloud.cn
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 285, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 136, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 434, in doCommands
    self._getTs(needTsRemove)
  File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 99, in _getTs
    self._getTsInfo(remove_only)
  File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 110, in _getTsInfo
    pkgSack = self.pkgSack
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 897, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 682, in _getSacks
    self.repos.populateSack(which=repos)
  File "/usr/lib/python2.6/site-packages/yum/repos.py", line 294, in populateSack
    sack.populate(repo, mdtype, callback, cacheonly)
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 187, in populate
    dobj = repo_cache_function(xml, csum)
  File "/usr/lib/python2.6/site-packages/sqlitecachec.py", line 46, in getPrimary
    self.repoid))
TypeError: Parsing primary.xml error: Start tag expected, '<' not found

< ERROR > Installation failed, please check the terminal output.
< ERROR > If you're not sure what the problem is, try to get help in iRedMail
< ERROR > forum: http://www.iredmail.org/forum/

====
I follow the installtion guide to install iredmail-0.8.3 in centos 6.3.

But when i type "bash iRedMail.sh" or "bash get_all.sh", it will output "TypeError: Parsing primary.xml error: Start tag expected, '<' not found" as a result. Ican not figure out what cause it.

Someone said "It seems that yum somehow tries to parse the gzipped primary.xml.gz instead offirst uncompressing and then parsing it".

And someone said "this is caused by libxml2 being compiled without zlib support".

can anyone give me a assistant? Thanks a lot.

2

Re: TypeError: Parsing primary.xml error: Start tag expected, '<' not foun

Does it work if you simply update packages with yum? e.g. "yum update"?

3

Re: TypeError: Parsing primary.xml error: Start tag expected, '<' not foun

ZhangHuangbin wrote:

Does it work if you simply update packages with yum? e.g. "yum update"?

yum update
Loaded plugins: fastestmirror, presto, refresh-packagekit
Determining fastest mirrors
* base: mirror.neu.edu.cn
* extras: mirror.neu.edu.cn
* updates: mirror.neu.edu.cn
base                                                     | 3.7 kB     00:00     
extras                                                   | 3.5 kB     00:00     
updates                                                  | 3.5 kB     00:00     
updates/primary_db                                       | 4.3 MB     00:02     
Setting up Update Process
No Packages marked for Update
it works well.

4

Re: TypeError: Parsing primary.xml error: Start tag expected, '<' not foun

How is it going if you try to install iRedMail again?

5

Re: TypeError: Parsing primary.xml error: Start tag expected, '<' not foun

ZhangHuangbin wrote:

How is it going if you try to install iRedMail again?

I made it.It's my fault.I should not install it in VM.But why iredmail can not install in a VM?Can you give a explain?

6

Re: TypeError: Parsing primary.xml error: Start tag expected, '<' not foun

stamaimer wrote:

But why iredmail can not install in a VM?Can you give a explain?

I install iRedMail in VM (VMware) everyday, it works just fine.

7

Re: TypeError: Parsing primary.xml error: Start tag expected, '<' not foun

ZhangHuangbin wrote:
stamaimer wrote:

But why iredmail can not install in a VM?Can you give a explain?

I install iRedMail in VM (VMware) everyday, it works just fine.

e, sorry, it's my fault again.I should not jump to conclusions.:(