• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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