upgrading to 1.2.0 - problems with SpamAssassin+setupRebuildCustomerFiles - Exit code: 1

  • Hello there - to bad - again I need to ask for your help.
    I bet it's easy to solve but I got no clue - maybe one of you can help:


    When upgrading to imscp 1.2.0 i got the following errors (see sc).


    Code
    1. [ERROR]main::setupRebuildCustomerFiles:[WARN]iMSCP::Debug::__ANON__: "my" variable $rs masks earlier declaration in same scope at /var/www/imscp/gui/plugins/SpamAssassin/backend/SpamAssassin.pm line 1222, <$fh> line 516.iMSCP::Debug::__ANON__: "my" variable $rs masks earlier declaration in same scope at /var/www/imscp/gui/plugins/SpamAssassin/backend/SpamAssassin.pm line 1308, <$fh> line 516.iMSCP::Debug::__ANON__: "my" variable $rs masks earlier declaration in same scope at /var/www/imscp/gui/plugins/SpamAssassin/backend/SpamAssassin.pm line 1311, <$fh> line 516.[ERROR]main::_process: Error while processing 1, SpamAssassin, tochange.main::_process: See /var/log/imscp/Plugin_module_SpamAssassin.log for more details.iMSCP::File::get: Unable to open /var/www/imscp/gui/public/tools/webmail/config/main.inc.php: No such file or directoryPlugin::SpamAssassin::_setRoundcubePlugin: Unable to read /var/www/imscp/gui/public/tools/webmail/config/main.inc.php[FATAL]Exit code: 1autoinstaller::Functions::install: An error occured while performing installation steps



    Plugin_module_SpamAssasin.log:

    Code
    1. [Sun Jan 11 12:13:10 2015] [debug] iMSCP::File::copyFile: Changing owner and group for /etc/imscp/cron.d/backup/imscp.1420974790 to 0:0
    2. [Sun Jan 11 12:13:10 2015] [debug] iMSCP::File::save: Saving file /etc/imscp/cron.d/working/imscp
    3. [Sun Jan 11 12:13:10 2015] [debug] iMSCP::File::mode: Changing mode for /etc/imscp/cron.d/working/imscp to 640
    4. [Sun Jan 11 12:13:10 2015] [debug] iMSCP::File::owner: Changing owner and group for /etc/imscp/cron.d/working/imscp to 0:0
    5. [Sun Jan 11 12:13:10 2015] [debug] iMSCP::File::copyFile: Copying file /etc/imscp/cron.d/working/imscp to /etc/cron.d/imscp
    6. [Sun Jan 11 12:13:10 2015] [debug] iMSCP::File::copyFile: Changing mode for /etc/cron.d/imscp to 640
    7. [Sun Jan 11 12:13:10 2015] [debug] iMSCP::File::copyFile: Changing owner and group for /etc/cron.d/imscp to 0:0
    8. [Sun Jan 11 12:13:10 2015] [error] iMSCP::File::get: Unable to open /var/www/imscp/gui/public/tools/webmail/config/main.inc.php: No such file or directory
    9. [Sun Jan 11 12:13:10 2015] [error] Plugin::SpamAssassin::_setRoundcubePlugin: Unable to read /var/www/imscp/gui/public/tools/webmail/config/main.inc.php


    Anyone encountered something like that?
    Else I will try to disable SpamAssasin and upgrade again.


    Thanks for ideas :)
    Greets from Austria!

    Files

    • server_2.JPG

      (43.54 kB, downloaded 67 times, last: )
    • server_1.JPG

      (31.08 kB, downloaded 69 times, last: )
  • Hello ;


    In the 1.2.0 errata file, it is clearly stated that you should disable all plugins before upgrading...


    You've two problem here:

    • The backend of the SpamAssassin plugin has some variables which are declared many time, leading to some "my" variable $rs masks earlier declaration in same scope
    • Your SpamAssassin plugin version is not compatible with i-MSCP 1.2.0


    So here you must in order:

    • Disable the SpamAssassin plugin ( in the database directly )
    • Upgrade to i-MSCP 1.2.0
    • Upgrade your SpamAssassin plugin by fetching last available version from our plugin store.


    Next time, read the errata file correctly.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Hello,


    i have the same Problem at the 1.1.21 update. How i can disable the SpamAssissin in the database directly. The Admin Interface from i-mscp is not running and so i cannot run the phpmyadmin.


    Greeting Detlev

  • Hello,


    i have the same Problem at the 1.1.21 update. How i can disable the SpamAssissin in the database directly. The Admin Interface from i-mscp is not running and so i cannot run the phpmyadmin.


    Greeting Detlev


    Here are the imscp-Setup.log:
    [Sun Feb 1 11:08:25 2015] [debug] iMSCP::Bootstrapper::unlock: Release exclusive lock on /tmp/imscp.lock
    [Sun Feb 1 11:08:31 2015] [debug] iMSCP::Execute::getExitCode: External command exited with value 255
    [Sun Feb 1 11:08:31 2015] [debug] iMSCP::Bootstrapper::lock: Acquire exclusive lock on /tmp/imscp.lock
    [Sun Feb 1 11:08:31 2015] [error] main::setupRebuildCustomerFiles:
    "my" variable $rs masks earlier declaration in same scope at /var/www/imscp/gui/plugins/SpamAssassin/backend/SpamAssassin.pm line 1226, <$fh> line 496.
    "my" variable $rs masks earlier declaration in same scope at /var/www/imscp/gui/plugins/SpamAssassin/backend/SpamAssassin.pm line 1312, <$fh> line 496.
    "my" variable $rs masks earlier declaration in same scope at /var/www/imscp/gui/plugins/SpamAssassin/backend/SpamAssassin.pm line 1315, <$fh> line 496.


    [ERROR]


    Plugin::SpamAssassin::_updateSpamassassinRules: can't resolve "config" to address at /usr/lib/perl5/Net/DNS/Resolver/Base.pm line 776.
    Plugin::SpamAssassin::_restartDaemon: child process [3596] exited or timed out without signaling production of a PID file: exit 255 at /usr/sbin/spamd line 2960.


    [ERROR]


    main::_process: Error while processing 1, SpamAssassin, tochange.
    main::_process: See /var/log/imscp/Plugin_module_SpamAssassin.log for more details.


    [Sun Feb 1 11:08:31 2015] [debug] iMSCP::Execute::execute: Executing command: /usr/bin/dialog --colors --title 'Setup Dialog' --backtitle 'i-MSCP - internet Multi Server Contro$
    \Z1[ERROR]\Zn


    Error while performing step:


    Rebuilding customers files


    Error was:


    \Z1main::setupRebuildCustomerFiles:
    "my" variable $rs masks earlier declaration in same scope at /var/www/imscp/gui/plugins/SpamAssassin/backend/SpamAssassin.pm line 1226, <$fh> line 496.
    "my" variable $rs masks earlier declaration in same scope at /var/www/imscp/gui/plugins/SpamAssassin/backend/SpamAssassin.pm line 1312, <$fh> line 496.
    "my" variable $rs masks earlier declaration in same scope at /var/www/imscp/gui/plugins/SpamAssassin/backend/SpamAssassin.pm line 1315, <$fh> line 496.


    [ERROR]


    Plugin::SpamAssassin::_updateSpamassassinRules: can'\''t resolve "config" to address at /usr/lib/perl5/Net/DNS/Resolver/Base.pm line 776.
    Plugin::SpamAssassin::_restartDaemon: child process [3596] exited or timed out without signaling production of a PID file: exit 255 at /usr/sbin/spamd line 2960.


    [ERROR]


    main::_process: Error while processing 1, SpamAssassin, tochange.
    main::_process: See /var/log/imscp/Plugin_module_SpamAssassin.log for more details.
    \Zn


    Please, post on http://i-mscp.net/forum to get any help.
    ' 21 78
    [Sun Feb 1 11:08:42 2015] [debug] iMSCP::Execute::getExitCode: External command exited with value 0
    [Sun Feb 1 11:08:42 2015] [error] autoinstaller::Functions::install: An error occured while performing installation steps
    [Sun Feb 1 11:08:42 2015] [debug] iMSCP::Execute::execute: Executing command: /usr/sbin/service proftpd start 2>/dev/null
    [Sun Feb 1 11:08:42 2015] [debug] iMSCP::Execute::getExitCode: External command exited with value 0
    [Sun Feb 1 11:08:42 2015] [debug] Servers::ftpd::proftpd::start: * Starting ftp server proftpd
    ...done.
    [Sun Feb 1 11:08:42 2015] [debug] iMSCP::Execute::execute: Executing command: /usr/sbin/service mysql restart 2>/dev/null
    [Sun Feb 1 11:08:50 2015] [debug] iMSCP::Execute::getExitCode: External command exited with value 0
    [Sun Feb 1 11:08:50 2015] [debug] Servers::sqld::mysql::restart: mysql stop/waiting
    mysql start/running, process 3763

  • Please, search on our forum. We already explained X time how to disable a plugin manually.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Hallo Nuxwin,


    Please, search on our forum. We already explained X time how to disable a plugin manually.


    Many thanks for this great tipp. I found the right solution here.


    Now, this i-mscp is running
    regards Detlev