Kamis, 12 Maret 2020

How to solved Failed to synchronize cache for repo 'AppStream', ignoring this repo. Centos 8

  Tidak ada komentar
Failed to synchronize cache
[root@analytic ~]# yum install nginx
CentOS-8.0 - AppStream                                                                                                16  B/s |  38  B     00:02
CentOS-8.0 - Base                                                                                                     25  B/s |  38  B     00:01
CentOS-8.0 - Extras                                                                                                   24  B/s |  38  B     00:01
Extra Packages for Enterprise Linux 8.0 - x86_64                                                                      11 kB/s |  57 kB     00:05
Failed to synchronize cache for repo 'AppStream', ignoring this repo.
Failed to synchronize cache for repo 'BaseOS', ignoring this repo.
Failed to synchronize cache for repo 'extras', ignoring this repo.
Failed to synchronize cache for repo 'epel', ignoring this repo.
Last metadata expiration check: 1:52:33 ago on Thu 12 Mar 2020 05:58:49 PM WIB.
No match for argument: nginx
Error: Unable to find a match
[root@analytic ~]#
 Perform following command
[root@analytic ~]# cd /etc/yum.repos.d && sed -i.BAK -e 's/$releasever/8/g' *.repo
[root@analytic yum.repos.d]#
[root@analytic yum.repos.d]# yum install nginx
CentOS-8 - AppStream                                                                                                 890 kB/s | 6.5 MB     00:07
CentOS-8 - Base                                                                                                      1.0 MB/s | 5.0 MB     00:04
CentOS-8 - Extras                                                                                                    638  B/s | 2.1 kB     00:03
Extra Packages for Enterprise Linux 8 - x86_64                                                                       668 kB/s | 6.0 MB     00:09
Node.js Packages for Enterprise Linux 8 - x86_64                                                                     492  B/s | 2.5 kB     00:05
Dependencies resolved.
=====================================================================================================================================================
 Package                                   Arch                 Version                                                Repository               Size
=====================================================================================================================================================
Installing:
 nginx                                     x86_64               1:1.14.1-9.module_el8.0.0+184+e34fea82                 AppStream               570 k
Upgrading:
 nginx-filesystem                          noarch               1:1.14.1-9.module_el8.0.0+184+e34fea82                 AppStream                24 k
Installing dependencies:
 nginx-all-modules                         noarch               1:1.14.1-9.module_el8.0.0+184+e34fea82                 AppStream                23 k
 nginx-mod-http-image-filter               x86_64               1:1.14.1-9.module_el8.0.0+184+e34fea82                 AppStream                35 k
 nginx-mod-http-perl                       x86_64               1:1.14.1-9.module_el8.0.0+184+e34fea82                 AppStream                45 k
 nginx-mod-http-xslt-filter                x86_64               1:1.14.1-9.module_el8.0.0+184+e34fea82                 AppStream                33 k
 nginx-mod-mail                            x86_64               1:1.14.1-9.module_el8.0.0+184+e34fea82                 AppStream                64 k
 nginx-mod-stream                          x86_64               1:1.14.1-9.module_el8.0.0+184+e34fea82                 AppStream                85 k

Transaction Summary
=====================================================================================================================================================
Install  7 Packages
Upgrade  1 Package

Total download size: 881 k
Is this ok [y/N]: y
Downloading Packages:
(1/8): nginx-all-modules-1.14.1-9.module_el8.0.0+184+e34fea82.noarch.rpm                                              22 kB/s |  23 kB     00:01
(2/8): nginx-mod-http-image-filter-1.14.1-9.module_el8.0.0+184+e34fea82.x86_64.rpm                                    31 kB/s |  35 kB     00:01
(3/8): nginx-mod-http-xslt-filter-1.14.1-9.module_el8.0.0+184+e34fea82.x86_64.rpm                                    547 kB/s |  33 kB     00:00
(4/8): nginx-mod-http-perl-1.14.1-9.module_el8.0.0+184+e34fea82.x86_64.rpm                                           513 kB/s |  45 kB     00:00
(5/8): nginx-mod-mail-1.14.1-9.module_el8.0.0+184+e34fea82.x86_64.rpm                                                512 kB/s |  64 kB     00:00
(6/8): nginx-mod-stream-1.14.1-9.module_el8.0.0+184+e34fea82.x86_64.rpm                                              659 kB/s |  85 kB     00:00
(7/8): nginx-filesystem-1.14.1-9.module_el8.0.0+184+e34fea82.noarch.rpm                                              382 kB/s |  24 kB     00:00
(8/8): nginx-1.14.1-9.module_el8.0.0+184+e34fea82.x86_64.rpm                                                         395 kB/s | 570 kB     00:01
-----------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                174 kB/s | 881 kB     00:05
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                             1/1
  Running scriptlet: nginx-filesystem-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch                                                              1/1
  Running scriptlet: nginx-filesystem-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch                                                              1/9
  Upgrading        : nginx-filesystem-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch                                                              1/9
  Installing       : nginx-mod-http-image-filter-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                   2/9
  Running scriptlet: nginx-mod-http-image-filter-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                   2/9
  Installing       : nginx-mod-http-perl-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                           3/9
  Running scriptlet: nginx-mod-http-perl-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                           3/9
  Installing       : nginx-mod-http-xslt-filter-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                    4/9
  Running scriptlet: nginx-mod-http-xslt-filter-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                    4/9
  Installing       : nginx-mod-mail-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                                5/9
  Running scriptlet: nginx-mod-mail-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                                5/9
  Installing       : nginx-all-modules-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch                                                             6/9
  Installing       : nginx-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                                         7/9
  Running scriptlet: nginx-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                                         7/9
warning: /etc/nginx/mime.types created as /etc/nginx/mime.types.rpmnew
warning: /etc/nginx/mime.types.default created as /etc/nginx/mime.types.default.rpmnew
warning: /etc/nginx/nginx.conf created as /etc/nginx/nginx.conf.rpmnew

  Installing       : nginx-mod-stream-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                              8/9
  Running scriptlet: nginx-mod-stream-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                              8/9
  Cleanup          : nginx-filesystem-1:1.14.1-8.module_el8.0.0+5+258f653c.noarch                                                                9/9
  Running scriptlet: nginx-filesystem-1:1.14.1-8.module_el8.0.0+5+258f653c.noarch                                                                9/9
  Verifying        : nginx-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                                         1/9
  Verifying        : nginx-all-modules-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch                                                             2/9
  Verifying        : nginx-mod-http-image-filter-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                   3/9
  Verifying        : nginx-mod-http-perl-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                           4/9
  Verifying        : nginx-mod-http-xslt-filter-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                    5/9
  Verifying        : nginx-mod-mail-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                                6/9
  Verifying        : nginx-mod-stream-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                              7/9
  Verifying        : nginx-filesystem-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch                                                              8/9
  Verifying        : nginx-filesystem-1:1.14.1-8.module_el8.0.0+5+258f653c.noarch                                                                9/9

Upgraded:
  nginx-filesystem-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch

Installed:
  nginx-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                           nginx-all-modules-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch
  nginx-mod-http-image-filter-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64     nginx-mod-http-perl-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64
  nginx-mod-http-xslt-filter-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64      nginx-mod-mail-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64
  nginx-mod-stream-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64

Complete!
[root@analytic yum.repos.d]#


How to install IBM ACE

  Tidak ada komentar
Create IBM directory on opt, copy IBM Ace installer to it 
anaconda-ks.cfg  IBM_ACE_11.0.0.5_LNX_X8664_INCTKT.tar.gz  MQ_V9.0_F_LNX_ON_X86_64_EIMAGE.tar.gz  nohup.out
[root@soadevnew ~]#
[root@soadevnew ~]# mkdir /opt/IBM
[root@soadevnew ~]# cp IBM_ACE_11.0.0.5_LNX_X8664_INCTKT.tar.gz /opt/IBM/
[root@soadevnew ~]# cd /opt/IBM/
[root@soadevnew IBM]# ls
IBM_ACE_11.0.0.5_LNX_X8664_INCTKT.tar.gz
[root@soadevnew IBM]#
Extract the IBM Ace installer and check the directory
[root@soadevnew IBM]# tar -zxf IBM_ACE_11.0.0.5_LNX_X8664_INCTKT.tar.gz
[root@soadevnew IBM]#
[root@soadevnew IBM]# ls
ace-11.0.0.5  IBM_ACE_11.0.0.5_LNX_X8664_INCTKT.tar.gz
[root@soadevnew IBM]#
[root@soadevnew IBM]# cd ace-11.0.0.5/
[root@soadevnew ace-11.0.0.5]#
[root@soadevnew ace-11.0.0.5]# ls -l
total 40
-rwxr-xr-x.  1 root root 27298 Jun 27  2019 ace
drwxrwxr-x. 11 root root   198 Jun 27  2019 common
drwxrwxr-x.  2 root root     6 Jun 27  2019 extensions
drwxr-xr-x.  5 root root    80 Jun 27  2019 ie02
drwxrwxr-x.  2 root root   150 Jun 27  2019 license
drwxrwxr-x. 15 root root   175 Jun 27  2019 readmes
drwxrwxr-x. 37 root root  4096 Jun 27  2019 server
drwxrwxr-x.  2 root root  4096 Jun 27  2019 swidtag
drwxrwxr-x. 13 root root  4096 Jun 27  2019 tools
[root@soadevnew ace-11.0.0.5]#

 run the ./ace command to run the installer


