Stopped (ctrl z) process will not restart, and no longer in job list

Clash Royale CLAN TAG#URR8PPP
up vote
6
down vote
favorite
I was running apt upgrade, when I needed the terminal, so did a ctrlz. When I tried to restart it (fg), it would not restart, because it was no-longer in the jobs list (jobs). (I Did not, run disown). I then did a ps to get process id. It showed the process to be stopped (as expected), so I then did sudo kill -s SIGCONT pid, to re-start it, but nothing happened. ps showed that process was still stopped. There was no error message.
What I did.
sudo apt upgrade
ëwait a bitû
ëctrl-zû
ësome other commandû #can't remember, but nothing special.
fg #This command failed, no such job
jobs #No output
What I tried to fix it.
- send sigcont to
apt send sigcont to
sudoWhat happened for the shell to disown the process?
- (more importantly) How do I re-start it?
Output from ps -l -p $(pgrep apt)
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
4 T 0 22884 22883 0 80 0 - 21617 - pts/1 00:00:01 apt
Output from pstree -s -p $(pgrep apt)
systemd(1)âÂÂâÂÂâÂÂkdeinit5(1038)âÂÂâÂÂâÂÂksmserver(1062)âÂÂâÂÂâÂÂyakuake(1153)âÂÂâÂÂâÂÂbash(1225)âÂÂâÂÂâÂÂsudo(22883)âÂÂâÂÂâÂÂapt(22884)
Output from pgrep bash | xargs -n1 ps -l -p
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
0 S 1000 1225 1153 0 80 0 - 8770 core_s pts/1 00:00:00 bash
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
0 S 1000 3852 3849 0 80 0 - 8404 - pts/7 00:00:00 bash
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
0 S 1000 4449 4445 0 80 0 - 8392 core_s pts/3 00:00:01 bash
â®
Ideas: has it lost contact with stdout/stdin?, does it need it?
System Debian, bash
#â³ bash --version
GNU bash, version 4.3.30(1)-release (x86_64-pc-linux-gnu)
#â³ uname -a
Linux delorenzi 3.16.0-5-amd64 #1 SMP Debian 3.16.51-3+deb8u1 (2018-01-08) x86_64 GNU/Linux
#â³ sudo --version
Sudo version 1.8.10p3
Sudoers policy plugin version 1.8.10p3
Sudoers file grammar version 43
Sudoers I/O plugin version 1.8.10p3
job-control
 |Â
show 13 more comments
up vote
6
down vote
favorite
I was running apt upgrade, when I needed the terminal, so did a ctrlz. When I tried to restart it (fg), it would not restart, because it was no-longer in the jobs list (jobs). (I Did not, run disown). I then did a ps to get process id. It showed the process to be stopped (as expected), so I then did sudo kill -s SIGCONT pid, to re-start it, but nothing happened. ps showed that process was still stopped. There was no error message.
What I did.
sudo apt upgrade
ëwait a bitû
ëctrl-zû
ësome other commandû #can't remember, but nothing special.
fg #This command failed, no such job
jobs #No output
What I tried to fix it.
- send sigcont to
apt send sigcont to
sudoWhat happened for the shell to disown the process?
- (more importantly) How do I re-start it?
Output from ps -l -p $(pgrep apt)
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
4 T 0 22884 22883 0 80 0 - 21617 - pts/1 00:00:01 apt
Output from pstree -s -p $(pgrep apt)
systemd(1)âÂÂâÂÂâÂÂkdeinit5(1038)âÂÂâÂÂâÂÂksmserver(1062)âÂÂâÂÂâÂÂyakuake(1153)âÂÂâÂÂâÂÂbash(1225)âÂÂâÂÂâÂÂsudo(22883)âÂÂâÂÂâÂÂapt(22884)
Output from pgrep bash | xargs -n1 ps -l -p
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
0 S 1000 1225 1153 0 80 0 - 8770 core_s pts/1 00:00:00 bash
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
0 S 1000 3852 3849 0 80 0 - 8404 - pts/7 00:00:00 bash
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
0 S 1000 4449 4445 0 80 0 - 8392 core_s pts/3 00:00:01 bash
â®
Ideas: has it lost contact with stdout/stdin?, does it need it?
System Debian, bash
#â³ bash --version
GNU bash, version 4.3.30(1)-release (x86_64-pc-linux-gnu)
#â³ uname -a
Linux delorenzi 3.16.0-5-amd64 #1 SMP Debian 3.16.51-3+deb8u1 (2018-01-08) x86_64 GNU/Linux
#â³ sudo --version
Sudo version 1.8.10p3
Sudoers policy plugin version 1.8.10p3
Sudoers file grammar version 43
Sudoers I/O plugin version 1.8.10p3
job-control
What happens when you use thefgcommand in that shell session?
â Kusalananda
Apr 3 at 13:47
@Kusalananda nothing, it did not find any stopped jobs.
â ctrl-alt-delor
Apr 3 at 13:50
Can you show us the output ofps -l -p $(pgrep apt-get)?
â Mark Plotnick
Apr 3 at 15:39
1
Important information missing from the question: The process tree, demonstrating which shell is the parent of theapt-getprocess and which shell is the one runningfg.
â JdeBP
Apr 3 at 17:40
@MarkPlotnick done: adding output tops -l -p $(pgrep apt)to question.
â ctrl-alt-delor
Apr 4 at 12:20
 |Â
