Issue with screen sessions

I’m using the Python App function to run twarc to collect tweets.

I’m new to using screen, so i’m not sure if I’m doing something wrong or if there’s something else happening. I opened up a few screen sessions with scripts running and they worked even after I detached (I was monitoring the filesize). I tried to return to them and I got this:

Brandons-MacBook-Pro-4:~ brandonlocke$ ssh brandon3@brandontlocke.com
Enter passphrase for key '/Users/brandonlocke/.ssh/id_rsa':
brandon3@huskerdu [~]# screen -D -r
Remove dead screens with 'screen -wipe'.

Suddenly the Dungeon collapses!! - You die...
brandon3@huskerdu [~]# screen -ls
There are screens on:
	406457.pts-0.huskerdu	(Detached)
	381770.pts-0.huskerdu	(Dead ???)
Remove dead screens with 'screen -wipe'.
2 Sockets in /var/run/screen/S-brandon3.

brandon3@huskerdu [~]# screen -r 406457.pts-0.huskerdu

Suddenly the Dungeon collapses!! - You die...
brandon3@huskerdu [~]# -r 381770.pts-0.huskerdu
-bash: -r: command not found
brandon3@huskerdu [~]# screen -r 381770.pts-0.huskerdu
There is a screen on:
	381770.pts-0.huskerdu	(Dead ???)
Remove dead screens with 'screen -wipe'.
There is no screen to be resumed matching 381770.pts-0.huskerdu.
brandon3@huskerdu [~]# screen -wipe
There are screens on:
	406457.pts-0.huskerdu	(Detached)
	381770.pts-0.huskerdu	(Removed)
1 socket wiped out.
1 Socket in /var/run/screen/S-brandon3.

brandon3@huskerdu [~]# screen -ls
There is a screen on:
	406457.pts-0.huskerdu	(Detached)
1 Socket in /var/run/screen/S-brandon3.

brandon3@huskerdu [~]# screen -r 406457.pts-0.huskerdu
There is a screen on:
	406457.pts-0.huskerdu	(Dead ???)
Remove dead screens with 'screen -wipe'.
There is no screen to be resumed matching 406457.pts-0.huskerdu.
brandon3@huskerdu [~]# screen -ls
There is a screen on:
	406457.pts-0.huskerdu	(Dead ???)
Remove dead screens with 'screen -wipe'.
1 Socket in /var/run/screen/S-brandon3.

brandon3@huskerdu [~]# screen -r
There is a screen on:
	406457.pts-0.huskerdu	(Dead ???)
Remove dead screens with 'screen -wipe'.
There is no screen to be resumed.
brandon3@huskerdu [~]# screen -wipe
There is a screen on:
	406457.pts-0.huskerdu	(Removed)
1 socket wiped out.
No Sockets found in /var/run/screen/S-brandon3.

So I tried to return to the screen, but kept getting the “Suddenly the Dungeon collapses!” message, and I apparently just killed the sessions by trying to reconnect.

Am I doing something wrong?

Hi Brandon,

I’m not familiar with that specific error but it appears to be a part of the screen application and not specific to our server/software. Reading this thread implies it means the screen session was already closed out or crashed.

In general screen sessions on Reclaim Hosting are unsupported. We can’t ensure that processes continue running after you close out your SSH session and we run scripts to make sure processes don’t run for long periods of time. I did do a test on your account and was able to open a screen session, leave it (CTRL-D), list the sessions open (just that one), and reconnect during the same session. If you’re regularly running into the Dungeon error I would maybe approach what you’re trying to do in a different way, perhaps with a cron job or something that regularly runs something on the server versus running sessions in screen.