title: How to fix 1 Socket in /run/screen/S-Ubuntu, not able to attach to any screen
body: <p>When I type screen -ls it shows following:</p>
  
  <p>There is a screen on:</p>
  
  <pre><code>    28388.pts-0.ip-XXX-XX-XX-X      (03/07/19 18:45:54)     (Detached)
  </code></pre>
  
  <p>1 Socket in /run/screen/S-ubuntu.</p>
  
  <p>I tried doing screen -r 28388, the screen shows attached but I come back to </p>
  
  <p>the prompt and cannot run my program.</p>
  
  <p>I see this </p>
  
  <p>screen -r 28388
  There is a screen on:</p>
  
  <pre><code>    28388.pts-0.ip-XXX-XX-XX-X      (03/07/19 18:45:54)     (Attached)
  </code></pre>
  
  <p>There is no screen to be resumed matching 28388.</p>
  
  <p>ubuntu@ip-XXX-XX-XX-X:~/foldername$ screen -d 28388</p>
  
  <p>[28388.pts-0.ip-XXX-XX-XX-X detached.]</p>
  
  <p>ubuntu@ip-XXX-XX-XX-X:~/foldername$ screen -ls</p>
  
  <p>There is a screen on:</p>
  
  <pre><code>    28388.pts-0.ip-XXX-XX-XX-X      (03/07/19 18:45:54)     (Attached)
  </code></pre>
  
  <p>1 Socket in /run/screen/S-ubuntu.</p>
  
  <p>ubuntu@ip-XXX-XX-XX-X:~/foldername$</p>
  
  <p>I want to attach to this screen and run my program. Any suggestion is much appreciated.</p>