show 13 more comments
up vote
6
down vote
favorite
up vote
6
down vote
favorite
I was running apt upgrade, when I needed the terminal, so did a ctrlz. When I tried to restart it (fg), it would not restart, because it was no-longer in the jobs list (jobs). (I Did not, run disown). I then did a ps to get process id. It showed the process to be stopped (as expected), so I then did sudo kill -s SIGCONT pid, to re-start it, but nothing happened. ps showed that process was still stopped. There was no error message.
What I did.
sudo apt upgrade
ëwait a bitû
ëctrl-zû
ësome other commandû #can't remember, but nothing special.
fg #This command failed, no such job
jobs #No output
What I tried to fix it.
- send sigcont to
apt send sigcont to
sudoWhat happened for the shell to disown the process?
- (more importantly) How do I re-start it?
Output from ps -l -p $(pgrep apt)
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
4 T 0 22884 22883 0 80 0 - 21617 - pts/1 00:00:01 apt
Output from pstree -s -p $(pgrep apt)
systemd(1)âÂÂâÂÂâÂÂkdeinit5(1038)âÂÂâÂÂâÂÂksmserver(1062)âÂÂâÂÂâÂÂyakuake(1153)âÂÂâÂÂâÂÂbash(1225)âÂÂâÂÂâÂÂsudo(22883)âÂÂâÂÂâÂÂapt(22884)
Output from pgrep bash | xargs -n1 ps -l -p
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
0 S 1000 1225 1153 0 80 0 - 8770 core_s pts/1 00:00:00 bash
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
0 S 1000 3852 3849 0 80 0 - 8404 - pts/7 00:00:00 bash
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
0 S 1000 4449 4445 0 80 0 - 8392 core_s pts/3 00:00:01 bash
â®
Ideas: has it lost contact with stdout/stdin?, does it need it?
System Debian, bash
#â³ bash --version
GNU bash, version 4.3.30(1)-release (x86_64-pc-linux-gnu)
#â³ uname -a
Linux delorenzi 3.16.0-5-amd64 #1 SMP Debian 3.16.51-3+deb8u1 (2018-01-08) x86_64 GNU/Linux
#â³ sudo --version
Sudo version 1.8.10p3
Sudoers policy plugin version 1.8.10p3
Sudoers file grammar version 43
Sudoers I/O plugin version 1.8.10p3
job-control
I was running apt upgrade, when I needed the terminal, so did a ctrlz. When I tried to restart it (fg), it would not restart, because it was no-longer in the jobs list (jobs). (I Did not, run disown). I then did a ps to get process id. It showed the process to be stopped (as expected), so I then did sudo kill -s SIGCONT pid, to re-start it, but nothing happened. ps showed that process was still stopped. There was no error message.
What I did.
sudo apt upgrade
ëwait a bitû
ëctrl-zû
ësome other commandû #can't remember, but nothing special.
fg #This command failed, no such job
jobs #No output
What I tried to fix it.
- send sigcont to
apt send sigcont to
sudoWhat happened for the shell to disown the process?
- (more importantly) How do I re-start it?
Output from ps -l -p $(pgrep apt)
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
4 T 0 22884 22883 0 80 0 - 21617 - pts/1 00:00:01 apt
Output from pstree -s -p $(pgrep apt)
systemd(1)âÂÂâÂÂâÂÂkdeinit5(1038)âÂÂâÂÂâÂÂksmserver(1062)âÂÂâÂÂâÂÂyakuake(1153)âÂÂâÂÂâÂÂbash(1225)âÂÂâÂÂâÂÂsudo(22883)âÂÂâÂÂâÂÂapt(22884)
Output from pgrep bash | xargs -n1 ps -l -p
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
0 S 1000 1225 1153 0 80 0 - 8770 core_s pts/1 00:00:00 bash
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
0 S 1000 3852 3849 0 80 0 - 8404 - pts/7 00:00:00 bash
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
0 S 1000 4449 4445 0 80 0 - 8392 core_s pts/3 00:00:01 bash
â®
Ideas: has it lost contact with stdout/stdin?, does it need it?
System Debian, bash
#â³ bash --version
GNU bash, version 4.3.30(1)-release (x86_64-pc-linux-gnu)
#â³ uname -a
Linux delorenzi 3.16.0-5-amd64 #1 SMP Debian 3.16.51-3+deb8u1 (2018-01-08) x86_64 GNU/Linux
#â³ sudo --version
Sudo version 1.8.10p3
Sudoers policy plugin version 1.8.10p3
Sudoers file grammar version 43
Sudoers I/O plugin version 1.8.10p3
job-control
edited Apr 11 at 8:16
asked Apr 3 at 13:45
ctrl-alt-delor
8,76031947
8,76031947
What happens when you use thefgcommand in that shell session?
â Kusalananda
Apr 3 at 13:47
@Kusalananda nothing, it did not find any stopped jobs.
â ctrl-alt-delor
Apr 3 at 13:50
Can you show us the output ofps -l -p $(pgrep apt-get)?
â Mark Plotnick
Apr 3 at 15:39
1
Important information missing from the question: The process tree, demonstrating which shell is the parent of theapt-getprocess and which shell is the one runningfg.
â JdeBP
Apr 3 at 17:40
@MarkPlotnick done: adding output tops -l -p $(pgrep apt)to question.
â ctrl-alt-delor
Apr 4 at 12:20
 |Â
