If you see below error while using the yum command then follow this page to remediate it:

Update notice RHSA-XXXX:XXXX (from rhel-7-server-rpms) is broken, or a bad duplicate, skipping.
You should report this problem to the owner of the rhel-7-server-rpms repository.
To help pinpoint the issue, please attach the output of "yum updateinfo --verbose" to the report.
Uploading Enabled Repositories Report

STEP1:

On client system, clear the cache:

yum clean all
yum check-update

SETP2:

Sync the repository with "Validate content sync" option
Regenerate metadata of the CV/CCV

--

--

If you encounter this message while registering a host then follow below troubleshooting steps:

STEP1:

subscription-manager remove — all
subscription-manager unregister
subscription-manager clean

Still not able to resolve the issue, follow next step

STEP2:

Go to the Satellite portal and delete the hosts. Do hammer list:

hammer host list | grep 'host.eample.com'
hammer host delete --id <host_id> --organization <org_name>

If still not working, perform the below steps.

STEP3:

su - postgres -c 'psql foreman -c "select id,name,type from hosts where name = '\''host.example.com'\'';"'foreman-rake console> h = Host.find_by_id(I)> h.disassociate!> HostStatus::Status.where(host_id: I).delete_all> h.subscription_facet.destroy> h.content_facet.destroy> h.destroy> Host.find_by_id(I)> exit

Now try to register your host.

--

--

# cd /var/lib/pulp/published/yum/https/repos/<org>/<env>/<CV/CCV>/content/dist/rhel/server/7/7Server/x86_64/os/repodata
# ls -lrt
-rw-rw-r — 1 apache apache 2159 Aug 7 03:56 c76c2299–12f3–4f9c-b7bd-03bacee2c363
-rw-rw-r — 1 apache apache 46607867 Aug 7 10:17 c518eba697b31225fc94acae895f5a7efb7d1b3a-filelists.xml.gz
-rw-rw-r — 1 apache apache 775089218 Aug 7 10:17 6bed788099602b0f3567be2155add80d33aed743-other.xml.gz
-rw-rw-r — 1 apache apache 52782218 Aug 7 10:17 07291dfa1dd23aea5011f82ab1101e90a270b584-primary.xml.gz
-rw-rw-r — 1 apache apache 4190456 Aug 7 11:07 b7c5e15786b076ba0fb5881c3e3666e91bab66cb-updateinfo.xml.gz
-rw-rw-r — 1 apache apache 645871 Aug 7 11:07 aecb2bdc7dc1fd4a4d420025a1f5a054bcf89c64-comps.xml
-rw-rw-r — 1 apache apache 2056 Aug 7 11:07 repomd.xml
# zgrep "metadata packages" *primary*
<metadata packages="31564" xmlns="http://linux.duke.edu/metadata/common" xmlns:rpm="http://linux.duke.edu/metadata/rpm"><package type="rpm">
# zgrep "<package " *primary* | wc -l
31564

--

--

awk '{print $1}' apache.log |sort -n | uniq -c |sort -nr | head
  1. Get the IPs from first field of apache.log
  2. Sort the IPs to process it further
  3. Get the count of each IP
  4. Sort the IPs based on count

Using regular expression:

grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" apache.log |sort -n| uniq -c | sort -nr | head

--

--

Edit the file /etc/audit/rules.d/audit.rules:

-a exit,always -F path=/etc/<dir_name -F perm=warx -F key=dir-watch

Restart the service:

service auditd restart
#systemctl stop/start will not work

Check the audit:

ausearch -k dir-watch

--

--

If you run into same the same issue then you probably missing the syntax of docker run command:

docker run --rm -it -p 3306:3306 my_mariadb -e MYSQL_ROOT_PASSWORD=admin@123
[FATAL tini (7)] exec -e failed: No such file or directory

Here -e is a flag and “my_image” is parameter passed to “docker run” hence it should before -e

docker run --rm -it -p 3306:3306 -e MYSQL_ROOT_PASSWORD=admin@123 my_mariadb

--

--