repositorio icon indicating copy to clipboard operation
repositorio copied to clipboard

I/O error : No such file or directory

Open mehyedes opened this issue 9 years ago • 0 comments

When trying to add new packages to a custom repository (RedHat), it works most of the time but sometimes I face an I/O error. I tried several packages after making sure they do exist but the still problem persisted. And now I can't add any other package to the repository. For this command:

$ repositorio --repo=centos7 --add-file=acl-2.2.51-12.el7.x86_64.rpm

Here is the stacktrace:

repositorio started.
Spawning worker 0 with 38 pkgs
Spawning worker 1 with 38 pkgs
Workers Finished
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
I/O error : No such file or directory

(process:19266): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: Parsing other.xml error: attributes construct error


(process:19266): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: Parsing other.xml error: Couldn't find end of Start Tag changelog line 36217


(process:19266): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: Parsing other.xml error: Premature end of data in tag package line 36152


(process:19266): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: Parsing other.xml error: Premature end of data in tag otherdata line 2

Traceback (most recent call last):
  File "/usr/share/createrepo/genpkgmetadata.py", line 308, in <module>
    main(sys.argv[1:])
  File "/usr/share/createrepo/genpkgmetadata.py", line 280, in main
    mdgen.doRepoMetadata()
  File "/usr/lib/python2.7/dist-packages/createrepo/__init__.py", line 1003, in doRepoMetadata
    rp.getOtherdata(complete_path, csum)
  File "/usr/lib/python2.7/dist-packages/sqlitecachec.py", line 61, in getOtherdata
    self.repoid))
TypeError: Parsing other.xml error: AttValue: ' expected

Error running createrepo. at /usr/local/share/perl/5.18.2/Rex/Repositorio/Repository/Yum.pm line 282.
    Rex::Repositorio::Repository::Yum::_run_createrepo('Rex::Repositorio::Repository::Yum=HASH(0x2016d80)') called at /usr/local/share/perl/5.18.2/Rex/Repositorio/Repository/Yum.pm line 250
    Rex::Repositorio::Repository::Yum::add_file(undef, 'file', 'acl-2.2.51-12.el7.x86_64.rpm') called at /usr/local/share/perl/5.18.2/Rex/Repositorio.pm line 213
    Rex::Repositorio::add_file(undef, 'file', 'acl-2.2.51-12.el7.x86_64.rpm', 'repo', 'centos7') called at /usr/local/share/perl/5.18.2/Rex/Repositorio.pm line 85
    Rex::Repositorio::parse_cli_option('Rex::Repositorio=HASH(0x2016ba0)', 'repo', 'centos7', 'add-file', 'acl-2.2.51-12.el7.x86_64.rpm') called at /usr/local/share/perl/5.18.2/Rex/Repositorio.pm line 68
    Rex::Repositorio::run('Rex::Repositorio=HASH(0x2016ba0)', 'repo', 'centos7', 'add-file', 'acl-2.2.51-12.el7.x86_64.rpm') called at /usr/local/bin/repositorio line 74

Thank you :)

mehyedes avatar May 19 '16 10:05 mehyedes