• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

cron 50plesk-daily returns code 2?

theWoosh

Basic Pleskian
Hi for some time I have received daily emails saying:
run-parts: /etc/cron.daily/50plesk-daily exited with return code 2

...does this mean that some part of the daily plesk tasks is returning an error? should I be trying to find out which? and what would be the best way to find out? (and fix it!)

It used to say (up until february):

/etc/cron.daily/logrotate:
Reopen NGINX log files: ...done.

... and then it started saying:
run-parts: /etc/cron.daily/50plesk-daily exited with return code 2
/etc/cron.daily/logrotate:
Reopen NGINX log files: ...done.

...and then switched (on the 8th March) to the current message...

Anyone have any ideas?

[Interestingly, recently this message (and some others from cron) started being emailed to me twice (a few minutes apart) a couple of days before on the 5th March and have continued that way - weird...]
 
Last edited:
Well now I have the log - the debugging begins - Here it is (I have removed repeating elements and replaced by '.'s) - any suggestions welcome!

+ export PLESK_DEBUG_LEVEL=4
+ /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php
[2016-05-16 06:47:48] ERR [panel] Unable fetch package WordPress 3.8.1 28 updates from catalog marketplace: Could not resolve host: catalog.marketplace.parallels.com
.
.
.
[2016-05-16 06:52:14] ERR [panel] Error: ODBC error #08S01: [unixODBC][MySQL][ODBC 5.2(w) Driver]Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[2016-05-16 06:52:15] ERR [util_exec] proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
.
.
.
[2016-05-16 06:53:41] ERR [util_exec] proc_close() failed
[2016-05-16 06:53:41] ERR [util_exec] proc_close() failed
.
.
.
.
Error occured while sending feedback. HTTP code returned: 502
[2016-05-16 06:54:00] ERR [util_exec] proc_close() failed
.
.
[2016-05-16 06:53:41] ERR [util_exec] proc_close() failed
.
.
.
Error occured while sending feedback. HTTP code returned: 502
[2016-05-16 06:54:00] ERR [util_exec] proc_close() failed
.
.
.
[2016-05-16 06:55:24] ERR [util_exec] proc_close() failed
.
.
.
+ /opt/psa/bin/mysqldump.sh
 
...for the fiirst of them - I can't telnet to catalog.marketplace.parallels.com from the server... I get connection refused (but it does resolve the domain...)

I guess this is the one giving the error though:
...[unixODBC][MySQL][ODBC 5.2(w) Driver]Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
 
I can't find a mysql.sock file on the machine... (there is a mysqld.sock)
/etc/odbcinst.ini reads:

[MySQL]
Description = MySQL driver for Plesk
Driver = /usr/lib/x86_64-linux-gnu/odbc/libmyodbc5w.so
Setup =
FileUsage = 1
Driver64 =
Setup64 =
UsageCount = 1

...and /usr/lib/x86_64-linux-gnu/odbc/libmyodbc5w.so exists...
 
Last edited:
What Plesk and OS version are you using?
This is what i have on my test machines...

Plesk 12.5 and Ubuntu 14.04 LTS
/etc/odbcinst.ini
Code:
[MySQL]
Description = MySQL driver for Plesk
Driver      = /usr/lib/x86_64-linux-gnu/odbc/libmyodbc5w-plesk.so
Setup       =
FileUsage   = 1
Driver64    =
Setup64     =
UsageCount  = 1


Plesks 12.5 and CentOS 7.2
/etc/odbcinst.ini
Code:
# Example driver definitions

# Driver from the postgresql-odbc package
# Setup from the unixODBC package
[PostgreSQL]
Description    = ODBC for PostgreSQL
Driver        = /usr/lib/psqlodbcw.so
Setup        = /usr/lib/libodbcpsqlS.so
Driver64    = /usr/lib64/psqlodbcw.so
Setup64        = /usr/lib64/libodbcpsqlS.so
FileUsage    = 1


# Driver from the mysql-connector-odbc package
# Setup from the unixODBC package
[MySQL]
Description = MySQL driver for Plesk
Driver      = /usr/lib64/odbc/libmyodbc5w-plesk.so
Setup       =
FileUsage   = 1
Driver64    = /usr/lib64/odbc/libmyodbc5w-plesk.so
Setup64     =
UsageCount  = 1

Regards

Lloyd
 
Hi Lloyd - this is Ubuntu 14.04LTS running Plesk 12.0.18 Update #78,
/etc/odbcinst.ini:
[MySQL]
Description = MySQL driver for Plesk
Driver = /usr/lib/x86_64-linux-gnu/odbc/libmyodbc5w.so
Setup =
FileUsage = 1
Driver64 =
Setup64 =
UsageCount = 1

... don't have a /usr/lib64...
 
Back
Top