tag:blogger.com,1999:blog-13261106074849772762024-03-13T18:01:20.871+05:30Cloud Architect, DevOps, TroubleshootingDiscussions related to DevOps, AI, CloudUnknownnoreply@blogger.comBlogger179125tag:blogger.com,1999:blog-1326110607484977276.post-73165960839322185142024-03-03T19:06:00.009+05:302024-03-03T19:06:59.377+05:30Mysql Slave_SQL_Running no<p><span style="font-family: arial;"> Mysql Slave_SQL_Running no</span></p><p><span style="font-family: arial;">Environment is Centos8 with MySQL 8.0 and its a MySQL master slave replication. When I checked the "SHOW SLAVE STATUS\G" I am seeing status no for "Slave_SQL_Running".</span></p><p><span style="font-family: arial;"><u>Fix the issue :</u></span></p><p><span style="font-family: arial;">Login to Slave Server.</span></p><p><span style="font-family: arial;">STOP SLAVE;</span></p><p><span style="font-family: arial;">SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1; </span></p><p><span style="font-family: arial;">START SLAVE;</span></p><p><span style="font-family: arial;">This will fix my issue.</span></p><p><br /></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1326110607484977276.post-6198887860558574542024-01-30T17:45:00.002+05:302024-01-30T17:46:16.503+05:30How to connect OpenVPN 3 client in Ubuntu 22<h2 style="text-align: left;"><span style="font-family: arial;"> How to connect OpenVPN client in Ubuntu 22</span></h2><p><span style="font-family: arial;">In linux, Open VPN client is connected using the configuration file.</span></p><h4 style="text-align: left;"><span style="font-family: arial;">First, Install the open vpn3 client.</span></h4><pre class="wiki"><span style="font-family: arial;">#apt install apt-transport-https curl</span></pre><pre class="wiki"><span style="font-family: arial;">#mkdir -p /etc/apt/keyrings</span></pre><pre class="wiki"><span style="font-family: arial;">#curl -sSfL https://packages.openvpn.net/packages-repo.gpg >/etc/apt/keyrings/openvpn.asc</span></pre><pre class="wiki"><span style="font-family: arial;">#echo "deb [signed-by=/etc/apt/keyrings/openvpn.asc] https://packages.openvpn.net/openvpn3/debian </span></pre><pre class="wiki"><span style="font-family: arial;"><span style="color: red;"> DISTRIBUTION</span> main" >>/etc/apt/sources.list.d/openvpn3.list</span></pre><pre class="wiki"><span style="font-family: arial;">Replace the DISTRIBUTION in the above command with yours. For me mine is "jammy"</span></pre><pre class="wiki"><span style="font-family: arial;">#apt update</span></pre><pre class="wiki"><span style="font-family: arial;">#apt install openvpn3</span></pre><pre class="wiki"><span style="font-family: arial;">Now you have installed openvpn3 in your ubuntu machine.</span></pre><pre class="wiki"><span style="font-family: arial;">Type openvpn3 --help you will see bunch of commands.</span></pre><h4 style="text-align: left;"><span style="font-family: arial;">Second, we need to generate the configuration file from the open vpn server</span></h4><pre class="wiki"><span style="font-family: arial;">Login to your openvpn Admin UI</span></pre><pre class="wiki"><span style="font-family: arial;">Under User Management, select User Profiles</span></pre><pre class="wiki"><span style="font-family: arial;">Click on the "New Profile" for the user which you want to connect</span></pre><pre class="wiki"><span style="font-family: arial;">Generate the profile</span></pre><pre class="wiki"><span style="font-family: arial;">Download the profile file</span></pre><h4 style="text-align: left;"><span style="font-family: arial;">Third, connect the VPN client</span></h4><pre class="wiki"><span style="font-family: arial;"># openvpn3 session-start --config {path to the above configuration file}</span></pre><pre class="wiki"><span style="font-family: arial;">Enter your username (only username no need for username@IP)</span></pre><pre class="wiki"><span style="font-family: arial;">Enter password</span></pre><pre class="wiki"><span style="font-family: arial;">It connects, please make sure don't close this terminal. If you need you can run as a background process.</span></pre><pre class="wiki"><span style="font-family: arial;"><br /></span></pre>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1326110607484977276.post-52892913274583394022023-12-27T09:04:00.000+05:302023-12-27T09:04:05.726+05:30How to Archiving Amazon S3 Data to Amazon Glacier<h2 style="text-align: left;"> How to Archiving Amazon S3 Data to Amazon Glacier</h2><p style="text-align: left;"><span style="font-family: arial; font-size: medium;">As you know in AWS S3 we have different tier of storage. Based on our requirement we need to use the correct one to save cost and to meet the purpose. One of such requirement is to move the old backup files from S3 to amazon Glacier.</span></p><p style="text-align: left;"><span style="font-family: arial; font-size: medium;"><br />In this video you will learn how to archiving amazon s3 data to amazon glacier.</span></p><p style="text-align: left;"><span style="font-family: arial; font-size: medium;"><br /></span></p>
<iframe width="560" height="315" src="https://www.youtube.com/embed/5TgsnXk-CK0?si=pqLthxNZPQxb66rL" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
<div style="text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><br /><div><br /></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1326110607484977276.post-30399758206348727322023-09-26T21:30:00.007+05:302023-09-26T21:30:53.961+05:30How to install OCI CLI in CentOS 8 Stream<p><span style="font-family: arial; font-size: medium;"> How to install OCI CLI in CentOS 8 Stream</span></p><p><span style="font-family: arial; font-size: medium;">The steps mentioned in the internet is not working for me. So this is the working commands.</span></p><p class="p1" style="font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial; font-size: medium;"># yum install python38 -y</span></span></p><p class="p1" style="font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span style="font-family: arial; font-size: medium;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"></span></span></p><p class="p1" style="font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial; font-size: medium;"># ll /usr/bin/pip3.8</span></span></p><p class="p1" style="font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span style="font-family: arial; font-size: medium;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"></span></span></p><p class="p1" style="font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial; font-size: medium;"># ll /usr/bin/pip-3.8</span></span></p><p class="p1" style="font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span style="font-family: arial; font-size: medium;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"></span></span></p><p class="p1" style="font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial; font-size: medium;"># pip3.8 install oci-cli</span></span></p><p class="p1" style="font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span style="font-family: arial; font-size: medium;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"></span></span></p><p class="p1" style="font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial; font-size: medium;"># oci --version</span></span></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1326110607484977276.post-37402005078683026542023-09-18T09:05:00.004+05:302023-09-18T09:05:44.571+05:30How to redirect 404 error to the home page<p><span style="font-family: arial; font-size: medium;"> How to redirect 404 error to the home page</span></p><p><span style="font-family: arial; font-size: medium;">Following steps helps to redirect all 404 error pages to the home page. Assume you already installed httpd in this server.</span></p><p></p><ul style="text-align: left;"><li><span style="font-family: arial; font-size: medium;">Make sure you enabled "rewrite_modile" (httpd - M | grep rewrite)</span></li><li><span style="font-family: arial; font-size: medium;">vi /etc/httpd/conf/httpd.conf (enable AllowOverride from "None" to "All"). Based on your configuration path.</span></li><li><span style="font-family: arial; font-size: medium;">vi /var/www/html/.htaccess (ErrorDocument 404 https://example.com)</span></li><li><span style="font-family: arial; font-size: medium;">systemctl restart httpd</span></li><li><span style="font-family: arial; font-size: medium;">Test it</span></li></ul><p></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1326110607484977276.post-80051967906687579132023-09-18T09:01:00.003+05:302023-12-27T08:54:09.665+05:30How to install letsencrypt on Amazon linux 2023<p><span style="font-family: arial; font-size: medium;"> How to install letsencrypt on Amazon linux 2023</span></p><p><span style="font-family: arial; font-size: medium;">In Amazon linux 2023, EPEL is not available. All the documentations avaialble in internet is about EPEL and then install certbot. But here we need to use a different approach.</span></p><p></p><ul style="text-align: left;"><li><span style="font-family: arial; font-size: medium;">Login to the server</span></li><li><span style="font-family: arial; font-size: medium;">dnf install python3 augeas-libs</span></li><li><span style="font-family: arial; font-size: medium;">dnf remove certbot</span></li><li><span style="font-family: arial; font-size: medium;">python3 -m venv /opt/certbot/</span></li><li><span style="font-family: arial; font-size: medium;">/opt/certbot/bin/pip install --upgrade pip</span></li><li><span style="font-family: arial; font-size: medium;">/opt/certbot/bin/pip install certbot certbot-apache</span></li><li><span style="font-family: arial; font-size: medium;">ln -s /opt/certbot/bin/certbot /usr/bin/certbot</span></li><li><span style="font-family: arial; font-size: medium;">certbot --apache</span></li></ul><div><span style="font-family: arial; font-size: medium;">This works perfectly for me. 🙋🙋</span></div><div><span style="font-family: arial; font-size: medium;">Here is the video tutorial. Have a look and install.</span></div><div><span style="font-family: arial; font-size: medium;"><br /></span></div><div><div class="separator" style="clear: both; text-align: center;"><iframe allowfullscreen="" class="BLOG_video_class" height="286" src="https://www.youtube.com/embed/HvUGQIZzcBw" width="558" youtube-src-id="HvUGQIZzcBw"></iframe></div></div><p><br /></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1326110607484977276.post-70969345589290932532023-09-06T20:58:00.004+05:302023-09-06T20:58:28.545+05:30Single command to checkout all branches in git<p><span style="font-family: arial;"> Single command to checkout all branches in git</span></p><p><span style="font-family: arial;"><br /></span></p><p class="p1" style="font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;">[yourserver #] for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master `; do; git branch --track ${branch#remotes/origin/} $branch; done;</span></span></p><p class="p1" style="font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"><br /></span></span></p><p class="p1" style="font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;">This is useful when we do git migrations.</span></span></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1326110607484977276.post-62037293773993376872023-07-24T07:32:00.006+05:302023-07-24T07:32:40.138+05:30The GPG keys listed for the "MySQL 8.0 Community Server" repository are already installed but they are not correct for this package. Check that the correct key URLs are configured for this repository.<p><span style="font-family: arial; font-size: medium;"> OS : CentOS 7</span></p><p><span style="font-family: arial; font-size: medium;">Error while installing Mysql</span></p><p class="p1" style="font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span style="font-family: arial; font-size: medium;">The GPG keys listed for the "MySQL 8.0 Community Server" repository are already installed but they are not correct for this package.</span></p><p class="p1" style="font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span style="font-family: arial; font-size: medium;">Check that the correct key URLs are configured for this repository.</span></p><p class="p1" style="font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span style="font-family: arial; font-size: medium;"><br /></span></p><p class="p1" style="font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span style="font-family: arial; font-size: medium;">Fix:</span></p><p class="p1" style="font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span style="font-family: arial; font-size: medium;"><br /></span></p><p class="p1" style="font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span style="font-family: arial; font-size: medium;">Import new key from rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022</span></p><p class="p2" style="font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px; min-height: 15px;"><span style="font-family: arial; font-size: medium;"><br /></span></p><p class="p1" style="font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span style="font-family: arial; font-size: medium;">Yum update</span></p><p class="p1" style="font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;"><span style="font-family: arial; font-size: medium;">yum install mysql-server</span></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1326110607484977276.post-21698630211526750822023-06-15T15:23:00.003+05:302023-06-15T15:23:17.240+05:30Access denied for user 'user'@'hostname' (using password: YES) in mysql8<p><span style="font-family: arial;"> Error : Access denied for user 'user'@'hostname' (using password: YES) in mysql8</span></p><p><span style="font-family: arial;">Mysql version is Mysql8</span></p><p><span style="font-family: arial;">OS is Ubuntu 22</span></p><p><span style="font-family: arial;">I am sure that i can connect from my both apps servers to the DB from the command shell.</span></p><p><span style="font-family: arial;">The issue is the mysql user password. In my password, i had some special characters. When we input this password in command prompt, in bash shell it will work. But its not working from nodejs code (.env file)</span></p><p><span style="font-family: arial;">Solution :</span></p><p><span style="font-family: arial;">I change the password without a special character and the issue got fixed.</span></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1326110607484977276.post-50412249776178992702023-01-26T22:17:00.002+05:302023-01-26T22:17:12.604+05:30unable to find /root/.my.cnf. Exception message: (1698, \"Access denied for user 'root'@'localhost<p> While running Ansible 2.14.1, i am getting the error</p><p>"unable to find /root/.my.cnf. Exception message: (1698, \"Access denied for user 'root'@'localhost</p><p>Solution to fix is :</p><p>You need to login to the server and find the mysqld.sock file. In my Ubuntu22 machine its /var/run/mysqld/mysqld.sock</p><p>I need to update this in my playbook as</p><div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;"><div>- <span style="color: #c586c0;">name</span>: <span style="color: #ce9178;">Create Application database</span></div><div> <span style="color: #4ec9b0;">mysql_db</span>: <span style="color: #ce9178;">name=employee_db state=present login_unix_socket=/var/run/mysqld/mysqld.sock</span></div><br /><div> - <span style="color: #c586c0;">name</span>: <span style="color: #ce9178;">Create Database User</span></div><div> <span style="color: #4ec9b0;">mysql_user</span>: </div><div> <span style="color: #dcdcaa;">name</span><span style="color: #dcdcaa;"> </span>: <span style="color: #ce9178;">db_user</span></div><div> <span style="color: #dcdcaa;">password</span>: <span style="color: #ce9178;">Passw0rd</span></div><div> <span style="color: #dcdcaa;">priv</span>: <span style="color: #ce9178;">'*.*:ALL'</span></div><div> <span style="color: #dcdcaa;">login_unix_socket</span>: <span style="color: #ce9178;">/var/run/mysqld/mysqld.sock</span></div><div> <span style="color: #dcdcaa;">state</span>: <span style="color: #ce9178;">present</span></div></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1326110607484977276.post-54171412519202870072023-01-02T07:39:00.007+05:302023-01-02T07:39:54.581+05:30ansible ssh key path in different location - Part 2<p> Normally we will add the private key of the server in our .ssh/authorized keys, right?</p><p>But i want to keep the ssh key in a different location.</p><p>I created a folder called "centos" and i am planning to keep all the ansible files related to this project under this folder.</p><p>/Users/shivinvijai/Desktop/Learnings/Ansible/centos</p><p>In this folder, I fist created an inventory file.</p><p class="p1" style="font-family: Menlo; font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">shivinvijai@Shivins-MacBook-Pro centos % cat inventory<span class="Apple-converted-space"> </span></span></p><p class="p1" style="font-family: Menlo; font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">[myservers]</span></p><p class="p1" style="font-family: Menlo; font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">150.61.189.96 ansible_user=opc ansible_ssh_private_key_file=/Users/shivinvijai/Desktop/Learnings/Ansilbe/ssh-key-2023-01-01.key</span></p><p class="p1" style="font-family: Menlo; font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">shivinvijai@Shivins-MacBook-Pro centos %</span></p><p>I specify my username and path to the ssh key file.</p><p>Now, I going to do a test, here i am using my own inventory file so the command will be this</p><p class="p1" style="font-family: Menlo; font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">shivinvijai@Shivins-MacBook-Pro centos % ansible -i inventory<span class="Apple-converted-space"> </span>-m ping myservers</span></p><p class="p2" style="color: #2fb41d; font-family: Menlo; font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">150.61.189.96 | SUCCESS => {</span></p><p class="p2" style="color: #2fb41d; font-family: Menlo; font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>"ansible_facts": {</span></p><p class="p2" style="color: #2fb41d; font-family: Menlo; font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>"discovered_interpreter_python": "/usr/libexec/platform-python"</span></p><p class="p2" style="color: #2fb41d; font-family: Menlo; font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>},</span></p><p class="p2" style="color: #2fb41d; font-family: Menlo; font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>"changed": false,</span></p><p class="p2" style="color: #2fb41d; font-family: Menlo; font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>"ping": "pong"</span></p><p class="p2" style="color: #2fb41d; font-family: Menlo; font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">}</span></p><p class="p1" style="font-family: Menlo; font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><br /></span></p><p><br /></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1326110607484977276.post-2720717773968626822023-01-01T16:33:00.004+05:302023-01-01T16:33:54.281+05:30ansible host file location mac<p><span style="font-family: arial;"> This is my first experience in MAC as an ansible control node. The FIX is listed in this <a href="https://www.linuxblackmagic.com/2023/01/setting-up-my-mac-as-control-node-for.html" target="_blank">link</a></span></p><p><a href="https://www.linuxblackmagic.com/2023/01/setting-up-my-mac-as-control-node-for.html"><span style="font-family: arial;">https://www.linuxblackmagic.com/2023/01/setting-up-my-mac-as-control-node-for.html</span></a></p><p><span style="font-family: arial;">This will fix your issue, for me its working fine.</span></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1326110607484977276.post-81181995799024743142023-01-01T16:31:00.006+05:302023-01-01T16:31:49.180+05:30Setting up my MAC as a Control node for my Ansible study - Part 1<p> Here is my requirement, I am using my MAC so i need to develop Ansible playbooks in my MAC book.</p><p>I used PIP to install ansible in my mac book. After installation i am not able to do any ansible commands and I fixed the issue using this <a href="https://www.linuxblackmagic.com/2023/01/after-install-ansible-using-pip-in-mac.html" target="_blank">link</a> (<a href="https://www.linuxblackmagic.com/2023/01/after-install-ansible-using-pip-in-mac.html">https://www.linuxblackmagic.com/2023/01/after-install-ansible-using-pip-in-mac.html</a>)</p><p>After this, when you try to add hosts or ansible.cfg file, you may not find this in your mac.</p><p>I checked $HOME/.ansible folder and i can't find it.</p><p>I downloaded a sample configuration of <a href="http://ansible.cfg">ansible.cfg</a> to the $HOME/.ansible folder</p><p>Then i created a hosts file which is defined in the inventory section of the ansible.cfg file.</p><p><span style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;">localhost</span><span class="Apple-converted-space" style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;"> </span><span style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;">ansible_connection=local</span></p><p>Then I tried a test using this command.</p><p><span class="Apple-converted-space" style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;"> </span><span style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;">ansible -i $HOME/.ansible/hosts -m ping all</span></p><p class="p1" style="color: #2fb41d; font-family: Menlo; font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;">localhost | SUCCESS => {</span></p><p class="p1" style="color: #2fb41d; font-family: Menlo; font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>"ansible_facts": {</span></p><p class="p1" style="color: #2fb41d; font-family: Menlo; font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>"discovered_interpreter_python": "/opt/homebrew/bin/python3.11"</span></p><p class="p1" style="color: #2fb41d; font-family: Menlo; font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>},</span></p><p class="p1" style="color: #2fb41d; font-family: Menlo; font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>"changed": false,</span></p><p class="p1" style="color: #2fb41d; font-family: Menlo; font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>"ping": "pong"</span></p><p><span style="color: #2fb41d; font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;">}</span> </p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1326110607484977276.post-23339009478598343322023-01-01T10:47:00.007+05:302023-01-01T10:47:23.105+05:30After install ansible using pip in mac, I can't able to issue any ansible commands<p><span style="font-family: arial;"> I installed ansible in my Mac using PIP. After installation i am not able to execute any ansible commands.</span></p><p><span style="font-family: arial;"><b>Fix :</b></span></p><p><span style="font-family: arial;">Only for current session, you can export the path</span></p><p><span style="font-family: arial;">export PATH="/Users/<username>/Library/Python/3.10/bin:$PATH"</span></p><p><span style="font-family: arial;"><b>For making it permeant</b>, you need to open the file</span></p><p><span style="font-family: arial;">vi ~/.zshrc (If not present, feel free to create it)</span></p><p><span style="font-family: arial;">export PATH="/Users/<username>/Library/Python/3.10/bin:$PATH:</span></p><p><span style="font-family: arial;">Source it,</span></p><p><span style="font-family: arial;">source ~/.zshrc</span></p><p><span style="font-family: arial;">After this, i could able to use ansible commands in my Mac</span></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1326110607484977276.post-65547409047087275212022-12-05T18:53:00.001+05:302022-12-05T18:53:42.760+05:30Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8]<p style="text-align: left;"><span style="font-family: arial;"> When I tried to run "yum install certbot" on my Oracle linux 8 VM. I got the following error</span></p><p style="text-align: left;"><span style="font-family: arial;"><br /></span><span style="font-family: arial;">Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8]</span></p><p style="text-align: left;"><span style="font-family: arial;"><br /></span><span style="font-family: arial;">How to fix this?</span></p><p style="text-align: left;"><span style="font-family: arial;">vi /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8</span></p><p style="text-align: left;"><span style="font-family: arial;">Open the file https://dl.fedoraproject.org/pub/epel/RPM</span><span style="font-family: arial;">-GPG-KEY-EPEL-8 in a browser and copy paste the content on the path /etc/pki/</span><span style="font-family: arial;">rpm-gpg/RPM-GPG-KEY-EPEL-8</span></p><p style="text-align: left;"><span style="font-family: arial;">Now your yum will work. :)</span></p><p style="text-align: left;"><br /></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1326110607484977276.post-56337114311523427202022-10-26T16:08:00.006+05:302022-10-26T16:08:31.981+05:30MySQL Error : which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by<p> I got mysql error when executing a command</p><p>which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by</p><p>Solution to fix :</p><p>- Login to your server as root</p><p>- Open your mysql configuration file (for me its /etc/mysql/mysql.conf.d/mysqld.cnf)</p><p>- Add the following code after [mysqld] block</p><p>[mysqld]</p><p>sql_mode=IGNORE_SPACE,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION</p><p>- Restart mysql service ( systemctl restart mysql )</p><p>Issue fixed</p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1326110607484977276.post-82208307509431911112022-09-19T12:58:00.001+05:302022-09-19T12:58:07.419+05:30GIT operations in day to day life<p> <span style="font-family: arial;">GIT operations</span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;">To configure your name and email in your local settings:</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"><br /></span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"># git config --global user.name "Name"</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"></span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"># git config --global user.email "Email"</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"># </span><span style="font-variant-ligatures: no-common-ligatures;">git config -l</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"><br /></span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;">To Clone the git repo:</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"><br /></span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><span style="font-variant-ligatures: no-common-ligatures;"># </span><span style="font-variant-ligatures: no-common-ligatures;">git clone https://git-url/project.git</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"><br /></span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;">To play around the branches :</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"><br /></span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><span style="font-variant-ligatures: no-common-ligatures;"># </span><span style="font-variant-ligatures: no-common-ligatures;">git branch</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><span style="font-variant-ligatures: no-common-ligatures;"># </span><span style="font-variant-ligatures: no-common-ligatures;">git branch -r</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><span style="font-variant-ligatures: no-common-ligatures;"># </span><span style="font-variant-ligatures: no-common-ligatures;">git switch </span><span style="font-variant-ligatures: no-common-ligatures;"><branch-name></span><span style="font-variant-ligatures: no-common-ligatures;"> </span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"><br /></span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;">To push from local repo to git repo:</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"><br /></span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"># git add .</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><span style="font-variant-ligatures: no-common-ligatures;"># </span><span style="font-variant-ligatures: no-common-ligatures;">git commit -m "First commit"</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><span style="font-variant-ligatures: no-common-ligatures;"># </span><span style="font-variant-ligatures: no-common-ligatures;">git push -u origin <branch-name></span><span style="font-variant-ligatures: no-common-ligatures;"> </span></span></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1326110607484977276.post-49221597120673028402022-09-14T13:17:00.004+05:302022-09-14T13:17:46.663+05:30How to upgrade Prometheus from 2.22 to 2.38 on Ubuntu<p><span style="font-family: arial;"> How to upgrade Prometheus from 2.22 to 2.38 on Ubuntu</span></p><p><span style="font-family: arial;">OS : Ubuntu 16.04 LTS</span></p><p><span style="font-family: arial;">Prometheus version : 2.22</span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"># /usr/local/bin/prometheus --version</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;">prometheus, version 2.22.0 (branch: HEAD, revision: 0a7fdd3b76960808c3a91d92267c3d815c1bc354)</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"><br /></span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;">Confirm that prometheus datas are in </span></span><span style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"># ll /var/lib/prometheus</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;">Take a backup of this data to a safe location</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"><br /></span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;">Confirm the path of prometheus and promtool </span></span><span style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"># /usr/local/bin/</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial; font-variant-ligatures: no-common-ligatures;">Take a backup of this data to a safe location</span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial; font-variant-ligatures: no-common-ligatures;"><br /></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial; font-variant-ligatures: no-common-ligatures;">Stop prometheus and grafana services</span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial; font-variant-ligatures: no-common-ligatures;"><br /></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"># systemctl stop prometheus</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"></span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"># systemctl stop grafana-server</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"><br /></span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;">Download the latest prometheus. In my case its 2.38 and I downloaded to /mnt folder.</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"><br /></span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"># cd /mnt</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"># </span><span style="font-variant-ligatures: no-common-ligatures;">wget https://github.com/prometheus/prometheus/releases/download/v2.38.0/prometheus-2.38.0.linux-amd64.tar.gz</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"># tar -xvf prometheus-2.38.0.linux-amd64.tar.gz</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"></span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"># cd prometheus-2.38.0.linux-amd64</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"></span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"># cp prometheus /usr/local/bin/</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"></span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"># cp promtool /usr/local/bin/</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"></span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"># chown prometheus:prometheus /usr/local/bin/prometheus</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"></span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"># chown prometheus:prometheus /usr/local/bin/promtool</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"></span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"># cp -r consoles /etc/prometheus/</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"></span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"># cp -r console_libraries /etc/prometheus/</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"></span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"># chown -R prometheus:prometheus /etc/prometheus</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"><br /></span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;">Start </span></span><span style="font-family: arial; font-variant-ligatures: no-common-ligatures;">prometheus and grafana services</span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial; font-variant-ligatures: no-common-ligatures;"><br /></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"># systemctl start prometheus</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"></span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"># systemctl start grafana-server</span></span></p><div><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"><br /></span></span></div><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;">Check the prometheus version</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"># /usr/local/bin/prometheus --version</span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"></span></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;">prometheus, version 2.38.0 (branch: HEAD, revision: 818d6e60888b2a3ea363aee8a9828c7bafd73699)</span></span></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1326110607484977276.post-52662442173124965262022-08-21T20:41:00.004+05:302022-08-21T20:43:11.574+05:30Yum error : Loaded plugins: versionlock<p><span style="font-family: arial;"> [opc@dbdemo ~]$ sudo yum install iptables-services</span></p><p><span style="font-family: arial;">Loaded plugins: versionlock</span></p><p><span style="font-family: arial;">There are no enabled repos.</span></p><p><span style="font-family: arial;"> Run "yum repolist all" to see the repos you have.</span></p><p><span style="font-family: arial;"> To enable custom repositories:</span></p><p><span style="font-family: arial;"> yum-config-manager --enable <repo></span></p><p><span style="font-family: arial;">[opc@dbdemo ~]$</span></p><p><span style="font-family: arial;">The above is the error getting while issue yum command. My OS is <u><b>Oracle Linux 7.9</b></u></span></p><p><span style="font-family: arial;"><b>Solution to fix the error:</b></span></p><p><span style="font-family: arial;">Login to the server as root</span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"># wget https://yum.oracle.com/RPM-GPG-KEY-oracle-ol7 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle</span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><br /></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"># gpg --quiet --with-fingerprint /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle</span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><br /></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"># vi /etc/yum.repos.d/ol7-temp.repo</span></p><p class="p2" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 15px;"><span style="font-family: arial;"><br /></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;">[ol7_latest]</span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;">name=Oracle Linux $releasever Latest ($basearch)</span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;">baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/latest/$basearch/</span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;">gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle</span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;">gpgcheck=1</span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;">enabled=1</span></p><p class="p2" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 15px;"><span style="font-family: arial;"><br /></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"># yum install oraclelinux-release-el7</span></p><p class="p2" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 15px;"><span style="font-family: arial;"><br /></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"># mv /etc/yum.repos.d/ol7-temp.repo /etc/yum.repos.d/ol7-temp.repo.disabled</span></p><p class="p2" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 15px;"><span style="font-family: arial;"><br /></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"># yum update -y</span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><br /></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;">Now </span><span style="font-family: arial;">yum install iptables-services works without any error</span></p><p><b>References :</b> </p><p><a href="https://yum.oracle.com/faq.html#a10">https://yum.oracle.com/faq.html#a10</a></p><p><a href="https://yum.oracle.com/getting-started.html#installing-from-oracle-linux-yum-server">https://yum.oracle.com/getting-started.html#installing-from-oracle-linux-yum-server</a></p><p><br /></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1326110607484977276.post-15485323945872624152022-08-18T07:53:00.003+05:302022-08-18T07:53:17.507+05:30The GPG keys listed for the "MySQL 5.7 Community Server" repository are already installed but they are not correct for this package. Check that the correct key URLs are configured for this repository.<p><span style="font-family: arial;"> OS is Amazon Linux and trying to install Mysql 5.7, I am getting the below error</span></p><p><span style="font-family: arial;"><br /></span></p><p><span style="font-family: arial;">The GPG keys listed for the "MySQL 5.7 Community Server" repository are already installed but they are not correct for this package. Check that the correct key URLs are configured for this repository.</span></p><p><span style="font-family: arial;">Fix : </span></p><pre class="default s-code-block" style="border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-size: var(--fs-body1); font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: var(--lh-md); margin-bottom: 0px; margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;"><code class="hljs language-cpp" style="border: 0px; box-sizing: inherit; font-size: var(--fs-body1); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"><span style="font-family: arial;">rpm --<span class="hljs-keyword" style="border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">import</span> https:<span class="hljs-comment" style="border: 0px; box-sizing: inherit; color: var(--highlight-comment); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">//repo.mysql.com/RPM-GPG-KEY-mysql-2022</span></span></code></pre><pre class="default s-code-block" style="border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-size: var(--fs-body1); font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: var(--lh-md); margin-bottom: 0px; margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;"><code class="hljs language-cpp" style="border: 0px; box-sizing: inherit; font-size: var(--fs-body1); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"><span class="hljs-comment" style="border: 0px; box-sizing: inherit; color: var(--highlight-comment); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"><span style="font-family: arial;"><br /></span></span></code></pre><pre class="default s-code-block" style="border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-size: var(--fs-body1); font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: var(--lh-md); margin-bottom: 0px; margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;"><span style="font-family: arial;"><code class="hljs language-cpp" style="border: 0px; box-sizing: inherit; font-size: var(--fs-body1); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"><span class="hljs-comment" style="border: 0px; box-sizing: inherit; color: var(--highlight-comment); font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">Now run, </span></code>yum install mysql-community-server</span></pre><pre class="default s-code-block" style="border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-size: var(--fs-body1); font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: var(--lh-md); margin-bottom: 0px; margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;"><span style="font-family: arial;"><br /></span></pre><pre class="default s-code-block" style="border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-size: var(--fs-body1); font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: var(--lh-md); margin-bottom: 0px; margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;"><span style="font-family: arial;">It will work for me.</span></pre><p><br /></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1326110607484977276.post-10346457209430499142022-08-01T12:02:00.007+05:302022-08-01T12:02:56.200+05:30How to install OCI CLI in windows and push backup to object storage<p><span style="font-family: arial;"> How to install OCI CLI in windows and push backup to object storage</span></p><p><span style="font-family: arial;">Documentation link : </span><a href="https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/cliinstall.htm#InstallingCLI__windows" style="font-family: "Helvetica Neue"; font-size: 13px;">https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/cliinstall.htm#InstallingCLI__windows</a></p><p><span style="font-family: arial;">OCI provides CLI to mange your cloud account. You can do almost all the task which you are doing using console can be done using CLI.</span></p><p><span style="font-family: arial;">Here, we are going to install CLI on a windows 2019 server and push the backup files to Object Storage.</span></p><p><span style="font-family: arial;">Login to your windows VM</span></p><p><span style="font-family: arial;"></span></p><div class="separator" style="clear: both; text-align: center;"><span style="font-family: arial;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEibt2WyhT5mBjIFdz2tbZ5lo3zZgBX6lza1DIowRxx2l6G8pGO8l4VPLy9AxVSsZKVl5Z1-m_ryrb4Dq1_zavWe_YfddiMq0eyxBJEw2aNvBNAHOu_1kbvAf4ylVHbujMNHND29-JLpkmR7AvBhX6R0tnt6LFz-DdStEftA9jUt0LMbiwXCCmtUtZQ6CA" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="511" data-original-width="804" height="406" src="https://blogger.googleusercontent.com/img/a/AVvXsEibt2WyhT5mBjIFdz2tbZ5lo3zZgBX6lza1DIowRxx2l6G8pGO8l4VPLy9AxVSsZKVl5Z1-m_ryrb4Dq1_zavWe_YfddiMq0eyxBJEw2aNvBNAHOu_1kbvAf4ylVHbujMNHND29-JLpkmR7AvBhX6R0tnt6LFz-DdStEftA9jUt0LMbiwXCCmtUtZQ6CA=w640-h406" width="640" /></a></span></div><p><span style="font-family: arial;"><span style="font-family: arial;"><br /></span></span></p><p></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;">Right click on “Windows PowerShell” and open as administrator.</span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><br /></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;">Issue the following commands</span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><br /></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;">Set-ExecutionPolicy RemoteSigned</span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><br /></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;">Invoke-WebRequest https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.ps1 -OutFile install.ps1</span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"></span></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;">iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.ps1'))</span></p><div><br /></div><div><span style="font-family: arial;">This will install Python automatically. OCI CLI is build on Python</span></div><div><span style="font-family: arial;"><br /></span></div><div><span style="font-family: arial;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEhboOo4bT5VfXCKiHJitnoinn83hassCZKHZ8rXXv7Y-ITxwNlULFfj44wUX7buK4Jun4p4JlrvxO0jDINWHFO2Ovow37YNNAStGHi0i5fQxcqjPUQUKxXHlkKZGTYwpjENDRV6zBvb_fWq4zjDz-bO2eDGfMs_kjycc--OhFCGr2xPcVb0swWa2Y3z8A" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="744" data-original-width="1213" height="392" src="https://blogger.googleusercontent.com/img/a/AVvXsEhboOo4bT5VfXCKiHJitnoinn83hassCZKHZ8rXXv7Y-ITxwNlULFfj44wUX7buK4Jun4p4JlrvxO0jDINWHFO2Ovow37YNNAStGHi0i5fQxcqjPUQUKxXHlkKZGTYwpjENDRV6zBvb_fWq4zjDz-bO2eDGfMs_kjycc--OhFCGr2xPcVb0swWa2Y3z8A=w640-h392" width="640" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjWvntrA7e1BRXdImF-vcbeMMHlr0V0Q22huoEqiiXxL5Ne1ohnfRONNeduWDE8Wyj9ep7fndLgYpPQgFIDzUUAX_8sb0kzZyJhncnRD39EKuCA6B7mFhLABrNIq34xypl_56oO8XJqCa782ocb88sVL2DV5w3I_FEpTn99u9B2o1ZY5xzpCRFdyliEJQ" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="711" data-original-width="855" height="531" src="https://blogger.googleusercontent.com/img/a/AVvXsEjWvntrA7e1BRXdImF-vcbeMMHlr0V0Q22huoEqiiXxL5Ne1ohnfRONNeduWDE8Wyj9ep7fndLgYpPQgFIDzUUAX_8sb0kzZyJhncnRD39EKuCA6B7mFhLABrNIq34xypl_56oO8XJqCa782ocb88sVL2DV5w3I_FEpTn99u9B2o1ZY5xzpCRFdyliEJQ=w640-h531" width="640" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEhHkP28TN55zwmVLYNL8DHVj59nfc9bGS3USiCX7EQC_SPiUZd_FCb8SVJQjd1wNtezdjYS0dtmrmPs96gvciA8Ag9EH3QuUNUSODfxhkr9_5rqvpOsE9NKOJi_7cHgu5x6NqU5ztlSNdzdy4gRsCEHTFgC_jhqboJfpyjn2DK3vc8xK7Fxp9O3_WNG_Q" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="711" data-original-width="855" height="531" src="https://blogger.googleusercontent.com/img/a/AVvXsEhHkP28TN55zwmVLYNL8DHVj59nfc9bGS3USiCX7EQC_SPiUZd_FCb8SVJQjd1wNtezdjYS0dtmrmPs96gvciA8Ag9EH3QuUNUSODfxhkr9_5rqvpOsE9NKOJi_7cHgu5x6NqU5ztlSNdzdy4gRsCEHTFgC_jhqboJfpyjn2DK3vc8xK7Fxp9O3_WNG_Q=w640-h531" width="640" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEj8AUNio-zh4lfvWjM-oWdzm4TWQnSAguJSHhmZpPXV--Pfdx1ebGFdzAGUzkx91nox5cSm5nC1M4mZzBUsSGhCDdu2oYhiGL3PV59RSjySo3j1-f8s2FYlyk-zHYHKoz1TN67DkTP6_qkHLJ-FaB9YC_98gSJd9ZJO9BrD-9nJSdC6FzicEMspZQQRMA" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="735" data-original-width="855" height="551" src="https://blogger.googleusercontent.com/img/a/AVvXsEj8AUNio-zh4lfvWjM-oWdzm4TWQnSAguJSHhmZpPXV--Pfdx1ebGFdzAGUzkx91nox5cSm5nC1M4mZzBUsSGhCDdu2oYhiGL3PV59RSjySo3j1-f8s2FYlyk-zHYHKoz1TN67DkTP6_qkHLJ-FaB9YC_98gSJd9ZJO9BrD-9nJSdC6FzicEMspZQQRMA=w640-h551" width="640" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgNph5kI-XfBIrzPhy6-gtUqF_AFqnjCaU8SvSa5QCzSqTSGupxECmQYTsetFHn_Rp8rQx5fVhCJLT-_1s7RWkAuJhCsXox96nKs5oRtKV7m9AkJ7VYiPg23meYRGsdqs7qE0rlY0I2g1AtwLQAYxTo9wyZebt_LF_mNY2rxyt2EsvhFNY-pSpmxn02FQ" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="144" data-original-width="855" height="108" src="https://blogger.googleusercontent.com/img/a/AVvXsEgNph5kI-XfBIrzPhy6-gtUqF_AFqnjCaU8SvSa5QCzSqTSGupxECmQYTsetFHn_Rp8rQx5fVhCJLT-_1s7RWkAuJhCsXox96nKs5oRtKV7m9AkJ7VYiPg23meYRGsdqs7qE0rlY0I2g1AtwLQAYxTo9wyZebt_LF_mNY2rxyt2EsvhFNY-pSpmxn02FQ=w640-h108" width="640" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: left;">Now you can see the oci cli installation is good. </div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"># oci --version will return the cli version.</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">Next step is to setup the cli configuration. We need to authorise the configuration to perform actions. This is based on the user permissions.</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"># oci setup config</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><p class="p1" style="font-family: "Helvetica Neue"; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;">Enter the location of your config [C:\Users\opc\.config] :</p><p class="p1" style="font-family: "Helvetica Neue"; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;">Enter user OCID :<span class="Apple-converted-space"> </span></p></div><div class="separator" style="clear: both; text-align: left;"> </div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEglPLN_GTtoaOEKSrX9NQTDypPsq95BRy82yURiDvg0otNQKP98d-_pQBjJ4UovLA80GP6VNwNuzZ1Unf_-ppDWd9lRCDJKZY7h6C74gYy_CLj6pgFHVwbEohGsTvtuUBCDC2WPWKg967zhP2vj2aaaFRiPZfSa2Jdw_cpahGQTiA_DHmUmdYIFxIj98Q" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="966" data-original-width="1972" height="314" src="https://blogger.googleusercontent.com/img/a/AVvXsEglPLN_GTtoaOEKSrX9NQTDypPsq95BRy82yURiDvg0otNQKP98d-_pQBjJ4UovLA80GP6VNwNuzZ1Unf_-ppDWd9lRCDJKZY7h6C74gYy_CLj6pgFHVwbEohGsTvtuUBCDC2WPWKg967zhP2vj2aaaFRiPZfSa2Jdw_cpahGQTiA_DHmUmdYIFxIj98Q=w640-h314" width="640" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: left;">Tenancy OCID :</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEiNKoaMrbKJX9aYuMygWpkwyb8sRckcZAWFVj-w6JW-RFvykvbgReslWWCcnl7-sSY6owFGGHReeoGQlJ_37PVtnEMgylj-ZdyOjc14DrbLiw3_zQEiC9xM3rUXyMwWq1d9HnF4LJGVGs4-jLwOyLr3NUMBYGKND1M8eGRVPZmkkNwkjx_v_xwm6TCorg" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="966" data-original-width="1972" height="314" src="https://blogger.googleusercontent.com/img/a/AVvXsEiNKoaMrbKJX9aYuMygWpkwyb8sRckcZAWFVj-w6JW-RFvykvbgReslWWCcnl7-sSY6owFGGHReeoGQlJ_37PVtnEMgylj-ZdyOjc14DrbLiw3_zQEiC9xM3rUXyMwWq1d9HnF4LJGVGs4-jLwOyLr3NUMBYGKND1M8eGRVPZmkkNwkjx_v_xwm6TCorg=w640-h314" width="640" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: left;"><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;">Chose your DC Region :</p><p class="p2" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 15px;"><br /></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;">Do you want to generate API key : Y</p><p class="p2" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 15px;"><br /></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;">Enter directory for your keys to created [C:\Users\opc\.oci]</p><p class="p2" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 15px;"><br /></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;">Enter a name for your key [oci_api_key] :</p><p class="p2" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 15px;"><br /></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;">Passphrase :</p></div><br /><div class="separator" style="clear: both; text-align: left;">Now we need to upload your public key</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><a href="https://docs.oracle.com/en-us/iaas/Content/API/Concepts/apisigningkey.htm#How2">https://docs.oracle.com/en-us/iaas/Content/API/Concepts/apisigningkey.htm#How2</a></div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: left;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjJRmlQYe_xkaEhBFc4aFWzQjmclITnu9FMD9ELbwLZAhjLL3TdYHq44EJW1ygB7B6JQX4EvSwwovX3pjSAwxnkwnpqqo7hm3aa-i8M2oWoBJMaTmdk-vxjk42TbLdoZBCvAUYms7xXSTR1t2fykdNgetvVWCzH3DJsXb00cj1hEAnr5gNrTaKUWGml6g" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="897" data-original-width="992" height="580" src="https://blogger.googleusercontent.com/img/a/AVvXsEjJRmlQYe_xkaEhBFc4aFWzQjmclITnu9FMD9ELbwLZAhjLL3TdYHq44EJW1ygB7B6JQX4EvSwwovX3pjSAwxnkwnpqqo7hm3aa-i8M2oWoBJMaTmdk-vxjk42TbLdoZBCvAUYms7xXSTR1t2fykdNgetvVWCzH3DJsXb00cj1hEAnr5gNrTaKUWGml6g=w640-h580" width="640" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: left;">After this step, you should able to interact with your oracle cloud account using oci cli.</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">For testing, issue this command</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"># oci os ns get ( This will return back the namespace of our account)</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEh7wm5MtqusH7i8hh52NmqrXgwyo8Q2n1rAvegS2Oq-LNCNpj56jKMASgzhLeumCRuEIePLNPPwgZ-dL6Toer1SFweS3esMW7ZYUkpwo0FLp0mNZ5umcacDPjY5eOhQzfqaJRbfWAjrzpD_3YCDYI_M64Kd2h4OeM6irNSh0bKBxk2sg_-3jNBe9NCxsA" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="139" data-original-width="462" height="192" src="https://blogger.googleusercontent.com/img/a/AVvXsEh7wm5MtqusH7i8hh52NmqrXgwyo8Q2n1rAvegS2Oq-LNCNpj56jKMASgzhLeumCRuEIePLNPPwgZ-dL6Toer1SFweS3esMW7ZYUkpwo0FLp0mNZ5umcacDPjY5eOhQzfqaJRbfWAjrzpD_3YCDYI_M64Kd2h4OeM6irNSh0bKBxk2sg_-3jNBe9NCxsA=w640-h192" width="640" /></a></div><div class="separator" style="clear: both; text-align: left;"><br /></div>This means we are good !</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">How to copy backup files from this windows VM to object storage.</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><a href="https://docs.oracle.com/en-us/iaas/tools/oci-cli/3.12.0/oci_cli_docs/cmdref/os/object/put.html">https://docs.oracle.com/en-us/iaas/tools/oci-cli/3.12.0/oci_cli_docs/cmdref/os/object/put.html</a></div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"># oci os object put [options]</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">-bn = bucket name</div><div class="separator" style="clear: both; text-align: left;">--file = filename</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"># oci os object put -bn my-upload-bucket --file mssql-july31.sql</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">In this example, the backup file is mssql-july31.sql and this should be in the path or you need to add the full path and the bucket name is my-upload-bucket.</div><div class="separator" style="clear: both; text-align: left;"><br /><br /></div><br /><br /></div><br /><br /></div><br /><br /><br /></div><br /><br /></div><br /><br /></div><br /><div><span style="font-family: arial;"><br /></span></div><br /><br /></span></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1326110607484977276.post-19628621005819575102022-06-28T09:30:00.002+05:302022-06-28T09:30:13.317+05:30NFS command to start when server boots up<p><span style="font-family: arial;"> OS is Ubuntu20.</span></p><p><span style="font-family: arial;">I tried to find /etc/rc.local and /etc/rc.d/rc.local but didn't find any.</span></p><p><span style="font-family: arial;">So i edited crontab -e</span></p><p class="p1" style="font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;">@reboot sudo mount 10.0.0.124:/home/ubuntu/f5imagine.com f5imagine.com/</span></span></p><p class="p1" style="font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"><br /></span></span></p><p class="p1" style="font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;">Restart crond</span></span></p><p class="p1" style="font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;"><br /></span></span></p><p class="p1" style="font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-variant-ligatures: no-common-ligatures;"><span style="font-family: arial;">It works</span></span></p><p><br /></p><p><br /></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1326110607484977276.post-80145940761609924612022-06-22T21:18:00.004+05:302022-06-22T21:18:51.013+05:30How to create Oracle Cloud FREE Trial Account<p> How to create Oracle Cloud FREE Trial Account </p><div class="separator" style="clear: both; text-align: center;"><iframe allowfullscreen="" class="BLOG_video_class" height="351" src="https://www.youtube.com/embed/Z8EDRsMvkOs" width="546" youtube-src-id="Z8EDRsMvkOs"></iframe></div><p><br /></p><p>Here is the step by step process.</p><p>Open a browser and hit <a href="https://www.oracle.com/cloud/free/" target="_blank">ORACLE CLOUD</a></p><p>You will be presented with a registration page.</p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjzMQx0y1CYFyTGbCjcZapTxRGPd4Ca3SjemqPXcx-0Lqh3ft0FrzXK8TX0RoDaySqXl_XNIadx0qwPRHskeBN4-cLu7tGzLYzjpxjIOuLrepy0b_7E90gt9oZ9sTy_iQ6L3SziX6vp5R9b0J0imXF_3CZyDbarZV2GZLDpC2nFyr0UTQnjrG5AgYLP9g" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="904" data-original-width="1876" height="308" src="https://blogger.googleusercontent.com/img/a/AVvXsEjzMQx0y1CYFyTGbCjcZapTxRGPd4Ca3SjemqPXcx-0Lqh3ft0FrzXK8TX0RoDaySqXl_XNIadx0qwPRHskeBN4-cLu7tGzLYzjpxjIOuLrepy0b_7E90gt9oZ9sTy_iQ6L3SziX6vp5R9b0J0imXF_3CZyDbarZV2GZLDpC2nFyr0UTQnjrG5AgYLP9g=w640-h308" width="640" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: left;">Input the above details.</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">Once you have entered a valid email address, select the Verify my email button.</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjXxvB5L4v-fQ9Qy_ja0LnqqqL1vBNde426RIOuxEgQDzgFFZUvTcA6yPKUlV3-PjrQsz554QRdZoNB-FscZ7cbkyhHqQDv8Owj33jn0-7fD10eoVUZiCpzwbmmwvcIyk5CD2LZaNEgr8bGy5OLYdtgfVF69SODdN-NeLGunppqJn2Y2EzcDHldsDTkDw" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="940" data-original-width="1964" height="306" src="https://blogger.googleusercontent.com/img/a/AVvXsEjXxvB5L4v-fQ9Qy_ja0LnqqqL1vBNde426RIOuxEgQDzgFFZUvTcA6yPKUlV3-PjrQsz554QRdZoNB-FscZ7cbkyhHqQDv8Owj33jn0-7fD10eoVUZiCpzwbmmwvcIyk5CD2LZaNEgr8bGy5OLYdtgfVF69SODdN-NeLGunppqJn2Y2EzcDHldsDTkDw=w640-h306" width="640" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div></div><p></p><div class="page" title="Page 7">
<div class="section" style="background-color: rgb(100.000000%, 100.000000%, 100.000000%);">
<div class="layoutArea">
<div class="column">
<p><span style="font-family: 'OracleSans'; font-size: 11.000000pt;">Go to your email. You will see an account validation email from Oracle in your inbox. The
email will be similar to the following</span></p><p><span style="font-family: 'OracleSans'; font-size: 11.000000pt;"> </span></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgyFONAtPAgwOfLWXzzVB4xP85yBQ9wAc203ChyE6ePs-A2CJWIbMT-r-k73AdLVUb10QwQzyI6x7uLA1CGE6huowWC4XEeZVxf9kl4ZS4g5vWb7HBuxIbr8-vfem9liY2-eCZe_GLmh9UtoSrOcbFFkgi70ZgAoW_HHcM4r732Nl8c7r5YURjM7GkjFQ" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="1210" data-original-width="1878" height="412" src="https://blogger.googleusercontent.com/img/a/AVvXsEgyFONAtPAgwOfLWXzzVB4xP85yBQ9wAc203ChyE6ePs-A2CJWIbMT-r-k73AdLVUb10QwQzyI6x7uLA1CGE6huowWC4XEeZVxf9kl4ZS4g5vWb7HBuxIbr8-vfem9liY2-eCZe_GLmh9UtoSrOcbFFkgi70ZgAoW_HHcM4r732Nl8c7r5YURjM7GkjFQ=w640-h412" width="640" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><p></p><div class="page" title="Page 7">
<div class="section" style="background-color: rgb(100.000000%, 100.000000%, 100.000000%);">
<div class="layoutArea">
<div class="column">
<p><span style="font-family: 'OracleSans'; font-size: 11.000000pt;">Select the link (if possible) or copy and paste the link into your browser.</span></p>
<div class="page" title="Page 8">
<div class="section">
<div class="layoutArea">
<div class="column">
<p><span style="font-family: 'OracleSans'; font-size: 11.000000pt;">Enter the following information to create your Oracle Cloud Free Tier account.</span></p></div></div><div class="layoutArea">
<div class="column">
<p><span style="font-family: 'OracleSans'; font-size: 11.000000pt;">Choose a </span><span style="font-family: 'OracleSans'; font-size: 11.000000pt; font-weight: 700;">Password<br />
</span><span style="font-family: 'OracleSans'; font-size: 11.000000pt;">Enter your </span><span style="font-family: 'OracleSans'; font-size: 11.000000pt; font-weight: 700;">Company Name
</span></p>
<p><span style="font-family: 'OracleSans'; font-size: 11.000000pt;">Your </span><span style="font-family: 'OracleSans'; font-size: 11.000000pt; font-weight: 700;">Cloud Account Name </span><span style="font-family: 'OracleSans'; font-size: 11.000000pt;">will generate automatically based on your inputs. You can
change that name by entering a new value. Remember what you wrote. You'll need
this name later to sign in.
</span></p>
<p><span style="font-family: 'OracleSans'; font-size: 11.000000pt;">Choose a </span><span style="font-family: 'OracleSans'; font-size: 11.000000pt; font-weight: 700;">Home Region</span><span style="font-family: 'OracleSans'; font-size: 11.000000pt;">. Your Home Region cannot be changed once you sign-up.
</span><span style="font-family: 'OracleSans'; font-size: 11.000000pt; font-weight: 700;">Note: </span><span style="font-family: 'OracleSans'; font-size: 11.000000pt;">Based on the current design of the workshop and resource availability, it is
</span></p>
</div>
</div>
</div>
</div><p><span style="font-family: OracleSans; font-size: 11pt;">recommended not to use the London region for this workshop at this time.
Click Continue</span><span style="font-family: 'OracleSans'; font-size: 11.000000pt;"> </span></p>
</div>
</div>
</div>
</div><p><span style="font-family: 'OracleSans'; font-size: 11.000000pt;"></span></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEiX1iE9DYU8M1UqeN6xxWEdNXb-1HXeI8evtDVaSL3BK9sCVEBr6EXRf9dKG8z19AlLqk_4qcsjdBxxUKuq4fFo2OhohEdvwC4W7eVw5VuOND9HfNCIrTbsVtnSyAd9dqfhu3aJd0ynrscbqoF9aiqboxrjOPCfOESAAbh6kZ9B3O8ta_cJVltoUuB0RQ" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="1274" data-original-width="1878" height="434" src="https://blogger.googleusercontent.com/img/a/AVvXsEiX1iE9DYU8M1UqeN6xxWEdNXb-1HXeI8evtDVaSL3BK9sCVEBr6EXRf9dKG8z19AlLqk_4qcsjdBxxUKuq4fFo2OhohEdvwC4W7eVw5VuOND9HfNCIrTbsVtnSyAd9dqfhu3aJd0ynrscbqoF9aiqboxrjOPCfOESAAbh6kZ9B3O8ta_cJVltoUuB0RQ=w640-h434" width="640" /></a></div><div class="separator" style="clear: both; text-align: left;"><br /></div><p></p><div class="page" title="Page 9">
<div class="section" style="background-color: rgb(100.000000%, 100.000000%, 100.000000%);">
<div class="layoutArea">
<div class="column">
<p><span style="font-family: 'OracleSans'; font-size: 11.000000pt;">Enter your Address information. Click </span><span style="font-family: 'OracleSans'; font-size: 11.000000pt; font-weight: 700;">Continue</span><span style="font-family: 'OracleSans'; font-size: 11.000000pt;">.</span></p><p><span style="font-family: 'OracleSans'; font-size: 11.000000pt;"></span></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEh9ACAhpJisYOY7DlQqgl0mDrZDXi_JxNuHZ7LAcF9isOXymTBSFIf1s_oLuXGESlfqqmKv0Th-W8rku2f2AVpevJErHqt9Laobqai30TPCUD-FEGa2sQglazAspooD-jOju9IbdvHQeTVxOuxd2Qgoz7lbQzzq3wfgUxouPfvgXE6D62MzxIjxbevaRA" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="1346" data-original-width="1878" height="458" src="https://blogger.googleusercontent.com/img/a/AVvXsEh9ACAhpJisYOY7DlQqgl0mDrZDXi_JxNuHZ7LAcF9isOXymTBSFIf1s_oLuXGESlfqqmKv0Th-W8rku2f2AVpevJErHqt9Laobqai30TPCUD-FEGa2sQglazAspooD-jOju9IbdvHQeTVxOuxd2Qgoz7lbQzzq3wfgUxouPfvgXE6D62MzxIjxbevaRA=w640-h458" width="640" /></a></div><p><span style="font-family: 'OracleSans'; font-size: 11.000000pt;"><br /></span></p>
<p></p><div class="page" title="Page 9">
<div class="section">
<div class="layoutArea">
<div class="column">
<p><span style="font-family: 'OracleSans'; font-size: 11.000000pt;">Choose your country and enter a mobile number for verification. Click the </span><span style="font-family: 'OracleSans'; font-size: 11.000000pt; font-weight: 700;">Text me a code
</span><span style="font-family: 'OracleSans'; font-size: 11.000000pt;">button.</span></p><p><span style="font-family: 'OracleSans'; font-size: 11.000000pt;"></span></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjKIlTtkMWXpGfSQdpiHIXF0LPh38oAMBYffD9sQ_77fCvvljk1Q74_OSUriejRJh6BWXSeZq_M7zOKjgvHn_I0D5e4FBSIcAp6FMUnCsL_p7TJQAXSRMrm2sYMhpBJ118_lb8LXDVuybKRpK7UrM3xVPq32kX8zcDFsrYv4mRm_UFFY3cbe7J3yDPOkg" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="1046" data-original-width="1878" height="356" src="https://blogger.googleusercontent.com/img/a/AVvXsEjKIlTtkMWXpGfSQdpiHIXF0LPh38oAMBYffD9sQ_77fCvvljk1Q74_OSUriejRJh6BWXSeZq_M7zOKjgvHn_I0D5e4FBSIcAp6FMUnCsL_p7TJQAXSRMrm2sYMhpBJ118_lb8LXDVuybKRpK7UrM3xVPq32kX8zcDFsrYv4mRm_UFFY3cbe7J3yDPOkg=w640-h356" width="640" /></a></div><p></p><div class="page" title="Page 10">
<div class="section" style="background-color: rgb(100.000000%, 100.000000%, 100.000000%);">
<div class="layoutArea">
<div class="column">
<p><span style="font-family: 'OracleSans'; font-size: 11.000000pt;">Once you receive your code, enter it and click </span><span style="font-family: 'OracleSans'; font-size: 11.000000pt; font-weight: 700;">Verify My Code</span><span style="font-family: 'OracleSans'; font-size: 11.000000pt;">.</span></p><p><span style="font-family: 'OracleSans'; font-size: 11.000000pt;"></span></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEhUcdAT-RGWiBN152_arYUPXICs84ACuShs7I7pecoNd9NiKpUlT7MwLmOxPBsTAr6UMwKK-3uazV4IE04OhaANvUve8wikEyd5wVSSfxndhMrTRTCehLG4nOd-VcqG4TDKnjQfclWfqyRimY6ED-y7d8DhVGRHJ_eQgw01r3eBy_4he_hHIT29RwcUyA" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="1132" data-original-width="1878" height="386" src="https://blogger.googleusercontent.com/img/a/AVvXsEhUcdAT-RGWiBN152_arYUPXICs84ACuShs7I7pecoNd9NiKpUlT7MwLmOxPBsTAr6UMwKK-3uazV4IE04OhaANvUve8wikEyd5wVSSfxndhMrTRTCehLG4nOd-VcqG4TDKnjQfclWfqyRimY6ED-y7d8DhVGRHJ_eQgw01r3eBy_4he_hHIT29RwcUyA=w640-h386" width="640" /></a></div><p><span style="font-family: 'OracleSans'; font-size: 11.000000pt;"><br /></span></p>
<p></p><div class="page" title="Page 10">
<div class="section">
<div class="layoutArea">
<div class="column">
<p><span style="color: rgb(10.200000%, 9.410000%, 8.630000%); font-family: 'OracleSans'; font-size: 12.000000pt;">Click the </span><span style="color: rgb(10.200000%, 9.410000%, 8.630000%); font-family: 'OracleSans'; font-size: 12.000000pt; font-weight: 700;">Add payment verification method </span><span style="color: rgb(10.200000%, 9.410000%, 8.630000%); font-family: 'OracleSans'; font-size: 12.000000pt;">button.</span></p><p><span style="color: rgb(10.200000%, 9.410000%, 8.630000%); font-family: 'OracleSans'; font-size: 12.000000pt;"></span></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEhilllpyy4j2IXZA_LHE0t994QhDIy5_GTNVCSd0xixH7nhGm4dYcj58DVm6pOAIyuAwazu9OxB4T6evbmAm6umTN2WpkV9GM9epAEOVisaIpotjMOerPl5md5boU45N1x8LKyZt5WofpSm-dfIxPywNHehIMN-hWVI3HdbJcluSHcKGCgCtkZK77IycA" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="1194" data-original-width="1878" height="406" src="https://blogger.googleusercontent.com/img/a/AVvXsEhilllpyy4j2IXZA_LHE0t994QhDIy5_GTNVCSd0xixH7nhGm4dYcj58DVm6pOAIyuAwazu9OxB4T6evbmAm6umTN2WpkV9GM9epAEOVisaIpotjMOerPl5md5boU45N1x8LKyZt5WofpSm-dfIxPywNHehIMN-hWVI3HdbJcluSHcKGCgCtkZK77IycA=w640-h406" width="640" /></a></div><div class="separator" style="clear: both; text-align: center;"><span style="font-size: 11pt; text-align: left;"><br /></span></div><div class="separator" style="clear: both; text-align: left;">Choose <span style="font-size: 11pt;">the verification method. In this case, click the </span><span style="font-size: 11pt; font-weight: 700;">Credit Card </span><span style="font-size: 11pt;">button. Enter your
information and payment details.</span></div><div class="separator" style="clear: both; text-align: left;"><span style="font-size: 11pt; font-weight: 700;"><br /></span></div><div class="separator" style="clear: both; text-align: left;"><span style="font-size: 11pt; font-weight: 700;">Note: </span><span style="font-size: 11pt;">This is a free credit promotion account. You will not be charged unless you elect to
upgrade the account. </span></div><p></p><div class="separator" style="clear: both; text-align: left;">
</div><p><span style="color: rgb(10.200000%, 9.410000%, 8.630000%); font-family: 'OracleSans'; font-size: 12.000000pt;"></span></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjJ7agG__WCedNCZk97TI5qZN6QbFBHGin88e8DNuvDAgJWzuU45N2bAqTkGCUQ12xMBro0MsfewbVcL8JotDqH2rWFF5CVCzCLSVST2leDNIH8zbO93u39VG85ErmKK47mpTNYgZOIXlEJigy_lxwX3RaicgPLEUgrB1ZGnOm-TzDIe-QoDtlAciKCRw" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="400" data-original-width="878" height="292" src="https://blogger.googleusercontent.com/img/a/AVvXsEjJ7agG__WCedNCZk97TI5qZN6QbFBHGin88e8DNuvDAgJWzuU45N2bAqTkGCUQ12xMBro0MsfewbVcL8JotDqH2rWFF5CVCzCLSVST2leDNIH8zbO93u39VG85ErmKK47mpTNYgZOIXlEJigy_lxwX3RaicgPLEUgrB1ZGnOm-TzDIe-QoDtlAciKCRw=w640-h292" width="640" /></a></div><div class="separator" style="clear: both; text-align: left;">Once your payment verification is complete, review and accept the agreement by clicking the check box. Click the Start my free trial button.</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEhA5hAxOfVgxbAeF__7zb6AWk2lR9qrT1A2YECYouPaHYJSlvkn7wyV1QjPblTyveyOwwLQegSeh1DtKYewgh7mXaqfeEyMb-NpgzRV-VUjGTD5Q2Bj22REj6Wj0lSaItHcuwQI5rN8B0eXQcYbSjThQ1gWrBFG38h-lVvwVfIZEcJjiRc-YzHCAououg" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="626" data-original-width="2046" height="196" src="https://blogger.googleusercontent.com/img/a/AVvXsEhA5hAxOfVgxbAeF__7zb6AWk2lR9qrT1A2YECYouPaHYJSlvkn7wyV1QjPblTyveyOwwLQegSeh1DtKYewgh7mXaqfeEyMb-NpgzRV-VUjGTD5Q2Bj22REj6Wj0lSaItHcuwQI5rN8B0eXQcYbSjThQ1gWrBFG38h-lVvwVfIZEcJjiRc-YzHCAououg=w640-h196" width="640" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div></div><p></p><div class="page" title="Page 12">
<div class="section" style="background-color: rgb(100.000000%, 100.000000%, 100.000000%);">
<div class="layoutArea">
<div class="column">
<p><span style="font-family: 'OracleSans'; font-size: 11.000000pt;">Your account is provisioning and should be available soon! You might want to log out as
you wait for your account to be provisioned. You'll receive two emails from Oracle. One
email will be the initial notification that provisioning is underway. The other email will be a
notification that provisioning is complete. Here is a copy of the final notification:</span></p><p><span style="font-family: 'OracleSans'; font-size: 11.000000pt;"></span></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEiuSKqn9DCRt71hWbMlWSv3VzyYf9QZA97uPyXENvbwzQLOGGBMRRkTb5QxRHT7bujuMy3ALAcoUCd5wEptcGyCR8ZtmYRGVbZ4hXFF6wfuDqZfZ_FW0ZvEpdYfeZlTFITzgu1JIHD4XupRGh6hLRvzQN3PuUfhS_ktvmTRP8Q6jXWIXG4ZREmMrODFcQ" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="1544" data-original-width="1810" height="480" src="https://blogger.googleusercontent.com/img/a/AVvXsEiuSKqn9DCRt71hWbMlWSv3VzyYf9QZA97uPyXENvbwzQLOGGBMRRkTb5QxRHT7bujuMy3ALAcoUCd5wEptcGyCR8ZtmYRGVbZ4hXFF6wfuDqZfZ_FW0ZvEpdYfeZlTFITzgu1JIHD4XupRGh6hLRvzQN3PuUfhS_ktvmTRP8Q6jXWIXG4ZREmMrODFcQ" width="563" /></a></div><br /> <p></p>
</div>
</div>
</div>
</div><p><span style="color: rgb(10.200000%, 9.410000%, 8.630000%); font-family: 'OracleSans'; font-size: 12.000000pt;"></span></p><div class="separator" style="clear: both; text-align: left;"><div class="separator" style="clear: both; text-align: left;">
</div><br /><br /></div><p>
<span style="color: rgb(10.200000%, 9.410000%, 8.630000%); font-family: 'OracleSans'; font-size: 12.000000pt;"><br /> </span></p>
</div>
</div>
</div>
</div><p><span style="font-family: 'OracleSans'; font-size: 11.000000pt;"> </span></p>
</div>
</div>
</div>
</div><div class="separator" style="clear: both;">
</div><p><span style="font-family: 'OracleSans'; font-size: 11.000000pt;"><br /> </span></p>
</div>
</div>
</div>
</div><p><span style="font-family: 'OracleSans'; font-size: 11.000000pt;"> </span></p>
</div>
</div>
</div>
</div><div class="separator" style="clear: both;">
</div><p><span style="font-family: 'OracleSans'; font-size: 11.000000pt;"><br /><br /></span></p><div class="separator" style="clear: both;">
</div>
</div>
</div>
</div>
</div><div class="separator" style="clear: both;"><div class="separator" style="clear: both;">
</div><br /><br /></div><p><br /><br /></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1326110607484977276.post-16808139129573708692022-06-15T11:52:00.004+05:302022-06-15T11:53:45.379+05:30How to setup OCI load balancer<p><span style="font-family: arial;"> How to setup OCI load balancer</span></p><p><span style="font-family: arial;">Here we have 2 webservers. In front of this webservers we will have this OCI LB. Configuration of LB is Weighted Round Robin.</span></p><p><span style="font-family: arial;">Domain or IP : 1</span></p><p class="p1" style="color: #dca10d; font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><a href="http://api1v2.f5imagine.org/">http://api1v2.f5imagine.org/</a></p><p class="p1" style="color: #dca10d; font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><br /></p><p class="p1" style="color: #dca10d; font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEhZPQhvW-Ictj8DCsniy8ISMngcTmM07fzsOKYIBZq0uytVe92xijbE_2CuHjIxpgHgtOzaJKst64MB4Yh8mr40Vl9Ed5e6XzKSfdTZrMPVmVmgqcMs-1PwSO7YWSFd1wGkgb7R6uFS80E1jTw23i1faGJ9bzsGcPya1gMq65xOE7c9bw76UDJSxhV_dA" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="127" data-original-width="619" height="133" src="https://blogger.googleusercontent.com/img/a/AVvXsEhZPQhvW-Ictj8DCsniy8ISMngcTmM07fzsOKYIBZq0uytVe92xijbE_2CuHjIxpgHgtOzaJKst64MB4Yh8mr40Vl9Ed5e6XzKSfdTZrMPVmVmgqcMs-1PwSO7YWSFd1wGkgb7R6uFS80E1jTw23i1faGJ9bzsGcPya1gMq65xOE7c9bw76UDJSxhV_dA=w640-h133" width="640" /></a></div><p class="p1" style="color: #dca10d; font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><br /></p><span style="color: black; font-family: arial; font-size: medium;">Domain or IP : 2</span><p></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><br /></span></p><p class="p1" style="color: #dca10d; font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><a href="http://api2v2.f5imagine.org/">http://api2v2.f5imagine.org/</a></p><p class="p1" style="color: #dca10d; font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><br /></p><p class="p1" style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"></p><div class="separator" style="clear: both; color: #dca10d; font-family: "Helvetica Neue"; font-size: 13px; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgUTy1zjpspJ14QmljOlAroQ2DPMxvPlas0qwb4-DZiLKD_IXMIGnKvYH8Nd04EJ3RGXTmdSRvjhGFUBg2biZhtdLTFafTI-XVWqhB6gHGgMdZ62mMzLI0GHySzVxtQPQ1DmalrKht_zchQvnUds3g1JheNKCCRSQ5TRf4BYvjjIPSEJGPbmCMXFfp-ew" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="127" data-original-width="619" height="132" src="https://blogger.googleusercontent.com/img/a/AVvXsEgUTy1zjpspJ14QmljOlAroQ2DPMxvPlas0qwb4-DZiLKD_IXMIGnKvYH8Nd04EJ3RGXTmdSRvjhGFUBg2biZhtdLTFafTI-XVWqhB6gHGgMdZ62mMzLI0GHySzVxtQPQ1DmalrKht_zchQvnUds3g1JheNKCCRSQ5TRf4BYvjjIPSEJGPbmCMXFfp-ew=w640-h132" width="640" /></a></div><p style="clear: both; text-align: left;"><span style="font-family: arial;">Login to your to your OCI dashboard. Under Netowking, Load balancer, Create a LB</span></p><p style="clear: both; text-align: left;"><span style="font-family: arial;"></span></p><div class="separator" style="clear: both; text-align: center;"><span style="font-family: arial;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEhz5CDRh4o_c8B_EYwaOXAP2GpS1ARWS87k_Hp5dxQmB4TleuHenfgPQK8PzR9z4oF9Q-Qbjx94Dv5EoSVHRCK_gSSmAus3w5K2rJxiJGvb6GukLNJbXHKMgSmn55vr5AoMrZGLHKDSCwDNhKGJE44TyzirzwoHC6Ggh__eBFGv5ZvBxVx2i7A-wYidYg" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="630" data-original-width="1443" height="280" src="https://blogger.googleusercontent.com/img/a/AVvXsEhz5CDRh4o_c8B_EYwaOXAP2GpS1ARWS87k_Hp5dxQmB4TleuHenfgPQK8PzR9z4oF9Q-Qbjx94Dv5EoSVHRCK_gSSmAus3w5K2rJxiJGvb6GukLNJbXHKMgSmn55vr5AoMrZGLHKDSCwDNhKGJE44TyzirzwoHC6Ggh__eBFGv5ZvBxVx2i7A-wYidYg=w640-h280" width="640" /></a></span></div><div class="separator" style="clear: both; text-align: center;"><span style="font-family: arial;"><br /></span></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><span style="font-family: arial;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjIgBby3eguoVNsVD6ARWGNQQS3dETbEiKo2CAHY020Oh4es4EPALSw3uUYb1tbPBRoDWag59GYi11KY9DZ1w6ch-0SeSeP0Z5Cc3cPzKvGtotqaQm2duApF6vYxwTJ1klV5gb46j62zMdxkUbblcGu4viVggzoMfGORWHimnMCv5FkeryBUNPaUa6D9Q" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="630" data-original-width="1443" height="280" src="https://blogger.googleusercontent.com/img/a/AVvXsEjIgBby3eguoVNsVD6ARWGNQQS3dETbEiKo2CAHY020Oh4es4EPALSw3uUYb1tbPBRoDWag59GYi11KY9DZ1w6ch-0SeSeP0Z5Cc3cPzKvGtotqaQm2duApF6vYxwTJ1klV5gb46j62zMdxkUbblcGu4viVggzoMfGORWHimnMCv5FkeryBUNPaUa6D9Q=w640-h280" width="640" /></a></span></div><div class="separator" style="clear: both; text-align: center;"><span style="font-family: arial;"><br /></span></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><span style="font-family: arial;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEi4dhuqVERwVIc9G7zhIMHd4RCMvJ5FQmaOLtXPd7ModTdlxrsjhslCU4uI0e7AjxTmAdydDSXlLd5g_-6DwzshhVSfHg5b9SvUopf5ekECTD-ACXRgvFmtk2eWu9u-u2BcVCoDekzXI5n4y2Pd9IsdiIpNNK6Aqa0De6l3EvWL2lMoz-L_0DDC18qpPw" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="878" data-original-width="1396" height="402" src="https://blogger.googleusercontent.com/img/a/AVvXsEi4dhuqVERwVIc9G7zhIMHd4RCMvJ5FQmaOLtXPd7ModTdlxrsjhslCU4uI0e7AjxTmAdydDSXlLd5g_-6DwzshhVSfHg5b9SvUopf5ekECTD-ACXRgvFmtk2eWu9u-u2BcVCoDekzXI5n4y2Pd9IsdiIpNNK6Aqa0De6l3EvWL2lMoz-L_0DDC18qpPw=w640-h402" width="640" /></a></span></div><div class="separator" style="clear: both; text-align: center;"><span style="font-family: arial;"><br /></span></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><span style="font-family: arial;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgrHKtZbuIJwrbnVlcD0lTTUjYPn4XWPDJl-Q4O3q_9D2KO4o17yhYCbzMR6CrHpKi10DW-13exNjGyUzx9t_dfV3iZgg6e-InDXLIHDgKi9BvRdBGfRQyIKNDwUq2etie3a20vX_2qp6f_qXNwZvl-KtVm0gKOdQ-7Man_e3q-BZ0NgOjWNRO6IcNj6w" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="878" data-original-width="1396" height="402" src="https://blogger.googleusercontent.com/img/a/AVvXsEgrHKtZbuIJwrbnVlcD0lTTUjYPn4XWPDJl-Q4O3q_9D2KO4o17yhYCbzMR6CrHpKi10DW-13exNjGyUzx9t_dfV3iZgg6e-InDXLIHDgKi9BvRdBGfRQyIKNDwUq2etie3a20vX_2qp6f_qXNwZvl-KtVm0gKOdQ-7Man_e3q-BZ0NgOjWNRO6IcNj6w=w640-h402" width="640" /></a></span></div><div class="separator" style="clear: both; text-align: center;"><span style="font-family: arial;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEhoFED2e6hxrXcIRysEZSzXVgLV-ozZU-V8BP9enDdZ0T3dTONnAxfirjed7VwH5TZ_GQ-Zgb3YfabsQuwjUHHqkwgmzh3glnku_AL1P_PDT9PvP5vr6QbxGcr-WuBbFl1hrOyAbB_OfZf6lMwh0uqELOY6htUy6rXm1p_AVyG2do8y9KIL71MhIearWw" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="878" data-original-width="1396" height="403" src="https://blogger.googleusercontent.com/img/a/AVvXsEhoFED2e6hxrXcIRysEZSzXVgLV-ozZU-V8BP9enDdZ0T3dTONnAxfirjed7VwH5TZ_GQ-Zgb3YfabsQuwjUHHqkwgmzh3glnku_AL1P_PDT9PvP5vr6QbxGcr-WuBbFl1hrOyAbB_OfZf6lMwh0uqELOY6htUy6rXm1p_AVyG2do8y9KIL71MhIearWw=w640-h403" width="640" /></a></span></div><div class="separator" style="clear: both; text-align: center;"><span style="font-family: arial;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjN-LHiQxWC2fiSQxWTIzliCk5vRfVfmHLCFYxpCg5h65NPBjARx61VW3_wzQa19c0wM5ui-DiQQ0i1n1qN8dK2OLHXH7Lw7U5JMtZjgqoVAi3slU4NEfZtXUJBRz01GbAp3qpEn_2EK0mnVel8o_Gn7DL9eUki7bZoF6e2t2eb-nI7MjhRDcnY6v_QRw" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="878" data-original-width="1337" height="420" src="https://blogger.googleusercontent.com/img/a/AVvXsEjN-LHiQxWC2fiSQxWTIzliCk5vRfVfmHLCFYxpCg5h65NPBjARx61VW3_wzQa19c0wM5ui-DiQQ0i1n1qN8dK2OLHXH7Lw7U5JMtZjgqoVAi3slU4NEfZtXUJBRz01GbAp3qpEn_2EK0mnVel8o_Gn7DL9eUki7bZoF6e2t2eb-nI7MjhRDcnY6v_QRw=w640-h420" width="640" /></a></span></div><div class="separator" style="clear: both; text-align: center;"><span style="font-family: arial;"><br /></span></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><span style="font-family: arial;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEhHpbpotcLunX5Cbd4TnSo41E4Uq_nzovLX5Sdno_aXVRItglXfu4EHJAOITABekOOKaeuW259ABns5g7q8gM0sZBY6UU5abF_1Dlko1q-vMs8ZozdGXQvWv9eXGT_UlyjUdjFu_0mGkB6YAEkOJdlK5Ovndv98v8vh5T-jSBiKkURKrVXnMcQPVhUTBQ" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="878" data-original-width="1337" height="420" src="https://blogger.googleusercontent.com/img/a/AVvXsEhHpbpotcLunX5Cbd4TnSo41E4Uq_nzovLX5Sdno_aXVRItglXfu4EHJAOITABekOOKaeuW259ABns5g7q8gM0sZBY6UU5abF_1Dlko1q-vMs8ZozdGXQvWv9eXGT_UlyjUdjFu_0mGkB6YAEkOJdlK5Ovndv98v8vh5T-jSBiKkURKrVXnMcQPVhUTBQ=w640-h420" width="640" /></a></span></div><div class="separator" style="clear: both; text-align: center;"><span style="font-family: arial;"><br /></span></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><span style="font-family: arial;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjuaMPSa8cAGnZ5iI9WHQkoZNqj4fTvqJwZLyHxGlsMnHDVr4lTfKAsqXHWzQHPP55d4lyvJod34NV5WtQNdQsWCzV-1npBDdQYdcDQ2zESGyz5qrMKhqTmmLl6W-Q9CGgqbKRPVx0i7Wn07wrJCiEe8KAo9WYHZZalWDP0ROUhwW9aIYUlud6qQcW0aw" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="878" data-original-width="1337" height="420" src="https://blogger.googleusercontent.com/img/a/AVvXsEjuaMPSa8cAGnZ5iI9WHQkoZNqj4fTvqJwZLyHxGlsMnHDVr4lTfKAsqXHWzQHPP55d4lyvJod34NV5WtQNdQsWCzV-1npBDdQYdcDQ2zESGyz5qrMKhqTmmLl6W-Q9CGgqbKRPVx0i7Wn07wrJCiEe8KAo9WYHZZalWDP0ROUhwW9aIYUlud6qQcW0aw=w640-h420" width="640" /></a></span></div><div class="separator" style="clear: both; text-align: center;"><span style="font-family: arial;"><br /></span></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><span style="font-family: arial;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjUcsDWLT98M3pfKbjKVmGAPu4K9z6cFK0F7bndjF9KEH8BXEiugfod0y_gGFgb73BCK2QbE7879YxB0P3B8mwTv0KJmnVhlDktwQz4oxja2VaIaflOK01ylLF11H9uDGWlP8TolpdOFRpTHNOcln7e8ttiR2QfPWXnzo6M92zFxtaKP7Faefnvi8RQzw" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="878" data-original-width="1337" height="420" src="https://blogger.googleusercontent.com/img/a/AVvXsEjUcsDWLT98M3pfKbjKVmGAPu4K9z6cFK0F7bndjF9KEH8BXEiugfod0y_gGFgb73BCK2QbE7879YxB0P3B8mwTv0KJmnVhlDktwQz4oxja2VaIaflOK01ylLF11H9uDGWlP8TolpdOFRpTHNOcln7e8ttiR2QfPWXnzo6M92zFxtaKP7Faefnvi8RQzw=w640-h420" width="640" /></a></span></div><div class="separator" style="clear: both; text-align: center;"><span style="font-family: arial;"><br /></span></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><span style="font-family: arial;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgH8Ch9ADEda3CJI_KJTT5ELYMk83OSehdJ8Xe6NBqDIeeKHumP7pGnJemkC3IJ3s-l2k2AGCH8PWA7-vkxwvToRGBWWtyaCYrMpnDV9WBgWUHcMzMHw7K5ccuY8vv45A0MmQmv2i4SyA_-5Xc3WqrWoKJV1uLnycFsL1oQqSdsN82YzGGl5aLinWYiUQ" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="586" data-original-width="1816" height="206" src="https://blogger.googleusercontent.com/img/a/AVvXsEgH8Ch9ADEda3CJI_KJTT5ELYMk83OSehdJ8Xe6NBqDIeeKHumP7pGnJemkC3IJ3s-l2k2AGCH8PWA7-vkxwvToRGBWWtyaCYrMpnDV9WBgWUHcMzMHw7K5ccuY8vv45A0MmQmv2i4SyA_-5Xc3WqrWoKJV1uLnycFsL1oQqSdsN82YzGGl5aLinWYiUQ=w640-h206" width="640" /></a></span></div><div class="separator" style="clear: both; text-align: center;"><span style="font-family: arial;"><br /></span></div><div style="text-align: left;"><span style="font-family: arial;"><br /></span></div><div style="text-align: left;"><span style="font-family: arial;">Now access your LB IP. Each request will go to each web server.</span></div></div></div></div></div></div></div></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1326110607484977276.post-77163558810341370082022-03-26T18:37:00.004+05:302022-03-30T07:02:47.618+05:30InsufficientServicePermissions - Permissions granted to the object storage service principal to this bucket are insufficient<p><span style="font-family: arial;"> In <a href="https://www.oracle.com/sg/cloud/" target="_blank">OCI</a>, <a href="https://docs.oracle.com/en-us/iaas/Content/Object/Concepts/objectstorageoverview.htm" target="_blank">Object Storage</a>, I am getting the below error when trying to create "<a href="https://docs.oracle.com/en-us/iaas/Content/Object/Tasks/usinglifecyclepolicies.htm" target="_blank">Lifecycle Management Policy</a>" using REST API.</span></p><blockquote><p class="p1" style="font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;">{</span></p><p class="p1" style="font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><span class="Apple-converted-space"> </span>"code": "InsufficientServicePermissions",</span></p><p class="p1" style="font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;"><span class="Apple-converted-space"> </span>"message": "Permissions granted to the object storage service principal \"objectstorage-eu-frankfurt-1\" to this bucket are insufficient."</span></p><p class="p1" style="font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;">}</span></p></blockquote><p><span style="font-family: arial;"><b>Fix the problem:</b></span></p><p><span style="font-family: arial;">Create a policy and add the following</span></p><p class="p1" style="font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;">Allow group Administrators to read buckets in tenancy</span></p><p class="p1" style="font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;">Allow group Administrators to manage objects in tenancy where any {request.permission='OBJECT_CREATE', request.permission='OBJECT_INSPECT'}</span></p><p class="p1" style="font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span style="font-family: arial;">Allow service objectstorage-ap-mumbai-1 to manage object-family in tenancy</span></p><p> </p>Unknownnoreply@blogger.com0