[root@soadevnew ace-11.0.0.5]# ./ace make registry global accept license
International Program License Agreement

Part 1 - General Terms

BY DOWNLOADING, INSTALLING, COPYING, ACCESSING, CLICKING ON
AN "ACCEPT" BUTTON, OR OTHERWISE USING THE PROGRAM,
LICENSEE AGREES TO THE TERMS OF THIS AGREEMENT. IF YOU ARE
ACCEPTING THESE TERMS ON BEHALF OF LICENSEE, YOU REPRESENT
AND WARRANT THAT YOU HAVE FULL AUTHORITY TO BIND LICENSEE
TO THESE TERMS. IF YOU DO NOT AGREE TO THESE TERMS,

* DO NOT DOWNLOAD, INSTALL, COPY, ACCESS, CLICK ON AN
"ACCEPT" BUTTON, OR USE THE PROGRAM; AND

* PROMPTLY RETURN THE UNUSED MEDIA, DOCUMENTATION, AND

Press Enter to continue viewing the license agreement, or
enter "1" to accept the agreement, "2" to decline it, "3"
to print it, "4" to read non-IBM terms, or "99" to go back
to the previous screen.

PROOF OF ENTITLEMENT TO THE PARTY FROM WHOM IT WAS OBTAINED
FOR A REFUND OF THE AMOUNT PAID. IF THE PROGRAM WAS
DOWNLOADED, DESTROY ALL COPIES OF THE PROGRAM.

1. Definitions

"Authorized Use" - the specified level at which Licensee is
authorized to execute or run the Program. That level may be
measured by number of users, millions of service units
("MSUs"), Processor Value Units ("PVUs"), or other level of
use specified by IBM.

"IBM" - International Business Machines Corporation or one
of its subsidiaries.


Press Enter to continue viewing the license agreement, or
enter "1" to accept the agreement, "2" to decline it, "3"
to print it, "4" to read non-IBM terms, or "99" to go back
to the previous screen.

"License Information" ("LI") - a document that provides
information and any additional terms specific to a Program.
The Program's LI is available at www.ibm.com/software/sla.
The LI can also be found in the Program's directory, by the
use of a system command, or as a booklet included with the
Program.

"Program" - the following, including the original and all
whole or partial copies: 1) machine-readable instructions
and data, 2) components, files, and modules, 3) audio-
visual content (such as images, text, recordings, or
pictures), and 4) related licensed materials (such as keys
and documentation).

"Proof of Entitlement" ("PoE") - evidence of Licensee's

