New Kernel does not start in CentOS [closed] - centos

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I upgraded my centOS kernel to 2.6.32-504.1.3.el6 using yum install command but when i reboot and open the kernel it does not run the new kernel.

If you mean you didn't auto boot into the new kernel but rather the existing one then you need to check the grub config file. I suspect your default kernel is not the newest one.
vi /boot/grub/grub.conf
Towards the top of the file look for the line default=x where 'x' is a number usually 0 or 1
Look down the list of installed kernels your newest one should be at the top - that is number 0. change your default= to 0 and reboot. You should load the new kernel. If you have a console then you should be able to pick a kernel at boot time from the list.
Below is my grub.conf file as an example.
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (3.17.3-1.el6.elrepo.x86_64)
root (hd0,0)
kernel /vmlinuz-3.17.3-1.el6.elrepo.x86_64 ro root=/dev/mapper/vg_server-lv_root rd_NO_LUKS rd_LVM_LV=vg_server/lv_swap LANG=en_US.UTF-8 rd_NO_MD SYSFONT=la
tarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=uk rd_LVM_LV=vg_server/lv_root rd_NO_DM rhgb quiet audit=0
initrd /initramfs-3.17.3-1.el6.elrepo.x86_64.img
title CentOS (3.17.2-1.el6.elrepo.x86_64)
root (hd0,0)
kernel /vmlinuz-3.17.2-1.el6.elrepo.x86_64 ro root=/dev/mapper/vg_server-lv_root rd_NO_LUKS rd_LVM_LV=vg_server/lv_swap LANG=en_US.UTF-8 rd_NO_MD SYSFONT=la
tarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=uk rd_LVM_LV=vg_server/lv_root rd_NO_DM rhgb quiet audit=0
initrd /initramfs-3.17.2-1.el6.elrepo.x86_64.img
title CentOS (2.6.32-504.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-504.el6.x86_64 ro root=/dev/mapper/vg_server-lv_root rd_NO_LUKS rd_LVM_LV=vg_server/lv_swap LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcy
rheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=uk rd_LVM_LV=vg_server/lv_root rd_NO_DM rhgb quiet audit=0
initrd /initramfs-2.6.32-504.el6.x86_64.img
The first kernel is 0, next is 1, 2 etc.

Related

Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-bloc(8,2) on Fedora 25

The error occur when I follow a guide to install nVidia proprietary drivers on Fedora 25.
This is link website:enter link description here
I do step by step until I finish step 2.7 and reboot
Now I can not startup fedora 25
enter image description here
My guess is that on step 2.6.2 Edit /etc/sysconfig/grub you copied the example line verbatim instead of adapting it to your system:
## Example row ##
GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora/swap rd.lvm.lv=fedora/root rhgb quiet rd.driver.blacklist=nouveau"
You should only append rd.driver.blacklist=nouveau to end of the existing GRUB_CMDLINE_LINUX=”…” line.

Supervisor control multiprocs program inside group [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I have this scenario:
group1
p1
p2
p3
p4
My p1 have numprocs=2, like:
numprocs = 2
process_name = '%(program_name)s_%(process_num)02d'
so I have:
root#28d8dc7bdffd:~# supervisorctl status
group1:'p1_00' RUNNING pid 10442, uptime 0:12:10
group1:'p1_01' RUNNING pid 10433, uptime 0:12:10
group1:p2 RUNNING pid 16290, uptime 0:00:07
p3 RUNNING pid 633, uptime 0:34:33
p4 RUNNING pid 483, uptime 0:35:40
I have to start/stop/restart p1 and it's not working.
I tried:
root#28d8dc7bdffd:~# supervisorctl stop group1:p1:*
group1:p1:*: ERROR (no such process)
root#28d8dc7bdffd:~# supervisorctl stop p1:*
error: <class 'xmlrpclib.Fault'>, <Fault 10: 'BAD_NAME: p1'>: file: /usr/lib/python2.7/xmlrpclib.py line: 794
root#28d8dc7bdffd:~# supervisorctl stop group1:p1*
group1:p1*: ERROR (no such process)
I'm conformed on putting the full name of each worker

Supervisord: Restarting a group results in BAD_NAME [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 3 years ago.
Improve this question
I am running supervisord 3.0. My supervisord.conf file looks like this:
[unix_http_server]
file=/var/run/supervisor/supervisor.sock
[supervisord]
logfile=/var/log/supervisord.log
logfile_maxbytes=50MB
logfile_backups=10
loglevel=info
pidfile=/var/run/supervisor/supervisord.pid
minfds=1024
minprocs=200
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///var/run/supervisor/supervisor.sock
[program:p2]
command=...
[program:p1]
command=...
[group:myprograms]
programs=p1,p2
Using supervisordctl I can restart both programs individually.
$ supervisorctl restart p1
$ supervisorctl restart p2
However, attempting to restart the group results in an error.
$ supervisorctl restart myprograms:
error: <class 'xmlrpclib.Fault'>, <Fault 10: 'BAD_NAME: myprograms'>: file: /usr/local/lib/python2.7/xmlrpclib.py line: 799
How can I restart the group?
It turns out this was caused by a typo in my config file.

NV-GLX missing extension in OS X Lion

I connect to a remote linux machine using "ssh -X machine", and then I run a graphical application, so its window is displayed on my local OS X Lion machine using X Window. I get the error
"Xlib: extension "NV-GLX" missing on display "localhost:11.0"."
The application moves very slow. Is it any way to use NV-GLX on OS X or to cimcurvent this problem?
I've encountered similar problem trying to connect from a laptop with AMD graphical card to a linux server with NVIDIA card and drivers installed.
If you have root access to your remote linux machine you could try to restart X server with default libglx.so, not the one from NVIDIA driver package. Appears that NVIDIA installer doesn't support partial installation (only driver, no GLX lib), so one needs to remove NVIDIA libglx.so from xorg modules path, but leave nvidia_drv.so. On Debian you could do
# update-alternatives --config glx # select mesa-diverted
# ln -s /usr/lib/nvidia/current/nvidia_drv.so /usr/lib/xorg/modules/drivers/
Be shure your remote /etc/Xorg.0.log has following parts
...
[ 1111.390] (II) LoadModule: "glx"
[ 1111.390] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 1111.390] (II) Module glx: vendor="X.Org Foundation"
...
[ 1111.391] (II) LoadModule: "nvidia"
[ 1111.391] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 1111.392] (II) Module nvidia: vendor="NVIDIA Corporation"
...
After that Xlib: extension "NV-GLX" missing on display "localhost:11.0" message should go away

ejabberd server mod_archive module [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am trying to set up Message archiving for my ejabberd server. I tried to add new module mod_archive following the link http://lboynton.com/2009/11/25/ejabberd-mod_archive-with-mysql-on-ubuntu/. After that i am not able to restart ejabberd server and gives me the following error in ejabberd.log
=ERROR REPORT==== 2010-11-16 12:44:41 ===
E(<0.38.0>:ejabberd_rdbms:67) : Start of supervisor ejabberd_odbc_sup_localhost failed:
{error,{shutdown,{child,undefined,ejabberd_odbc_sup_localhost,
{ejabberd_odbc_sup,start_link,["localhost"]},
transient,infinity,supervisor,
[ejabberd_odbc_sup]}}}
Thanks,
Sathi.
All internet tutorials about mod_archive in Ejabberd are incomplete or very caotics. Or maybe are old. So my problem is I am using Ubuntu 12.04 server LTS with Mysql. And I did all the things that are explained in all blogs.
So to install mod_archive I need to do this:
The typical:
svn co https://svn.process-one.net/ejabberd-modules
cd ejabberd-modules/mod_archive/trunk
./build.sh
cp ebin/*modules in EJABBERD
and configure /etc/ejabberd.cfg
but with this methods EJABBERD does not work.
So I discover that we need to compile other MODULE that are not explained in any site. The module is called CONN_MYSQL
And we can get in the same ejabber-modules dowloaded. So in SVN (https://svn.process-one.net/ejabberd-modules) there are
cd ejabberd-modules/mysql/trunk
./build.sh
cp ebin/*modules in EJABBERD
And work.....
I need a lot of hours to discover this.
I can not use this line configuration in ejabberd.cfg: {odbc_server, "DSN=ejabberd;UID=ejabberd;PWD=ejabberd"} because aplication crashes and says this:
=ERROR REPORT==== 2012-11-28 18:01:08 ===
E(<0.437.0>:mod_archive_odbc:867) : should_store_jid failed: {xmlelement,
"error",
[{"code","500"},
{"type",
"wait"}],
[{xmlelement,
"internal-server-error",
[{"xmlns",
"urn:ietf:params:xml:ns:xmpp-stanzas"}],
[]}]}
So I use this line in ejabberd.cfg:
{odbc_server, {mysql, "server", "database", "username", "password"}}.
and this line into the modules configuration:
{mod_archive_odbc, [{database_type, "mysql"}, {default_auto_save, true}, {enforce_default_auto_save, true}]},
So now works!
I don't remmember if i use
trunk or branches/ejabberd-2.0.x in Emakefile . You could try one and if not works you could try the other.
Ah! and remmember to compile with
./configure --enable-odbc the ejabberd source code.
You can get this in
wget http://www.process-one.net/en/ejabberd/ejabberd/2.1.11/ejabberd-2.1.11.tgz
maybe it is necessary this packages:
apt-get install iodbc libmyodbc
I used this one without any errors: http://www.ndl.kiev.ua/content/mod_archive_odbc-release