Closed remixlearning closed 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.
Thanks for your response. I ended up defaulting my php to the MAMP version, and ran it with sudo and it works.
Great! I've updated the README
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
ASmodSystemSetting_key
,modSystemSetting
.value
ASmodSystemSetting_value
,modSystemSetting
.xtype
ASmodSystemSetting_xtype
,modSystemSetting
.namespace
ASmodSystemSetting_namespace
,modSystemSetting
.area
ASmodSystemSetting_area
,modSystemSetting
.editedon
ASmodSystemSetting_editedon
FROMmodx_system_settings
ASmodSystemSetting
WHEREmodSystemSetting
.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: SELECTmodNamespace
.name
ASmodNamespace_name
,modNamespace
.path
ASmodNamespace_path
,modNamespace
.assets_path
ASmodNamespace_assets_path
FROMmodx_namespaces
ASmodNamespace
WHEREmodNamespace
.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: SELECTmodSystemSetting
.key
ASmodSystemSetting_key
,modSystemSetting
.value
ASmodSystemSetting_value
,modSystemSetting
.xtype
ASmodSystemSetting_xtype
,modSystemSetting
.namespace
ASmodSystemSetting_namespace
,modSystemSetting
.area
ASmodSystemSetting_area
,modSystemSetting
.editedon
ASmodSystemSetting_editedon
FROMmodx_system_settings
ASmodSystemSetting
WHEREmodSystemSetting
.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: SELECTmodSystemSetting
.key
ASmodSystemSetting_key
,modSystemSetting
.value
ASmodSystemSetting_value
,modSystemSetting
.xtype
ASmodSystemSetting_xtype
,modSystemSetting
.namespace
ASmodSystemSetting_namespace
,modSystemSetting
.area
ASmodSystemSetting_area
,modSystemSetting
.editedon
ASmodSystemSetting_editedon
FROMmodx_system_settings
ASmodSystemSetting
WHEREmodSystemSetting
.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: SELECTmodSystemSetting
.key
ASmodSystemSetting_key
,modSystemSetting
.value
ASmodSystemSetting_value
,modSystemSetting
.xtype
ASmodSystemSetting_xtype
,modSystemSetting
.namespace
ASmodSystemSetting_namespace
,modSystemSetting
.area
ASmodSystemSetting_area
,modSystemSetting
.editedon
ASmodSystemSetting_editedon
FROMmodx_system_settings
ASmodSystemSetting
WHEREmodSystemSetting
.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: SELECTmodSystemSetting
.key
ASmodSystemSetting_key
,modSystemSetting
.value
ASmodSystemSetting_value
,modSystemSetting
.xtype
ASmodSystemSetting_xtype
,modSystemSetting
.namespace
ASmodSystemSetting_namespace
,modSystemSetting
.area
ASmodSystemSetting_area
,modSystemSetting
.editedon
ASmodSystemSetting_editedon
FROMmodx_system_settings
ASmodSystemSetting
- [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: SELECTmodSystemSetting
.key
ASmodSystemSetting_key
,modSystemSetting
.value
ASmodSystemSetting_value
,modSystemSetting
.xtype
ASmodSystemSetting_xtype
,modSystemSetting
.namespace
ASmodSystemSetting_namespace
,modSystemSetting
.area
ASmodSystemSetting_area
,modSystemSetting
.editedon
ASmodSystemSetting_editedon
FROMmodx_system_settings
ASmodSystemSetting
WHEREmodSystemSetting
.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: SELECTmodSystemSetting
.key
ASmodSystemSetting_key
,modSystemSetting
.value
ASmodSystemSetting_value
,modSystemSetting
.xtype
ASmodSystemSetting_xtype
,modSystemSetting
.namespace
ASmodSystemSetting_namespace
,modSystemSetting
.area
ASmodSystemSetting_area
,modSystemSetting
.editedon
ASmodSystemSetting_editedon
FROMmodx_system_settings
ASmodSystemSetting
WHEREmodSystemSetting
.key
= ? -ERROR: Package is not installed. Run "install" instead.