imscp_traffic status error and upgrade

  • Hello,



    I tried upgrade iMSCP 1.3.0 -> iMSCP 1.3.1, but I got an error message and the upgrade process stopped:



    ---


    [ERROR]


    │ Error while performing step:


    │ Processing setup tasks


    │ Error was:


    │iMSCP::Stepper::_callback: Could not restart the imscp_traffic service: iMSCP::Provider::Service::Sysvinit::_exec: Job for imscp_traffic.service failed. See


    │ 'systemctl status imscp_traffic.service' and 'journalctl -xn' for details. at /usr/local/src/imscp-1.3.1/engine/PerlLib/iMSCP/Service.pm line 206.


    │ Please have a look at http://i-mscp.net/forum if you need help.


    ---


    I looked the forum. I found a intrest post: https://i-mscp.net/index.php/T…ic-service-i-MSCP-1-2-16/



    I rollback my old system to iMSCP 1.3.0 and I try check on my old server this instruction:





    Code
    1. service imscp_traffic status


    Result:

    Code
    1. ● imscp_traffic.service - i-MSCP traffic logger
    2. Loaded: loaded (/etc/systemd/system/imscp_traffic.service; enabled)
    3. Active: failed (Result: exit-code) since v 2016-09-25 13:14:10 CEST; 11min ago
    4. Process: 463 ExecStart=/usr/bin/perl /var/www/imscp/engine/tools/imscp-net-traffic-logger start (code=exited, status=1/FAILURE)
    5. Main PID: 463 (code=exited, status=1/FAILURE)
    6. szept 25 13:14:09 admin systemd[1]: Starting i-MSCP traffic logger...
    7. szept 25 13:14:10 admin perl[463]: [ERROR] main::start: iptables: Chain already exists.
    8. szept 25 13:14:10 admin systemd[1]: imscp_traffic.service: main process exited, code=exited, status=1/FAILURE
    9. szept 25 13:14:10 admin systemd[1]: Failed to start i-MSCP traffic logger.
    10. szept 25 13:14:10 admin systemd[1]: Unit imscp_traffic.service entered failed state.



    but my iMSCP 1.3.0 server working is perfect. I could upgrade it (iMSCP 1.2.17 > iMSCP 1.3.0) without fail.



    What is the error? How can I fix it, that I can upgrade the system is iMSCP 1.3.3 (latest update)?



    My system is now Debian 8.6



    Thx!



    Robert

  • You don't need to upgrade to each version, just upgrade to latest version directly..

  • [ERROR] main::start: iptables: Chain already exists

    So, do


    Code
    1. perl /var/www/imscp/engine/tools/imscp-net-traffic-logger -v stop


    Once done restart the installer (from version 1.3.3)

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

  • Thank you for your answer Nuxwin!


    I stopped this service and I tried upgrade iMSCP again and I got more errors:


    Install panel:


    Code
    1. [ERROR]Error while performing step: Processing setup tasksError was:iMSCP::Stepper::_callback: Could not restart the imscp_traffic service:iMSCP::Provider::Service::Sysvinit::_exec: Job for imscp_traffic.service failed. See 'systemctl status imscp_traffic.service' and 'journalctl -xn' for details. at /usr/local/src/imscp-1.3.3/engine/PerlLib/iMSCP/Service.pm line 206. Please have a look at http://i-mscp.net/forum if you need help.


    shell: new errors



    Code
    1. [ERROR] Servers::named::bind::addCustomDNS: Could not dump projekt-tanacsadas.hu zone: /etc/imscp/bind/working/projekt-tanacsadas.hu.db:27: unknown RR type '60'zone projekt-tanacsadas.hu/IN: loading from master file /etc/imscp/bind/working/projekt-tanacsadas.hu.db failed: unknown class/typezone projekt-tanacsadas.hu/IN: not loaded due to errors.Servers::named::bind::addCustomDNS: Could not dump matrixcbs-server.info zone: /etc/imscp/bind/working/matrixcbs-server.info.db:41: unknown RR type '60'zone matrixcbs-server.info/IN: loading from master file /etc/imscp/bind/working/matrixcbs-server.info.db failed: unknown class/typezone matrixcbs-server.info/IN: not loaded due to errors.Servers::named::bind::addCustomDNS: Could not dump usis.me zone: /etc/imscp/bind/working/usis.me.db:83: unknown RR type '60'zone usis.me/IN: loading from master file /etc/imscp/bind/working/usis.me.db failed: unknown class/typezone usis.me/IN: not loaded due to errors.Servers::named::bind::addCustomDNS: Could not dump m-telesales.hu zone: /etc/imscp/bind/working/m-telesales.hu.db:27: unknown RR type '60'zone m-telesales.hu/IN: loading from master file /etc/imscp/bind/working/m-telesales.hu.db failed: unknown class/typezone m-telesales.hu/IN: not loaded due to errors.iMSCP::Stepper::_callback: Could not restart the imscp_traffic service: iMSCP::Provider::Service::Sysvinit::_exec: Job for imscp_traffic.service failed. See 'systemctl status imscp_traffic.service' and 'journalctl -xn' for details. at /usr/local/src/imscp-1.3.3/engine/PerlLib/iMSCP/Service.pm line 206.autoinstaller::Functions::install: An error occurred while performing installation steps


    Domain error - example (#cat /etc/imscp/bind/working/projekt-tanacsadas.hu.db)




    I didn't change configuration, all origin iMSCP are config files.


    Robert

  • mail._domainkey 60 60 IN TXT "v=DKIM1; k=rsa; s=email; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC5eO0bqA65vQV93A5FN5f1XjBwxriDjcTn3q+mJHS/Zi/E7C4MBrIkGMJV3m3qCfpx57CFJXOaWkiqqE9xERUMeKdtfB/oSRsT1DqErNp7nCWbgBzUa1e4RvT19ORJ7Bv02CfQc4kg+sDkXrHI9mFAvC6+BPRdTPziSkLwIDAQAB"

    • Ensure that you have not any other script that setup iptable, remove any iptable rule
    • Disable the opendkim plugin manually (search on our forum to know how)
    • Rerun the installer
    • Deinstall your current version of the OpenDKIM plugin
    • Install the latest version of the OpenDKIM

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

    • Ensure that you have not any other script that setup iptable, remove any iptable rule

    I change my iptables:


    #perl /var/www/imscp/engine/tools/imscp-net-traffic-logger -v stop

    Code
    1. [DEBUG] iMSCP::Bootstrapper::boot: Booting backend....[DEBUG] iMSCP::Config::_init: Tying /etc/imscp/imscp.conf file[DEBUG] iMSCP::Execute::execute: iptables -S[DEBUG] main::stop: -P INPUT ACCEPT-P FORWARD ACCEPT-P OUTPUT ACCEPT-A INPUT -i lo -j ACCEPT-A INPUT -m conntrack --ctstate INVALID -j DROP-A INPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT-A OUTPUT -o lo -j ACCEPT-A OUTPUT -j ACCEPT


    • Disable the opendkim plugin manually (search on our forum to know how)

    I disabled all plugins and I uninstalled the opendkim.

    • Rerun the installer

    I got again error same message:


    Code
    1. [ERROR] iMSCP::Stepper::_callback: Could not restart the imscp_traffic service: iMSCP::Provider::Service::Sysvinit::_exec: Job for imscp_traffic.service failed. See 'systemctl status imscp_traffic.service' and 'journalctl -xn' for details. at /usr/local/src/imscp-1.3.3/engine/PerlLib/iMSCP/Service.pm line 206.
    2. autoinstaller::Functions::install: An error occurred while performing installation steps
  • @kalmarr


    Please give us an access to your server.

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