• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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