Press Enter to continue viewing the license agreement, or
enter "1" to accept the agreement, "2" to decline it, "3"
to print it, "4" to read non-IBM terms, or "99" to go back
to the previous screen.
1
License accepted
Group 'mqbrkrs' will be created
[root@soadevnew ace-11.0.0.5]#
[root@soadevnew ace-11.0.0.5]# cat /etc/group | grep mqbrkrs
mqbrkrs:x:1000:
[root@soadevnew ace-11.0.0.5]#
[root@soadevnew ace-11.0.0.5]# cat /etc/group | grep mqsi
[root@soadevnew ace-11.0.0.5]#
Check the 
[root@soadevnew ace-11.0.0.5]#
[root@soadevnew ace-11.0.0.5]# ls -l /var/
total 8
drwxr-xr-x.  2 root root       6 Apr 11  2018 adm
drwxr-xr-x.  5 root root      44 Nov 25 17:18 cache
drwxr-xr-x.  2 root root       6 Aug  8  2019 crash
drwxr-xr-x.  3 root root      34 Mar 11 16:45 db
drwxr-xr-x.  3 root root      18 Nov 25 17:18 empty
drwxr-xr-x.  2 root root       6 Apr 11  2018 games
drwxr-xr-x.  2 root root       6 Apr 11  2018 gopher
drwxr-xr-x.  3 root root      18 Sep 14 01:13 kerberos
drwxr-xr-x. 24 root root    4096 Nov 25 17:18 lib
drwxr-xr-x.  2 root root       6 Apr 11  2018 local
lrwxrwxrwx.  1 root root      11 Nov 25 17:16 lock -> ../run/lock
drwxr-xr-x.  7 root root    4096 Mar 12 03:14 log
lrwxrwxrwx.  1 root root      10 Nov 25 17:16 mail -> spool/mail
drwxrwxr-x. 12 root mqbrkrs  162 Mar 12 15:39 mqsi
drwxr-xr-x.  2 root root       6 Apr 11  2018 nis
drwxr-xr-x.  2 root root       6 Apr 11  2018 opt
drwxr-xr-x.  2 root root       6 Apr 11  2018 preserve
lrwxrwxrwx.  1 root root       6 Nov 25 17:16 run -> ../run
drwxr-xr-x.  8 root root      87 Nov 25 17:18 spool
drwxrwxrwt.  4 root root     108 Mar 11 21:33 tmp
drwxr-xr-x.  2 root root       6 Apr 11  2018 yp
[root@soadevnew ace-11.0.0.5]#
[root@soadevnew ace-11.0.0.5]# ls -l /var/mqsi/
total 0
drwxrwxr-x. 7 root mqbrkrs 72 Mar 12 15:39 common
drwxrwsr-x. 2 root mqbrkrs  6 Mar 12 15:39 components
drwxrwxr-x. 2 root mqbrkrs  6 Mar 12 15:39 config
drwxrwsr-x. 2 root mqbrkrs  6 Mar 12 15:39 connectors
drwxrwxr-x. 2 root mqbrkrs  6 Mar 12 15:39 node_modules
drwxrwxr-x. 2 root mqbrkrs  6 Mar 12 15:39 odbc
drwxrws---. 2 root mqbrkrs 18 Mar 12 15:39 registry
drwxrwxr-x. 2 root mqbrkrs  6 Mar 12 15:39 shared-classes
drwxrwxr-x. 3 root mqbrkrs 22 Mar 12 15:39 XML
drwxrwxr-x. 3 root mqbrkrs 22 Mar 12 15:39 XSL
[root@soadevnew ace-11.0.0.5]#

Create the ecpa user
[root@soadevnew ace-11.0.0.5]# useradd ecpa
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.
Creating mailbox file: File exists
[root@soadevnew ace-11.0.0.5]# passwd ecpa
Changing password for user ecpa.
New password:
BAD PASSWORD: The password contains the user name in some form
Retype new password:
passwd: all authentication tokens updated successfully.
[root@soadevnew ace-11.0.0.5]#
[root@soadevnew ace-11.0.0.5]# usermod -aG mqbrkrs maswachid
[root@soadevnew ace-11.0.0.5]#
[root@soadevnew ace-11.0.0.5]# cat /etc/group | mqbrkrs
-bash: mqbrkrs: command not found
[root@soadevnew ace-11.0.0.5]# cat /etc/group | grep mqbrkrs
mqbrkrs:x:1000:ecpa
[root@soadevnew ace-11.0.0.5]#
[root@soadevnew ace-11.0.0.5]# usermod -aG mqbrkrs root
[root@soadevnew ace-11.0.0.5]#
[root@soadevnew ace-11.0.0.5]# cat /etc/group | grep mqbrkrs
mqbrkrs:x:1000:ecpa,root
[root@soadevnew ace-11.0.0.5]#


Switch to user
[root@soadevnew ace-11.0.0.5]#
[root@soadevnew ace-11.0.0.5]# su - maswachid
[ecpa@soadevnew ~]$
[ecpa@soadevnew ~]$ vi .bash_profile
[ecpa@soadevnew ~]$
[ecpa@soadevnew ~]$ exit
logout
[root@soadevnew ace-11.0.0.5]# su - maswachid
Last login: Thu Mar 12 16:11:21 WIB 2020 on pts/1

MQSI 11.0.0.5
/opt/IBM/ace-11.0.0.5/server

[ecpa@soadevnew ~]$
[ecpa@soadevnew ~]$ mqsilist
BIP1281I: No integration nodes have been defined on this machine.
BIP8071I: Successful command completion.
[ecpa@soadevnew ~]$
[root@soadevnew ace-11.0.0.5]# usermod -aG wheel maswachid
[root@soadevnew ace-11.0.0.5]#




P