Hi, I have gone through the below link and tried. But the same error.
https://www.redhat.com/archives/pulp-list/2014-November/msg00065.html 1. you need to create a repo : pulp-admin rpm repo create --repo-id=myrepo-el6 --relative-url=myrepo/el6/ 2. upload packages in your repo pulp-admin rpm repo uploads rpm --repo-id=myrepo-el6 --file=mypackage.el6.x86_64.rpm 3. publish your repo pulp-admin rpm repo publish run --repo-id=myrepo-el6 Thanks, BVIJAY ---------- Forwarded message ---------- From: Vijayabalan Balakrishnan <[email protected]> Date: Wed, Feb 25, 2015 at 10:28 PM Subject: Unable to publish custom repository... To: "[email protected]" <[email protected]> Hi, I am trying to create custom repo and trying to upload rpm for testing purpose. However repo and upload is fine.But when I run publish command I am getting error # pulp-admin rpm repo create --repo-id custom_repo1 --relative-url=custom/repo1/ --serve-http true # pulp-admin rpm repo uploads rpm --repo-id custom_repo1 --file=/tmp/zip-3.0-1.el6.x86_64.rpm # pulp-admin rpm repo publish run --repo-id=custom_repo1 I am getting the below error Incorrect length of data produced Task Failed Incorrect length of data produced **************************************************************Command Output**************************************** [root@server1]# pulp-admin rpm repo create --repo-id custom_repo1 --relative-url=custom/repo1/ --serve-http true Successfully created repository [custom_repo1] ------------------------------------------------------------------------------------------------------------------------------------------------------------------ [root@server1]# pulp-admin rpm repo uploads rpm --repo-id custom_repo1 --file=/tmp/zip-3.0-1.el6.x86_64.rpm +----------------------------------------------------------------------+ Unit Upload +----------------------------------------------------------------------+ Extracting necessary metadata for each request... [==================================================] 100% Analyzing: zip-3.0-1.el6.x86_64.rpm ... completed Creating upload requests on the server... [==================================================] 100% Initializing: zip-3.0-1.el6.x86_64.rpm ... completed Starting upload of selected units. If this process is stopped through ctrl+c, the uploads will be paused and may be resumed later using the resume command or cancelled entirely using the cancel command. Uploading: zip-3.0-1.el6.x86_64.rpm [==================================================] 100% 265860/265860 bytes ... completed Importing into the repository... This command may be exited via ctrl+c without affecting the request. [\] Running... Task Succeeded Deleting the upload request... ... completed ------------------------------------------------------------------------------------------------------------------------------------------------------------------ [root@server1]# pulp-admin rpm repo publish run --repo-id=custom_repo1 +----------------------------------------------------------------------+ Publishing Repository [custom_repo1] +----------------------------------------------------------------------+ This command may be exited via ctrl+c without affecting the request. Initializing repo metadata [-] ... completed Publishing Distribution files [-] ... completed Publishing RPMs [-] ... failed Incorrect length of data produced Task Failed Incorrect length of data produced ------------------------------------------------------------------------------------------------------------------------------------------------------------------ Please help me why I am unable to publish after uploaded custom rpm's Thanks, BVIJAY
_______________________________________________ Pulp-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/pulp-list
