This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » legacy support » symfony 1.1 » propel-build-schema error: "...error building XML from metadata: connect failed..."
propel-build-schema error: "...error building XML from metadata: connect failed..." [message #85251] Mon, 14 September 2009 03:22 Go to next message
umbrellacorp
Messages: 4
Registered: September 2009
Junior Member
running into this error after some changes to my dev environment. not sure where to start. i'm running the command:

./symfony propel-build-schema 

from the project directory.

my environment is running the following versions (via MAMP):
apache on mac os x (snow leopard)
mysql 5.0.41
PHP Version 5.2.6


propel > creole:
     [echo] +-----------------------------------------------+
     [echo] |                                               |
     [echo] | Generating XML from Creole connection !       |
     [echo] |                                               |
     [echo] +-----------------------------------------------+
[propel-creole-transform] Propel - CreoleToXMLSchema starting
[propel-creole-transform] Your DB settings are:
[propel-creole-transform] driver : (default)
[propel-creole-transform] URL : mysql://root:root@localhost/umbrellacorp
[propel-creole-transform] There was an error building XML from metadata: connect failed [Native Error: No such file or directory] [User Info: Array]
[propel-creole-transform] Propel - CreoleToXMLSchema finished



it was working fine before the changes. the db credentials are all correct. any ideas?

thanks!
Re: propel-build-schema error: "...error building XML from metadata: connect failed..." [message #85938 is a reply to message #85251 ] Wed, 30 September 2009 04:40 Go to previous messageGo to next message
smarteeformee  is currently offline smarteeformee
Messages: 9
Registered: January 2008
Location: Portland, OR
Junior Member
Hi umbrellacorp,

I am facing the same problem. Running OS X 10.6. PHP 5.3, MySQL 5.4.2

My permissions are correct. I can log into database through other means with the same credentials. It seemed to start randomly.

Happening on multiple symfony sites.

Were you able to find a solutions? Possibly a MySQL socket issue?

Candace

Re: propel-build-schema error: "...error building XML from metadata: connect failed..." [message #85946 is a reply to message #85938 ] Wed, 30 September 2009 07:05 Go to previous messageGo to next message
umbrellacorp
Messages: 4
Registered: September 2009
Junior Member
unfortunately no. i have a working copy on my dev server so i build the schema from there, download it, and then run it on my local db. everything about it is a hack but i didn't have time to fuss with it any longer.

no love from the symfony forums either. i will need to fix this issue though so maybe a bump will help.

anyone?
Re: propel-build-schema error: "...error building XML from metadata: connect failed..." [message #85947 is a reply to message #85946 ] Wed, 30 September 2009 07:39 Go to previous messageGo to next message
smarteeformee  is currently offline smarteeformee
Messages: 9
Registered: January 2008
Location: Portland, OR
Junior Member
I think I got it figured out.

Edited my php.ini with the following:

commented out pdo.mysql.socket at about 1058

set mysql.default_socket to correct socket location
mysql.default_socket = /opt/local/var/run/mysql5/mysqld.sock


set default host (though you may not need to do this):
mysql.default_host = localhost


Hope that helps.
Re: propel-build-schema error: "...error building XML from metadata: connect failed..." [message #86297 is a reply to message #85947 ] Wed, 07 October 2009 04:39 Go to previous messageGo to next message
umbrellacorp
Messages: 4
Registered: September 2009
Junior Member
still getting the same error. does anyone know if there's even a good way to troubleshoot this problem?
Re: propel-build-schema error: "...error building XML from metadata: connect failed..." [message #96017 is a reply to message #85251 ] Tue, 23 March 2010 05:08 Go to previous messageGo to next message
prashantup  is currently offline prashantup
Messages: 4
Registered: March 2010
Junior Member
Did you guys figure this out? I am having the exact same problem. It started after I upgraded to snow leopard.

I will appreciate any help.

Thanks!
Re: propel-build-schema error: "...error building XML from metadata: connect failed..." [message #96019 is a reply to message #96017 ] Tue, 23 March 2010 06:11 Go to previous messageGo to next message
smarteeformee  is currently offline smarteeformee
Messages: 9
Registered: January 2008
Location: Portland, OR
Junior Member
prashatup,

Mine problem also started after installing Snow Leopard - but I resolved the issue by editing my php.ini file. See my response from September 30th.

But this solution didn't work for umbrellacorp.

candace
Re: propel-build-schema error: "...error building XML from metadata: connect failed..." [message #96023 is a reply to message #96019 ] Tue, 23 March 2010 07:39 Go to previous messageGo to next message
umbrellacorp
Messages: 4
Registered: September 2009
Junior Member
changing the default_socket in php.ini didn't work for me so i just made a symbolic link via the command line. i'm using MAMP so i'm using the mysql build that comes bundled with that:

ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock

worked after this.

hope that helps.
Re: propel-build-schema error: "...error building XML from metadata: connect failed..." [message #96052 is a reply to message #85251 ] Tue, 23 March 2010 15:34 Go to previous messageGo to next message
prashantup  is currently offline prashantup
Messages: 4
Registered: March 2010
Junior Member
Thanks you guys!

Changing the php.ini didn't work for me either but putting the symbolic link did the magic.

Thanks again!
Re: propel-build-schema error: "...error building XML from metadata: connect failed..." [message #96058 is a reply to message #85251 ] Tue, 23 March 2010 17:20 Go to previous messageGo to next message
prashantup  is currently offline prashantup
Messages: 4
Registered: March 2010
Junior Member
Spoke too soon.

I think you guys will be the best ones to help me troubleshoot this as I am on MAMP and Snow Leopard.

./symfony propel-build-schema and model are using the native php of Snow Leopard and not MAMP. I changed the ini file to reflect that.

Running -schema is working fine and it says BUILD FINISHED. But running -model... nothing happens. I mean, it gets stuck and nothing happens.

No error. No message. It has been about more than 30 minutes and no response.

Any suggestions?
Re: propel-build-schema error: "...error building XML from metadata: connect failed..." [message #96147 is a reply to message #85251 ] Wed, 24 March 2010 21:43 Go to previous message
prashantup  is currently offline prashantup
Messages: 4
Registered: March 2010
Junior Member
Figured it out. It was the PHP version issue now. Make sure to create a symbolic link to the MAMP provided php and not use the Leopard PHP.

Previous Topic:None of my links are working. 404 error using lighttpd
Next Topic:Generte i18n language files
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software