<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-816252519844905278</id><updated>2024-12-08T04:07:56.338+05:30</updated><title type='text'>L E A R N I N G S</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://swapnilgoswami.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://swapnilgoswami.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Learnings</name><uri>http://www.blogger.com/profile/11717619302144339377</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>154</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-816252519844905278.post-2201764491477833091</id><published>2019-06-17T22:38:00.003+05:30</published><updated>2019-06-17T22:38:59.759+05:30</updated><title type='text'>AnsibleError: Unable to create local directories(/home/ubuntu/.ansible/tmp)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Ansible Error:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #fce5cd; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;AnsibleError: Unable to create local directories(/home/ubuntu/.ansible/tmp): [Errno 13] Permission denied: &#39;/home/ubuntu/.ansible/tmp&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;When I do ls -al I see the .ansible directory is owned by root.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #fce5cd; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;drwx------&amp;nbsp; 3 root&amp;nbsp; &amp;nbsp;root&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4096 Jun 14 09:09 .ansible&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;So either run Ansible using sudo&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp;OR&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Change permissions of this directory to allow the logged in user to create files.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://swapnilgoswami.blogspot.com/feeds/2201764491477833091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://swapnilgoswami.blogspot.com/2019/06/ansibleerror-unable-to-create-local.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/2201764491477833091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/2201764491477833091'/><link rel='alternate' type='text/html' href='http://swapnilgoswami.blogspot.com/2019/06/ansibleerror-unable-to-create-local.html' title='AnsibleError: Unable to create local directories(/home/ubuntu/.ansible/tmp)'/><author><name>Learnings</name><uri>http://www.blogger.com/profile/11717619302144339377</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-816252519844905278.post-570761180105329697</id><published>2019-06-17T22:32:00.002+05:30</published><updated>2019-06-17T22:32:39.926+05:30</updated><title type='text'>ERROR! Unexpected Exception, this is probably a bug: &#39;PlaybookCLI&#39; object has no attribute &#39;options</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Error when running Ansible Playbook&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #f6b26b;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;ERROR! Unexpected Exception, this is probably a bug: &#39;PlaybookCLI&#39; object has no attribute &#39;options&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Haven&#39;t been able to solve it yet. Looks like some Ansible version compatability.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://swapnilgoswami.blogspot.com/feeds/570761180105329697/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://swapnilgoswami.blogspot.com/2019/06/error-unexpected-exception-this-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/570761180105329697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/570761180105329697'/><link rel='alternate' type='text/html' href='http://swapnilgoswami.blogspot.com/2019/06/error-unexpected-exception-this-is.html' title='ERROR! Unexpected Exception, this is probably a bug: &#39;PlaybookCLI&#39; object has no attribute &#39;options'/><author><name>Learnings</name><uri>http://www.blogger.com/profile/11717619302144339377</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-816252519844905278.post-7440960074650001690</id><published>2019-06-14T17:21:00.002+05:30</published><updated>2019-06-14T18:45:13.165+05:30</updated><title type='text'>POD showing status Init:ImagePullBackOff</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;I&#39;m trying to install Redis using Helm... It goes through all the steps fine but when I try to see the POD&#39;s I see the status as Init:ImagePullBackOff.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Not sure what this really is. Have you come across such status for PODS?&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: #f3f3f3; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;ubuntu@ip-10-0-64-140:~/$ kubectl get po --namespace platform-svcs&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: #f3f3f3; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;NAME&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;READY&amp;nbsp; &amp;nbsp; &amp;nbsp;STATUS&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RESTARTS&amp;nbsp; &amp;nbsp;AGE&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: #f3f3f3; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;session-store-redis-ha-server-0&amp;nbsp; &amp;nbsp;0/2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt;Init:ImagePullBackOff&lt;/b&gt;&amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 17s&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: #f3f3f3; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;ubuntu@ip-10-0-64-140:~/$&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;height: 0px; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Used the following command to get to events:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #cccccc; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;kubectl describe pod session-store-redis-ha-server-0 --namespace platform-svcs&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;This pointed me to the problem that I do not have access to the repo having Redis image.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://swapnilgoswami.blogspot.com/feeds/7440960074650001690/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://swapnilgoswami.blogspot.com/2019/06/pod-showing-status-initimagepullbackoff.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/7440960074650001690'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/7440960074650001690'/><link rel='alternate' type='text/html' href='http://swapnilgoswami.blogspot.com/2019/06/pod-showing-status-initimagepullbackoff.html' title='POD showing status Init:ImagePullBackOff'/><author><name>Learnings</name><uri>http://www.blogger.com/profile/11717619302144339377</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-816252519844905278.post-2617555159561537840</id><published>2018-08-03T18:56:00.001+05:30</published><updated>2018-08-04T15:53:55.214+05:30</updated><title type='text'>error: the server doesn&#39;t have resource type “svc”</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
ere is what I did to work it through.... 1. Enabled verbose to make sure config files are read properly.&lt;/div&gt;
&lt;blockquote style=&quot;background-color: cornsilk; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: rgb(255, 235, 142); border-left-style: solid; border-right-color: initial; border-right-style: initial; border-top-color: initial; border-top-style: initial; border-width: 0px 0px 0px 2px; box-sizing: inherit; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px 0px 10px; padding: 10px; quotes: none; vertical-align: baseline;&quot;&gt;
&lt;div style=&quot;border: 0px; box-sizing: inherit; clear: both; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; padding: 0px; vertical-align: baseline;&quot;&gt;
kubectl get svc --v=10&lt;/div&gt;
&lt;/blockquote&gt;
&lt;ol start=&quot;2&quot; style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1em 30px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Modified the file as below:&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style=&quot;color: #242729; font-family: Arial, Helvetica Neue, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;




