Hi JF,

 

I attached my repomd.xml and original repomd.xml file. I’m not sure what 
difference caused the problem.

 

BTW, can we make a snapshot image automatically from OBS staging project? We 
generated packages from out staging OBS project. To make a snapshot, however, 
we should download all packages from repository and generate  a snapshot image 
from local repo. It’s really painful to us because download speed is poor. If 
we can make a snapshot image from OBS staging project like main project, we can 
verify the image more easier than before.

 

Download: 
http://download.tizen.org/live/devel:/arm_toolchain:/Mobile:/Tizen_Common/

OBS: 
https://build.tizen.org/project/show?project=devel%3Aarm_toolchain%3AMobile%3ATizen_Common

 

Best Regards,

Chanho Park

 

From: JF Ding [mailto:[email protected]] 
Sent: Friday, October 10, 2014 1:20 PM
To: Chanho Park
Cc: [email protected]; Gui Chen; Sun, LihongX
Subject: Re: cannot generate a snapshot image from local repo

 

>From the error message, it should be something wrong for the re-generated 
>repos’ group meta files. Would you help to open the files and compare them 
>with the copies in download server to find out what’s wrong?

 

thanks

- jf.ding

 

On Friday, October 10, 2014 at 11:04 AM, Chanho Park wrote:

Hi all,

 

After I upgraded my Ubuntu version to 14.04, I can't generate a local image 
using mic tool.

I downloaded group.xml and patterns.xml from below:

http://download.tizen.org/snapshots/tizen/common/latest/repos/ia32-wayland/packages/repodata/

 

First of all, I downloaded all packages of ia3a-wayland using wget command:

http://download.tizen.org/snapshots/tizen/common/latest/repos/ia32-wayland/packages/

 

And then, I generated local repos using createrepo/modifyrepo command.

 

This is createrepo results:

createrepo -g /newroot/opt/ia32-wayland-staging/repodata/group.xml --database 
--unique-md-filenames /newroot/opt/ia32-wayland-staging/

Spawning worker 0 with 485 pkgs

Spawning worker 1 with 485 pkgs

Spawning worker 2 with 485 pkgs

Spawning worker 3 with 485 pkgs

Spawning worker 4 with 485 pkgs

Spawning worker 5 with 485 pkgs

Spawning worker 6 with 485 pkgs

Spawning worker 7 with 484 pkgs

Worker 4: 

Worker 4: iso-8859-1 encoding on Unifdef is useful for removing ifdef'ed lines 
from a file while otherwise

Worker 4: leaving the file alone. Unifdef acts on #ifdef, #ifndef, #else, and 
#en�

Worker 4: dif lines, and it knows only enough about C to know when one of these 
is

Worker 4: inactive because it is inside a comment, or a single or double quote.

Worker 4: 

Worker 4: %track

Worker 4: prog unifdef = {

Worker 4: url = http://dotat.at/prog/unifdef/

Worker 4: version = 2.8

Worker 4: regex = unifdef-(__VER__)\.tar\.gz

Worker 4: }

Worker 4: 

Workers Finished

Saving Primary metadata

Saving file lists metadata

Saving other metadata

Generating sqlite DBs

Sqlite DBs complete

 

modifyrepo /newroot/opt/ia32-wayland-staging/repodata/patterns.xml 
/newroot/opt/ia32-wayland-staging/repodata/

Wrote: /newroot/opt/ia32-wayland-staging/repodata/patterns.xml.gz

type = patterns

location = 
repodata/a4f30f1681e29db7657f0f8f4f8f7d456fabc057c551c422311a98875f553851-patterns.xml.gz

checksum = a4f30f1681e29db7657f0f8f4f8f7d456fabc057c551c422311a98875f553851

timestamp = 1412909833

open-checksum = c5f5bc08cccfdd7c4909e6234ec058c428b0abd4588e89ad6eb5bba68dc00169

size = 1941

open-size = 17271

Wrote: /newroot/opt/ia32-wayland-staging/repodata/repomd.xml

 

I also downloaded a kickstarter file from below:

http://download.tizen.org/snapshots/tizen/common/latest/images/ia32-wayland/common-wayland-mbr-i586/

 

I only modified the url:// to local file:/// <file:///\\> .

 

When I made a snapshot image using mic tool, I met below errors:

sudo mic cr auto tizen-common-i586.ks --tmpfs