show 13 more comments
What happens when you use thefgcommand in that shell session?
â Kusalananda
Apr 3 at 13:47
@Kusalananda nothing, it did not find any stopped jobs.
â ctrl-alt-delor
Apr 3 at 13:50
Can you show us the output ofps -l -p $(pgrep apt-get)?
â Mark Plotnick
Apr 3 at 15:39
1
Important information missing from the question: The process tree, demonstrating which shell is the parent of theapt-getprocess and which shell is the one runningfg.
â JdeBP
Apr 3 at 17:40
@MarkPlotnick done: adding output tops -l -p $(pgrep apt)to question.
â ctrl-alt-delor
Apr 4 at 12:20
What happens when you use the
fg command in that shell session?â Kusalananda
Apr 3 at 13:47
What happens when you use the
fg command in that shell session?â Kusalananda
Apr 3 at 13:47
@Kusalananda nothing, it did not find any stopped jobs.
â ctrl-alt-delor
Apr 3 at 13:50
@Kusalananda nothing, it did not find any stopped jobs.
â ctrl-alt-delor
Apr 3 at 13:50
Can you show us the output of
ps -l -p $(pgrep apt-get) ?â Mark Plotnick
Apr 3 at 15:39
Can you show us the output of
ps -l -p $(pgrep apt-get) ?â Mark Plotnick
Apr 3 at 15:39
1
1
Important information missing from the question: The process tree, demonstrating which shell is the parent of the
apt-get process and which shell is the one running fg.â JdeBP
Apr 3 at 17:40
Important information missing from the question: The process tree, demonstrating which shell is the parent of the
apt-get process and which shell is the one running fg.â JdeBP
Apr 3 at 17:40
@MarkPlotnick done: adding output to
ps -l -p $(pgrep apt) to question.â ctrl-alt-delor
Apr 4 at 12:20
@MarkPlotnick done: adding output to
ps -l -p $(pgrep apt) to question.â ctrl-alt-delor
Apr 4 at 12:20
 |Â
show 13 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f435282%2fstopped-ctrl-z-process-will-not-restart-and-no-longer-in-job-list%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
What happens when you use the
fgcommand in that shell session?â Kusalananda
Apr 3 at 13:47
@Kusalananda nothing, it did not find any stopped jobs.
â ctrl-alt-delor
Apr 3 at 13:50
Can you show us the output of
ps -l -p $(pgrep apt-get)?â Mark Plotnick
Apr 3 at 15:39
1
Important information missing from the question: The process tree, demonstrating which shell is the parent of the
apt-getprocess and which shell is the one runningfg.â JdeBP
Apr 3 at 17:40
@MarkPlotnick done: adding output to
ps -l -p $(pgrep apt)to question.â ctrl-alt-delor
Apr 4 at 12:20