Unknown runlevel on Ubuntu 14.04, services not starting on boot
I rent a VPS from a VPS company and run an Ubuntu 14.04 web server there. Recently it had to be suspended by my provider for a while. After the suspension period (1-2 days), the VPS boots, but cannot acquire any runlevels.
root@vps:/# runlevel
unknown
This, in turn, means no Upstart services are starting on boot, as the "useful stuff" requires runlevel [2345]
.
I can start individual services manually with initctl
, unless they have dependencies which the boot did not start automatically.
I cannot find anything useful/understandable from logs. Please do ask if you want specific log entries and I can try to find them.
The server is (was) running PHP7, Nginx, MySQL, Redis, Minecraft Server, Mumble Server. The server was operating fine (and survived multiple reboots) before the suspension period.
Here is my initctl list
after a fresh reboot: http://pastebin.com/fcfcnxBU. Please do ask for specific details as I'm not entirely sure where to look for them (e.g. log files, debug artifacts, files and directories, etc.).
EDIT: some progress via tinkering:
It seems the filesystem and/or network stack is not started correctly when booting. When I do the following:
$ ifup --all
$ initctl emit static-network-up
$ initctl emit filesystem
... Ctrl-C to exit loop
$ initctl emit local-filesystems
Then I get
$ runlevel
>N 2
And my server services (at least most of them) are running normally.
I'll check if there is a single command of these that makes the boot init sequence continue normally.
EDIT2:
ifup --all
brings up avenet0:0
which is tied to the VPS' public static IP.emit static-network-up
does nothing.
emit filesystem
+Ctrl-C
starts
- rsyslog
- ssh
- minecraft-server
- cron
- xinetd
- console
- tty2
- upstart-file-bridge
- mysql
and stops
- plymouth
- plymouth-upstart-bridge
emit local-filesystems
starts
- avahi-daemon
- systemd-logind
- mountall.sh
- dbus
- networking
and something called
network-interface-security (network-interface/lo) start/running
disappears.
ubuntu boot services upstart runlevel
add a comment |
I rent a VPS from a VPS company and run an Ubuntu 14.04 web server there. Recently it had to be suspended by my provider for a while. After the suspension period (1-2 days), the VPS boots, but cannot acquire any runlevels.
root@vps:/# runlevel
unknown
This, in turn, means no Upstart services are starting on boot, as the "useful stuff" requires runlevel [2345]
.
I can start individual services manually with initctl
, unless they have dependencies which the boot did not start automatically.
I cannot find anything useful/understandable from logs. Please do ask if you want specific log entries and I can try to find them.
The server is (was) running PHP7, Nginx, MySQL, Redis, Minecraft Server, Mumble Server. The server was operating fine (and survived multiple reboots) before the suspension period.
Here is my initctl list
after a fresh reboot: http://pastebin.com/fcfcnxBU. Please do ask for specific details as I'm not entirely sure where to look for them (e.g. log files, debug artifacts, files and directories, etc.).
EDIT: some progress via tinkering:
It seems the filesystem and/or network stack is not started correctly when booting. When I do the following:
$ ifup --all
$ initctl emit static-network-up
$ initctl emit filesystem
... Ctrl-C to exit loop
$ initctl emit local-filesystems
Then I get
$ runlevel
>N 2
And my server services (at least most of them) are running normally.
I'll check if there is a single command of these that makes the boot init sequence continue normally.
EDIT2:
ifup --all
brings up avenet0:0
which is tied to the VPS' public static IP.emit static-network-up
does nothing.
emit filesystem
+Ctrl-C
starts
- rsyslog
- ssh
- minecraft-server
- cron
- xinetd
- console
- tty2
- upstart-file-bridge
- mysql
and stops
- plymouth
- plymouth-upstart-bridge
emit local-filesystems
starts
- avahi-daemon
- systemd-logind
- mountall.sh
- dbus
- networking
and something called
network-interface-security (network-interface/lo) start/running
disappears.
ubuntu boot services upstart runlevel
What is the output ofwho -r
, before manually starting the srvices?
– eyoung100
Jul 18 '16 at 23:43
Did it work before?
– Braiam
Jul 19 '16 at 1:31
add a comment |
I rent a VPS from a VPS company and run an Ubuntu 14.04 web server there. Recently it had to be suspended by my provider for a while. After the suspension period (1-2 days), the VPS boots, but cannot acquire any runlevels.
root@vps:/# runlevel
unknown
This, in turn, means no Upstart services are starting on boot, as the "useful stuff" requires runlevel [2345]
.
I can start individual services manually with initctl
, unless they have dependencies which the boot did not start automatically.
I cannot find anything useful/understandable from logs. Please do ask if you want specific log entries and I can try to find them.
The server is (was) running PHP7, Nginx, MySQL, Redis, Minecraft Server, Mumble Server. The server was operating fine (and survived multiple reboots) before the suspension period.
Here is my initctl list
after a fresh reboot: http://pastebin.com/fcfcnxBU. Please do ask for specific details as I'm not entirely sure where to look for them (e.g. log files, debug artifacts, files and directories, etc.).
EDIT: some progress via tinkering:
It seems the filesystem and/or network stack is not started correctly when booting. When I do the following:
$ ifup --all
$ initctl emit static-network-up
$ initctl emit filesystem
... Ctrl-C to exit loop
$ initctl emit local-filesystems
Then I get
$ runlevel
>N 2
And my server services (at least most of them) are running normally.
I'll check if there is a single command of these that makes the boot init sequence continue normally.
EDIT2:
ifup --all
brings up avenet0:0
which is tied to the VPS' public static IP.emit static-network-up
does nothing.
emit filesystem
+Ctrl-C
starts
- rsyslog
- ssh
- minecraft-server
- cron
- xinetd
- console
- tty2
- upstart-file-bridge
- mysql
and stops
- plymouth
- plymouth-upstart-bridge
emit local-filesystems
starts
- avahi-daemon
- systemd-logind
- mountall.sh
- dbus
- networking
and something called
network-interface-security (network-interface/lo) start/running
disappears.
ubuntu boot services upstart runlevel
I rent a VPS from a VPS company and run an Ubuntu 14.04 web server there. Recently it had to be suspended by my provider for a while. After the suspension period (1-2 days), the VPS boots, but cannot acquire any runlevels.
root@vps:/# runlevel
unknown
This, in turn, means no Upstart services are starting on boot, as the "useful stuff" requires runlevel [2345]
.
I can start individual services manually with initctl
, unless they have dependencies which the boot did not start automatically.
I cannot find anything useful/understandable from logs. Please do ask if you want specific log entries and I can try to find them.
The server is (was) running PHP7, Nginx, MySQL, Redis, Minecraft Server, Mumble Server. The server was operating fine (and survived multiple reboots) before the suspension period.
Here is my initctl list
after a fresh reboot: http://pastebin.com/fcfcnxBU. Please do ask for specific details as I'm not entirely sure where to look for them (e.g. log files, debug artifacts, files and directories, etc.).
EDIT: some progress via tinkering:
It seems the filesystem and/or network stack is not started correctly when booting. When I do the following:
$ ifup --all
$ initctl emit static-network-up
$ initctl emit filesystem
... Ctrl-C to exit loop
$ initctl emit local-filesystems
Then I get
$ runlevel
>N 2
And my server services (at least most of them) are running normally.
I'll check if there is a single command of these that makes the boot init sequence continue normally.
EDIT2:
ifup --all
brings up avenet0:0
which is tied to the VPS' public static IP.emit static-network-up
does nothing.
emit filesystem
+Ctrl-C
starts
- rsyslog
- ssh
- minecraft-server
- cron
- xinetd
- console
- tty2
- upstart-file-bridge
- mysql
and stops
- plymouth
- plymouth-upstart-bridge
emit local-filesystems
starts
- avahi-daemon
- systemd-logind
- mountall.sh
- dbus
- networking
and something called
network-interface-security (network-interface/lo) start/running
disappears.
ubuntu boot services upstart runlevel
ubuntu boot services upstart runlevel
edited Jul 18 '16 at 22:41
ojrask
asked Jul 18 '16 at 21:45
ojraskojrask
1065
1065
What is the output ofwho -r
, before manually starting the srvices?
– eyoung100
Jul 18 '16 at 23:43
Did it work before?
– Braiam
Jul 19 '16 at 1:31
add a comment |
What is the output ofwho -r
, before manually starting the srvices?
– eyoung100
Jul 18 '16 at 23:43
Did it work before?
– Braiam
Jul 19 '16 at 1:31
What is the output of
who -r
, before manually starting the srvices?– eyoung100
Jul 18 '16 at 23:43
What is the output of
who -r
, before manually starting the srvices?– eyoung100
Jul 18 '16 at 23:43
Did it work before?
– Braiam
Jul 19 '16 at 1:31
Did it work before?
– Braiam
Jul 19 '16 at 1:31
add a comment |
1 Answer
1
active
oldest
votes
The init you are reading about was replaced by upstart starting with Edgy Eft 6.10; and, one of the programs provided by upstart is its own implementation of init. refer are this docs for 14.04.
To change the default runlevel, use your favorite text editor on /etc/init/rc-sysinit.conf.
sudo vim /etc/init/rc-sysinit.conf
Change this line to whichever runlevel you want...
env DEFAULT_RUNLEVEL=2
Then, at each boot, upstart will use that runlevel.
and Reboot the System.
Still if its not starting please check weather all the Application are updated and all dependencies are installed properly and try updating them in upstart again.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f296717%2funknown-runlevel-on-ubuntu-14-04-services-not-starting-on-boot%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The init you are reading about was replaced by upstart starting with Edgy Eft 6.10; and, one of the programs provided by upstart is its own implementation of init. refer are this docs for 14.04.
To change the default runlevel, use your favorite text editor on /etc/init/rc-sysinit.conf.
sudo vim /etc/init/rc-sysinit.conf
Change this line to whichever runlevel you want...
env DEFAULT_RUNLEVEL=2
Then, at each boot, upstart will use that runlevel.
and Reboot the System.
Still if its not starting please check weather all the Application are updated and all dependencies are installed properly and try updating them in upstart again.
add a comment |
The init you are reading about was replaced by upstart starting with Edgy Eft 6.10; and, one of the programs provided by upstart is its own implementation of init. refer are this docs for 14.04.
To change the default runlevel, use your favorite text editor on /etc/init/rc-sysinit.conf.
sudo vim /etc/init/rc-sysinit.conf
Change this line to whichever runlevel you want...
env DEFAULT_RUNLEVEL=2
Then, at each boot, upstart will use that runlevel.
and Reboot the System.
Still if its not starting please check weather all the Application are updated and all dependencies are installed properly and try updating them in upstart again.
add a comment |
The init you are reading about was replaced by upstart starting with Edgy Eft 6.10; and, one of the programs provided by upstart is its own implementation of init. refer are this docs for 14.04.
To change the default runlevel, use your favorite text editor on /etc/init/rc-sysinit.conf.
sudo vim /etc/init/rc-sysinit.conf
Change this line to whichever runlevel you want...
env DEFAULT_RUNLEVEL=2
Then, at each boot, upstart will use that runlevel.
and Reboot the System.
Still if its not starting please check weather all the Application are updated and all dependencies are installed properly and try updating them in upstart again.
The init you are reading about was replaced by upstart starting with Edgy Eft 6.10; and, one of the programs provided by upstart is its own implementation of init. refer are this docs for 14.04.
To change the default runlevel, use your favorite text editor on /etc/init/rc-sysinit.conf.
sudo vim /etc/init/rc-sysinit.conf
Change this line to whichever runlevel you want...
env DEFAULT_RUNLEVEL=2
Then, at each boot, upstart will use that runlevel.
and Reboot the System.
Still if its not starting please check weather all the Application are updated and all dependencies are installed properly and try updating them in upstart again.
answered Apr 9 '17 at 21:43
Vinood NK MaheshwariVinood NK Maheshwari
319110
319110
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f296717%2funknown-runlevel-on-ubuntu-14-04-services-not-starting-on-boot%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What is the output of
who -r
, before manually starting the srvices?– eyoung100
Jul 18 '16 at 23:43
Did it work before?
– Braiam
Jul 19 '16 at 1:31