hi,the errors does not reappear again.when it reappear, i will check it as you
advise. now other errors are put out:
Saving other metadata
Traceback (most recent call last):
File "/usr/share/createrepo/genpkgmetadata.py", line 722, in ?
main(sys.argv[1:])
File "/usr/share/createrepo/genpkgmetadata.py", line 646, in main
mdgen.doRepoMetadata()
File "/usr/share/createrepo/genpkgmetadata.py", line 321, in doRepoMetadata
dumpMetadata.repoXML(reporoot, self.cmds)
File "/usr/share/createrepo/dumpMetadata.py", line 804, in repoXML
zfo = _gzipOpen(complete_path)
File "/usr/share/createrepo/dumpMetadata.py", line 60, in _gzipOpen
return GzipFile(filename, mode, compresslevel)
File "/usr/lib64/python2.4/gzip.py", line 95, in __init__
fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: './.repodata/other.xml.gz'
=====================================================
Saving other metadata
(process:28902): GLib-CRITICAL **: g_timer_stop: assertion `timer != NULL'
failed
(process:28902): GLib-CRITICAL **: g_timer_destroy: assertion `timer != NULL'
failed
Traceback (most recent call last):
File "/usr/share/createrepo/genpkgmetadata.py", line 722, in ?
main(sys.argv[1:])
File "/usr/share/createrepo/genpkgmetadata.py", line 646, in main
mdgen.doRepoMetadata()
File "/usr/share/createrepo/genpkgmetadata.py", line 321, in doRepoMetadata
dumpMetadata.repoXML(reporoot, self.cmds)
File "/usr/share/createrepo/dumpMetadata.py", line 821, in repoXML
rp.getOtherdata(complete_path, csum)
File "/usr/lib64/python2.4/site-packages/sqlitecachec.py", line 54, in
getOtherdata
self.repoid))
TypeError: Can not create packages table: unable to open database file
it seems that there is something wrong with the sqlite according to the result
from Google.
File "/usr/lib64/python2.4/site-packages/sqlitecachec.py", line 54, in
getOtherdata
follow this message, it is located the the code:
"/usr/lib64/python2.4/site-packages/sqlitecachec.py"
return self.open_database(_sqlitecache.update_other(location,
checksum,self.callback,self.repoid))
i am still tracking the error, any message please tell me, thanks.(maybe my
english is poor )
2012-02-17
________________________________
发件人: seth vidal
发送时间: 2012-02-16 22:52:28
收件人: yum development
抄送: [email protected]
主题: Re: [Yum-devel] did any one meet this error?
On Thu, 16 Feb 2012 17:06:11 +0800
继刚 <[email protected]> wrote:
> I am trying to run a script that will run command "createrepo" when
> new rpms is pushed into the reposity, the command to run is:
> cd /home/yum/xxx/4/i386 /usr/bin/createrepo -d -p --update -o . .
> when i type this command manually,it runs ok,
> but when the command is run in a shell scripts, it complaiins likes
> this: Saving Primary metadata
> Saving file lists metadata
> Saving other metadata
> Traceback (most recent call last):
> File "/usr/share/createrepo/genpkgmetadata.py", line 722, in ?
> main(sys.argv[1:])
> File "/usr/share/createrepo/genpkgmetadata.py", line 646, in main
> mdgen.doRepoMetadata()
> File "/usr/share/createrepo/genpkgmetadata.py", line 321, in
> doRepoMetadata dumpMetadata.repoXML(reporoot, self.cmds)
> File "/usr/share/createrepo/dumpMetadata.py", line 821, in repoXML
> rp.getOtherdata(complete_path, csum)
> File "/usr/lib64/python2.4/site-packages/sqlitecachec.py", line 57,
> in getOtherdata self.repoid))
> TypeError: Parsing other.xml error: Premature end of data in tag
> otherdata line 2
>
> I just can not get it resolved, any help ? thanks a lot.
> Woking Env(RedHat 5.4 x86_64, rpm-4.4.2.3-18.el5.x86_64 ,
> yum-3.2.22-20.el5.noarch,
> yum-metadata-parser-1.1.2-3 ,yum-rhn-plugin-0.5.4-13)
>
if you go and look at the other.xml file what do you see on the second
line?
sounds like there is something sneaking in that's breaking
yum-metadata-parser.
-sv
.
________________________________
This email (including any attachments) is confidential and may be legally
privileged. If you received this email in error, please delete it immediately
and do not copy it or use it for any purpose or disclose its contents to any
other person. Thank you.
本电邮(包括任何附件)可能含有机密资料并受法律保护。如您不是正确的收件人,请您立即删除本邮件。请不要将本电邮进行复制并用作任何其他用途、或透露本邮件之内容。谢谢。
_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel