2016-08-11 02:27 AM
Hello,
I have one VLC v10.4.02 which was earlier connected with the SA server (now SA server doesn't exists), so now I have added the same VLC on the new SA server v10.6.1.0 & then added the VLC onto the Log Hybrid server v 10.6.0.0.
But after the above activity, I am not able see any logs are coming from the VLC to the Log Hybrid, log hybrid is only collecting the logs from the windows legacy machine. So just want to know that the Log Hybrid doesn't supports the older version of VLC to collect the logs? Because I have created the certificates on the VLC and also added the IP address of new SA server & also the SA server was able to discover the VLC, but I have no idea that why the Log Hybrid is unable to collect the logs.
And to resolve the above issue I thought to troubleshoot & to upgrade the VLC onto the same version of Log Hybrid, but unable to do the same by following the upgrade procedure as mentioned in the document. So I tried to make an custom repository on the VLC (it was suggested by a RSA support member) to get it updated to 10.4.1.0 and then 10.4.2.0 and then 10.5.1.0 and then disable custom repo and then use the SA local repo to get it upgraded from 10.5 version to 10.6.10 by using the upgrade package of latest 10.6 packages.
But I tried many times to make an custom repo on the VLC and upload the packages of 10.4.1, but I am unable to achieve it.
So just want to know is anybody can suggest me that how to upgrade the VLC which is on a older version but connected to the SA on the latest version & suggest if the custom repo creation for upgrading is the only option then how I can do it to achieve the target.
Note: But we want the VLC on the latest version & the event sources which are already integrated should also keep collecting the logs after upgrading the version of the VLC on 10.6.
Many many thanks in advance.
Regards,
Deepanshu Sood.
2016-08-11 03:44 AM
Hello Deepanshu,
It seems your best bet is as advised by the support engineer.
You need to create a local repo name it any directory, for instance /tmp/repo/rpms
[LocalRepo]
gpgcheck=1
name=LocalRepo
baseurl=file:///tmp/repo
sslverify=1
enabled=1
Once done, now you need to run "yum clean all" followed by "yum update".
Make sure to do the update as per the supported upgrade path.
Let me know if you faced any problems, or if that is what you already tried doing before.
Thanks,
Akram
2016-08-11 05:20 AM
Hi Akram,
I am not able to install the createrepo packages to create the custom repo. Pls advise how to do so.
I have tried installing the createrepo packages but it throws so many dependencies error all the time. Suggest how to clear it.
Regards,
Deepanshu Sood.
2016-08-11 05:41 AM
Hello,
Luckily createrepo are python files
Can you please place the "genpkgmetadata.py , mergerepo.py , modifyrepo.py, worker.py" files attached, in the following path with the following permissions
-rwxr-xr-x. 1 root root 11983 May 14 2014 /usr/share/createrepo/genpkgmetadata.py
-rwxr-xr-x. 1 root root 3424 May 14 2014 /usr/share/createrepo/mergerepo.py
-rwxr-xr-x. 1 root root 8694 May 14 2014 /usr/share/createrepo/modifyrepo.py
-rwxr-xr-x. 1 root root 3795 May 14 2014 /usr/share/createrepo/worker.py
Also Can you please create a file "createrepo" with the following path and permissions as below
-rwxr-xr-x. 1 root root 60 Jan 26 2011 /usr/bin/createrepo
In this file, please add the following 2 lines
#!/bin/sh
exec /usr/share/createrepo/genpkgmetadata.py "$@"
Once done, please try to re-run the command createrepo as per instructions in the previous reply.
Please make sure the correct permissions are granted for all these files.
Let me know what happens.
Akram
2016-08-11 07:03 AM
2016-08-11 07:18 AM
Hello,
No worries.
Please download the following file, and scp it to your machine /root directory
http://createrepo.baseurl.org/download/createrepo-0.10.4.tar.gz
Now from your /root directory, issue the below commands
tar xzvf /root/createrepo-0.10.4.tar.gz
cd /root/createrepo-0.10.4/bin/
./createrepo /tmp/repo
Let me know what happens.
Thanks,
Akram
2016-08-11 07:25 AM
Hi,
The below is the output..
[root@NCORP-VLC-01 ~]# tar xzvf /root/createrepo-0.10.4.tar.gz
createrepo-0.10.4/
createrepo-0.10.4/README
createrepo-0.10.4/COPYING
createrepo-0.10.4/modifyrepo.py
createrepo-0.10.4/COPYING.lib
createrepo-0.10.4/genpkgmetadata.py
createrepo-0.10.4/docs/
createrepo-0.10.4/docs/mergerepo.1
createrepo-0.10.4/docs/modifyrepo.1
createrepo-0.10.4/docs/createrepo.8
createrepo-0.10.4/docs/Makefile
createrepo-0.10.4/dmd.py
createrepo-0.10.4/createrepo.bash
createrepo-0.10.4/worker.py
createrepo-0.10.4/createrepo.spec
createrepo-0.10.4/bin/
createrepo-0.10.4/bin/mergerepo
createrepo-0.10.4/bin/modifyrepo
createrepo-0.10.4/bin/Makefile
createrepo-0.10.4/bin/createrepo
createrepo-0.10.4/ChangeLog
createrepo-0.10.4/Makefile
createrepo-0.10.4/mergerepo.py
createrepo-0.10.4/createrepo/
createrepo-0.10.4/createrepo/__init__.py
createrepo-0.10.4/createrepo/merge.py
createrepo-0.10.4/createrepo/deltarpms.py
createrepo-0.10.4/createrepo/yumbased.py
createrepo-0.10.4/createrepo/utils.py
createrepo-0.10.4/createrepo/Makefile
createrepo-0.10.4/createrepo/readMetadata.py
[root@NCORP-VLC-01 ~]#
[root@NCORP-VLC-01 ~]# cd /root/createrepo-0.10.4/bin/
[root@NCORP-VLC-01 bin]# ./createrepo /tmp/repo
./createrepo: line 2: /usr/share/createrepo/genpkgmetadata.py: cannot execute binary file
./createrepo: line 2: /usr/share/createrepo/genpkgmetadata.py: Success
[root@NCORP-VLC-01 bin]#
[root@NCORP-VLC-01 bin]#
2016-08-11 07:28 AM
Hello,
Ok then, did you try "yum check-update"?
Thanks,
Akram
2016-08-11 07:31 AM
Hello,
Yes, I tried that also but the same output of it too.
[root@NCORP-VLC-01 yum.repos.d]# yum check-update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
file:///tmp/repo/repodata/repomd.xml: [Errno 14] Could not open/read file:///tmp/repo/repodata/repomd.xml
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: LocalRepo. Please verify its path and try again
[root@NCORP-VLC-01 yum.repos.d]#
Regards,
Deepanshu Sood.
2016-08-11 07:38 AM
Hello,
Please remove the old files, and try again.
rm -f /usr/bin/createrepo
rm -rf /usr/share/createrepo
Then try again to run the ./createrepo /tmp/repo
If this fails, please login a support case, and I will pick it to assist you with this.
Thanks,
Akram