{"id":3680,"date":"2017-04-03T14:34:05","date_gmt":"2017-04-03T09:04:05","guid":{"rendered":"https:\/\/www.wikitechy.com\/technology\/?p=3680"},"modified":"2017-04-03T14:34:05","modified_gmt":"2017-04-03T09:04:05","slug":"unable-connect-upstart-failed-connect-socket","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/technology\/unable-connect-upstart-failed-connect-socket\/","title":{"rendered":"[ Solved -1 Answers] Unable to connect to Upstart: Failed to connect to socket \/com\/ubuntu\/upstart: Connection refused"},"content":{"rendered":"<p><label class=\"label label-warning\">PROBLEM:<\/label><\/p>\n<ul>\n<li>We got the following error when we attempted &#8220;vagrant up&#8221; on the standard ubuntu\/vivid64 with virtualbox: <b><i>initctl<\/i><\/b><b><i>: Unable to connect to Upstart: Failed to connect to socket \/com\/ubuntu\/upstart: Connection refused<\/i><\/b><\/li>\n<li>The full error stream is here: <b>https:\/\/pastee.org\/hnh8x and<\/b> <b>stdin: is not a <\/b><b>tty<\/b>.<\/li>\n<li>Find the relevant <b>Vagrantfile<\/b> here: https:\/\/pastee.org\/sfyb7, created with <b>vagrant <\/b><b>init<\/b><b> &#8211;force ubuntu\/vivid64 https:\/\/cloud-images.ubuntu.com\/vagrant\/vivid\/current\/vivid-server-cloudimg-amd64-vagrant-disk1.box.<\/b><\/li>\n<li>Can we fix this error with Saltstack provisio<\/li>\n<li>The closest bit of <b>Saltstack<\/b> documentation we found related to Upstart follows: http:\/\/docs.saltstack.com\/en\/latest\/ref\/modules\/all\/salt.modules.upstart.html<\/li>\n<li>The Ubuntu documentation on the subject, here, https:\/\/wiki.ubuntu.com\/SystemdForUpstartUsers, recommends the installation of the upstart-sysv package. Is that all that&#8217;s required to change back using Saltstack?<\/li>\n<li>The following does not seem to resolve the boot issues:<\/li>\n<li>The Ubuntu documentation on the subject, here, <b>https:\/\/wiki.ubuntu.com\/SystemdForUpstartUsers<\/b>, recommends the installation of the <b>upstart-<\/b><b>sysv<\/b> package. Is that all that&#8217;s required to change back using Saltstack?<\/li>\n<li>The following does not seem to resolve the boot issues:<\/li>\n<\/ul>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <span class=\"code-embed-name\">bash code<\/span> <\/div> <pre class=\"language-bash code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-bash code-embed-code\">upstart-sysv:<br\/>pkg.installed<\/code><\/pre> <\/div>\n[ad type=&#8221;banner&#8221;]\n<p><label class=\"label label-info\">SOLUTION 1:<\/label><\/p>\n<ul>\n<li>Vivid now uses <b>systemd<\/b> instead of upstart<\/li>\n<li>You can try: &#8220;sudo systemctl start &#8221; instead.<\/li>\n<li>We will post some of the contents of: https:\/\/wiki.ubuntu.com\/SystemdForUpstartUsers. we ran into this problem with Ceph and used the above method to get around it.<\/li>\n<\/ul>\n<h4 id=\"introduction\"><span style=\"color: #ff6600;\"><b>Introduction:<\/b><\/span><\/h4>\n<ul>\n<li>This document compares Upstart and systemd with a view to aiding in the transition to the latter.<\/li>\n<\/ul>\n<h4 id=\"support-status\"><span style=\"color: #99cc00;\"><b>Support status<\/b><\/span><\/h4>\n<p>First, it is important to note that systemd is only fully supported in Ubuntu 15.04 and later releases. While systemd is available in prior releases through the Ubuntu repositories, there is a deemphasis of support for these releases as noted here. Hence, it is advised to use the default upstart on prior releases.<\/p>\n<h4 id=\"system-init-daemon\"><span style=\"color: #993300;\"><b>System <\/b><b>Init<\/b><b> Daemon<\/b><\/span><\/h4>\n<p>This has changed as part of the Ubuntu 15.04 devel cycle.<\/p>\n<ul>\n<li>Ubuntu 15.04 (using Systemd by default):<\/li>\n<\/ul>\n<p>Systemd runs with PID 1 as \/sbin\/init.<\/p>\n<p>Upstart runs with PID 1 as \/sbin\/upstart.<\/p>\n<ul>\n<li>Prior versions (using Upstart by default):<\/li>\n<\/ul>\n<p>Upstart runs with PID 1 as \/sbin\/init.<\/p>\n<p>Systemd runs with PID 1 as \/lib\/systemd\/systemd.<\/p>\n<h4 id=\"switching-init-systems\"><span style=\"color: #ff6600;\"><b>Switching <\/b><b>init<\/b><b> systems<\/b><\/span><\/h4>\n<p>If you are running Ubuntu vivid (15.04), you can easily switch between upstart and systemd at will since both packages are installed at present. As of March 9 2015, vivid was changed to use systemd by default, before that upstart was the default.<\/p>\n[ad type=&#8221;banner&#8221;]\n<h4 id=\"switch-to-upstart-for-a-single-boot\"><span style=\"color: #993300;\"><b>Switch to upstart for a single boot:<\/b><\/span><\/h4>\n<ul>\n<li>In grub, select &#8220;Advanced options for Ubuntu&#8221;, where you will find an &#8220;Ubuntu, with Linux &#8230; (upstart)&#8221; entry. This will boot with init=\/sbin\/upstart.<\/li>\n<li>If you have upstart-sysv installed and thus boot with upstart by default, there will be an &#8220;Ubuntu, with Linux &#8230; (systemd)&#8221; entry, which will boot with init=\/lib\/systemd\/systemd.<\/li>\n<li>Permanent switch back to upstart<\/li>\n<li>Install the upstart-sysv package, which will remove ubuntu-standard and systemd-sysv (but should not remove anything else &#8212; if it does, yell!), and run sudo update-initramfs -u. After that, grub&#8217;s &#8220;Advanced options&#8221; menu will have a corresponding &#8220;Ubuntu, with Linux &#8230; (systemd)&#8221; entry where you can do an one-time boot with systemd.<\/li>\n<li>If you want to switch back to systemd, install the systemd-sysv and ubuntu-standard packages.<\/li>\n<li>Currently you can switch to upstart, notify the developers of the package in question of the need to support systemd.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Unable to connect to Upstart: Failed to connect to socket \/com\/ubuntu\/upstart: Connection refused-following error attempted &#8211; We got the following error when <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1699],"tags":[7062,7053,7054,7046,7048,7049,7039,7061,7037,7056,7041,7051,7057,7058,7045,7038,7055,7060,7047,7050,7052,7042,7059,7044,7036,7043,7040],"class_list":["post-3680","post","type-post","status-publish","format-standard","hentry","category-linux","tag-bsd-socket","tag-can-t-connect-to-local-mysql-server-through-socket","tag-can-t-connect-to-mysql-server","tag-ccc-connect","tag-connect2","tag-connection-error","tag-connection-refused","tag-connection-refused-error","tag-convert-upstart-to-system","tag-could-not-connect-to-server","tag-dpkg-error-processing-package-runit-configure","tag-err_connection_refused","tag-error-connection-refused","tag-ftp-connect-connection-refused","tag-insserv-warning-script-screen-cleanup-missing-lsb-tags-and-overrides","tag-mysql-failed-to-connect-to-socket-comubuntuupstart","tag-network-error-connection-refused","tag-refused-to-connect","tag-socket-connect","tag-socket-error","tag-socket-error-10060","tag-sudo-apt-get-install-upstart-sysv","tag-tigervnc-viewer","tag-ubuntu-16-04-failed-to-connect-to-socket-comubuntuupstart","tag-ubuntu-vagrant-upstart-salt-stack-sysv","tag-unable-to-connect-to-upstart-lightdm","tag-unable-to-locate-package-upstart-sysv"],"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/3680","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/comments?post=3680"}],"version-history":[{"count":0,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/3680\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/media?parent=3680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/categories?post=3680"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/tags?post=3680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}