ALBANIA

ARGENTINA

AUSTRALIA

AUSTRIA

AZERBAIJAN

BANGLADESH

BELGIUM

BOSNIA AND HERZEGOVINA

BRAZIL

BULGARIA

CANADA

CHILE

CHINA

COLOMBIA

COSTA RICA

CROATIA

CYPRUS

CZECH REPUBLIC

DENMARK

ECUADOR

EGYPT

EL SALVADOR

ESTONIA

FINLAND

FRANCE

GEORGIA

GERMANY

GREECE

GUATEMALA

HUNGARY

ICELAND

INDIA

INDONESIA

IRELAND

ISRAEL

ITALY

JAPAN

KAZAKHSTAN

KENYA

KOSOVO

LATVIA

LIBYA

LITHUANIA

LUXEMBOURG

MALAYSIA

MALTA

MEXICO

MOLDOVA

MONTENEGRO

MOROCCO

NETHERLANDS

NEW ZEALAND

NIGERIA

NORWAY

PAKISTAN

PANAMA

PARAGUAY

PERU

PHILIPPINES

POLAND

PORTUGAL

QATAR

ROMANIA

RUSSIA

SAUDI ARABIA

SERBIA

SINGAPORE

SLOVAKIA

SLOVENIA

SOUTH AFRICA

SOUTH KOREA

SPAIN

SWEDEN

SWITZERLAND

TAIWAN

THAILAND

TUNISIA

TURKEY

UKRAINE

UNITED ARAB EMIRATES

UNITED KINGDOM

URUGUAY

USA

UZBEKISTAN

VIETNAM

Resolving ‘Stats not working’ Error in Plesk

Plesk statistics may sometimes stop updating correctly due to issues with cron jobs or other system configurations. To fix this, we will set up the necessary cron jobs and verify the setup.

Step 1: Create Cron Jobs

  • Access your server using SSH as the root user.

  • Edit the cron jobs configuration for the system user.

  • Add the cron jobs to the configuration file.

  • Save the changes and exit the editor.

Learn More: How To Setup A Cron Job?

Step 2: Test the Statistics Script

After setting up the cron jobs, you can manually run the statistics script to verify if it works correctly for your domain.

  • Replace xxx.com with your actual domain name.

  • Execute the following command:

    /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=xxx.com

  • Expected Output:

    If everything is set up correctly, the script will process and update the statistics for the specified domain without any errors.

Step 3: Verify Cron Job Execution

To ensure the cron jobs are functioning properly:

  • Check the system logs for cron job executions:

    cat /var/log/cron

  • Look for entries that confirm the scheduled execution of the backupmng and statistics commands.

Additional Notes

  • Replace xxx.com with your actual domain name every time you see it in commands.

  • If the statistics script produces errors, ensure that the paths mentioned in the cron jobs and commands match your Plesk installation.

  • Use /usr/local/psa/bin/admin --show-statistics to verify statistics data, if necessary.

By following these steps, you should resolve the issue of statistics not working in Plesk. For further assistance, feel free to reach out to COLO BIRD support.