&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #fff0a5; background-color: #13773d}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;apiVersion: v1&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;clusters:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;- cluster:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;server: XXXXXXXXXXXXX&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;certificate-authority-data: XXXXXXXXXX&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &lt;/span&gt;name: my-eks&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;contexts:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;- context:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;cluster: my-eks&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;user: aws&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &lt;/span&gt;name: aws&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;current-context: aws&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;kind: Config&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;preferences: {}&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;users:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;- name: aws&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &lt;/span&gt;user:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;exec:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;apiVersion: client.authentication.k8s.io/v1alpha1&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;command: aws-iam-authenticator&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;args:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;- &quot;token&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;- &quot;-i&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;- &quot;my-eks&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;# - &quot;-r&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;# - &quot;&amp;lt;role-arn&amp;gt;&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;env:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;- name: AWS_PROFILE&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;value: &quot;aws&quot;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #242729; font-family: Arial, Helvetica Neue, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://swapnilgoswami.blogspot.com/feeds/2617555159561537840/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://swapnilgoswami.blogspot.com/2018/08/error-server-doesnt-have-resource-type.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/2617555159561537840'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/2617555159561537840'/><link rel='alternate' type='text/html' href='http://swapnilgoswami.blogspot.com/2018/08/error-server-doesnt-have-resource-type.html' title='error: the server doesn&#39;t have resource type “svc”'/><author><name>Learnings</name><uri>http://www.blogger.com/profile/11717619302144339377</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-816252519844905278.post-5147092913711699959</id><published>2018-05-20T13:15:00.000+05:30</published><updated>2018-05-20T13:15:21.142+05:30</updated><title type='text'>How to run two container websites on a single port in Docker?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
There is no out of&amp;nbsp; the box solution for this because it is not a valid design using dockers. However you can go about installing &amp;amp; configuring a reverse proxy which sits in front of your docker containers.&lt;br /&gt;
&lt;br /&gt;
See this article for details on configuring ngnix as a reverse proxy for docker containers https://www.thepolyglotdeveloper.com/2017/03/nginx-reverse-proxy-containerized-docker-applications/ &lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://swapnilgoswami.blogspot.com/feeds/5147092913711699959/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://swapnilgoswami.blogspot.com/2018/05/how-to-run-two-container-websites-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/5147092913711699959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/5147092913711699959'/><link rel='alternate' type='text/html' href='http://swapnilgoswami.blogspot.com/2018/05/how-to-run-two-container-websites-on.html' title='How to run two container websites on a single port in Docker?'/><author><name>Learnings</name><uri>http://www.blogger.com/profile/11717619302144339377</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-816252519844905278.post-3925749196314298559</id><published>2018-05-20T12:53:00.000+05:30</published><updated>2018-05-20T12:53:08.032+05:30</updated><title type='text'>How to manage files &amp; space in Docker</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; color: #373737; font-family: Lato, Avenir, sans-serif; font-size: 18px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: 0.5px; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; color: #373737; font-family: Lato, Avenir, sans-serif; font-size: 18px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: 0.5px; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
There are three main ways docker stores files:&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; color: #373737; font-family: Lato, Avenir, sans-serif; font-size: 18px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: 0.5px; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul style=&quot;-webkit-text-stroke-width: 0px; color: #373737; font-family: Lato, Avenir, sans-serif; font-size: 18px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: 0.5px; list-style: disc; margin: 0px 0px 0px 2em; orphans: 2; padding: 0px; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;li&gt;By default, everything you save to disk inside the container is saved in the aufs layer. This doesn’t create problems if you clean up unused containers and images.&lt;/li&gt;
&lt;li&gt;If you mount a file or directory from the host (using&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;docker run -v /host/path:/container/path …&lt;/code&gt;) the files are stored in the host filesystem, so it’s easy to track them and there is no problem also.&lt;/li&gt;
&lt;li&gt;The third way are docker volumes. Those are special paths that are mapped to a special directory in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;/var/lib/docker/volumes/&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;path on the host. A lot of images use volumes to share files between containers (using the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;volumes-from&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;option) or persist data so you won’t lose them after the process exits (the data-only containers pattern).&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; color: #373737; font-family: Lato, Avenir, sans-serif; font-size: 18px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: 0.5px; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; color: #373737; font-family: Lato, Avenir, sans-serif; font-size: 18px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: 0.5px; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
Since there is no tool to list volumes and their state, it’s easy to leave them on disk even after all processes exited and all containers are removed.&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; color: #373737; font-family: Lato, Avenir, sans-serif; font-size: 18px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: 0.5px; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; color: #373737; font-family: Lato, Avenir, sans-serif; font-size: 18px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: 0.5px; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
You can use below script to cleanup all the things:&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; color: #373737; font-family: Lato, Avenir, sans-serif; font-size: 18px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: 0.5px; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table class=&quot;highlight tab-size js-file-line-container&quot; data-tab-size=&quot;8&quot; style=&quot;-webkit-text-stroke-width: 0px; background: rgb(255, 255, 255); border-collapse: collapse; border: 0px; color: #333333; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: 0.5px; line-height: 1.4; margin: 0px; orphans: 2; padding: 0px; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;blob-code blob-code-inner js-file-line&quot; id=&quot;file-cleanup-docker-sh-LC1&quot; style=&quot;background: rgba(0, 0, 0, 0); border: 0px; color: #24292e; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding-bottom: 1px !important; padding-left: 10px !important; padding-right: 10px !important; padding-top: 4px; position: relative; text-align: left; vertical-align: top; white-space: pre; word-wrap: normal;&quot;&gt;&lt;span class=&quot;pl-c&quot; style=&quot;color: #6a737d;&quot;&gt;&lt;span class=&quot;pl-c&quot; style=&quot;color: #6a737d;&quot;&gt;#!&lt;/span&gt;/bin/bash&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;blob-num js-line-number&quot; data-line-number=&quot;2&quot; id=&quot;file-cleanup-docker-sh-L2&quot; style=&quot;background: rgba(0, 0, 0, 0); color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: inherit; padding: 1px 10px !important; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 15px;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;blob-code blob-code-inner js-file-line&quot; id=&quot;file-cleanup-docker-sh-LC2&quot; style=&quot;background: rgba(0, 0, 0, 0); border: 0px; color: #24292e; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 1px 10px !important; position: relative; text-align: left; vertical-align: top; white-space: pre; word-wrap: normal;&quot;&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;blob-num js-line-number&quot; data-line-number=&quot;3&quot; id=&quot;file-cleanup-docker-sh-L3&quot; style=&quot;background: rgba(0, 0, 0, 0); color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: inherit; padding: 1px 10px !important; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 15px;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;blob-code blob-code-inner js-file-line&quot; id=&quot;file-cleanup-docker-sh-LC3&quot; style=&quot;background: rgba(0, 0, 0, 0); border: 0px; color: #24292e; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 1px 10px !important; position: relative; text-align: left; vertical-align: top; white-space: pre; word-wrap: normal;&quot;&gt;&lt;span class=&quot;pl-c&quot; style=&quot;color: #6a737d;&quot;&gt;&lt;span class=&quot;pl-c&quot; style=&quot;color: #6a737d;&quot;&gt;#&lt;/span&gt; remove exited containers:&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;blob-num js-line-number&quot; data-line-number=&quot;4&quot; id=&quot;file-cleanup-docker-sh-L4&quot; style=&quot;background: rgba(0, 0, 0, 0); color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: inherit; padding: 1px 10px !important; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 15px;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;blob-code blob-code-inner js-file-line&quot; id=&quot;file-cleanup-docker-sh-LC4&quot; style=&quot;background: rgba(0, 0, 0, 0); border: 0px; color: #24292e; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 1px 10px !important; position: relative; text-align: left; vertical-align: top; white-space: pre; word-wrap: normal;&quot;&gt;docker ps --filter status=dead --filter status=exited -aq &lt;span class=&quot;pl-k&quot; style=&quot;color: #d73a49;&quot;&gt;|&lt;/span&gt; xargs -r docker rm -v&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;blob-num js-line-number&quot; data-line-number=&quot;5&quot; id=&quot;file-cleanup-docker-sh-L5&quot; style=&quot;background: rgba(0, 0, 0, 0); color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: inherit; padding: 1px 10px !important; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 15px;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;blob-code blob-code-inner js-file-line&quot; id=&quot;file-cleanup-docker-sh-LC5&quot; style=&quot;background: rgba(0, 0, 0, 0); border: 0px; color: #24292e; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 1px 10px !important; position: relative; text-align: left; vertical-align: top; white-space: pre; word-wrap: normal;&quot;&gt;    &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;blob-num js-line-number&quot; data-line-number=&quot;6&quot; id=&quot;file-cleanup-docker-sh-L6&quot; style=&quot;background: rgba(0, 0, 0, 0); color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: inherit; padding: 1px 10px !important; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 15px;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;blob-code blob-code-inner js-file-line&quot; id=&quot;file-cleanup-docker-sh-LC6&quot; style=&quot;background: rgba(0, 0, 0, 0); border: 0px; color: #24292e; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 1px 10px !important; position: relative; text-align: left; vertical-align: top; white-space: pre; word-wrap: normal;&quot;&gt;&lt;span class=&quot;pl-c&quot; style=&quot;color: #6a737d;&quot;&gt;&lt;span class=&quot;pl-c&quot; style=&quot;color: #6a737d;&quot;&gt;#&lt;/span&gt; remove unused images:&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;blob-num js-line-number&quot; data-line-number=&quot;7&quot; id=&quot;file-cleanup-docker-sh-L7&quot; style=&quot;background: rgba(0, 0, 0, 0); color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: inherit; padding: 1px 10px !important; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 15px;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;blob-code blob-code-inner js-file-line&quot; id=&quot;file-cleanup-docker-sh-LC7&quot; style=&quot;background: rgba(0, 0, 0, 0); border: 0px; color: #24292e; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 1px 10px !important; position: relative; text-align: left; vertical-align: top; white-space: pre; word-wrap: normal;&quot;&gt;docker images --no-trunc &lt;span class=&quot;pl-k&quot; style=&quot;color: #d73a49;&quot;&gt;|&lt;/span&gt; grep &lt;span class=&quot;pl-s&quot; style=&quot;color: #032f62;&quot;&gt;&lt;span class=&quot;pl-pds&quot; style=&quot;color: #032f62;&quot;&gt;&#39;&lt;/span&gt;&amp;lt;none&amp;gt;&lt;span class=&quot;pl-pds&quot; style=&quot;color: #032f62;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;pl-k&quot; style=&quot;color: #d73a49;&quot;&gt;|&lt;/span&gt; awk &lt;span class=&quot;pl-s&quot; style=&quot;color: #032f62;&quot;&gt;&lt;span class=&quot;pl-pds&quot; style=&quot;color: #032f62;&quot;&gt;&#39;&lt;/span&gt;{ print $3 }&lt;span class=&quot;pl-pds&quot; style=&quot;color: #032f62;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;pl-k&quot; style=&quot;color: #d73a49;&quot;&gt;|&lt;/span&gt; xargs -r docker rmi&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;blob-num js-line-number&quot; data-line-number=&quot;8&quot; id=&quot;file-cleanup-docker-sh-L8&quot; style=&quot;background: rgba(0, 0, 0, 0); color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: inherit; padding: 1px 10px !important; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 15px;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;blob-code blob-code-inner js-file-line&quot; id=&quot;file-cleanup-docker-sh-LC8&quot; style=&quot;background: rgba(0, 0, 0, 0); border: 0px; color: #24292e; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 1px 10px !important; position: relative; text-align: left; vertical-align: top; white-space: pre; word-wrap: normal;&quot;&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;blob-num js-line-number&quot; data-line-number=&quot;9&quot; id=&quot;file-cleanup-docker-sh-L9&quot; style=&quot;background: rgba(0, 0, 0, 0); color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: inherit; padding: 1px 10px !important; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 15px;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;blob-code blob-code-inner js-file-line&quot; id=&quot;file-cleanup-docker-sh-LC9&quot; style=&quot;background: rgba(0, 0, 0, 0); border: 0px; color: #24292e; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 1px 10px !important; position: relative; text-align: left; vertical-align: top; white-space: pre; word-wrap: normal;&quot;&gt;&lt;span class=&quot;pl-c&quot; style=&quot;color: #6a737d;&quot;&gt;&lt;span class=&quot;pl-c&quot; style=&quot;color: #6a737d;&quot;&gt;#&lt;/span&gt; remove unused volumes:&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;blob-num js-line-number&quot; data-line-number=&quot;10&quot; id=&quot;file-cleanup-docker-sh-L10&quot; style=&quot;background: rgba(0, 0, 0, 0); color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: inherit; padding: 1px 10px !important; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 15px;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;blob-code blob-code-inner js-file-line&quot; id=&quot;file-cleanup-docker-sh-LC10&quot; style=&quot;background: rgba(0, 0, 0, 0); border: 0px; color: #24292e; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 1px 10px !important; position: relative; text-align: left; vertical-align: top; white-space: pre; word-wrap: normal;&quot;&gt;find &lt;span class=&quot;pl-s&quot; style=&quot;color: #032f62;&quot;&gt;&lt;span class=&quot;pl-pds&quot; style=&quot;color: #032f62;&quot;&gt;&#39;&lt;/span&gt;/var/lib/docker/volumes/&lt;span class=&quot;pl-pds&quot; style=&quot;color: #032f62;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt; -mindepth 1 -maxdepth 1 -type d &lt;span class=&quot;pl-k&quot; style=&quot;color: #d73a49;&quot;&gt;|&lt;/span&gt; grep -vFf &lt;span class=&quot;pl-s&quot; style=&quot;color: #032f62;&quot;&gt;&lt;span class=&quot;pl-pds&quot; style=&quot;color: #032f62;&quot;&gt;&amp;lt;(&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;blob-num js-line-number&quot; data-line-number=&quot;11&quot; id=&quot;file-cleanup-docker-sh-L11&quot; style=&quot;background: rgba(0, 0, 0, 0); color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: inherit; padding: 1px 10px !important; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 15px;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;blob-code blob-code-inner js-file-line&quot; id=&quot;file-cleanup-docker-sh-LC11&quot; style=&quot;background: rgba(0, 0, 0, 0); border: 0px; color: #24292e; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 1px 10px !important; position: relative; text-align: left; vertical-align: top; white-space: pre; word-wrap: normal;&quot;&gt;&lt;span class=&quot;pl-s&quot; style=&quot;color: #032f62;&quot;&gt;  docker ps -aq &lt;span class=&quot;pl-k&quot; style=&quot;color: #d73a49;&quot;&gt;|&lt;/span&gt; xargs docker inspect &lt;span class=&quot;pl-k&quot; style=&quot;color: #d73a49;&quot;&gt;|&lt;/span&gt; jq -r &lt;span class=&quot;pl-s&quot; style=&quot;color: #032f62;&quot;&gt;&lt;span class=&quot;pl-pds&quot; style=&quot;color: #032f62;&quot;&gt;&#39;&lt;/span&gt;.[] | .Mounts | .[] | .Name | select(.)&lt;span class=&quot;pl-pds&quot; style=&quot;color: #032f62;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;blob-num js-line-number&quot; data-line-number=&quot;12&quot; id=&quot;file-cleanup-docker-sh-L12&quot; style=&quot;background: rgba(0, 0, 0, 0); color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: inherit; padding: 1px 10px !important; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 15px;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;blob-code blob-code-inner js-file-line&quot; id=&quot;file-cleanup-docker-sh-LC12&quot; style=&quot;background: rgba(0, 0, 0, 0); border: 0px; color: #24292e; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 1px 10px !important; position: relative; text-align: left; vertical-align: top; white-space: pre; word-wrap: normal;&quot;&gt;&lt;span class=&quot;pl-s&quot; style=&quot;color: #032f62;&quot;&gt;&lt;span class=&quot;pl-pds&quot; style=&quot;color: #032f62;&quot;&gt;)&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;pl-k&quot; style=&quot;color: #d73a49;&quot;&gt;|&lt;/span&gt; xargs -r rm -fr&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; color: #373737; font-family: Lato, Avenir, sans-serif; font-size: 18px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: 0.5px; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://swapnilgoswami.blogspot.com/feeds/3925749196314298559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://swapnilgoswami.blogspot.com/2018/05/how-to-manage-files-space-in-docker.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/3925749196314298559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/3925749196314298559'/><link rel='alternate' type='text/html' href='http://swapnilgoswami.blogspot.com/2018/05/how-to-manage-files-space-in-docker.html' title='How to manage files &amp; space in Docker'/><author><name>Learnings</name><uri>http://www.blogger.com/profile/11717619302144339377</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-816252519844905278.post-1363386680169821471</id><published>2017-10-20T22:47:00.003+05:30</published><updated>2017-10-20T22:47:20.210+05:30</updated><title type='text'>org.hibernate.HibernateException: Error accessing stax stream</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Couple of things you should check:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;If you are using Eclipse IDE make sure that it is not giving you any error indicators for hibernate.cfg.xml file.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Make sure to close the&lt;span class=&quot;s1&quot; style=&quot;-webkit-text-stroke: rgb(36, 39, 41); color: #242729;&quot;&gt;&amp;nbsp;tag&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;s4&quot; style=&quot;-webkit-text-stroke: rgb(36, 39, 41); color: #242729;&quot;&gt;&amp;lt;hibernate-configuration&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Missing !&lt;span class=&quot;s1&quot; style=&quot;-webkit-text-stroke: rgb(36, 39, 41); color: #242729;&quot;&gt;character in the&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;s4&quot; style=&quot;-webkit-text-stroke: rgb(36, 39, 41); color: #242729;&quot;&gt;DOCTYPE&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Not able to access&lt;span class=&quot;s1&quot; style=&quot;-webkit-text-stroke: rgb(36, 39, 41); color: #242729;&quot;&gt;hibernate-configuration-3.0.dtd from the url provided.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Space before &lt;span class=&quot;s1&quot; style=&quot;-webkit-text-stroke: rgb(48, 51, 54); color: #303336;&quot;&gt;&amp;lt;?xml version=&lt;/span&gt;&lt;span class=&quot;s6&quot; style=&quot;-webkit-text-stroke-width: initial;&quot;&gt;&#39;1.0&#39;&lt;/span&gt;&lt;span class=&quot;s1&quot; style=&quot;-webkit-text-stroke: rgb(48, 51, 54); color: #303336;&quot;&gt;&amp;nbsp;encoding=&lt;/span&gt;&lt;span class=&quot;s6&quot; style=&quot;-webkit-text-stroke-width: initial;&quot;&gt;&#39;utf-8&#39;&lt;/span&gt;&lt;span class=&quot;s1&quot; style=&quot;-webkit-text-stroke: rgb(48, 51, 54); color: #303336;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;





