MySQL Forums
Forum List  »  Router & Proxy

Re: Mysql proxy 0.70 issues
Posted by: Giovanni Scopel
Date: May 19, 2009 01:31AM

Hi,
thanks for answer. I tried to use the simpliest lua script. Everythink works fine, without errors or warning.

But with other lua scripts, the same errors.

This is the /etc/default/mysql-proxy:

--------------------
ENABLED="true"
OPTIONS="
--log-file=/var/log/mysql/mysql-proxy.log
--log-level=debug
--proxy-lua-script=/usr/share/mysql-proxy/rw-splitting.lua
--proxy-backend-addresses=xx.xx.xx.xx:3306
--proxy-backend-addresses=yy.yy.yy.yy:3306"
--------------------


Portion of log file:
------------------------------------------
2009-05-19 07:25:25: (critical) proxy-plugin.c:1389: (connect_server) [string "/usr/share/mysql-proxy/rw-splitting.lua"]:76: attempt to get length of field 'backends' (a nil value)
2009-05-19 07:25:25: (critical) (read_query) [string "/usr/share/mysql-proxy/rw-splitting.lua"]:218: bad argument #1 to 'ipairs' (table expected, got userdata)
2009-05-19 07:25:25: (critical) proxy-plugin.c.1129: I have no server backend, closing connection
2009-05-19 07:25:25: (critical) network-mysqld.c.1188: plugin_call(CON_STATE_READ_QUERY) failed
2009-05-19 07:25:25: (debug) [network-mysqld.c:784]: error on a connection (fd: -1 event: 0). closing client connection.
2009-05-19 07:25:25: (critical) proxy-plugin.c:1389: (connect_server) [string "/usr/share/mysql-proxy/rw-splitting.lua"]:76: attempt to get length of field 'backends' (a nil value)
2009-05-19 07:25:25: (critical) (read_query) [string "/usr/share/mysql-proxy/rw-splitting.lua"]:218: bad argument #1 to 'ipairs' (table expected, got userdata)
2009-05-19 07:25:25: (critical) proxy-plugin.c.1129: I have no server backend, closing connection
2009-05-19 07:25:25: (critical) network-mysqld.c.1188: plugin_call(CON_STATE_READ_QUERY) failed
2009-05-19 07:25:25: (debug) [network-mysqld.c:784]: error on a connection (fd: -1 event: 0). closing client connection.
2009-05-19 07:25:26: (critical) proxy-plugin.c:1389: (connect_server) [string "/usr/share/mysql-proxy/rw-splitting.lua"]:76: attempt to get length of field 'backends' (a nil value)
2009-05-19 07:25:26: (critical) (read_query) [string "/usr/share/mysql-proxy/rw-splitting.lua"]:218: bad argument #1 to 'ipairs' (table expected, got userdata)
2009-05-19 07:25:26: (critical) proxy-plugin.c.1129: I have no server backend, closing connection
2009-05-19 07:25:26: (critical) network-mysqld.c.1188: plugin_call(CON_STATE_READ_QUERY) failed
2009-05-19 07:25:26: (debug) [network-mysqld.c:784]: error on a connection (fd: -1 event: 0). closing client connection.
-----------------------------------------


mysql-proxy configuration:
----------------------------
mysql-proxy -V
mysql-proxy 0.7.0
glib2: 2.16.6
libevent: 1.3e
admin: 0.7.0
proxy: 0.7.0
----------------------------


Before I start, I must set the LD_LIBRARY_PATH

---------------------------
export LD_LIBRARY_PATH=/usr/local/lib/
---------------------------


Maybe the problem is the Lua intepreter?

Regards,
JS

Options: ReplyQuote


Subject
Views
Written By
Posted
8484
May 13, 2009 10:12AM
4203
May 14, 2009 01:09AM
6595
May 14, 2009 08:09AM
4449
May 15, 2009 02:11PM
7457
May 18, 2009 10:12AM
4271
May 18, 2009 10:38PM
Re: Mysql proxy 0.70 issues
6359
May 19, 2009 01:31AM
4537
May 21, 2009 11:03PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.