<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux Admin Zone &#187; Troubleshooting</title>
	<atom:link href="http://linuxadminzone.com/category/troubleshooting/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxadminzone.com</link>
	<description>Adding more reasons to celebrate Open Source.</description>
	<lastBuildDate>Wed, 09 May 2012 10:17:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Enable or fix logging for HAProxy load balancer</title>
		<link>http://linuxadminzone.com/enable-or-fix-logging-for-haproxy-load-balancer/</link>
		<comments>http://linuxadminzone.com/enable-or-fix-logging-for-haproxy-load-balancer/#comments</comments>
		<pubDate>Sat, 21 Mar 2009 07:01:15 +0000</pubDate>
		<dc:creator>jagbir</dc:creator>
				<category><![CDATA[Load Balancer]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[haproxy logs]]></category>

		<guid isPermaLink="false">http://linuxadminzone.com/?p=90</guid>
		<description><![CDATA[After configuration of HAProxy to balance web traffic, I&#8217;ve noticed that HAProxy is not generating any logs in my server. Due to its load balancer role, logging is vital to diagnose any issue that might come in future. In its default config, HAProxy send logs to a syslog facility: local0, via a socket connection. By [...]]]></description>
			<content:encoded><![CDATA[<p>After configuration of <a href="http://linuxadminzone.com/install-and-configure-haproxy-the-software-based-loadbalancer-in-ubuntu/">HAProxy</a> to balance web traffic, I&#8217;ve noticed that HAProxy is not generating any logs in my server. Due to its load balancer role, logging is vital to diagnose any issue that might come in future. </p>
<p>In its default config, HAProxy send logs to a syslog facility: local0, via a socket connection. By default, your syslog configuration probably doesn’t accept socket connections, and even doesn’t have a local0 facility, so you have no HAProxy log. If you want it, configure syslog to accept TCP connections by adding -r to syslogd parameters.</p>
<p>On a RedHat/CentOS server, edit the value of SYSLOGD_OPTIONS in /etc/sysconfig/syslog:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">SYSLOGD_OPTIONS</span>=<span style="color: #ff0000;">&quot;-m 0 -r&quot;</span></pre></div></div>

<p>On a Debian/Ubuntu server, edit the value of SYSLOGD in /etc/default/syslogd:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">SYSLOGD</span>=<span style="color: #ff0000;">&quot;-r&quot;</span></pre></div></div>

<p>Then set up syslog facility local0 and direct it to file /var/log/haproxy.log or your desired location by editing /etc/syslog.conf:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">local0.<span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>haproxy.log</pre></div></div>

<p>finally, restart syslog service to apply changes:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>syslog restart</pre></div></div>

<p>You can see that HAProxy logging is started.</p>
<p>Other useful article on this blog that you may like to read:<br />
* <a href="http://linuxadminzone.com/how-to-install-setup-and-config-haproxy-loadbalancer-for-content-switching/">Configure HAProxy for content switching</a><br />
* <a href="http://linuxadminzone.com/5-steps-to-secure-your-linux-server/">5 Steps to secure your Production Linux Server</a><br />
* <a href="http://linuxadminzone.com/ensuring-secure-access-to-production-linux-servers/">Ensuring secure access to your Production Linux Server</a><br />
* <a href="http://linuxadminzone.com/bash-script-to-backup-essential-log-files-of-linux-server/">Bash script to backup essential log files in Linux Server</a></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxadminzone.com/enable-or-fix-logging-for-haproxy-load-balancer/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Quickly fix perl Undefined subroutine &amp;LWP::Debug::trace issue</title>
		<link>http://linuxadminzone.com/quickly-fix-perl-undefined-subroutine-lwpdebugtrace-issue/</link>
		<comments>http://linuxadminzone.com/quickly-fix-perl-undefined-subroutine-lwpdebugtrace-issue/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 12:26:49 +0000</pubDate>
		<dc:creator>jagbir</dc:creator>
				<category><![CDATA[perl]]></category>
		<category><![CDATA[Troubleshooting]]></category>

		<guid isPermaLink="false">http://linuxadminzone.com/?p=32</guid>
		<description><![CDATA[I installed required modules in one Fedora 8 and one CentOS 5.2 boxes to interact with Amazon SQS and S3 services and build a perl script. When trying to start perl script, following error encountered: Undefined subroutine &#38;amp;LWP::Debug::trace called at /usr/lib/perl5/site_perl/5.8.8/LWP/UserAgent/Determined.pm line 21. Force Re-installation of LWP::UserAgent::Determined module does not avail anything. Then after some [...]]]></description>
			<content:encoded><![CDATA[<p>I installed required modules in one Fedora 8 and one CentOS 5.2 boxes to interact with Amazon SQS and S3 services and build a perl script. When trying to start perl script, following error encountered:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Undefined subroutine <span style="color: #000000; font-weight: bold;">&amp;</span>amp;LWP::Debug::trace called at <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>perl5<span style="color: #000000; font-weight: bold;">/</span>site_perl<span style="color: #000000; font-weight: bold;">/</span>5.8.8<span style="color: #000000; font-weight: bold;">/</span>LWP<span style="color: #000000; font-weight: bold;">/</span>UserAgent<span style="color: #000000; font-weight: bold;">/</span>Determined.pm line <span style="color: #000000;">21</span>.</pre></div></div>

<p>Force Re-installation of LWP::UserAgent::Determined module does not avail anything.</p>
<p>Then after some research, I came to know that the perl libwww-perl version 5.822 is culprit here. And the strange thing is that the updated version (5.822) causes problems while downgraded version (5.821) works fine. This bug is already reported <a href="http://72.14.235.104/translate_c?hl=en&amp;sl=ja&amp;u=http://rt.cpan.org/Public/Bug/Display.html%3Fid%3D41508&amp;prev=/search%3Fq%3DUndefined%2Bsubroutine%2B%2526LWP::Debug::trace%26hl%3Den%26sa%3DG&amp;usg=ALkJrhih-20vQALW1IB_2PWNhSP8yVm8Lw">here. </a></p>
<p>To quickly fix the error, download and install 5.821 version:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>search.cpan.org<span style="color: #000000; font-weight: bold;">/</span>CPAN<span style="color: #000000; font-weight: bold;">/</span>authors<span style="color: #000000; font-weight: bold;">/</span>id<span style="color: #000000; font-weight: bold;">/</span>G<span style="color: #000000; font-weight: bold;">/</span>GA<span style="color: #000000; font-weight: bold;">/</span>GAAS<span style="color: #000000; font-weight: bold;">/</span>libwww-perl-<span style="color: #000000;">5.821</span>.tar.gz
$ <span style="color: #c20cb9; font-weight: bold;">tar</span> xzf libwww-perl-<span style="color: #000000;">5.821</span>.tar.gz
$ <span style="color: #7a0874; font-weight: bold;">cd</span> libwww-perl-<span style="color: #000000;">5.821</span>
$ <span style="color: #c20cb9; font-weight: bold;">perl</span> Makefile.PL
$ <span style="color: #c20cb9; font-weight: bold;">make</span>
$ <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>The issue has been resolved.</p>
<p>You may also like to read:<br />
* <a href="http://linuxadminzone.com/5-steps-to-secure-your-linux-server/"> 5 steps to secure your Linux Server </a><br />
* <a href="http://linuxadminzone.com/ensuring-secure-access-to-production-linux-servers/"> Ensuring secure access to production Linux Servers </a><br />
* <a href="http://linuxadminzone.com/bash-script-to-backup-essential-log-files-of-linux-server/"> Bash script to backup essential log files in Linux </a><br />
* <a href="http://linuxadminzone.com/quickly-change-your-ssh-port-from-default-22-to-something-higher/"> Quickly change your ssh port from defualt 22 to something higher </a><br />
* <a href="http://linuxadminzone.com/ssh-port-forwarding-from-remote-to-local-machine/"> SSH port forwarding from remote to local machine </a><br />
* <a href="http://linuxadminzone.com/save-root-or-user-history-to-check-later/"> Save root or user history to check later </a><br />
* <a href="http://linuxadminzone.com/install-and-configure-denyhost/"> Install and configure denyhost to prevent brute force attacks </a></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxadminzone.com/quickly-fix-perl-undefined-subroutine-lwpdebugtrace-issue/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ftp error 500 OOPS: vsf_sysutil_recv_peek while connecting to vsftpd</title>
		<link>http://linuxadminzone.com/ftp-error-500-oops-vsf_sysutil_recv_peek-while-connecting-to-vsftpd/</link>
		<comments>http://linuxadminzone.com/ftp-error-500-oops-vsf_sysutil_recv_peek-while-connecting-to-vsftpd/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 06:52:32 +0000</pubDate>
		<dc:creator>jagbir</dc:creator>
				<category><![CDATA[AWS]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[vsftp ec2]]></category>

		<guid isPermaLink="false">http://linuxadminzone.com/?p=24</guid>
		<description><![CDATA[Recently, after configuring the vsftpd server running in CentOS 5 in several small ec2 instances as per the earlier post , I was not able to connect to vsftpd in one server from my ftp client. It throws the error: 500 OOPS: vsf_sysutil_recv_peek The solution for this problem is to load capability module: $ modprobe [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, after configuring the vsftpd server running in CentOS 5 in several small ec2 instances as per the <a href="http://linuxadminzone.com/install-and-configure-ftp-server-in-amazon-ec2-instance/">earlier post</a> , I was not able to connect to vsftpd in one server from my ftp client. It throws the error:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000;">500</span> OOPS: vsf_sysutil_recv_peek</pre></div></div>

<p>The solution for this problem is to load capability module:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ modprobe capability</pre></div></div>

<p>You may also like to read:<br />
* <a href="http://linuxadminzone.com/5-steps-to-secure-your-linux-server/"> 5 steps to secure your Linux Server </a><br />
* <a href="http://linuxadminzone.com/ensuring-secure-access-to-production-linux-servers/"> Ensuring secure access to production Linux Servers </a><br />
* <a href="http://linuxadminzone.com/bash-script-to-backup-essential-log-files-of-linux-server/"> Bash script to backup essential log files in Linux </a><br />
* <a href="http://linuxadminzone.com/quickly-change-your-ssh-port-from-default-22-to-something-higher/"> Quickly change your ssh port from defualt 22 to something higher </a><br />
* <a href="http://linuxadminzone.com/ssh-port-forwarding-from-remote-to-local-machine/"> SSH port forwarding from remote to local machine </a><br />
* <a href="http://linuxadminzone.com/save-root-or-user-history-to-check-later/"> Save root or user history to check later </a><br />
* <a href="http://linuxadminzone.com/install-and-configure-denyhost/"> Install and configure denyhost to prevent brute force attacks </a></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxadminzone.com/ftp-error-500-oops-vsf_sysutil_recv_peek-while-connecting-to-vsftpd/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

