Open Discussion → Popfile crash - Ubuntu 9.04

Popfile crash - Ubuntu 9.04

Hi all,

I use popfile on Ubuntu Pc. It's always works fine on Ubuntu 6.04,7.04,8.04. Last week I decide to move on 9.04

On the latest stable Ubuntu POPFILE stops to work.

I start the process manually but it crashes In the log I can find:

2009/11/29 21:33:28 6614: POPFile v1.0.1 starting
2009/11/29 21:33:28 6614: bayes: 747: Attempting to connect to dbi:SQLite2:dbname=/var/lib/popfile/popfile.db (1)
2009/11/29 21:33:28 6614: bayes: 753: Using SQLite library version 2.8.15

I do not find any useful information.

DO you have any suggestions?

BR

Aprile!

  • Message #1130

    When you tried to start POPFile manually did you use the start_popfile.sh script from a terminal? If you did then some messages should have appeared in the terminal window. It would help if you could supply these messages.

    A successful start will generate something like this:

    POPFile Engine loading
    
        Loading... 
             {core: logger mq history config} 
             {classifier: bayes wordmangle} 
             {interface: xmlrpc html} 
             {proxy: smtp pop3 nntp} 
             {services: imap} 
    
    POPFile Engine v1.0.1 starting
    
        Initializing... 
             {core: config history logger mq} 
             {classifier: bayes wordmangle} 
             {interface: html xmlrpc} 
             {proxy: nntp pop3 smtp} 
             {services: imap} 
    
        Starting...     
             {core: config history logger mq} 
             {classifier: bayes wordmangle} 
             {interface: html} 
             {proxy: pop3} 
             {services:} 
    
    POPFile Engine v1.0.1 running
    

    If you used a different method to start POPFile did you see any messages in the terminal window?

    Brian

    • Message #1131

      Brian,

      thanks for your feedback! Normally Popfile starts at the boot [it's a service that I've enalbed). Since it does not work I go in /etc/init.d/popfile start

      After that I can see the two lines I've reported and I notice that the demon dies.

      Any suggestions?

      BR

      Aprile

      • Message #1132

        Here is what my log file shows when I start POPFile and then shut it down on my Xubuntu 9.10 system.

        2009/12/2 12:10:28 1747: -----------------------
        2009/12/2 12:10:28 1747: POPFile v1.0.1 starting
        2009/12/2 12:10:28 1747: bayes: 747: Attempting to connect to dbi:SQLite2:dbname=/var/lib/popfile/popfile.db (1)
        2009/12/2 12:10:28 1747: bayes: 753: Using SQLite library version 2.8.15
        2009/12/2 12:10:28 1747: Warning: POPFile may require Perl module BerkeleyDB; it is needed only for "Upgrades from v0.20.x".
        2009/12/2 12:10:28 1747: Warning: POPFile may require Perl module IO::Socket::Socks; it is needed only for "Socks Proxy Support".
        2009/12/2 12:10:28 1747: Warning: POPFile may require Perl module MeCab; it is needed only for "Japanese Language Support".
        2009/12/2 12:10:28 1747: Warning: POPFile may require Perl module Text::Kakasi; it is needed only for "Japanese Language Support".
        2009/12/2 12:10:28 1747: POPFile successfully started
        2009/12/2 12:10:36 1747: POPFile stopped
        2009/12/2 12:10:36 1747: ---------------
        

        On your system POPFile is not getting as far as reporting these warnings. I suspect POPFile is displaying some console error messages and then stopping. The easiest way to see these console messages is to run this command to start POPFile (instead of the init.d script):

        sudo /usr/share/popfile/start_popfile.sh
        

        Running this command should display some messages which will help identify the problem.

        Brian

        • Message #1138

          Thanks,

          let me try.

          First I do:

          /etc/init.d/popfile stop
          Stopping popfile: start-stop-daemon: warning: failed to kill 8210: No such process
          No process in pidfile `/var/run/popfile/popfile.pid' found running; none killed.
          popfile.

          So NO istance of this process seems to be running

          THAN

          as you suggest sudo /usr/share/popfile/start_popfile.sh

          POPFile Engine loading

          Loading...

          {core: mq config history logger}
          {classifier: wordmangle bayes}
          {interface: xmlrpc html}
          {proxy: smtp nntp pop3}
          {services: imap}

          POPFile Engine v1.0.1 starting

          Initializing...

          {core: config history logger mq}
          {classifier: bayes wordmangle}
          {interface: html xmlrpc}
          {proxy: nntp pop3 smtp}
          {services: imap}

          Starting...

          A copy of POPFile appears to be running.

          Attempting to signal the previous copy.
          Waiting 10 seconds for a reply.

          The other POPFile (8210) failed to signal back, starting new copy (8217)

          {core: config history logger mq}
          {classifier: bayes wordmangle}

          Couldn't start the html HTTP interface because POPFile could not bind to the
          HTTP port 7070. This could be because there is another service
          using that port or because you do not have the right privileges on
          your system (On Unix systems this can happen if you are not root
          and the port you specified is less than 1024).

          Failed to start while starting the html module at /usr/share/popfile/POPFile/Loader.pm line 646.

          NO IDEA.

          THANKS in the meantime [I've disabled my firewall in order to simplify the debugging]

          • Message #1139

            POPFile isn't able to start because there is another process already using port 7070. To find out what process this is, issue the following command:

            sudo lsof -i :7070

            (you may have to install the lsof package first.)

            If you don't want to stop that other process, you can make POPFile bind to a different port by editing /usr/share/popfile/start_popfile.sh Simply find the line near the top that says UIPORT=7070 and change it to something else, for example UIPORT=7072.

            Should you decide to change the port, you wil have to use a different URL to access POPFile's UI. If you change the port to 7072, you must then use http://localhost:7072/

            • Message #1140

              Thanks,

              But there is nothing at this port.

              The command sudo lsof -i :7070 return nothing [If I change the port I see the service so...]

              THANKS

              • Message #1147

                How did you upgrade from Ubuntu 8.04 to 9.04?

                Ubuntu 8.04 uses Perl 5.8.8 and Ubuntu 9.04 uses Perl 5.10.0. POPFile requires some additional Perl modules which are not part of a normal Perl installation. It is possible that your Ubuntu 9.04 system still has some old Perl modules and these are causing the problem.

                I installed Ubuntu 8.04, used the Update Manager to install all of the updates then used the Synaptic Package Manager to install POPFile 1.0.0. Here is the installation log:

                libperl5.8 (version 5.8.8-12) will be upgraded to version 5.8.8-12ubuntu0.4
                perl (version 5.8.8-12) will be upgraded to version 5.8.8-12ubuntu0.4
                perl-base (version 5.8.8-12) will be upgraded to version 5.8.8-12ubuntu0.4
                perl-modules (version 5.8.8-12) will be upgraded to version 5.8.8-12ubuntu0.4
                libcompress-raw-zlib-perl (version 2.008-1ubuntu0.1) will be installed
                libcompress-zlib-perl (version 2.008-1) will be installed
                libconvert-binhex-perl (version 1.119+pristine-2) will be installed
                libcrypt-ssleay-perl (version 0.55-1) will be installed
                libdbd-sqlite2-perl (version 2:0.33-7) will be installed
                libdbi-perl (version 1.601-1) will be installed
                libemail-abstract-perl (version 2.134-1) will be installed
                libemail-date-perl (version 1.102-1) will be installed
                libemail-simple-perl (version 2.003-1) will be installed
                libfcgi-perl (version 0.67-2) will be installed
                libfile-temp-perl (version 0.20-0ubuntu1) will be installed
                libhtml-template-perl (version 2.9-1) will be installed
                libio-compress-base-perl (version 2.008-1) will be installed
                libio-compress-zlib-perl (version 2.008-1) will be installed
                libio-socket-ssl-perl (version 1.02-1) will be installed
                libio-stringy-perl (version 2.110-3) will be installed
                libmailtools-perl (version 2.02-1) will be installed
                libmime-lite-perl (version 3.020-2ubuntu2) will be installed
                libmime-perl (version 5.425-2) will be installed
                libmime-tools-perl (version 5.425-2) will be installed
                libmodule-pluggable-perl (version 3.6-1) will be installed
                libnet-daemon-perl (version 0.38-1.1) will be installed
                libnet-ssleay-perl (version 1.30-1) will be installed
                libossp-uuid-perl (version 1.5.1-1.1ubuntu1) will be installed
                libossp-uuid15 (version 1.5.1-1.1ubuntu1) will be installed
                libplrpc-perl (version 0.2017-1.1) will be installed
                libsoap-lite-perl (version 0.69-2) will be installed
                libtime-piece-perl (version 1.11-2) will be installed
                libtimedate-perl (version 1.1600-9) will be installed
                popfile (version 1.0.0-0ubuntu2) will be installed
                

                POPFile was able to start and I could access and use the UI.

                I then used the Update Manager to upgrade from Ubuntu 8.04 to 8.10. This upgrade changed Perl 5.8.8 to 5.10.0 and POPFile 1.0.0 to 1.0.1. POPFile still started up and the UI still worked.

                I then used the Update Manager to upgrade from Ubuntu 8.10 to 9.04. POPFile still started up and the UI still worked.

                I also tried a clean install of Ubuntu 9.04. After installing 9.04 I used the Update Manager to get all of the updates then used Synaptic Package Manager to install POPFile 1.0.1:

                libconvert-binhex-perl (1.119+pristine-3)
                libcrypt-ssleay-perl (0.57-1)
                libdbd-sqlite2-perl (2:0.33-8)
                libdbi-perl (1.607-1)
                libfcgi-perl (0.67-3)
                libhtml-template-perl (2.9-1)
                libio-socket-ssl-perl (1.18-1)
                libio-stringy-perl (2.110-4)
                libmime-tools-perl (5.427-2)
                libnet-daemon-perl (0.43-1)
                libnet-libidn-perl (0.07-1build1)
                libnet-ssleay-perl (1.35-2ubuntu1)
                libossp-uuid-perl (1.6.2-0ubuntu1)
                libossp-uuid15 (1.6.2-0ubuntu1)
                libplrpc-perl (0.2020-1)
                libsoap-lite-perl (0.710.08-2)
                popfile (1.0.1-0ubuntu2)
                

                POPFile still started up and I could use the UI.

                Brian