[Spacewalk-list] Problem Sync'ing a new Channel in Spacewalk.

Waldirio Manhães Pinheiro waldirio at gmail.com
Wed Nov 19 16:18:08 UTC 2014


Marc

According your log, you have a mistake in your user and/or password
definition.

ERROR: Authentication on 127.0.0.1 FAILED!

Check this info pls.

Let me know what's happened.


______________
Atenciosamente
Waldirio
msn: waldirio at gmail.com
Skype: waldirio
Site: www.waldirio.com.br
Blog: blog.waldirio.com.br
LinkedIn: http://br.linkedin.com/pub/waldirio-pinheiro/22/b21/646
PGP: www.waldirio.com.br/public.html

On Wed, Nov 19, 2014 at 12:21 PM, Szabo, Marc <Marc.Szabo at priceline.com>
wrote:

>  Hi Waldirio,
>
>
>
> I’m at a loss to this working….  Per your last message to me, I do have
> the following packages installed:
>
>
>
> [root at nw-spcwlk-201 sbin]# rpm -qa | grep -i perl-text-uni
>
> *perl-Text-Unidecode-0.04-7.1.el6.noarch*
>
> [root at nw-spcwlk-201 sbin]# rpm -qa | grep -i perl-xml-simp
>
> *perl-XML-Simple-2.18-6.el6.noarch*
>
>
>
> And when I try to execute the errata script to download the errata, I get
> the following error message:
>
>
>
> [root at nw-spcwlk-201 sbin]# ./centos-clone-errata-full.sh
>
>  curl: (7) couldn't connect to host
>
> Errata Import In !!!
>
> Errata Dir: /tmp/centos-errata
>
> INFO: Architecture is not specified, will try to determine it based on the
> channel properties of 'prod-centos6.5_x86-64'
>
> INFO: Setting the OS variant to CentOS, if this is wrong please add the
> --redhat option
>
> INFO: Server 127.0.0.1 is running API version 15
>
> INFO: Your API version is supported
>
> ERROR: Authentication on 127.0.0.1 FAILED!
>
>
>
> What am I missing?
>
>
>
> Thanks again for your help.
>
>
>
> Marc.
>
>
>
> *From:* spacewalk-list-bounces at redhat.com [mailto:
> spacewalk-list-bounces at redhat.com] *On Behalf Of *Waldirio Manhães
> Pinheiro
> *Sent:* Friday, November 14, 2014 1:51 PM
>
> *To:* spacewalk-list at redhat.com
> *Subject:* Re: [Spacewalk-list] Problem Sync'ing a new Channel in
> Spacewalk.
>
>
>
> Marc
>
>
>
> Execute the command bellow:
>
>
>
> [root at spacewalk ~]# yum install perl-Text-Unidecode -y
>
> [root at spacewalk ~]# yum install perl-XML-Simple -y
>
>
>
> About what you need change, take a look into the files, there are a lot of
> comments explaining how works and what you need change, according your
> environment.
>
>
>
> After, enjoy! ;-)
>
>
>
> Try again!
>
>
>
>
>
>
>   ______________
> Atenciosamente
> Waldirio
> msn: waldirio at gmail.com
> Skype: waldirio
> Site: www.waldirio.com.br
> Blog: blog.waldirio.com.br
>
> LinkedIn: http://br.linkedin.com/pub/waldirio-pinheiro/22/b21/646
> PGP: www.waldirio.com.br/public.html
>
>
>
> On Fri, Nov 14, 2014 at 4:41 PM, Szabo, Marc <Marc.Szabo at priceline.com>
> wrote:
>
> Waldirio,
>
>
>
> FYI… I tried it from that SRAY server as follows:
>
>
>
> [root at nw-sray-03 spacewalk_scripts-master]# ./centos-clone-errata-full.sh
> --server nw-spcwlk-201
>
>   % Total    % Received % Xferd  Average Speed   Time    Time     Time
> Current
>
>                                  Dload  Upload   Total   Spent    Left
> Speed
>
> 100 56124  100 56124    0     0  4308k      0 --:--:-- --:--:-- --:--:--
> 8234k
>
> Errata Import In !!!
>
> Errata Dir: /tmp/centos-errata
>
> Can't locate Text/Unidecode.pm in @INC (@INC contains:
> /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
> /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl
> /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at
> ./ya-errata-import.pl line 40.
>
> BEGIN failed--compilation aborted at ./ya-errata-import.pl line 40.
>
>
>
> What am I missing?
>
>
>
>
>
> *From:* spacewalk-list-bounces at redhat.com [mailto:
> spacewalk-list-bounces at redhat.com] *On Behalf Of *Waldirio Manhães
> Pinheiro
> *Sent:* Friday, November 14, 2014 1:17 PM
>
>
> *To:* spacewalk-list at redhat.com
> *Subject:* Re: [Spacewalk-list] Problem Sync'ing a new Channel in
> Spacewalk.
>
>
>
> Hello Marc
>
>
>
> No problem about it, your problem is about url "curl: (7) couldn't
> connect to host", this line is
>
>
>
> yearmon=$(curl http://lists.centos.org/pipermail/centos/index.html|grep
> date.html|cut -d"\"" -f2|cut -d"/" -f1)
>
>
>
> try to execute this command in your server
>
>
>
> # curl http://lists.centos.org/pipermail/centos/index.html
>
>
>
> Probably you will get the same error, so fix it. Maybe proxy, maybe
> firewall ...
>
>
>
> Take Care
>
>
>
>
>   ______________
> Atenciosamente
> Waldirio
> msn: waldirio at gmail.com
> Skype: waldirio
> Site: www.waldirio.com.br
> Blog: blog.waldirio.com.br
>
> LinkedIn: http://br.linkedin.com/pub/waldirio-pinheiro/22/b21/646
> PGP: www.waldirio.com.br/public.html
>
>
>
> On Fri, Nov 14, 2014 at 3:55 PM, Szabo, Marc <Marc.Szabo at priceline.com>
> wrote:
>
> Waldirio,
>
>
>
> I have a bit more information…. The spacewalk server that I’m running this
> on is a RedHat server:
>
>
>
> [root at nw-spcwlk-201 rh]# cat /etc/redhat-release
>
> Red Hat Enterprise Linux Server release 6.6 (Santiago)
>
>
>
> I’m trying to create a CentOS 6.5 64-bit Channel (as well as a CentOS 5
> 32-bit channel).
>
>
>
> That may matter?
>
>
>
> *From:* spacewalk-list-bounces at redhat.com [mailto:
> spacewalk-list-bounces at redhat.com] *On Behalf Of *Waldirio Manhães
> Pinheiro
> *Sent:* Friday, November 14, 2014 11:56 AM
>
>
> *To:* spacewalk-list at redhat.com
> *Subject:* Re: [Spacewalk-list] Problem Sync'ing a new Channel in
> Spacewalk.
>
>
>
> Hello Marc
>
>
>
> You need change only the .sh file, you can see at the end of file a line
> like bellow:
>
>
>
> ./ya-errata-import.pl --erratadir=$ERRATADIR --server $SPACEWALK
> --channel prod-centos6.5_x86-64 --os-version 6 --publish       | tee -a
> $LogFile
>
>
>
> So relax about directories, the script centos-clone-errata.sh
> or centos-clone-errata-full.sh will be responsible to pass the parameters.
>
>
>
> Try this and tell me the result.
>
>
>
> Take care
>
>
>
>
>   ______________
> Atenciosamente
> Waldirio
> msn: waldirio at gmail.com
> Skype: waldirio
> Site: www.waldirio.com.br
> Blog: blog.waldirio.com.br
>
> LinkedIn: http://br.linkedin.com/pub/waldirio-pinheiro/22/b21/646
> PGP: www.waldirio.com.br/public.html
>
>
>
> On Fri, Nov 14, 2014 at 2:42 PM, Szabo, Marc <Marc.Szabo at priceline.com>
> wrote:
>
> Hi Waldirio,
>
>
>
> Thank you for your scripts as well, however, I still have the same problem
> as I did with cefs scripts…. What do I enter for the errata directory?
>
>
>
> Usage: ./ya-errata-import.pl --server <SERVER> --erratadir <ERRATA-DIR>
>
>
>
> Or should I be using another script first?
>
>
>
> Thanks.
>
> Marc.
>
>
>
> *From:* spacewalk-list-bounces at redhat.com [mailto:
> spacewalk-list-bounces at redhat.com] *On Behalf Of *Waldirio Manhães
> Pinheiro
> *Sent:* Friday, November 14, 2014 10:37 AM
>
>
> *To:* spacewalk-list at redhat.com
> *Subject:* Re: [Spacewalk-list] Problem Sync'ing a new Channel in
> Spacewalk.
>
>
>
> Hello Marc
>
>
>
> Recently I did some changes in scripts from
> https://github.com/liedekef/spacewalk_scripts, specifically
> "centos-clone-errata-full.sh", where you will be able to download all
> erratas since 2004, and using another script "centos-clone-errata.sh", you
> can update daily for example, getting info directly from mail list.
>
>
>
> The cefs is a good option too, take a look in both.
>
>
>
> Let me know if you have some doubt.
>
>
>
> B'Regards
>
>
>
>
>   ______________
> Atenciosamente
> Waldirio
> msn: waldirio at gmail.com
> Skype: waldirio
> Site: www.waldirio.com.br
> Blog: blog.waldirio.com.br
>
> LinkedIn: http://br.linkedin.com/pub/waldirio-pinheiro/22/b21/646
> PGP: www.waldirio.com.br/public.html
>
>
>
> On Fri, Nov 14, 2014 at 11:27 AM, Szabo, Marc <Marc.Szabo at priceline.com>
> wrote:
>
> Waldirio,
>
>
>
> I was able to pull down the CentOS 6.5 Base packages using the
> spacewalk-repo-sync command (thanks to your help, I determined that the
> problem was that the default port being used was 108080 and I changed it to
> 8080 and vwala… it worked).
>
>
>
> With the amount of data to pull down, it took over night to finish.  So
> the question I have now, is that it only pulled down the Packages (6365).
> How do I get the Errata to pull down?  I thought it should have come down
> along with the packages using the following command:
>
>
>
> [root at nw-spcwlk-201 ~]# spacewalk-repo-sync --channel
> centos65-base-x86_64 --url http://mirror.globo.com/centos/6.5/os/x86_64/
> --type yum
>
>
>
> Thanks again in advance for your assistance.
>
>
>
> Marc.
>
>
>
>
>
> *From:* spacewalk-list-bounces at redhat.com [mailto:
> spacewalk-list-bounces at redhat.com] *On Behalf Of *Waldirio Manhães
> Pinheiro
> *Sent:* Thursday, November 13, 2014 8:39 AM
>
>
> *To:* spacewalk-list at redhat.com
> *Subject:* Re: [Spacewalk-list] Problem Sync'ing a new Channel in
> Spacewalk.
>
>
>
> Welcome!
>
>
>
> Take Care
>
>
>   ______________
> Atenciosamente
> Waldirio
> msn: waldirio at gmail.com
> Skype: waldirio
> Site: www.waldirio.com.br
> Blog: blog.waldirio.com.br
>
> LinkedIn: http://br.linkedin.com/pub/waldirio-pinheiro/22/b21/646
> PGP: www.waldirio.com.br/public.html
>
>
>
> On Thu, Nov 13, 2014 at 11:21 AM, Szabo, Marc <Marc.Szabo at priceline.com>
> wrote:
>
> Thank you Waldirio
>
>
>
> I will give this a try…
>
>
>
> *From:* spacewalk-list-bounces at redhat.com [mailto:
> spacewalk-list-bounces at redhat.com] *On Behalf Of *Waldirio Manhães
> Pinheiro
> *Sent:* Wednesday, November 12, 2014 5:02 PM
>
>
> *To:* spacewalk-list at redhat.com
> *Subject:* Re: [Spacewalk-list] Problem Sync'ing a new Channel in
> Spacewalk.
>
>
>
> Hello Marc
>
>
>
> About firewall, you can check ports here -
> https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/5.6/html-single/Installation_Guide/index.html#sect-Installation_Guide-Additional_Requirements-Firewall
>
>
>
> About proxy, in this server, can you access internet web page normally ?!
> or do you are asked about auth password ?!, btw you can check the necessary
> conf here -
> https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/5.6/html-single/Installation_Guide/index.html#sect-Installation_Guide-Installation-Running_Installation_Program-HTTP_Proxy_Setup
>
>
>
> About the sync managed by taskomatic, you have to access Channels - Manage
> Software Channels - click over your channel, after, in tab Repositories,
> you can select your repository and click in update repositories, after this
> click in under tab Sync, here you will define the sync frequency/schedule
> (daily for example) and click in schedule. You can see a button Sync Now,
> you can click to force a synchronization. You can see logs about it in
> /var/log/rhn/reposync/<channel_name>.log
>
>
>
> Enjoy! and let me know if you have some doubt about it.
>
>
>
>
>
>
>
>
>   ______________
> Atenciosamente
> Waldirio
> msn: waldirio at gmail.com
> Skype: waldirio
> Site: www.waldirio.com.br
> Blog: blog.waldirio.com.br
>
> LinkedIn: http://br.linkedin.com/pub/waldirio-pinheiro/22/b21/646
> PGP: www.waldirio.com.br/public.html
>
>
>
> On Wed, Nov 12, 2014 at 5:58 PM, Szabo, Marc <Marc.Szabo at priceline.com>
> wrote:
>
> Waldirio,
>
>
>
> I was looking for the taskomatic and in my search of the GUI, I found the
> “Spacewalk Configuration” tab with fields that include “HTTP proxy,
> username, password, … “  I do have some data in those fields, but not sure
> if they are correct.  Should these be blank?
>
>
>
> Thanks.
>
> Marc.
>
>
>
> *From:* spacewalk-list-bounces at redhat.com [mailto:
> spacewalk-list-bounces at redhat.com] *On Behalf Of *Waldirio Manhães
> Pinheiro
> *Sent:* Wednesday, November 12, 2014 2:21 PM
> *To:* spacewalk-list at redhat.com
> *Subject:* Re: [Spacewalk-list] Problem Sync'ing a new Channel in
> Spacewalk.
>
>
>
> Marc, good afternoon
>
>
>
> Works in my environment, maybe your problem was network connection in the
> moment of sync. Take a look bellow
>
>
>
> ###
>
> [root at spacewalk ~]# rhn-satellite-exporter --list-channels
>
> Channel List:
>
> B = Base Channel
>
> C = Child Channel
>
>
>
> B centos65-base-x86_64
>
>
>
>
>
> [root at spacewalk ~]# spacewalk-repo-sync --channel centos65-base-x86_64
> --url http://mirror.centos.org/centos/6/os/x86_64/ --type yum
>
> #### Channel label: centos65-base-x86_64 ####
>
> Repo URL: http://mirror.centos.org/centos/6/os/x86_64/
>
> Packages in repo:              6518
>
> Packages already synced:          0
>
> Packages to sync:              6518
>
> 1/6518 : krb5-libs-1.10.3-33.el6-0.x86_64
>
> 2/6518 : gprolog-1.3.1-6.el6-0.x86_64
>
> 3/6518 : dos2unix-3.1-37.el6-0.x86_64
>
> 4/6518 : libipathverbs-static-1.3-3.el6-0.x86_64
>
> 5/6518 : perl-XML-Twig-3.34-1.el6-0.noarch
>
> 6/6518 : hunspell-ne-20080425-1.1.el6-0.noarch
>
> 7/6518 : samba-winbind-clients-3.6.23-12.el6-0.i686
>
> ^C
>
> User interrupted process.
>
> [root at spacewalk ~]#
>
> ###
>
>
>
> Although, if you are using a minor release (5) of 6.5 in this case, I
> recommend you to sync from http://mirror.globo.com/centos/6.5/os/x86_64/
>
>
>
> Another point is, you can define the spacewalk to sync for you (I'm not
> sure if you are just forcing bu cli or preparing the command to add in your
> crontab for example), just setting in webui, the taskomatic will do this
> hard work for you! ;-)
>
>
>
> Let me know if you have another question or about the same.
>
>
>
> Take Care
>
>
>
>
>
>
>   ______________
> Atenciosamente
> Waldirio
> msn: waldirio at gmail.com
> Skype: waldirio
> Site: www.waldirio.com.br
> Blog: blog.waldirio.com.br
>
> LinkedIn: http://br.linkedin.com/pub/waldirio-pinheiro/22/b21/646
> PGP: www.waldirio.com.br/public.html
>
>
>
> On Wed, Nov 12, 2014 at 4:40 PM, Szabo, Marc <Marc.Szabo at priceline.com>
> wrote:
>
> Hello all,
>
>
>
> I’m new to spacewalk and I’m in the process of setting up a spacewalk
> server.  I believe that I successfully created the Channel (labeled:
> centos65-base-x86_64) and Repository (centos65-base-x86_64) and linked them
> via Manage Software Channels.  Now I’m trying to sync the repository from
> CentOS URL and I get the following error message:
>
>
>
> [root at nw-spcwlk-201 ~]# spacewalk-repo-sync --channel
> centos65-base-x86_64 --url http://mirror.centos.org/centos/6/os/x86_64/
> --type yum
>
> #### Channel label: centos65-base-x86_64 ####
>
> Repo URL: http://mirror.centos.org/centos/6/os/x86_64/
>
> ERROR: Cannot retrieve repository metadata (repomd.xml) for repository:
> centos65-base-x86_64. Please verify its path and try again
>
> Sync completed.
>
> Total time: 0:01:00
>
>
>
> What am I missing?
>
>
>
> Thank you.
>
>
>
> Marc Szabo
>
> Sr. Unix Administrator
>
> (203) 299-8329
>
>
>
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
>
>
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
>
>
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
>
>
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
>
>
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
>
>
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
>
>
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
>
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20141119/2ce411b8/attachment.htm>


More information about the Spacewalk-list mailing list