Discussion:
[Bug 1367214] Re: Newly installed openssh-server and upstart: status: Unknown job: ssh
Ivan Voras
2014-09-09 10:23:56 UTC
Permalink
As an update, the ssh.conf file exists in /etc/init :

# ls /etc/init/*ssh*
/etc/init/ssh.conf

and it looks correct (I haven't modified any files in /etc/init).
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1367214

Title:
Newly installed openssh-server and upstart: status: Unknown job: ssh

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1367214/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Ivan Voras
2014-09-09 11:13:47 UTC
Permalink
There is more information at
https://answers.launchpad.net/ubuntu/+source/openssh/+question/254248 .
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1367214

Title:
Newly installed openssh-server and upstart: status: Unknown job: ssh

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1367214/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Seth Arnold
2014-09-09 19:16:50 UTC
Permalink
I believe this is an upstart issue, the tools appear to be selecting
user tasks rather than system tasks. Try adding --system to your various
commands:

***@hunt:~$ initctl --system status ssh
ssh start/running, process 1352
***@hunt:~$ initctl status ssh
initctl: Unknown job: ssh


** Package changed: openssh (Ubuntu) => upstart (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1367214

Title:
Newly installed openssh-server and upstart: status: Unknown job: ssh

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1367214/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Ivan Voras
2014-09-09 19:44:13 UTC
Permalink
Thanks, adding --system apparently helps.

The verbosity is awful / nonexistent, I can only guess the command did
anything by seeing the PID changing:

# initctl --system restart ssh
ssh start/running, process 22389
# initctl --system restart ssh
ssh start/running, process 22394

Adding "-v" (the "verbose" switch) apparently doesn't do anything in any
of the common initctl commands I've tried (list, start, stop, restart).
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1367214

Title:
Newly installed openssh-server and upstart: status: Unknown job: ssh

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1367214/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Launchpad Bug Tracker
2014-09-23 19:01:48 UTC
Permalink
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: upstart (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1367214

Title:
Newly installed openssh-server and upstart: status: Unknown job: ssh

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1367214/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Psykotik
2014-09-23 19:15:26 UTC
Permalink
This issue also affects mysql package.

$ sudo service mysql restart
stop: unknown job: mysql
start: unknown job: mysql


In other words, both mysql and ssh cannot be restarted.

I have recently upgraded from 12.04 to 14.04, then this bug started
affecting mysql and ssh.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1367214

Title:
Newly installed openssh-server and upstart: status: Unknown job: ssh

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1367214/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Jens Elkner
2014-12-27 02:06:00 UTC
Permalink
Probably because this piece of junk (upstart) just silently discards any
*.conf file with errors/unknown directives in it instead of
reporting/logging the problem.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1367214

Title:
Newly installed openssh-server and upstart: status: Unknown job: ssh

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1367214/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
OkropNick
2015-05-27 14:05:57 UTC
Permalink
I have exactly the same problem after fresh installation of Ubuntu 14.04
(64bit).
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1367214

Title:
Newly installed openssh-server and upstart: status: Unknown job: ssh

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1367214/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Shawn Poquette
2015-09-12 17:21:19 UTC
Permalink
Also confirmed after upgrade from functional 12.04 system to 14.04 (both
64 bit). --System flag makes it work
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1367214

Title:
Newly installed openssh-server and upstart: status: Unknown job: ssh

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1367214/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Sebastian Wagner
2016-02-17 10:40:23 UTC
Permalink
I also have this problem on a client's machine. This leads to failing
chef-scripts, that's very annoying.

Does anyone have a solution or workaround, except the --system flag?
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1367214

Title:
Newly installed openssh-server and upstart: status: Unknown job: ssh

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1367214/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Sebastian Wagner
2016-02-17 20:00:26 UTC
Permalink
Here are some external descriptions of this problem:

https://askubuntu.com/questions/403279/sshd-wont-stop-start-properly
https://askubuntu.com/questions/406265/ssh-server-does-not-start-on-lubuntu-live-image
https://superuser.com/questions/931329/unable-to-setup-openssh-server-on-ubuntu
https://serverfault.com/questions/333943/cant-start-ssh-after-upgrade-ubuntu
http://aplawrence.com/Linux/ubuntu_start_bug.html
http://ubuntuforums.org/showthread.php?t=2260006
http://xbian.org/forum/thread-2473-post-24475.html
https://stackoverflow.com/questions/30568905/ubuntu-when-upstart-service-is-run-with-user-root-it-returns-unknown-job
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1367214

Title:
Newly installed openssh-server and upstart: status: Unknown job: ssh

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1367214/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Anthony Jewell
2016-08-24 06:21:13 UTC
Permalink
Still an issue with a fresh install of Ubuntu 14.04:
$ su
# apt-get install openssh-server
....
initctl: Unknown job: ssh
....
# initctl status ssh
initctl: Unknown job: ssh
# initctl --system status ssh
ssh stop/waiting

But run the su as a login shell:
$ su -
# apt-get install openssh-server
.... (No "Unknown job: ssh) ...
# initctl status ssh
ssh start/running, process 18012
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1367214

Title:
Newly installed openssh-server and upstart: status: Unknown job: ssh

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1367214/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Loading...