Page 1 of 1

screen connect: No such file or directory

Posted: Mon Oct 31, 2016 1:05 pm
by mister_v
Hello,

I get the following error:

Code: Select all

# screen
/tmp/screen/S-root/2##7.pts-0.host: connect: No such file or directory

Anyone known how to solve this.
I can't create a new screen session.

Re: screen connect: No such file or directory

Posted: Mon Oct 31, 2016 1:44 pm
by chris
Check to see if you have the environment variable STY set:

Code: Select all

[] echo $STY
251.pts-0
If the variable is set, then you are telling screen to reattach to an existing session. If that session doesn't exist, then you will see the error you are getting.

To solve this, just clear the environment variable by running:

Code: Select all

export STY=
and try starting screen again.