&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 21.0px; font: 18.0px Arial; color: #000000; -webkit-text-stroke: #000000}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 21.0px; font: 18.0px Arial; color: #242729; -webkit-text-stroke: #242729}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 21.0px; font: 18.0px Courier; color: #242729; -webkit-text-stroke: #242729}
p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 21.0px; font: 18.0px Arial; color: #303336; -webkit-text-stroke: #303336}
span.s1 {font-kerning: none; background-color: #ffffff}
span.s2 {font-kerning: none}
span.s3 {font-kerning: none; color: #000000; background-color: #ffffff; -webkit-text-stroke: 0px #000000}
span.s4 {font: 18.0px Courier; font-kerning: none; background-color: #ffffff}
span.s5 {font-kerning: none; color: #242729; background-color: #ffffff; -webkit-text-stroke: 0px #242729}
span.s6 {font-kerning: none; color: #7d2727; background-color: #ffffff; -webkit-text-stroke: 0px #7d2727}
&lt;/style&gt;









&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://swapnilgoswami.blogspot.com/feeds/1363386680169821471/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://swapnilgoswami.blogspot.com/2017/10/orghibernatehibernateexception-error.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/1363386680169821471'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/1363386680169821471'/><link rel='alternate' type='text/html' href='http://swapnilgoswami.blogspot.com/2017/10/orghibernatehibernateexception-error.html' title='org.hibernate.HibernateException: Error accessing stax stream'/><author><name>Learnings</name><uri>http://www.blogger.com/profile/11717619302144339377</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-816252519844905278.post-547880926975232763</id><published>2017-10-20T17:07:00.004+05:30</published><updated>2017-10-20T17:07:41.350+05:30</updated><title type='text'>Docker: Error: Unauthorized: incorrect username or password on mac OS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Getting the following error when I run anything...&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;





&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;b&gt;docker: Error response from daemon: Get https://registry-1.docker.io/v2/library/mysql/manifests/latest: unauthorized: incorrect username or password&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;Here is how I solved it:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;Login into www.docker.com with my username and password&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;Note down the docker ID which is different than your loginID/email&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;In Terminal now enter the command &quot;docker login&quot; it will ask you to enter your user and password&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;If the login is successfull you should get the following message:&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;Password:&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;




&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;



&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;Login Succeeded&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;Now you can run the commands and they should run fine.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://swapnilgoswami.blogspot.com/feeds/547880926975232763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://swapnilgoswami.blogspot.com/2017/10/docker-error-unauthorized-incorrect.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/547880926975232763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/547880926975232763'/><link rel='alternate' type='text/html' href='http://swapnilgoswami.blogspot.com/2017/10/docker-error-unauthorized-incorrect.html' title='Docker: Error: Unauthorized: incorrect username or password on mac OS'/><author><name>Learnings</name><uri>http://www.blogger.com/profile/11717619302144339377</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-816252519844905278.post-6027745394154630239</id><published>2017-10-18T18:46:00.000+05:30</published><updated>2017-10-18T18:54:17.458+05:30</updated><title type='text'>What is Hibernate? </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;It is an ORM Framework to develop persistence logic. It is:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Opensource&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Lightweight&lt;/li&gt;
&lt;li&gt;Provides abstraction over JDBC&lt;/li&gt;
&lt;li&gt;No need for any containers (jsp, servlet etc etc).&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Supports POJO and POJI model programming&lt;/li&gt;
&lt;li&gt;Can be used individually as well as other technologies like Spring etc&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Does not require you to implement any Hibernate API interfaces &amp;amp; neither it requires you to extend any hibernate clases. Hence we can say it is a loosely coupled framework&lt;/li&gt;
&lt;li&gt;Allows us to develop Object Based Persistence logic and hence it is called ORM framework&lt;/li&gt;
&lt;li&gt;Can change from one DB software to another without having to change any Objects etc&lt;/li&gt;
&lt;li&gt;Transaction management, locking, caching etc is all in-built.&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://swapnilgoswami.blogspot.com/feeds/6027745394154630239/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://swapnilgoswami.blogspot.com/2017/10/what-is-hibernate.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/6027745394154630239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/6027745394154630239'/><link rel='alternate' type='text/html' href='http://swapnilgoswami.blogspot.com/2017/10/what-is-hibernate.html' title='What is Hibernate? '/><author><name>Learnings</name><uri>http://www.blogger.com/profile/11717619302144339377</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-816252519844905278.post-5775896736733412017</id><published>2017-10-18T17:57:00.001+05:30</published><updated>2017-10-18T17:57:42.539+05:30</updated><title type='text'>JDBC Limitations or Problems</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Changing DB Software is too complex since JDBC code is Database software dependent and is not at all portable.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Programmers need to convert Object notations to DB columns and visa versa.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Exception handling is mandatory and nothing is in built&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Versioning and time stamping are not provided out of the box. Need to program and handle them manually.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;No proper transaction management support.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Does not support Object level relationships like we have table relationships.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Too much boiler plate code (repeated code) needs to be written.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://swapnilgoswami.blogspot.com/feeds/5775896736733412017/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://swapnilgoswami.blogspot.com/2017/10/jdbc-limitations-or-problems.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/5775896736733412017'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/5775896736733412017'/><link rel='alternate' type='text/html' href='http://swapnilgoswami.blogspot.com/2017/10/jdbc-limitations-or-problems.html' title='JDBC Limitations or Problems'/><author><name>Learnings</name><uri>http://www.blogger.com/profile/11717619302144339377</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-816252519844905278.post-4686855893370580705</id><published>2017-10-14T12:38:00.002+05:30</published><updated>2017-10-14T12:38:38.322+05:30</updated><title type='text'>Concepts of Coding in AWS Lambda</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Languages supported (as on Oct 2017):&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;C#, Java 8, Node.js (4.3 &amp;amp; 6.10), Python (2.7 &amp;amp; 3.6).&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Coding Pattern/Syntax:&lt;/b&gt; There are 4 main components we need to remember&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;topcom&quot;&gt;Handler&lt;/span&gt; –&lt;/b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt; This is your main function which will be called by AWS Lambda when execution starts. All of the event data is been passed to this handler function as the first parameter. The handler processes the event data and may invoke other methods or functions in your code.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;topcom&quot;&gt;Context&lt;/span&gt; –&lt;/b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;This is the second object passed to the lambda function. This is used by our code to interact with AWS Lambda. For e.g., you can figure out the execution time that remains. In node.js there are additional methods available that allows callback.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;topcom&quot;&gt;Logging&lt;/span&gt; –&lt;/b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt; AWS Lambda writes logs to CloudWatch&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;topcom&quot;&gt;Exceptions&lt;/span&gt; – &lt;/b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;You can throw or raise exceptions which AWS lambda will pass on to the caller.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://swapnilgoswami.blogspot.com/feeds/4686855893370580705/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://swapnilgoswami.blogspot.com/2017/10/concepts-of-coding-in-aws-lambda.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/4686855893370580705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/4686855893370580705'/><link rel='alternate' type='text/html' href='http://swapnilgoswami.blogspot.com/2017/10/concepts-of-coding-in-aws-lambda.html' title='Concepts of Coding in AWS Lambda'/><author><name>Learnings</name><uri>http://www.blogger.com/profile/11717619302144339377</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-816252519844905278.post-8696611942369655747</id><published>2017-10-14T00:10:00.000+05:30</published><updated>2017-10-14T00:10:20.936+05:30</updated><title type='text'>AWS Cognito: ErrorNotAuthorizedException: Unable to verify secret hash for client 7cakk6gknpt4cvqifdfbt9qm91</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
To get rid of this Error uncheck &quot;Generate Client Secrets&quot; when you create the App Client in AWS Cognito. That should solve the problem. Atleast that solves it for me.&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://swapnilgoswami.blogspot.com/feeds/8696611942369655747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://swapnilgoswami.blogspot.com/2017/10/aws-cognito-errornotauthorizedexception.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/8696611942369655747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/8696611942369655747'/><link rel='alternate' type='text/html' href='http://swapnilgoswami.blogspot.com/2017/10/aws-cognito-errornotauthorizedexception.html' title='AWS Cognito: ErrorNotAuthorizedException: Unable to verify secret hash for client 7cakk6gknpt4cvqifdfbt9qm91'/><author><name>Learnings</name><uri>http://www.blogger.com/profile/11717619302144339377</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-816252519844905278.post-6632424118465797606</id><published>2016-03-21T12:22:00.003+05:30</published><updated>2016-03-21T12:22:36.892+05:30</updated><title type='text'>How to Install and Configure Ansible on ubuntu 14.04? </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Ansible builds for ubuntu are available in PPA. That means all you need to do is add PPA to you repo&#39;s and then use ubuntu&#39;s default package installer (apt-get).&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #404040; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;To configure the PPA on your machine and install ansible run these commands:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: white; box-sizing: border-box; line-height: 1.5; overflow: auto; padding: 12px;&quot;&gt;&lt;span style=&quot;color: #38761d; font-family: Arial, Helvetica, sans-serif;&quot;&gt;$ sudo apt-get install software-properties-common
$ sudo apt-add-repository ppa:ansible/ansible
$ sudo apt-get update
$ sudo apt-get install ansible&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; box-sizing: border-box; overflow: auto; padding: 12px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 24px;&quot;&gt;You can also install via pip as below:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; box-sizing: border-box; overflow: auto; padding: 12px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: 1.5;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;$ sudo pip install ansible&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://swapnilgoswami.blogspot.com/feeds/6632424118465797606/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://swapnilgoswami.blogspot.com/2016/03/how-to-install-and-configure-ansible-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/6632424118465797606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/6632424118465797606'/><link rel='alternate' type='text/html' href='http://swapnilgoswami.blogspot.com/2016/03/how-to-install-and-configure-ansible-on.html' title='How to Install and Configure Ansible on ubuntu 14.04? '/><author><name>Learnings</name><uri>http://www.blogger.com/profile/11717619302144339377</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-816252519844905278.post-957425582596817703</id><published>2016-03-21T12:12:00.003+05:30</published><updated>2016-03-21T12:12:31.563+05:30</updated><title type='text'>What are Ansible Raw modules? Where and when they are used? </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Ansible’s raw modules are generally used to executing
commands on managed machines which does not have basic requirements for Ansible
on it.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;For e.g., Running Ansible requires Python 2.4 with python-simplejson on
the remote machine. If none of these are available on remote machines then how
would you run Ansible on those hosts? The solution is to use Ansible’s Raw
module to first install python and python-simplejson on the managed machine and
then you can use all other Ansible modules/features.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Example of running a Raw module:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: orange;&quot;&gt;&lt;span class=&quot;pre&quot;&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;ansible&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pre&quot;&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;myhost&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pre&quot;&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;--sudo&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pre&quot;&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;-m&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pre&quot;&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;raw&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pre&quot;&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;-a&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pre&quot;&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&quot;yum&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pre&quot;&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;install&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pre&quot;&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;-y&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pre&quot;&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;python2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 9pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pre&quot;&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;python-simplejson&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://swapnilgoswami.blogspot.com/feeds/957425582596817703/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://swapnilgoswami.blogspot.com/2016/03/what-are-ansible-raw-modules-where-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/957425582596817703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/957425582596817703'/><link rel='alternate' type='text/html' href='http://swapnilgoswami.blogspot.com/2016/03/what-are-ansible-raw-modules-where-and.html' title='What are Ansible Raw modules? Where and when they are used? '/><author><name>Learnings</name><uri>http://www.blogger.com/profile/11717619302144339377</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-816252519844905278.post-4565997270886195290</id><published>2016-03-21T12:07:00.003+05:30</published><updated>2016-03-21T12:07:39.501+05:30</updated><title type='text'>What is SELinux? </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;SELinux is a flexible but mandatory enterprise grade
security implementations (from NSA) in Linux kernel itself. This provides
support for enforcing different but mandatory access control policies.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;You can
see /etc/selinux/config file to see if SELinux is enabled or not for your
system. The variable SELINUX in this file defines the mode (3 modes) in which
SELinux has been operation. These 3 different modes of SELinux are namely:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;text-indent: -24px;&quot;&gt;&lt;b&gt;Disabled:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;text-indent: -24px;&quot;&gt;Completely disables the SELinux.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;text-indent: -24px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Permissive:&amp;nbsp;&lt;/b&gt;enables the SELinux code, but causes it to operate in a mode where accesses that would be denied by policy are permitted but audited&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;text-indent: -24px;&quot;&gt;&lt;b&gt;Enforcement:&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;text-indent: -24px;&quot;&gt;Enables the SELinux code and causes it to enforce access denials as well as auditing them.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;SELinux was the NSA&#39;s attempt at porting the Orange Book
requirements to Linux. There are other popular solutions as well for
implementing access controls in linux like AppArmor, GrSecurity etc.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://swapnilgoswami.blogspot.com/feeds/4565997270886195290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://swapnilgoswami.blogspot.com/2016/03/what-is-selinux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/4565997270886195290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/4565997270886195290'/><link rel='alternate' type='text/html' href='http://swapnilgoswami.blogspot.com/2016/03/what-is-selinux.html' title='What is SELinux? '/><author><name>Learnings</name><uri>http://www.blogger.com/profile/11717619302144339377</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-816252519844905278.post-7436195738639390737</id><published>2015-10-04T17:43:00.001+05:30</published><updated>2015-10-04T17:43:15.405+05:30</updated><title type='text'>Troubleshooting Best Practices</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;


&lt;br /&gt;
&lt;div style=&quot;border-width: 100%; direction: ltr;&quot;&gt;

&lt;div style=&quot;direction: ltr; margin-left: 0in; margin-top: 0in; width: 6.5854in;&quot;&gt;

&lt;div style=&quot;direction: ltr; margin-left: 0in; margin-top: 0in; width: 6.5854in;&quot;&gt;

&lt;ul style=&quot;direction: ltr; margin-bottom: 0in; margin-left: .2902in; margin-top: 0in; unicode-bidi: embed;&quot;&gt;&lt;ul style=&quot;direction: ltr; margin-bottom: 0in; margin-left: 0in; margin-top: 0in; unicode-bidi: embed;&quot; type=&quot;disc&quot;&gt;
&lt;li style=&quot;color: #8b8b8b; margin-bottom: 0; margin-bottom: 6pt; margin-top: 0; margin-top: 4pt; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Calisto MT&amp;quot;; font-size: 20.0pt;&quot;&gt;No reboots first - Come out of this mindset ASAP.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;color: #8b8b8b; margin-bottom: 0; margin-bottom: 6pt; margin-top: 0; margin-top: 4pt; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Calisto MT&amp;quot;; font-size: 20.0pt;&quot;&gt;Divide the problem into smaller logical parts&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;color: #8b8b8b; margin-bottom: 0; margin-bottom: 6pt; margin-top: 0; margin-top: 4pt; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Calisto MT&amp;quot;; font-size: 20.0pt;&quot;&gt;Understand the systems you are going to troubleshoot
      carefully&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;color: #8b8b8b; margin-bottom: 0; margin-bottom: 6pt; margin-top: 0; margin-top: 4pt; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Calisto MT&amp;quot;; font-size: 20.0pt;&quot;&gt;Refer problem history to see if something similar
      occurred in the past too for which we already have a solution. &lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;color: #8b8b8b; margin-bottom: 0; margin-bottom: 6pt; margin-top: 0; margin-top: 4pt; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Calisto MT&amp;quot;; font-size: 20.0pt;&quot;&gt;Generally first thing we should look at is “What
      changed recently?”&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;color: #8b8b8b; margin-bottom: 0; margin-bottom: 6pt; margin-top: 0; margin-top: 4pt; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Calisto MT&amp;quot;; font-size: 20.0pt;&quot;&gt;Document each and every Problem and steps you take to
      solve it&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;color: #8b8b8b; margin-bottom: 0; margin-bottom: 6pt; margin-top: 0; margin-top: 4pt; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Calisto MT&amp;quot;; font-size: 20.0pt;&quot;&gt;Communicate and do not shy away in involving other team
      members for help.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://swapnilgoswami.blogspot.com/feeds/7436195738639390737/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://swapnilgoswami.blogspot.com/2015/10/troubleshooting-best-practices.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/7436195738639390737'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/7436195738639390737'/><link rel='alternate' type='text/html' href='http://swapnilgoswami.blogspot.com/2015/10/troubleshooting-best-practices.html' title='Troubleshooting Best Practices'/><author><name>Learnings</name><uri>http://www.blogger.com/profile/11717619302144339377</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-816252519844905278.post-4479597192469900790</id><published>2014-12-10T12:15:00.000+05:30</published><updated>2014-12-10T12:15:02.732+05:30</updated><title type='text'>Fix &quot;ValueError: unknown locale: UTF-8&quot; when running AWS CLI</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;I was getting following error when running AWS CLI.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #f4cccc; font-family: Arial, Helvetica, sans-serif;&quot;&gt;MacBook-Pro:python sgoswami$ aws ec2 describe-instances&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Traceback (most recent call last):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; File &quot;/usr/local/bin/aws&quot;, line 15, in &amp;lt;module&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; import awscli.clidriver&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; File &quot;/Library/Python/2.7/site-packages/awscli/clidriver.py&quot;, line 31, in &amp;lt;module&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; from awscli.help import ProviderHelpCommand&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; File &quot;/Library/Python/2.7/site-packages/awscli/help.py&quot;, line 20, in &amp;lt;module&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; from docutils.core import publish_string&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; File &quot;/Library/Python/2.7/site-packages/docutils/core.py&quot;, line 20, in &amp;lt;module&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; from docutils import frontend, io, utils, readers, writers&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; File &quot;/Library/Python/2.7/site-packages/docutils/frontend.py&quot;, line 41, in &amp;lt;module&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; import docutils.utils&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; File &quot;/Library/Python/2.7/site-packages/docutils/utils/__init__.py&quot;, line 20, in &amp;lt;module&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; import docutils.io&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; File &quot;/Library/Python/2.7/site-packages/docutils/io.py&quot;, line 18, in &amp;lt;module&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; from docutils.utils.error_reporting import locale_encoding, ErrorString, ErrorOutput&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; File &quot;/Library/Python/2.7/site-packages/docutils/utils/error_reporting.py&quot;, line 47, in &amp;lt;module&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; locale_encoding = locale.getlocale()[1] or locale.getdefaultlocale()[1]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; File &quot;/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py&quot;, line 496, in getdefaultlocale&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; return _parse_localename(localename)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; File &quot;/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py&quot;, line 428, in _parse_localename&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; raise ValueError, &#39;unknown locale: %s&#39; % localename&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc; font-family: Arial, Helvetica, sans-serif;&quot;&gt;ValueError: unknown locale: UTF-8&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;All that I did to fix it was:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;export LC_ALL=en_US.UTF-8&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;export LANG=en_US.UTF-8&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://swapnilgoswami.blogspot.com/feeds/4479597192469900790/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://swapnilgoswami.blogspot.com/2014/12/fix-valueerror-unknown-locale-utf-8.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/4479597192469900790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/4479597192469900790'/><link rel='alternate' type='text/html' href='http://swapnilgoswami.blogspot.com/2014/12/fix-valueerror-unknown-locale-utf-8.html' title='Fix &quot;ValueError: unknown locale: UTF-8&quot; when running AWS CLI'/><author><name>Learnings</name><uri>http://www.blogger.com/profile/11717619302144339377</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-816252519844905278.post-1247603408077634039</id><published>2014-05-11T14:15:00.001+05:30</published><updated>2014-05-11T14:15:08.327+05:30</updated><title type='text'>What are manifest and site.pp files?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;

  
 
 
  &lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-style: oblique;&quot;&gt;Manifest &lt;/span&gt;is puppet’s term for files containing configuration information. Manifest files have a suffix of .pp.
the puppet language is written into these files.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;

  
 
 
  &lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;The site.pp file tells Puppet where and what configuration to load for our clients. These are stored in a
directory called manifests under the /etc/puppet directory.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;You can easily change the name and location of manifest directory and site.pp file by defining/changing the &quot;manifestdir&quot; and &quot;manifest&quot; configuration item in puppet.conf file. These can be found in the [main] are of puppet.conf file.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: TheSansMonoConNormal; font-size: 9pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://swapnilgoswami.blogspot.com/feeds/1247603408077634039/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://swapnilgoswami.blogspot.com/2014/05/what-are-manifest-and-sitepp-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/1247603408077634039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/1247603408077634039'/><link rel='alternate' type='text/html' href='http://swapnilgoswami.blogspot.com/2014/05/what-are-manifest-and-sitepp-files.html' title='What are manifest and site.pp files?'/><author><name>Learnings</name><uri>http://www.blogger.com/profile/11717619302144339377</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-816252519844905278.post-7368990992691605369</id><published>2014-05-11T13:44:00.000+05:30</published><updated>2014-05-11T13:44:44.477+05:30</updated><title type='text'>How to generate puppet.conf file? </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;

  
 
 
  &lt;br /&gt;
&lt;pre&gt;&lt;span style=&quot;background-color: #f4cccc; font-size: 9pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;$ cd /etc/puppet/
$ puppet master --genconfig &amp;gt; puppet.conf
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;The above command will generate the puppet.conf file automatically. &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;TheSansMonoConNormal&#39;; font-size: 9.000000pt;&quot;&gt;The puppet.conf file is like an INI-style file and divided into various sections namely, [agent], [master], [main]. &lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://swapnilgoswami.blogspot.com/feeds/7368990992691605369/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://swapnilgoswami.blogspot.com/2014/05/how-to-generate-puppetconf-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/7368990992691605369'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/7368990992691605369'/><link rel='alternate' type='text/html' href='http://swapnilgoswami.blogspot.com/2014/05/how-to-generate-puppetconf-file.html' title='How to generate puppet.conf file? '/><author><name>Learnings</name><uri>http://www.blogger.com/profile/11717619302144339377</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-816252519844905278.post-6197058295516814803</id><published>2014-04-29T10:28:00.000+05:30</published><updated>2014-04-29T10:28:50.052+05:30</updated><title type='text'>How to upgrade from JDK 1.6 to 1.7 on ubuntu?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Its simple... Use the command&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;sudo apt-get install openjdk-7-jre&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;This will install JDK 1.7 on your ubuntu box. But there is a catch.. if you still run java -version, it will tell you that it is still using JDK 1.6.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;So your system has actually been updated with JDK 1.7 but it is still not in use. There is a special script in ubuntu which allows you to check different versions present on the system and let&#39;s you choose the correct one you want to activate.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Here is how you can update that:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;sudo update-alternatives --config java&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;This command will give you an output similar to below.. and asking you to choose which one you want to use..&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;There are 2 choices for the alternative java (providing /usr/bin/java).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #fce5cd; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; Selection &amp;nbsp; &amp;nbsp;Path &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority &amp;nbsp; Status&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #fce5cd; font-family: Arial, Helvetica, sans-serif;&quot;&gt;------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #fce5cd; font-family: Arial, Helvetica, sans-serif;&quot;&gt;* 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java &amp;nbsp; 1061 &amp;nbsp; &amp;nbsp; &amp;nbsp;auto mode&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #fce5cd; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java &amp;nbsp; 1061 &amp;nbsp; &amp;nbsp; &amp;nbsp;manual mode&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #fce5cd; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java &amp;nbsp; 1051 &amp;nbsp; &amp;nbsp; &amp;nbsp;manual mode&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #fce5cd; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #fce5cd; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Press enter to keep the current choice[*], or type selection number:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Simple.. Isn&#39;t it?&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://swapnilgoswami.blogspot.com/feeds/6197058295516814803/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://swapnilgoswami.blogspot.com/2014/04/how-to-upgrade-from-jdk-16-to-17-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/6197058295516814803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/6197058295516814803'/><link rel='alternate' type='text/html' href='http://swapnilgoswami.blogspot.com/2014/04/how-to-upgrade-from-jdk-16-to-17-on.html' title='How to upgrade from JDK 1.6 to 1.7 on ubuntu?'/><author><name>Learnings</name><uri>http://www.blogger.com/profile/11717619302144339377</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-816252519844905278.post-8920180703145785195</id><published>2014-04-07T16:11:00.000+05:30</published><updated>2014-04-07T16:11:05.435+05:30</updated><title type='text'>Puppet server hostname does not match certificate - can&#39;t authenticate.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;err: Could not retrieve catalog from remote server: Server hostname &#39;puppet&#39; did not match server certificate; expected master&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;The agent configuration file seems to be communicating with a different server (master) name than that for which the puppet master has the certificate for. The only way to solve this is by re-generating the puppetmaster server certificate with the correct hostname as that defined in the agent configuration file.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;To quickly test, another way is to change /etc/hosts file of agent and map the hostname and IP of the puppetmaster server.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://swapnilgoswami.blogspot.com/feeds/8920180703145785195/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://swapnilgoswami.blogspot.com/2014/04/puppet-server-hostname-does-not-match.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/8920180703145785195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/8920180703145785195'/><link rel='alternate' type='text/html' href='http://swapnilgoswami.blogspot.com/2014/04/puppet-server-hostname-does-not-match.html' title='Puppet server hostname does not match certificate - can&#39;t authenticate.'/><author><name>Learnings</name><uri>http://www.blogger.com/profile/11717619302144339377</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-816252519844905278.post-4073527269940812442</id><published>2014-04-07T13:56:00.001+05:30</published><updated>2014-04-07T13:56:45.449+05:30</updated><title type='text'>Exiting; no certificate found and waitforcert is disabled</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;When running command:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;sudo puppet agent --test&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Exiting; no certificate found and waitforcert is disabled&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;To solve this follow below instructions:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;1. &amp;nbsp;Login to the puppetmaster.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;2. &amp;nbsp;Run command &quot;sudo puppet cert --list&quot;. It will list down your agent machine who have requested a certificate.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;3. &amp;nbsp;Sign the requests using command &quot;sudo puppet cert --sign &quot;ip-10-134-174-211.ap-southeast-1.compute.internal&quot;&quot; Where the IP-10.... is the hostname of you agent machine.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;This should all be needed to resolve the issue.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://swapnilgoswami.blogspot.com/feeds/4073527269940812442/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://swapnilgoswami.blogspot.com/2014/04/exiting-no-certificate-found-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/4073527269940812442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/4073527269940812442'/><link rel='alternate' type='text/html' href='http://swapnilgoswami.blogspot.com/2014/04/exiting-no-certificate-found-and.html' title='Exiting; no certificate found and waitforcert is disabled'/><author><name>Learnings</name><uri>http://www.blogger.com/profile/11717619302144339377</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-816252519844905278.post-9096244281195847509</id><published>2014-04-07T13:47:00.003+05:30</published><updated>2014-04-07T13:47:30.527+05:30</updated><title type='text'>err: Could not request certificate: Connection timed out - connect(2)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;When running below command on the agent machine:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;sudo puppet agent --test&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;err: Could not request certificate: Connection timed out - connect(2)&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Points to the problem that the Ports used for communication between the agent and master are not Open. Please open port 8140 TCP and check it again.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://swapnilgoswami.blogspot.com/feeds/9096244281195847509/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://swapnilgoswami.blogspot.com/2014/04/err-could-not-request-certificate.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/9096244281195847509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/9096244281195847509'/><link rel='alternate' type='text/html' href='http://swapnilgoswami.blogspot.com/2014/04/err-could-not-request-certificate.html' title='err: Could not request certificate: Connection timed out - connect(2)'/><author><name>Learnings</name><uri>http://www.blogger.com/profile/11717619302144339377</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-816252519844905278.post-1882646878382625088</id><published>2014-04-06T21:47:00.002+05:30</published><updated>2014-04-06T21:47:17.324+05:30</updated><title type='text'>Recovering a Locked forgot administrator password for Windows EC2 Instance</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Its simple...&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;ol class=&quot;ol1&quot;&gt;
&lt;li class=&quot;li2&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Create a new scratch EC2 instance running 2003 server, and log into it.&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;li2&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Get a note of volume attached to it and Shut down your lost instance (the one you can&#39;t log into) from the AWS console.&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;li2&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;On the EC2 console, go to Elastic Block Store/Volumes and find the volume you find in step 2 and Detach it.&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;li2&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;On that same volume, attach it to your new 2k3 EC2 instance. You can see it appear in Disk Manager and you&#39;ll get a new &amp;nbsp;drive letter.&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;li2&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Go to&amp;nbsp;NewDriveLetter:\Program Files\Amazon\Ec2ConfigService\Settings\&amp;nbsp;and edit&amp;nbsp;config.xml&amp;nbsp;with notepad&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;li2&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;The first setting in the file is for the Ec2SetPassword plugin; change the State field from&amp;nbsp;Disabledto&amp;nbsp;Enabled. Save &amp;amp; close.&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;li2&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;On the AWS console, Detach the volume from the new instance&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;li2&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Attach the volume to your original lost instance, as&amp;nbsp;/dev/sda1 (Root volume)&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;li2&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Start the instance. After a few minutes, run the Get Windows Password function which will have the newly generated password.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Now if you have mapped that instance to C-name remember to change the&amp;nbsp;corresponding URL because the ec2-url will change&amp;nbsp;after&amp;nbsp;the restart.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://swapnilgoswami.blogspot.com/feeds/1882646878382625088/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://swapnilgoswami.blogspot.com/2014/04/recovering-locked-forgot-administrator.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/1882646878382625088'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/1882646878382625088'/><link rel='alternate' type='text/html' href='http://swapnilgoswami.blogspot.com/2014/04/recovering-locked-forgot-administrator.html' title='Recovering a Locked forgot administrator password for Windows EC2 Instance'/><author><name>Learnings</name><uri>http://www.blogger.com/profile/11717619302144339377</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-816252519844905278.post-6411070916279368058</id><published>2014-04-06T21:45:00.000+05:30</published><updated>2014-04-06T21:45:11.223+05:30</updated><title type='text'>An interesting thing about AWS ELB&#39;s</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;In last couple of days I discovered that ELB&#39;s are not designed to handle sudden spikes in traffic. What was most disturbing was that:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;1. &lt;/b&gt;&amp;nbsp;When there is a sudden spike, the ELB breaks down. An returns HTTP 404 messages.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;2.&lt;/b&gt; &amp;nbsp;The ELB gets into a bad state and remains like that for about 90 minutes.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;3.&lt;/b&gt; &amp;nbsp;The solution to this suggested by AWS Support team was to simply move out of ELB and have your own load balancer.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;4.&lt;/b&gt; &amp;nbsp;If it is just a testing spike, AWS can prewarm the ELB to handle that load but just for few weeks.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;HAproxy or Nginx seems to be my obvious choice now if I have to move away from ELB. Doing High availability with HAProxy or even Nginx seems to be a little tricky but that&#39;s Okay if we have to move away from ELB.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://swapnilgoswami.blogspot.com/feeds/6411070916279368058/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://swapnilgoswami.blogspot.com/2014/04/an-interesting-thing-about-aws-elbs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/6411070916279368058'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/816252519844905278/posts/default/6411070916279368058'/><link rel='alternate' type='text/html' href='http://swapnilgoswami.blogspot.com/2014/04/an-interesting-thing-about-aws-elbs.html' title='An interesting thing about AWS ELB&#39;s'/><author><name>Learnings</name><uri>http://www.blogger.com/profile/11717619302144339377</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>