[sudo] password for cometzero: 

mic 0.24.2 (cometzero-exa2 Ubuntu 14.04 trusty)

INFO: Retrieving repo metadata:

Traceback (most recent call last):

File "/usr/bin/mic", line 231, in <module>

sys.exit(MIC.main())

File "/usr/lib/pymodules/python2.7/mic/utils/cmdln.py", line 257, in main

return self.cmd(args)

File "/usr/lib/pymodules/python2.7/mic/utils/cmdln.py", line 280, in cmd

retval = self.onecmd(argv)

File "/usr/lib/pymodules/python2.7/mic/utils/cmdln.py", line 412, in onecmd

return self._dispatch_cmd(handler, argv)

File "/usr/lib/pymodules/python2.7/mic/utils/cmdln.py", line 1084, in 
_dispatch_cmd

return handler(argv)

File "/usr/bin/mic", line 104, in do_create

crobj.main(argv[1:])

File "/usr/lib/pymodules/python2.7/mic/creator.py", line 319, in main

return self.cmd(args)

File "/usr/lib/pymodules/python2.7/mic/utils/cmdln.py", line 280, in cmd

retval = self.onecmd(argv)

File "/usr/lib/pymodules/python2.7/mic/utils/cmdln.py", line 412, in onecmd

return self._dispatch_cmd(handler, argv)

File "/usr/lib/pymodules/python2.7/mic/utils/cmdln.py", line 1100, in 
_dispatch_cmd

return handler(argv[0], opts, *args)

File "/usr/lib/pymodules/python2.7/mic/creator.py", line 391, in do_auto

self.main(argv)

File "/usr/lib/pymodules/python2.7/mic/creator.py", line 319, in main

return self.cmd(args)

File "/usr/lib/pymodules/python2.7/mic/utils/cmdln.py", line 280, in cmd

retval = self.onecmd(argv)

File "/usr/lib/pymodules/python2.7/mic/utils/cmdln.py", line 412, in onecmd

return self._dispatch_cmd(handler, argv)

File "/usr/lib/pymodules/python2.7/mic/utils/cmdln.py", line 1100, in 
_dispatch_cmd

return handler(argv[0], opts, *args)

File "/usr/lib/mic/plugins/imager/raw_plugin.py", line 64, in do_create

configmgr._ksconf = ksconf

File "/usr/lib/pymodules/python2.7/mic/conf.py", line 135, in __set_ksconf

self._parse_kickstart(ksconf)

File "/usr/lib/pymodules/python2.7/mic/conf.py", line 240, in _parse_kickstart

self.create['cachedir'])

File "/usr/lib/pymodules/python2.7/mic/utils/misc.py", line 653, in 
get_metadata_from_repos

checksums['comps'] = elm.find("%sopen-checksum" % ns).text

AttributeError: 'NoneType' object has no attribute 'text'

 

Is there any changes of createrepo/mic tools?

 

Best Regards,

Chanho Park

 

<?xml version="1.0" encoding="UTF-8"?>
<repomd xmlns="http://linux.duke.edu/metadata/repo"; xmlns:rpm="http://linux.duke.edu/metadata/rpm";>
 <revision>1412909675</revision>
<data type="group">
  <checksum type="sha256">60f4c9dd9950e56957a9e409a2625b1d1fd9bec6cc4e2d825fc64cc93bd683ba</checksum>
  <location href="repodata/60f4c9dd9950e56957a9e409a2625b1d1fd9bec6cc4e2d825fc64cc93bd683ba-group.xml"/>
  <timestamp>1412909692</timestamp>
  <size>17929</size>
</data>
<data type="patterns">
  <checksum type="sha256">a4f30f1681e29db7657f0f8f4f8f7d456fabc057c551c422311a98875f553851</checksum>
  <open-checksum type="sha256">c5f5bc08cccfdd7c4909e6234ec058c428b0abd4588e89ad6eb5bba68dc00169</open-checksum>
  <location href="repodata/a4f30f1681e29db7657f0f8f4f8f7d456fabc057c551c422311a98875f553851-patterns.xml.gz"/>
  <timestamp>1412909833</timestamp>
  <size>1941</size>
  <open-size>17271</open-size>
