免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2619 | 回复: 3
打印 上一主题 下一主题

createrepo时出错,求助 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-02-16 22:43 |只看该作者 |倒序浏览
本帖最后由 贺兰云天 于 2012-02-16 22:44 编辑

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)

and some errors are like this:

(process:24717): GLib-CRITICAL **: g_timer_stop: assertion `timer != NULL' failed

(process:24717): 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 57, in getOtherdata
    self.repoid))
TypeError: Can not create changelog table: unable to open database file

论坛徽章:
0
2 [报告]
发表于 2012-02-16 22:50 |只看该作者
(process:2943): GLib-CRITICAL **: g_timer_stop: assertion `timer != NULL' failed

(process:2943): 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 815, in repoXML
    rp.getPrimary(complete_path, csum)
  File "/usr/lib64/python2.4/site-packages/sqlitecachec.py", line 42, in getPrimary
    self.repoid))
TypeError: Can not create packagename index: unable to open database file

论坛徽章:
0
3 [报告]
发表于 2012-02-17 09:39 |只看该作者
any one help me ?

论坛徽章:
0
4 [报告]
发表于 2012-02-17 11:57 |只看该作者
any one alive ?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP