craftsmancoding / repoman

Repoman allows for easy package development in MODX Revolution. Take back the simplicity!
30 stars 7 forks source link

Problems installing repoman manually #12

Closed remixlearning closed 10 years ago

remixlearning commented 10 years ago

After a while it seemed to install but a few times it threw the below errors...

However I think it had to do with the MAMP php vs Mac PHP. I added the MAMP one and it seemed to work.

I am just logging this so you know.

marks-iMac:modx mark$ cd repoman-dev/ marks-iMac:repoman-dev mark$ php repoman install . [2014-03-31 16:08:48](ERROR in xPDOConnection::connect @ /Applications/MAMP/htdocs/modx/core/xpdo/xpdo.class.php : 3054) SQLSTATE[HY000] [2002] No such file or directory [2014-03-31 16:08:48](ERROR in xPDOConnection::connect @ /Applications/MAMP/htdocs/modx/core/xpdo/xpdo.class.php : 3054) SQLSTATE[HY000] [2002] No such file or directory [2014-03-31 16:08:48](ERROR @ repoman) Error preparing statement for query: SELECT modSystemSetting.key AS modSystemSetting_key, modSystemSetting.value AS modSystemSetting_value, modSystemSetting.xtype AS modSystemSetting_xtype, modSystemSetting.namespace AS modSystemSetting_namespace, modSystemSetting.area AS modSystemSetting_area, modSystemSetting.editedon AS modSystemSetting_editedon FROM modx_system_settings AS modSystemSetting WHERE modSystemSetting.key = ? - [2014-03-31 16:08:48](ERROR in xPDOConnection::connect @ /Applications/MAMP/htdocs/modx/core/xpdo/xpdo.class.php : 3054) SQLSTATE[HY000] [2002] No such file or directory [2014-03-31 16:08:48](ERROR in xPDOConnection::connect @ /Applications/MAMP/htdocs/modx/core/xpdo/xpdo.class.php : 3054) SQLSTATE[HY000] [2002] No such file or directory [2014-03-31 16:08:48](ERROR @ repoman) Error preparing statement for query: SELECT modNamespace.name AS modNamespace_name, modNamespace.path AS modNamespace_path, modNamespace.assets_path AS modNamespace_assets_path FROM modx_namespaces AS modNamespace WHERE modNamespace.name = ? - [2014-03-31 16:08:48](ERROR in xPDOConnection::connect @ /Applications/MAMP/htdocs/modx/core/xpdo/xpdo.class.php : 3054) SQLSTATE[HY000] [2002] No such file or directory [2014-03-31 16:08:48](ERROR in xPDOConnection::connect @ /Applications/MAMP/htdocs/modx/core/xpdo/xpdo.class.php : 3054) SQLSTATE[HY000] [2002] No such file or directory [2014-03-31 16:08:48](ERROR @ repoman) Error saving Namespace: repoman [2014-03-31 16:08:48](INFO @ repoman) Namespace created/updated: repoman [2014-03-31 16:08:48](ERROR in xPDOConnection::connect @ /Applications/MAMP/htdocs/modx/core/xpdo/xpdo.class.php : 3054) SQLSTATE[HY000] [2002] No such file or directory [2014-03-31 16:08:48](ERROR in xPDOConnection::connect @ /Applications/MAMP/htdocs/modx/core/xpdo/xpdo.class.php : 3054) SQLSTATE[HY000] [2002] No such file or directory [2014-03-31 16:08:48](ERROR @ repoman) Error preparing statement for query: SELECT modSystemSetting.key AS modSystemSetting_key, modSystemSetting.value AS modSystemSetting_value, modSystemSetting.xtype AS modSystemSetting_xtype, modSystemSetting.namespace AS modSystemSetting_namespace, modSystemSetting.area AS modSystemSetting_area, modSystemSetting.editedon AS modSystemSetting_editedon FROM modx_system_settings AS modSystemSetting WHERE modSystemSetting.key = ? - [2014-03-31 16:08:48](ERROR in xPDOConnection::connect @ /Applications/MAMP/htdocs/modx/core/xpdo/xpdo.class.php : 3054) SQLSTATE[HY000] [2002] No such file or directory [2014-03-31 16:08:48](ERROR in xPDOConnection::connect @ /Applications/MAMP/htdocs/modx/core/xpdo/xpdo.class.php : 3054) SQLSTATE[HY000] [2002] No such file or directory [2014-03-31 16:08:48](ERROR @ repoman) Error saving System Setting: repoman.assets_url [2014-03-31 16:08:48](ERROR in xPDOConnection::connect @ /Applications/MAMP/htdocs/modx/core/xpdo/xpdo.class.php : 3054) SQLSTATE[HY000] [2002] No such file or directory [2014-03-31 16:08:48](ERROR in xPDOConnection::connect @ /Applications/MAMP/htdocs/modx/core/xpdo/xpdo.class.php : 3054) SQLSTATE[HY000] [2002] No such file or directory [2014-03-31 16:08:48](ERROR @ repoman) Error preparing statement for query: SELECT modSystemSetting.key AS modSystemSetting_key, modSystemSetting.value AS modSystemSetting_value, modSystemSetting.xtype AS modSystemSetting_xtype, modSystemSetting.namespace AS modSystemSetting_namespace, modSystemSetting.area AS modSystemSetting_area, modSystemSetting.editedon AS modSystemSetting_editedon FROM modx_system_settings AS modSystemSetting WHERE modSystemSetting.key = ? - [2014-03-31 16:08:48](ERROR in xPDOConnection::connect @ /Applications/MAMP/htdocs/modx/core/xpdo/xpdo.class.php : 3054) SQLSTATE[HY000] [2002] No such file or directory [2014-03-31 16:08:48](ERROR in xPDOConnection::connect @ /Applications/MAMP/htdocs/modx/core/xpdo/xpdo.class.php : 3054) SQLSTATE[HY000] [2002] No such file or directory [2014-03-31 16:08:48](ERROR @ repoman) Error saving System Setting: repoman.assets_path [2014-03-31 16:08:48](ERROR in xPDOConnection::connect @ /Applications/MAMP/htdocs/modx/core/xpdo/xpdo.class.php : 3054) SQLSTATE[HY000] [2002] No such file or directory [2014-03-31 16:08:48](ERROR in xPDOConnection::connect @ /Applications/MAMP/htdocs/modx/core/xpdo/xpdo.class.php : 3054) SQLSTATE[HY000] [2002] No such file or directory [2014-03-31 16:08:48](ERROR @ repoman) Error preparing statement for query: SELECT modSystemSetting.key AS modSystemSetting_key, modSystemSetting.value AS modSystemSetting_value, modSystemSetting.xtype AS modSystemSetting_xtype, modSystemSetting.namespace AS modSystemSetting_namespace, modSystemSetting.area AS modSystemSetting_area, modSystemSetting.editedon AS modSystemSetting_editedon FROM modx_system_settings AS modSystemSetting WHERE modSystemSetting.key = ? - [2014-03-31 16:08:48](ERROR in xPDOConnection::connect @ /Applications/MAMP/htdocs/modx/core/xpdo/xpdo.class.php : 3054) SQLSTATE[HY000] [2002] No such file or directory [2014-03-31 16:08:48](ERROR in xPDOConnection::connect @ /Applications/MAMP/htdocs/modx/core/xpdo/xpdo.class.php : 3054) SQLSTATE[HY000] [2002] No such file or directory [2014-03-31 16:08:48](ERROR @ repoman) Error saving System Setting: repoman.core_path [2014-03-31 16:08:48](ERROR in xPDOConnection::connect @ /Applications/MAMP/htdocs/modx/core/xpdo/xpdo.class.php : 3054) SQLSTATE[HY000] [2002] No such file or directory [2014-03-31 16:08:48](ERROR in xPDOConnection::connect @ /Applications/MAMP/htdocs/modx/core/xpdo/xpdo.class.php : 3054) SQLSTATE[HY000] [2002] No such file or directory [2014-03-31 16:08:48](ERROR @ repoman) Error preparing statement for query: SELECT modSystemSetting.key AS modSystemSetting_key, modSystemSetting.value AS modSystemSetting_value, modSystemSetting.xtype AS modSystemSetting_xtype, modSystemSetting.namespace AS modSystemSetting_namespace, modSystemSetting.area AS modSystemSetting_area, modSystemSetting.editedon AS modSystemSetting_editedon FROM modx_system_settings AS modSystemSetting - [2014-03-31 16:08:48](ERROR in xPDOConnection::connect @ /Applications/MAMP/htdocs/modx/core/xpdo/xpdo.class.php : 3054) SQLSTATE[HY000] [2002] No such file or directory [2014-03-31 16:08:48](ERROR in xPDOConnection::connect @ /Applications/MAMP/htdocs/modx/core/xpdo/xpdo.class.php : 3054) SQLSTATE[HY000] [2002] No such file or directory [2014-03-31 16:08:48](ERROR @ repoman) Error preparing statement for query: SELECT modSystemSetting.key AS modSystemSetting_key, modSystemSetting.value AS modSystemSetting_value, modSystemSetting.xtype AS modSystemSetting_xtype, modSystemSetting.namespace AS modSystemSetting_namespace, modSystemSetting.area AS modSystemSetting_area, modSystemSetting.editedon AS modSystemSetting_editedon FROM modx_system_settings AS modSystemSetting WHERE modSystemSetting.key = ? - [2014-03-31 16:08:48](ERROR in xPDOConnection::connect @ /Applications/MAMP/htdocs/modx/core/xpdo/xpdo.class.php : 3054) SQLSTATE[HY000] [2002] No such file or directory [2014-03-31 16:08:48](ERROR in xPDOConnection::connect @ /Applications/MAMP/htdocs/modx/core/xpdo/xpdo.class.php : 3054) SQLSTATE[HY000] [2002] No such file or directory [2014-03-31 16:08:48](ERROR @ repoman) Error saving System Setting: repoman.version [2014-03-31 16:08:48](ERROR in xPDOConnection::connect @ /Applications/MAMP/htdocs/modx/core/xpdo/xpdo.class.php : 3054) SQLSTATE[HY000] [2002] No such file or directory [2014-03-31 16:08:48](ERROR in xPDOConnection::connect @ /Applications/MAMP/htdocs/modx/core/xpdo/xpdo.class.php : 3054) SQLSTATE[HY000] [2002] No such file or directory [2014-03-31 16:08:48](ERROR @ repoman) Error preparing statement for query: SELECT modSystemSetting.key AS modSystemSetting_key, modSystemSetting.value AS modSystemSetting_value, modSystemSetting.xtype AS modSystemSetting_xtype, modSystemSetting.namespace AS modSystemSetting_namespace, modSystemSetting.area AS modSystemSetting_area, modSystemSetting.editedon AS modSystemSetting_editedon FROM modx_system_settings AS modSystemSetting WHERE modSystemSetting.key = ? -

ERROR: Package is not installed. Run "install" instead.

fireproofsocks commented 10 years ago

The SQLSTATE error sometimes means that your config file could not be located. Did you clone this into a directory inside of your MODX public web root? And did you run "composer install" before attempting to install repoman?

I've had problems with MAMP because of permissions: it requires admin privileges to write to the MODX cache directory, so installing repoman on a MAMP instance requires sudo. You make a good point: I think it will be problematic if you rely on the native Mac PHP -- you should symlink the MAMP version of PHP for this. If you can confirm that behavior I can update the README.

Lastly, you can add "--log_level=4" to your command:

sudo php repoman install . --log_level=4

That will print out more verbose messages and my guess is that there's a fatal error early on there regarding permissions and the inability of your current user to create a new directory in the cache folder.

remixlearning commented 10 years ago

Thanks for your response. I ended up defaulting my php to the MAMP version, and ran it with sudo and it works.

fireproofsocks commented 10 years ago

Great! I've updated the README