Lowest numbered MX record points to local host

Hari ini salah satu domain di server tidak dapat menerima dan mengirimkan email, kali ini masalah terjadi di server yang menggunakan Exim sebagai MTA. Domain xxxx.co.id tidak dapat mengirimkan email dengan reason seperti dibawah ini:

Requested action aborted: error in processing
451 Temporary local problem – please try later

Dan dari server sendiri ditemukan log seperti ini:

2011-01-21 11:54:40 H=smtp1.3g-net.net [202.xx.xx.xx] F=<[email protected]> temporarily rejected RCPT <[email protected]>: lowest numbered MX record points to local host
2011-01-21 12:14:39 H=smtp1.3g-net.net [202.xx.xx.xx] F=<[email protected]> temporarily rejected RCPT <[email protected]>: lowest numbered MX record points to local host
2011-01-21 12:34:39 H=smtp1.3g-net.net [202.xx.xx.xx] F=<[email protected]> temporarily rejected RCPT <[email protected]>: lowest numbered MX record points to local host
2011-01-21 12:54:39 H=smtp1.3g-net.net [202.xx.xx.xx] F=<[email protected]> temporarily rejected RCPT <[email protected]>: lowest numbered MX record points to local host

Masalah tersebut dapat disebabkan karena MX record mempunyai priority paling kecil, dan pastikan apakah domain mempunyai mx record yang tepat dan merupakan domain local. Untuk mengatasi masalah tersebut dapat dilakukan dengan menambahkan domain pada file /etc/localdomains:

$ sudo vi /etc/localdomains

xxxx.co.id

Simpan dan kemudian restart exim:

$ sudo /etc/init.d/exim restart

Done :)


ldap-err

[Solved] Unable to determine enabled services from ldap

Sekitar jam 7 malam tadi saya di buzz oleh seorang teman dari mailing list Komunitas Zimbra Indonesia, dia memberitahu kalau mail servernya bermasalah sejak lama dan hingga saat ini belum dapat diselesaikan. Akhirnya saya dikasih user login ke servernya untuk melakukan troubleshooting, pertama kali yang saya lihat adalah zimbra service status: Continue reading “[Solved] Unable to determine enabled services from ldap” »


Problem installing ruby rails on CentOS 5.5

I try to install ruby on rails using a repository CentOS 5.5 rubyworks:

[rubyworks]
name=RubyWorks
baseurl=http://rubyworks.rubyforge.org/redhat/$releasever/RPMS/$basearch
enabled=1
gpgcheck=1
gpgkey=http://rubyworks.rubyforge.org/RubyWorks.GPG.key
priority=1

I using yum to install ruby and rubygems

# yum install ruby ruby-devel ruby-libs ruby-irb ruby-rdoc ruby-mysql rubygems

And I need to install rails using gem

# gem install rails