</data>
<data type="filelists">
  <checksum type="sha256">c528cce4e662847d795728295f3074c0dfd86000e82170d6bf6ef65e13a6f4f1</checksum>
  <open-checksum type="sha256">4532ea4dbb33876c2813af77b4428ab5b09ecdfd21b21723dd6a7827861d9133</open-checksum>
  <location href="repodata/c528cce4e662847d795728295f3074c0dfd86000e82170d6bf6ef65e13a6f4f1-filelists.xml.gz"/>
  <timestamp>1412909688</timestamp>
  <size>2099274</size>
  <open-size>25549057</open-size>
</data>
<data type="group_gz">
  <checksum type="sha256">35be531956b41923fc3a6f25a85b0a8e93e41ea0073db3898b919020533999cb</checksum>
  <open-checksum type="sha256">60f4c9dd9950e56957a9e409a2625b1d1fd9bec6cc4e2d825fc64cc93bd683ba</open-checksum>
  <location href="repodata/35be531956b41923fc3a6f25a85b0a8e93e41ea0073db3898b919020533999cb-group.xml.gz"/>
  <timestamp>1412909692</timestamp>
  <size>1976</size>
</data>
<data type="primary">
  <checksum type="sha256">1997dd19bb886a0537f611e954f93a2a9870948f4da8109ff6772049a616425c</checksum>
  <open-checksum type="sha256">e776bbb309c950f61a057f0bb1d46b103c5e1cd9de1f94c354ca23a33cd4a839</open-checksum>
  <location href="repodata/1997dd19bb886a0537f611e954f93a2a9870948f4da8109ff6772049a616425c-primary.xml.gz"/>
  <timestamp>1412909688</timestamp>
  <size>899490</size>
  <open-size>7079282</open-size>
</data>
<data type="other">
  <checksum type="sha256">f075cb9a5c28fb8cb69ef19d198a2926d3ff2a6d6e42b4d946c03e347d343c61</checksum>
  <open-checksum type="sha256">131e0d715ca4d8b190de49cf95b73fee7d937f5bbc46774cf3bf9063faeaf5d8</open-checksum>
  <location href="repodata/f075cb9a5c28fb8cb69ef19d198a2926d3ff2a6d6e42b4d946c03e347d343c61-other.xml.gz"/>
  <timestamp>1412909688</timestamp>
  <size>475859</size>
  <open-size>2804667</open-size>
</data>
<data type="other_db">
  <checksum type="sha256">0cc8c5ae5bebf98cddb5c58fe3ee0f323cce56b7f998346bf72f6f2e2a3f26d3</checksum>
  <open-checksum type="sha256">acede25b48d6f49742ce77451ddbef115a5f6351e25a34aad29eb062f0f87250</open-checksum>
  <location href="repodata/0cc8c5ae5bebf98cddb5c58fe3ee0f323cce56b7f998346bf72f6f2e2a3f26d3-other.sqlite.bz2"/>
  <timestamp>1412909689</timestamp>
  <database_version>10</database_version>
  <size>597113</size>
  <open-size>2568192</open-size>
</data>
<data type="primary_db">
  <checksum type="sha256">499072b299d294d38b5814c34d070f93c71e4235496b5ea87c92770ee2a368d7</checksum>
  <open-checksum type="sha256">d83b781a193e6ddcd47dbbd41dde9781ed13516be799b24702238bbd9a641715</open-checksum>
  <location href="repodata/499072b299d294d38b5814c34d070f93c71e4235496b5ea87c92770ee2a368d7-primary.sqlite.bz2"/>
  <timestamp>1412909692</timestamp>
  <database_version>10</database_version>
  <size>1583328</size>
  <open-size>6850560</open-size>
</data>
<data type="filelists_db">
  <checksum type="sha256">7628b9c1231ac89b360a497a46a2696d4466b37cbda578a6530c06084b67310d</checksum>
  <open-checksum type="sha256">1f145d15872d0e513167cefe731782d13804ee7a9753b95f782caab7434ca318</open-checksum>
  <location href="repodata/7628b9c1231ac89b360a497a46a2696d4466b37cbda578a6530c06084b67310d-filelists.sqlite.bz2"/>
  <timestamp>1412909691</timestamp>
  <database_version>10</database_version>
  <size>2521087</size>
  <open-size>11844608</open-size>
</data>
</repomd>

Attachment: repomd.xml.orig
Description: Binary data

_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev

Reply via email to