<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Troubleshooting on Nerdsid.com</title><link>https://nerdsid.com/tags/troubleshooting/</link><description>Recent content in Troubleshooting on Nerdsid.com</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 08 Apr 2026 05:17:46 +0000</lastBuildDate><atom:link href="https://nerdsid.com/tags/troubleshooting/index.xml" rel="self" type="application/rss+xml"/><item><title>Kill Any Process Using a Port in Powershell</title><link>https://nerdsid.com/posts/kill-any-process-using-a-port-in-powershell/</link><pubDate>Wed, 08 Apr 2026 05:17:46 +0000</pubDate><guid>https://nerdsid.com/posts/kill-any-process-using-a-port-in-powershell/</guid><description>&lt;p>Recently I wanted to start a server in port 8899 &amp;amp; I got an error telling that some other process is using it.&lt;/p>
&lt;p>Here is a one-liner you can use to kill an existing process bound to a port.&lt;/p>






&lt;div class="codeblock">
 &lt;div class="codeblock__header">
 &lt;div class="codeblock__filename codeblock__filename--lang">
 
 POWERSHELL
 
 &lt;/div>
 &lt;div class="codeblock__actions">
 
 &lt;/div>
 &lt;/div>
 &lt;div class="codeblock__body">
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="nb">Stop-Process&lt;/span> &lt;span class="n">-Id&lt;/span> &lt;span class="p">(&lt;/span>&lt;span class="nb">Get-NetTCPConnection&lt;/span> &lt;span class="n">-LocalPort&lt;/span> &lt;span class="mf">8899&lt;/span>&lt;span class="p">).&lt;/span>&lt;span class="py">OwningProcess&lt;/span> &lt;span class="n">-Force&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
&lt;/div></description></item><item><title>How to Fix the Apostrophe (') Key Not Working in VirtualBox Ubuntu</title><link>https://nerdsid.com/posts/virtualbox-apostrophe-key-not-working/</link><pubDate>Tue, 07 Apr 2026 07:32:28 +0530</pubDate><guid>https://nerdsid.com/posts/virtualbox-apostrophe-key-not-working/</guid><description>&lt;p>If you’re running Ubuntu inside Oracle VM VirtualBox and notice that pressing the apostrophe (&amp;rsquo;) or tildae (`) key doesn’t show anything until you hit space, you’re not alone.&lt;/p>
&lt;p>This issue is caused by “dead keys” in keyboard layouts, where keys are designed to combine with others to create accented characters.&lt;/p>
&lt;p>In this guide, I’ll show you two simple fixes to make your apostrophe key work.&lt;/p>
&lt;h2 id="root-cause">Root cause&lt;/h2>
&lt;p>What you’re seeing is a keyboard layout / “dead key” behavior, not a VirtualBox bug.&lt;/p></description></item><item><title>Docker failed to resolve</title><link>https://nerdsid.com/posts/docker-failed-to-resolve-metadata/</link><pubDate>Tue, 31 Mar 2026 05:27:57 +0000</pubDate><guid>https://nerdsid.com/posts/docker-failed-to-resolve-metadata/</guid><description>&lt;p>I recently enountered this error.&lt;/p></description></item><item><title>Grep Failing on Hyphen Patterns? Try This Fix</title><link>https://nerdsid.com/posts/grep-failing-on-hyphen-patterns-try-this-fix/</link><pubDate>Fri, 05 Dec 2025 18:48:38 +0530</pubDate><guid>https://nerdsid.com/posts/grep-failing-on-hyphen-patterns-try-this-fix/</guid><description>&lt;p>Today I was searching for &lt;code>--debug&lt;/code> in a log file.&lt;/p>
&lt;p>So, I ran &lt;code>grep &amp;quot;--debug&amp;quot; file.log&lt;/code>.&lt;/p>
&lt;p>To my utter surprise, instead of seeing a match, I got this error:&lt;/p>

&lt;figure class="terminal no-copy">
 &lt;header class="terminal-header">
 &lt;div class="terminal-controls">
 &lt;span class="dot dot--red">&lt;/span>
 &lt;span class="dot dot--yellow">&lt;/span>
 &lt;span class="dot dot--green">&lt;/span>
 &lt;/div>
 
 &lt;figcaption class="terminal-title">grep output&lt;/figcaption>
 
 &lt;/header>
 &lt;pre>&lt;code>
grep: unrecognized option '--debug'
Usage: grep [OPTION]... PATTERNS [FILE]...&lt;/code>&lt;/pre>
&lt;/figure>

&lt;p>I didn&amp;rsquo;t expect to see any error because I had quoted the pattern (&lt;code>&amp;quot;--debug&amp;quot;&lt;/code>).&lt;/p>
&lt;p>After few minutes of searching, I found the fix:&lt;/p>






&lt;div class="codeblock">
 &lt;div class="codeblock__header">
 &lt;div class="codeblock__filename codeblock__filename--lang">
 
 &lt;/div>
 &lt;div class="codeblock__actions">
 
 &lt;/div>
 &lt;/div>
 &lt;div class="codeblock__body">
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-text" data-lang="text">&lt;span class="line">&lt;span class="cl">grep -- --debug file.log&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
&lt;/div>&lt;p>This is where the humble double hyphen &lt;code>--&lt;/code> steps in.&lt;/p></description></item><item><title>Systems Aren’t Predictable - 3 Lessons From a DR activity</title><link>https://nerdsid.com/posts/systems-arent-predictable-3-lessons-from-a-dr-drill/</link><pubDate>Fri, 14 Nov 2025 23:43:47 +0530</pubDate><guid>https://nerdsid.com/posts/systems-arent-predictable-3-lessons-from-a-dr-drill/</guid><description>&lt;p>&lt;strong>Lessons from a DR activity that didn’t go as planned&lt;/strong>&lt;/p>
&lt;h2 id="what-is-a-disaster-recovery-dr-activity">What is a Disaster Recovery (DR) activity?&lt;/h2>
&lt;p>A DR activity is a planned exercise, where you intentionally flip your workloads to a secondary setup. It may be a new region, a new cluster, or a new infrastructure environment.&lt;/p>
&lt;p>The goal is to ensure that everything works the way it should when your primary environment is unavailable.&lt;/p>
&lt;h2 id="lessons-from-dr-activity">Lessons from DR activity&lt;/h2>
&lt;p>This week, we ran a DR activity. Everything looked perfect on paper.&lt;/p></description></item><item><title>4 Ways to Watch Logs Live in Linux</title><link>https://nerdsid.com/posts/watch-logs-live-in-linux/</link><pubDate>Wed, 15 Oct 2025 12:49:55 +0530</pubDate><guid>https://nerdsid.com/posts/watch-logs-live-in-linux/</guid><description>&lt;h2 id="1-tail--f">1. &lt;code>tail -f&lt;/code>&lt;/h2>
&lt;p>&lt;strong>Use when:&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>You want to quickly stream a log file.&lt;/li>
&lt;li>You want to perform short, one-off checks on a single log file.&lt;/li>
&lt;/ul>
&lt;!-- - Great for one-off checks, ad-hoc debugging (like checking `nginx/access.log` or `app.log`). -->
&lt;p>&lt;strong>Availibility&lt;/strong>: available on all Linux/Unix systems.&lt;/p>
&lt;p>&lt;strong>Example:&lt;/strong>&lt;/p>






&lt;div class="codeblock">
 &lt;div class="codeblock__header">
 &lt;div class="codeblock__filename codeblock__filename--lang">
 
 BASH
 
 &lt;/div>
 &lt;div class="codeblock__actions">
 
 &lt;/div>
 &lt;/div>
 &lt;div class="codeblock__body">
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">tail -f /var/log/syslog&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
&lt;/div>&lt;h2 id="2-tail--f">2. &lt;code>tail -F&lt;/code>&lt;/h2>
&lt;p>Some services (like Nginx, Apache) &lt;strong>rotate logs&lt;/strong> i.e. they stop writing logs to an old file and instead write to a new file (named sequentially).
&lt;code>tail -f&lt;/code> stops following when that happens, but &lt;code>tail -F&lt;/code> automatically switches to the new file. In other words, it handles log rotation gracefully.&lt;/p></description></item><item><title>How to Fix Common Git Mistakes</title><link>https://nerdsid.com/posts/avoiding-disaster-how-to-fix-common-git-mistakes-like-a-pro/</link><pubDate>Wed, 03 May 2023 05:27:57 +0000</pubDate><guid>https://nerdsid.com/posts/avoiding-disaster-how-to-fix-common-git-mistakes-like-a-pro/</guid><description>&lt;p>Git is a version control system that allows developers to manage and track changes to their codebase over time. It is easy to make mistakes, while working with Git. This can result in confusion, lost effort, and even data loss. In this post, we&amp;rsquo;ll go over some common Git problems and their solutions. Whether you&amp;rsquo;re new to Git or want to enhance your Git skills, these tips will help you become a more efficient and productive developer.&lt;/p></description></item><item><title>How to Fix SSH Error: Could not open a connection to your authentication agent</title><link>https://nerdsid.com/posts/fix-ssh-could-not-open-connection-to-auth-agent/</link><pubDate>Sat, 07 Jan 2023 07:32:28 +0530</pubDate><guid>https://nerdsid.com/posts/fix-ssh-could-not-open-connection-to-auth-agent/</guid><description>&lt;h2 id="the-problem">The problem&lt;/h2>
&lt;p>Recently, I was trying to add a SSH key to the &lt;code>ssh-agent&lt;/code>. So, I ran the following command:&lt;/p>






&lt;div class="codeblock">
 &lt;div class="codeblock__header">
 &lt;div class="codeblock__filename codeblock__filename--lang">
 
 BASH
 
 &lt;/div>
 &lt;div class="codeblock__actions">
 
 &lt;/div>
 &lt;/div>
 &lt;div class="codeblock__body">
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">ssh-add ~/.ssh/&amp;lt;key_name&amp;gt;&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
&lt;/div>&lt;p>This resulted in the following error:&lt;/p>






&lt;div class="codeblock">
 &lt;div class="codeblock__header">
 &lt;div class="codeblock__filename codeblock__filename--lang">
 
 BASH
 
 &lt;/div>
 &lt;div class="codeblock__actions">
 
 &lt;/div>
 &lt;/div>
 &lt;div class="codeblock__body">
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">Could not open a connection to your authentication agent.&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
&lt;/div>&lt;h2 id="the-solution">The solution&lt;/h2>
&lt;p>The error message is pretty clear. Since a connection to the &lt;code>ssh-agent&lt;/code> could not be opened, first let&amp;rsquo;s check if the &lt;code>ssh-agent&lt;/code> is running or not.&lt;/p>






&lt;div class="codeblock">
 &lt;div class="codeblock__header">
 &lt;div class="codeblock__filename codeblock__filename--lang">
 
 BASH
 
 &lt;/div>
 &lt;div class="codeblock__actions">
 
 &lt;/div>
 &lt;/div>
 &lt;div class="codeblock__body">
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">ps -e &lt;span class="p">|&lt;/span> grep &lt;span class="o">[&lt;/span>s&lt;span class="o">]&lt;/span>sh-agent&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
&lt;/div>&lt;p>If the &lt;code>ssh-agent&lt;/code> is not running, you will not see any output. This is exactly what happened in my case. So, the solution is simple: you need to start the &lt;code>ssh-agent&lt;/code>.&lt;/p></description></item></channel></rss>