But I had the following error that can’t solve :(

# gem install rails –source http://gems.opscode.com
Updating metadata for 59 gems from http://gems.opscode.com
…………………………………………………..
complete
ERROR:  could not find rails locally or in a repository
# gem source -a http://gems.opscode.com
Updating metadata for 59 gems from http://gems.opscode.com
…………………………………………………..
complete
Updating metadata for 11 gems from http://rubyworks.rubyforge.org/redhat/5/GEMS/x86_64/
………..
complete
http://gems.opscode.com added to sources
# gem install rails
Updating metadata for 11 gems from http://rubyworks.rubyforge.org/redhat/5/GEMS/x86_64/
………..
complete
Updating metadata for 59 gems from http://gems.opscode.com
…………………………………………………..
complete
ERROR:  could not find rails locally or in a repository
# gem update –system
Updating RubyGems…
Updating metadata for 11 gems from http://rubyworks.rubyforge.org/redhat/5/GEMS/x86_64/
………..
complete
Updating metadata for 59 gems from http://gems.opscode.com
…………………………………………………..
complete
Attempting remote update of rubygems-update
ERROR:  could not find rubygems-update locally or in a repository
ERROR:  While executing gem … (NoMethodError)
undefined method `version’ for nil:NilClass
# gem –source http://gems.github.com
ERROR:  Invalid option: –source.  See ‘gem –help’.
# gem –source http://gemcutter.org/
ERROR:  Invalid option: –source.  See ‘gem –help’.
# gem source -a http://gemcutter.org/
ERROR:  While executing gem … (Gem::RemoteSourceException)
HTTP Response 302 fetching http://gemcutter.org/yaml
# gem source -a http://gems.github.com
Bulk updating Gem source index for: http://gems.github.com
Updating metadata for 11 gems from http://rubyworks.rubyforge.org/redhat/5/GEMS/x86_64/
………..
complete
Updating metadata for 59 gems from http://gems.opscode.com
…………………………………………………..
complete
http://gems.github.com added to sources
# gem install rails
Updating metadata for 11 gems from http://rubyworks.rubyforge.org/redhat/5/GEMS/x86_64/
………..
complete
Updating metadata for 59 gems from http://gems.opscode.com
…………………………………………………..
complete
Bulk updating Gem source index for: http://gems.github.com
ERROR:  could not find rails locally or in a repository

search results suggest to reinstall rubygems from source:

# wget wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz

# tar -zxvf rubygems-1.3.7.tgz

# cd rubygems-1.3.7

# ruby setup.rb

# gem update –system

# update_rubygems

# gem sources -a http://gems.opscode.com
# gem sources -a http://rubygems.org

# gem update –system

# gem install rails

And I still get the following error message:

ERROR:  could not find gem rails locally or in a repository

How can fix it?


Solved PHP execution via fcgid requires the Apache mod_fcgid module

Kemarin saya menambahkan virtualmin GPL di web server blog ini, namun siapa yang menyangka hal ini malah menimbulkan masalah sehingga server tidak dapat diakses. Sekitar jam 3 pagi saya tidak juga menemukan letak permasalahannya, dan akhirnya tadi siang (8/9/10) saya melanjutkan project tersebut. Notifikasi “PHP execution via fcgid requires the Apache mod_fcgid module” muncul karena mod_fcgid tidak di load oleh apache.

mod_fcgid adalah alternatif untuk mod_cgi atau mod_cgid yang mempunyai kinerja tinggi, mod_fcgid mampu melayani permintaan secara bersamaan dan tetap berjalan untuk melayani permintaan-permintaan lebih lanjut. mod_fcid disukai oleh pengembang PHP misalnya untuk mnjalankan proses yang di handle oleh mod_php dan memberikan kinerja yang sangat mirip.

“PHP execution via fcgid requires the Apache mod_fcgid module” dapat diatasi dengan membuat file /etc/httpd/conf.d/fcgid.conf dan menambahkan beberapa paramerter berikut:

LoadModule fcgid_module modules/mod_fcgid.so
<IfModule !mod_fastcgi.c>
AddHandler fcgid-script fcg fcgi fpl
</IfModule>
SocketPath run/mod_fcgid
SharememPath run/fcgid_shm
Jika dengan cara itu problem mod_fcgid belum dapat diatasi, silahakan dowload dan reinstall mod_fcgid seperti dibawah ini:
# wget ftp://mirror.switch.ch/pool/1/mirror/epel/5/x86_64/mod_fcgid-2.2-10.el5.x86_64.rpm
# rpm -e –nodeps mod_fcgid
# rpm -Uvh mod_fcgid-2.2-10.el5.x86_64.rpm
Kemudian sesuaikan file /etc/httpd/conf.d/fcgid.conf seperti diatas, dan semoga apache di virtualmin bisa normal kembali menggunakan mod_fcgid.

error

kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0

Tersisa satu hari dan beberapa jam kesempatan saya merasakan keramahan, kekeluargaan karyawan karyawati PTLI, lusa aku sudah tidak bekerja lagi untuk perusahaan ini dan siap-siap menyongsong pekerjaan baru. Semalam saya tidur setelah subuh untuk melakukan developtment help desk support system berbasis web, jadi harap maklum kalau datang ke kantor agak telat hehehe. sebelum mandi sudah ada telepon yang melaporkan koneksi internet dan ke server mati, waduh!!! pasti router ngadat lagi!!

Setelah datang dan merestart router (CentOS 5.5 i686) mesin Intel Celeron 2.2 GHz muncul error messages seperti dibawah ini:

Jul 20 15:34:27 router snmpd[2508]: error finding row index in _ifXTable_container_row_restore
Jul 20 15:45:58 router kernel: skge 0000:02:09.0: PCI error cmd=0x7 status=0x82b0
Jul 20 15:45:58 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:45:58 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:45:58 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:45:58 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:46:00 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:46:01 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:46:02 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:46:02 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:46:04 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:46:05 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:46:18 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:46:52 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:46:53 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:46:55 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:47:00 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:47:00 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:47:07 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:47:35 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:47:36 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:47:36 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:47:36 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:47:36 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:47:36 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:47:36 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:47:37 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:47:37 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:47:38 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:47:38 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:47:38 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:47:38 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:47:40 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:47:40 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 15:47:43 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 16:32:57 router snmpd[2744]: error finding row index in _ifXTable_container_row_restore
Jul 20 18:23:51 router snmpd[2544]: error finding row index in _ifXTable_container_row_restore
Jul 20 18:37:26 router kernel: skge 0000:02:09.0: PCI error cmd=0x7 status=0x82b0
Jul 20 18:37:26 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 18:41:08 router kernel: skge 0000:02:09.0: PCI error cmd=0x7 status=0x82b0
Jul 20 18:41:08 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 18:44:46 router kernel: skge 0000:02:09.0: PCI error cmd=0x7 status=0x82b0
Jul 20 18:44:46 router kernel: skge 0000:02:09.0: PCI error cmd=0x147 status=0xc2b0
Jul 20 18:44:51 router snmpd[2326]: error finding row index in _ifXTable_container_row_restore

Error diatas disebabkan oleh PCI (LAN Card) yang terpasang mengalami kerusakan, dan setelah diganti server kembali normal.