Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find a binary for md5sum #387

Open
amcguireweb opened this issue Dec 17, 2018 · 3 comments
Open

Could not find a binary for md5sum #387

amcguireweb opened this issue Dec 17, 2018 · 3 comments

Comments

@amcguireweb
Copy link

amcguireweb commented Dec 17, 2018

Hello - I'm trying to configure the cron to run locally on my Mac using Valet Plus. I am emailing myself via the crontab and continue to get the error "Could not find a binary for md5sum." Not sure how to resolve. I have installed md5sum.

cron-error-md5sum

Using Valet Plus for my local environment, Mac is on Mojave 10.14.2. Thanks for your time.

@amcguireweb
Copy link
Author

amcguireweb commented Dec 17, 2018

It looks like for Mojave, Full Disk Access prevents you from changing system files (which includes privacy related data as well as system configuration like the crontabs).

https://stackoverflow.com/a/52590601/1830601

In order to resolve the error, I also had to change line 86 of scheduler_cron.sh from
MD5SUM_BIN=$(which md5sum || true)
to
MD5SUM_BIN="/usr/local/bin/md5sum"

@amcguireweb
Copy link
Author

amcguireweb commented Dec 17, 2018

After enabling Full Disk Access for Mojave and updating the path for md5sum, the error for md5sum stopped but I began getting the following error:

Fatal error: Uncaught PDOException: SQLSTATE[HY000] [2002] No such file or directory in /lib/Zend/Db/Adapter/Pdo/Abstract.php:128
Stack trace:
#0 /lib/Zend/Db/Adapter/Pdo/Abstract.php(128): PDO->__construct('mysql:host=loca...', 'root', 'root', Array)
#1 /lib/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect()
#2 /lib/Varien/Db/Adapter/Pdo/Mysql.php(396): Zend_Db_Adapter_Pdo_Mysql->_connect()
#3 /lib/Zend/Db/Adapter/Abstract.php(460): Varien_Db_Adapter_Pdo_Mysql->_connect()
#4 /lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#5 /lib/Varien/Db/Adapter/Pdo/Mysql.php(504): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#6 /app/code/core/Mage/Core/Model/Resource.php(179): Varien_Db_Adapter_Pdo_Mysql-> in /lib/Zend/Db/Adapter/Pdo/Abstract.php on line 144

Changing the host value from localhost to 127.0.0.1 in local.xml resolved this error and cron seems to now be working.

@amcguireweb
Copy link
Author

amcguireweb commented Jan 8, 2019

I ended up copying the contents of scheduler_cron.sh to a new file named local_scheduler_cron.sh in the root of Magento, making the above changes, added the new local file to my .gitignore, and modified my local crontab to call the local bash script instead. Now it's working locally and on our development and production instances.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant