Find the answer to your Linux question:
Results 1 to 9 of 9
I keep getting this error printed to the console. It prints over whatever I do and can't be captured. Message from syslogd [at] dev at Jul 29 14:32:00 ... *kernel:[34929163.513820] ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2013
    Posts
    7

    Syslogd Kernel Error (FTP)


    I keep getting this error printed to the console. It prints over whatever I do and can't be captured.

    Message from syslogd [at] dev at Jul 29 14:32:00 ...
    *kernel:[34929163.513820] nf_ct_ftp: dropping packetIN= OUT=lo SRC=207.126.xx.xxx DST=207.126.xx.xxx LEN=105 TOS=0x00 PREC=0x00 TTL=64 ID=38727 DF PROTO=TCP SPT=21 DPT=56212 SEQ=520662811 ACK=4134001227 WINDOW=256 RES=0x00 ACK PSH FIN URGP=0 OPT (0101080A25830D06258243CF)
    I don't know what this means and how to fix it.

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    hello and welcome, iamchairs!

    that appears to be an iptables message. is that ip address specifically getting blocked by your firewall configuration, that you know of?

  3. #3
    Just Joined!
    Join Date
    Jul 2013
    Posts
    7
    Quote Originally Posted by atreyu View Post
    hello and welcome, iamchairs!

    that appears to be an iptables message. is that ip address specifically getting blocked by your firewall configuration, that you know of?
    The script the runs that ends up firing this off is actually FTPing to a user on the same server. This works half of the time and this message just starts firing off at random it seems.

  4. #4
    Linux Newbie
    Join Date
    Nov 2009
    Posts
    218
    Spot on atreyu. On my systems, though, the firewall does this kind of logging if it is simply refusing a given connection. Is this an underlying networking failure? I notice it It doesn't have an "IN" interface name - is that normal=?

    Chairs, can you post the script plus any firewall/ftp server configs. You say it works "half the time". What's different between when it does work and when it does not I wonder?

    Cheers - VP.

  5. #5
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by iamchairs View Post
    The script the runs that ends up firing this off is actually FTPing to a user on the same server. This works half of the time and this message just starts firing off at random it seems.
    if it troubles you, you can post your iptables config and also tell us exactly what you wish to happen (i.e., you always want that ip blocked from FTP, etc.) and we can try to assist you.

  6. #6
    Just Joined!
    Join Date
    Jul 2013
    Posts
    7
    Took me a while to get back. Had to handle some other things but I'm back on the problem. So I can post the code (it's in PHP) and show you the output I'm getting.

    So I littered this thing with exits to see if I can catch it in php but it's spitting out the kernel error and the php script still runs.

    PHP Code:
                            $conn ftp_connect("207.126.56.xx");
                            if(!
    $conn)
                            {   
                                    exit(
    "MLS Server FTP Connection Failed");
                            }   
                            
    $login ftp_login($conn"xxxxx""xxxxx");
                            
    ftp_pasv($conntrue);

                            if(!
    $login)
                            {   
                                    exit(
    "Error logging in: xxxxx xxxxx");
                            }   

                            
    $localConn ftp_connect($miArr["site_host"]);
                            if(!
    $localConn)
                            {   
                                    exit(
    "Site FTP Connection Failed");
                            }   
                            
    $login ftp_login($localConn$miArr["site_user_ftp"], $miArr["site_pass_ftp"]);
                            
    ftp_pasv($localConntrue);

                            if(!
    $login)
                            {   
                                    exit(
    "Error logging: {$miArr['site_user_ftp']} {$miArr['site_pass_ftp']}");
                            }

    // Some code later ...
    // We're in a loop- trying to pull photos from one server into the dest server ...
    // Some more code ...

                                    
    if($downloadImage)
                                    {
                                            
    $status ftp_get($connPATH."tmp/$fileName"$pathToFTP_BINARY);
                                            if(
    $status == TRUE)
                                            {
                                                    
    $put TRUE;
                                                    
    $put ftp_put($localConn"httpdocs/".$newFilePathPATH."tmp/$fileName"FTP_BINARY) or die("FTP Error on line " __LINE__);
                                                    if(!
    $put)
                                                    {
                                                            exit(
    "Error puting up httpdocs/$newFilePath " __LINE__);
                                                    }

                                                    
    $put ftp_put($localConn"httpdocs/".$newThumbPathPATH."tmp/$fileName"FTP_BINARY) or die("FTP Error on line " __LINE__);
                                                    if(!
    $put)
                                                    {
                                                            exit(
    "Error puting up httpdocs/$newFilePath " __LINE__);
                                                    }

                                                    echo 
    "File Uploaded: $newFilePath\n";
                                            }
                                            else
                                            {
                                                    exit(
    "Unable to download file $pathTo\n");
                                            }

                                            @
    unlink(PATH."tmp/$fileName");
                                    }
    // End of loop ... 

    Sample output-

    File Uploaded: images/uploaded/357230.34.jpg
    File Uploaded: images/uploaded/357230.35.jpg
    File Uploaded: images/uploaded/357230.36.jpg
    File Uploaded: images/uploaded/357230.37.jpg
    File Uploaded: images/uploaded/357230.38.jpg
    File Uploaded: images/uploaded/357230.39.jpg
    File Uploaded: images/uploaded/357230.40.jpg
    File Uploaded: images/uploaded/357230.41.jpg
    File Uploaded: images/uploaded/357230.42.jpg
    File Uploaded: images/uploaded/357230.43.jpg
    File Uploaded: images/uploaded/357230.44.jpg

    Message from syslogd@dev at Jul 31 12:57:43 ...
    kernel:[35096015.683209] nf_ct_ftp: dropping packetIN=venet0 OUT= MAC= SRC=207.126.56.xx DST=207.126.49.xxx LEN=104 TOS=0x00 PREC=0x00 TTL=62 ID=49742 DF PROTO=TCP SPT=21 DPT=38210 SEQ=4010457051 ACK=2557027706 WINDOW=46 RES=0x00 ACK PSH URGP=0 OPT (0101080A6339752F2F796702)
    The syslogd message displays a few times and the script seems to just hang for a while. If I let it sit for a few minutes it should finish but I ended the process.

    So the FTP is working fine some of the time and this just happens for no reason...

  7. #7
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    are you using cPanel? perhaps something in its configuration is the culprit. see details on this thread about similar issues. Check out the contents of your sysctl.conf file.

  8. #8
    Just Joined!
    Join Date
    Jul 2013
    Posts
    7
    I'm actually using Plesk Parallels.

  9. #9
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by iamchairs View Post
    I'm actually using Plesk Parallels.
    okay, not sure if that software does something similar. have you looked in your syslog config file, /etc/syslog.conf by default, for any entries that would send messages to all logged in users via wall (e.g., "*"), or to /dev/console?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •