'OperationalError: (_mysql_exceptions.OperationalError) (2001, "Can\'t create UNIX socket (-1)")

109 views
Skip to first unread message

Handerson Contreras

unread,
Sep 4, 2015, 12:35:25 PM9/4/15
to Google App Engine
Hello!!

Someone know about this error (2001, "Can\'t create UNIX socket (-1)")?

I'm using Google CloudSQL that works with MySQL,  but sometime I get this mistake, I've detected sometimes happen when there are tasks in execution in background.
These tasks are executed by deferred library and when I do deploy, I think the tasks lost the connection and throw this exception.

What do you think?
How can i resolve this problem?

Thansk.

Alex Martelli

unread,
Sep 4, 2015, 12:48:13 PM9/4/15
to google-a...@googlegroups.com
In http://stackoverflow.com/questions/20057190/operationalerror-2001-cant-create-unix-socket-1-django-on-google-app , the issue was caused by a wrong setting for `HOST` (via Django, and you don't tell us what framework or library you're using, but whatever framework or library you're using, eventually the host must be set right).

The fix in that case of course was just to set the host correctly.

Alex


--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/ee359ee9-880e-4b9f-98bc-757953288968%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Handerson Contreras

unread,
Sep 4, 2015, 1:42:27 PM9/4/15
to Google App Engine
Sorry. the framework is not Django is ferris-3 (Is to work with Google Endpoints) and my ORM is Alchemy 1.0 and my settings connection is the next:

create_engine('mysql+gaerdbms:///notifications?instance=myinstance:mydb')

and I've tested this settings 
return create_engine('mysql+mysqldb://root@localhost/mydbx_socket=/cloudsql/myinstance:mydb')

but also don't work. 
Reply all
Reply to author
Forward
0 new messages