You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Vladyslav Bachynskyi <v....@gmail.com> on 2012/12/03 15:56:57 UTC

Unable to load regex_remap.so ATS 3.3.1

Hi,

Trying to load plugin regex_remap.so, and getting ERROR:

[Dec  3 14:35:03.922] Server {0x2aeacc9ba2e0} NOTE: logging
initialized[15], logging_mode = 3
[Dec  3 14:35:03.927] Server {0x2aeacc9ba2e0} NOTE: loading plugin
'/opt/trafficserver-3.3/libexec/trafficserver/header_filter.so'
[Dec  3 14:35:03.927] Server {0x2aeacc9ba2e0} NOTE: loading plugin
'/opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so'
[Dec  3 14:35:03.928] Server {0x2aeacc9ba2e0} ERROR: unable to find
TSPluginInit function
'/opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so':
/opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so: undefined
symbol: TSPluginInit

Using latest build from git.

#traffic_line -V
Apache Traffic Server - traffic_line - 3.3.1-dev - (build # 11123 on Dec  1
2012 at 23:01:03)

Any help is very appreciated.
Thanks in advance.

Re: Unable to load regex_remap.so ATS 3.3.1

Posted by Leif Hedstrom <zw...@apache.org>.
On 12/3/12 11:29 PM, Vladyslav Bachynskyi wrote:
> Thank you Brad!
> It's working now.
> I was sure, that I need to load plugin first to make it work.

Well, if you use the regex_map directive (which is built into the core), you 
don't need the regex_remap plugin. The plugin is there to do rules based on 
the path / query params of the request, whereas regex_map only works on the 
Host: header.

-- Leif


Re: Unable to load regex_remap.so ATS 3.3.1

Posted by Vladyslav Bachynskyi <v....@gmail.com>.
Thank you Brad!
It's working now.
I was sure, that I need to load plugin first to make it work.

On 03.12.2012 21:31, Williamson, Brad wrote:
>
> Try something like this in remap.config:
>
>  
>
> regex_map http://([a-z\-0-9\.]+) http://webserver.internal:80/
>
>  
>
> Unless I’m not following what it is you are trying to accomplish here
> by using the maps.reg.
>
>  
>
> Brad
>
>  
>
>  
>
> Brad Williamson
>
> Sr. Systems Engineer, WDPRO
>
> Disney Technology Solutions and Services
>
>  
>
>  
>
> *From:*Vladyslav Bachynskyi [mailto:v.bachynskyi@gmail.com]
> *Sent:* Monday, December 03, 2012 1:49 PM
> *To:* users@trafficserver.apache.org
> *Subject:* Re: Unable to load regex_remap.so ATS 3.3.1
>
>  
>
> Hi,
>
> for testing I've added the string from documentation:
>
> map http://a.com http://b.com @plugin=regex_remap.so @pparam=maps.reg
>
> Now, I'm getting another warning:
>
> [Dec  3 20:43:49.281] Server {0x2b647f7b92e0} WARNING: Failed to
> create new instance for plugin
> /opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so (not a
> TS_SUCCESS return)
> [Dec  3 20:43:49.281] Server {0x2b647f7b92e0} WARNING: Could not add
> rule at line #172; Aborting!
> [Dec  3 20:43:49.281] Server {0x2b647f7b92e0} WARNING: [ReverseProxy]
> Can't create new remap instance for plugin
> "/opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so" -
> Unknown plugin error at line 172
> [Dec  3 20:43:49.281] Server {0x2b647f7b92e0} WARNING: something
> failed during BuildTable() -- check your remap plugins!
> [Dec  3 20:43:49.281] Server {0x2b647f7b92e0} WARNING: Can not load
> the remap table, exiting out!
>
> What I'm doing wrong?
>
> On Mon, Dec 3, 2012 at 8:38 PM, Igor Galić <i.galic@brainsware.org
> <ma...@brainsware.org>> wrote:
>
>
>
> ----- Original Message -----
> > On 12/3/12 7:56 AM, Vladyslav Bachynskyi wrote:
> > > Hi,
> > >
> > > Trying to load plugin regex_remap.so, and getting ERROR:
> > >
> > > [Dec  3 14:35:03.922] Server {0x2aeacc9ba2e0} NOTE: logging
> > > initialized[15], logging_mode = 3
> > > [Dec  3 14:35:03.927] Server {0x2aeacc9ba2e0} NOTE: loading plugin
> > > '/opt/trafficserver-3.3/libexec/trafficserver/header_filter.so'
> > > [Dec  3 14:35:03.927] Server {0x2aeacc9ba2e0} NOTE: loading plugin
> > > '/opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so'
> > > [Dec  3 14:35:03.928] Server {0x2aeacc9ba2e0} ERROR: unable to find
> > > TSPluginInit function
> > > '/opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so':
> > > /opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so:
> > > undefined
> > > symbol: TSPluginInit
> >
> > The regex_remap plugin is a pure "remap" plugin, it can only be used
> > from remap.config. As such, you must not add it to the plugins.config
> > config file.
>
> I wonder if there's a more graceful way from the plugin to inform
> us of this - also: Doe our documentation say that?
>
> i
>
> > -- Lief
> >
> >
>
> --
> Igor Galić
>
> Tel: +43 (0) 664 886 22 883 <tel:%2B43%20%280%29%20664%20886%2022%20883>
> Mail: i.galic@brainsware.org <ma...@brainsware.org>
> URL: http://brainsware.org/
> GPG: 6880 4155 74BD FD7C B515  2EA5 4B1D 9E08 A097 C9AE
>
>  
>


RE: Unable to load regex_remap.so ATS 3.3.1

Posted by "Williamson, Brad" <Br...@disney.com>.
Try something like this in remap.config:

regex_map http://([a-z\-0-9\.]+) http://webserver.internal:80/

Unless I’m not following what it is you are trying to accomplish here by using the maps.reg.

Brad


Brad Williamson
Sr. Systems Engineer, WDPRO
Disney Technology Solutions and Services


From: Vladyslav Bachynskyi [mailto:v.bachynskyi@gmail.com]
Sent: Monday, December 03, 2012 1:49 PM
To: users@trafficserver.apache.org
Subject: Re: Unable to load regex_remap.so ATS 3.3.1

Hi,

for testing I've added the string from documentation:

map http://a.com http://b.com @plugin=regex_remap.so @pparam=maps.reg

Now, I'm getting another warning:

[Dec  3 20:43:49.281] Server {0x2b647f7b92e0} WARNING: Failed to create new instance for plugin /opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so (not a TS_SUCCESS return)
[Dec  3 20:43:49.281] Server {0x2b647f7b92e0} WARNING: Could not add rule at line #172; Aborting!
[Dec  3 20:43:49.281] Server {0x2b647f7b92e0} WARNING: [ReverseProxy] Can't create new remap instance for plugin "/opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so" - Unknown plugin error at line 172
[Dec  3 20:43:49.281] Server {0x2b647f7b92e0} WARNING: something failed during BuildTable() -- check your remap plugins!
[Dec  3 20:43:49.281] Server {0x2b647f7b92e0} WARNING: Can not load the remap table, exiting out!

What I'm doing wrong?
On Mon, Dec 3, 2012 at 8:38 PM, Igor Galić <i....@brainsware.org>> wrote:


----- Original Message -----
> On 12/3/12 7:56 AM, Vladyslav Bachynskyi wrote:
> > Hi,
> >
> > Trying to load plugin regex_remap.so, and getting ERROR:
> >
> > [Dec  3 14:35:03.922] Server {0x2aeacc9ba2e0} NOTE: logging
> > initialized[15], logging_mode = 3
> > [Dec  3 14:35:03.927] Server {0x2aeacc9ba2e0} NOTE: loading plugin
> > '/opt/trafficserver-3.3/libexec/trafficserver/header_filter.so'
> > [Dec  3 14:35:03.927] Server {0x2aeacc9ba2e0} NOTE: loading plugin
> > '/opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so'
> > [Dec  3 14:35:03.928] Server {0x2aeacc9ba2e0} ERROR: unable to find
> > TSPluginInit function
> > '/opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so':
> > /opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so:
> > undefined
> > symbol: TSPluginInit
>
> The regex_remap plugin is a pure "remap" plugin, it can only be used
> from remap.config. As such, you must not add it to the plugins.config
> config file.

I wonder if there's a more graceful way from the plugin to inform
us of this - also: Doe our documentation say that?

i

> -- Lief
>
>

--
Igor Galić

Tel: +43 (0) 664 886 22 883<tel:%2B43%20%280%29%20664%20886%2022%20883>
Mail: i.galic@brainsware.org<ma...@brainsware.org>
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515  2EA5 4B1D 9E08 A097 C9AE


Re: Unable to load regex_remap.so ATS 3.3.1

Posted by Vladyslav Bachynskyi <v....@gmail.com>.
Hi,

for testing I've added the string from documentation:

map http://a.com http://b.com @plugin=regex_remap.so @pparam=maps.reg

Now, I'm getting another warning:

[Dec  3 20:43:49.281] Server {0x2b647f7b92e0} WARNING: Failed to create new
instance for plugin
/opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so (not a
TS_SUCCESS return)
[Dec  3 20:43:49.281] Server {0x2b647f7b92e0} WARNING: Could not add rule
at line #172; Aborting!
[Dec  3 20:43:49.281] Server {0x2b647f7b92e0} WARNING: [ReverseProxy] Can't
create new remap instance for plugin
"/opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so" - Unknown
plugin error at line 172
[Dec  3 20:43:49.281] Server {0x2b647f7b92e0} WARNING: something failed
during BuildTable() -- check your remap plugins!
[Dec  3 20:43:49.281] Server {0x2b647f7b92e0} WARNING: Can not load the
remap table, exiting out!

What I'm doing wrong?

On Mon, Dec 3, 2012 at 8:38 PM, Igor Galić <i....@brainsware.org> wrote:

>
>
> ----- Original Message -----
> > On 12/3/12 7:56 AM, Vladyslav Bachynskyi wrote:
> > > Hi,
> > >
> > > Trying to load plugin regex_remap.so, and getting ERROR:
> > >
> > > [Dec  3 14:35:03.922] Server {0x2aeacc9ba2e0} NOTE: logging
> > > initialized[15], logging_mode = 3
> > > [Dec  3 14:35:03.927] Server {0x2aeacc9ba2e0} NOTE: loading plugin
> > > '/opt/trafficserver-3.3/libexec/trafficserver/header_filter.so'
> > > [Dec  3 14:35:03.927] Server {0x2aeacc9ba2e0} NOTE: loading plugin
> > > '/opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so'
> > > [Dec  3 14:35:03.928] Server {0x2aeacc9ba2e0} ERROR: unable to find
> > > TSPluginInit function
> > > '/opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so':
> > > /opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so:
> > > undefined
> > > symbol: TSPluginInit
> >
> > The regex_remap plugin is a pure "remap" plugin, it can only be used
> > from remap.config. As such, you must not add it to the plugins.config
> > config file.
>
>
> I wonder if there's a more graceful way from the plugin to inform
> us of this - also: Doe our documentation say that?
>
> i
>
> > -- Lief
> >
> >
>
> --
> Igor Galić
>
> Tel: +43 (0) 664 886 22 883
> Mail: i.galic@brainsware.org
> URL: http://brainsware.org/
> GPG: 6880 4155 74BD FD7C B515  2EA5 4B1D 9E08 A097 C9AE
>
>

Re: Unable to load regex_remap.so ATS 3.3.1

Posted by Igor Galić <i....@brainsware.org>.

----- Original Message -----
> On 12/3/12 7:56 AM, Vladyslav Bachynskyi wrote:
> > Hi,
> >
> > Trying to load plugin regex_remap.so, and getting ERROR:
> >
> > [Dec  3 14:35:03.922] Server {0x2aeacc9ba2e0} NOTE: logging
> > initialized[15], logging_mode = 3
> > [Dec  3 14:35:03.927] Server {0x2aeacc9ba2e0} NOTE: loading plugin
> > '/opt/trafficserver-3.3/libexec/trafficserver/header_filter.so'
> > [Dec  3 14:35:03.927] Server {0x2aeacc9ba2e0} NOTE: loading plugin
> > '/opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so'
> > [Dec  3 14:35:03.928] Server {0x2aeacc9ba2e0} ERROR: unable to find
> > TSPluginInit function
> > '/opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so':
> > /opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so:
> > undefined
> > symbol: TSPluginInit
> 
> The regex_remap plugin is a pure "remap" plugin, it can only be used
> from remap.config. As such, you must not add it to the plugins.config
> config file.


I wonder if there's a more graceful way from the plugin to inform
us of this - also: Doe our documentation say that?

i

> -- Lief
> 
> 

-- 
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515  2EA5 4B1D 9E08 A097 C9AE


Re: Unable to load regex_remap.so ATS 3.3.1

Posted by Leif Hedstrom <zw...@apache.org>.
On 12/3/12 7:56 AM, Vladyslav Bachynskyi wrote:
> Hi,
>
> Trying to load plugin regex_remap.so, and getting ERROR:
>
> [Dec  3 14:35:03.922] Server {0x2aeacc9ba2e0} NOTE: logging 
> initialized[15], logging_mode = 3
> [Dec  3 14:35:03.927] Server {0x2aeacc9ba2e0} NOTE: loading plugin 
> '/opt/trafficserver-3.3/libexec/trafficserver/header_filter.so'
> [Dec  3 14:35:03.927] Server {0x2aeacc9ba2e0} NOTE: loading plugin 
> '/opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so'
> [Dec  3 14:35:03.928] Server {0x2aeacc9ba2e0} ERROR: unable to find 
> TSPluginInit function 
> '/opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so': 
> /opt/trafficserver-3.3/libexec/trafficserver/regex_remap.so: undefined 
> symbol: TSPluginInit

The regex_remap plugin is a pure "remap" plugin, it can only be used 
from remap.config. As such, you must not add it to the plugins.config 
config file.

-- Lief