Fix puppet-dashboard pending tasks

ផាប់ភិត​ដាសបត ឈប់​ដើរ​ ហើយ​ pending tasks មាន​ប្រ​ហែល​ជាង ២០០០។ # ps -ef | grep job www-data 4799 1 0 14:07 ? 00:00:00 delayed_job.0_monitor www-data 4804 1 0 14:07 ? 00:00:00 delayed_job.1_monitor root 8300 31461 0 15:22 pts/0 00:00:00 grep job មិន​ដឹង​ថា​ជាមាន​វិធី​ល្អ​ សំរាប់​ជួសជុល​បញ្ហា​នេះទេ ប៉ុន្តែខ្ញុំ​អាច ប្រើវិធីដូចនេះ # cd /usr/share/puppet-dashboard/ # rake RAILS_ENV=production jobs:work អោយវារត់​ យ៉ាងយូរ​ បន្ទាប់​មក puppet-dashboard-worker ក៏ចាប់ផ្តើម​ដើរវិញ # ps -ef | grep job www-data 4799 1 0 14:07 ? 00:00:00 delayed_job.0_monitor www-data 4804 1 0 14:07 ? 00:00:00 delayed_job.1_monitor www-data 5089 1 24 14:15 ? 00:20:43 dashboard/delayed_job.0 www-data 5094 1 24 14:15 ? 00:20:45 dashboard/delayed_job.1 root 8570 31461 0 15:41 pts/0 00:00:00 grep job

April 30, 2013 · 1 min · 101 words · kenno

vmware: CD/DVD ROM drive is stuck in connecting mode

As the title says, if the CD/DVD device of your VM is stuck in connecting mode, one thing to try is to shutdown the vSphere client, and restarted it. I found this solution from http://communities.vmware.com/message/1784438, and it worked for me.

February 11, 2013 · 1 min · 40 words · kenno

PHP Fatal error: Call to undefined function utf8_decode()

This occurs on a FreeBSD server. According to this post[1], I need to install php5-xmlphp5-xml. # whereis php5-xmlphp5-xml php5-xml: /usr/ports/textproc/php5-xml # portmaster textproc/php5-xml ... # service apache22 restart [1] http://hi.baidu.com/ericyangbj/item/8289a32771e4171d09750856

December 25, 2012 · 1 min · 30 words · kenno

FreeBSD: Fatal error: Call to undefined function session_name()

I just setup Apache and PHP on FreeBSD 9, configured a vhost, then when I tried to access it, I got the following error: Fatal error: Call to undefined function session_name() in /srv/www/sugaku.domain.com/inc/init.php on line 144 so apparently, the “session” support is missiong from php5 installation. To fix it, I need to install php5-session port. Let’s do it. # whereis php5-session<br /> php5-session: /usr/ports/www/php5-session<br /> portmaster www/php5-session If the installation is successful, then we can restart apache. ...

December 25, 2012 · 1 min · 89 words · kenno

CentOS: lsb_release: command not found

First let me declare that I’m new to CentOS. The folowing is a note to self which demonstrates how we search for a package that provides some commands and intall it using yum on CentOS. When I ran ‘lsb_release -a’, the following message is returned: -bash: lbs_release: command not found To fix it, we need to install the package which provides lsb_release command. # yum provides */lsb_release ... redhat-lsb-4.0-3.el6.centos.i686 : LSB base libraries support for CentOS Repo : base Matched from: Filename : /usr/bin/lsb_release redhat-lsb-4.0-3.el6.centos.x86_64 : LSB base libraries support for CentOS Repo : base Matched from: Filename : /usr/bin/lsb_release dkms-2.2.0.3-2.el6.noarch : Dynamic Kernel Module Support Framework Repo : epel Matched from: Filename : /usr/lib/dkms/lsb_release So, let’s install redhat-lsb package: ...

October 21, 2012 · 1 min · 164 words · kenno