trafficserver-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Peach <jpe...@apache.org>
Subject Re: Authproxy.cc question
Date Wed, 20 Feb 2013 04:49:43 GMT
On 19/02/2013, at 8:29 PM, Valerie Thompson <vthompson@ena.com> wrote:

> After having issues with an older version of TS and the basic-auth.c plugin, I have upgraded
to 3.2.4 and loaded the authproxy.cc plugin in the experimental directory.

Oops, that's a bug. I run authproxy as a remap plugin, which is why I don't hit this. The
fix should be:

diff --git a/plugins/experimental/authproxy/authproxy.cc b/plugins/experimental/authproxy/authproxy.cc
index 434dd60..6479976 100644
--- a/plugins/experimental/authproxy/authproxy.cc
+++ b/plugins/experimental/authproxy/authproxy.cc
@@ -773,6 +773,10 @@ TSPluginInit(int argc, const char *argv[])
         AuthLogError("plugin registration failed");
     }
 
+    TSReleaseAssert(
+        TSHttpArgIndexReserve("AuthProxy", "AuthProxy authorization tag", &AuthTaggedRequestArg)
== TS_SUCCESS
+    );
+
     // We are in global mode. Authorize all requests.
     AuthTaggedRequestOnly = false;
 


> However, I seem to be having issues with the configuration, or something because I am
getting error messages in my log. This is my plugin.conf:
> 
> authproxy --auth-transform=redirect --auth-host=host.com --auth-port=80
> 
> This is my error I'm getting, since it seems to complain about arguments that is what
led me to the config file. Is there another spot I need to specify anything?
> 
> [Feb 19 18:29:23.835] Server {0x2ae274689c00} NOTE: cache clustering disabled
> [Feb 19 18:29:23.849] Server {0x2ae274689c00} NOTE: cache clustering disabled
> [Feb 19 18:29:23.885] Server {0x2ae274689c00} NOTE: logging initialized[15], logging_mode
= 3
> [Feb 19 18:29:23.905] Server {0x2ae274689c00} NOTE: loading plugin '/usr/lib64/trafficserver/plugins/authproxy'
> [Feb 19 18:29:23.914] Server {0x2ae274689c00} NOTE: traffic server running
> [Feb 19 18:29:23.983] Server {0x2ae274dfb700} NOTE: cache enabled
> FATAL: InkAPI.cc:5660: failed assert `arg_idx >= 0 && arg_idx < HTTP_SSN_TXN_MAX_USER_ARG`
> /usr/bin/traffic_server - STACK TRACE: 
> /usr/lib64/trafficserver/libtsutil.so.3(ink_fatal+0x88)[0x2ae274452198]
> /usr/lib64/trafficserver/libtsutil.so.3(_ink_assert+0x1f)[0x2ae2744509ff]
> /usr/bin/traffic_server(TSHttpTxnArgGet+0x4e)[0x4a1ffe]
> /usr/lib64/trafficserver/plugins/authproxy(+0x329a)[0x2ae28387329a]
> /usr/lib64/trafficserver/plugins/authproxy(_ZN18AuthRequestContext8dispatchEP10tsapi_cont7TSEventPv+0x39)[0x2ae283873cb9]
> /usr/bin/traffic_server(_ZN6HttpSM17state_api_calloutEiPv+0x426)[0x527e76]
> /usr/bin/traffic_server(_ZN6HttpSM14set_next_stateEv+0x18a)[0x5334ea]
> /usr/bin/traffic_server(_ZN6HttpSM14set_next_stateEv+0xb1b)[0x533e7b]
> /usr/bin/traffic_server(_ZN6HttpSM17handle_api_returnEv+0x31a)[0x534b8a]
> /usr/bin/traffic_server(_ZN6HttpSM17state_api_calloutEiPv+0x278)[0x527cc8]
> /usr/bin/traffic_server(_ZN6HttpSM14set_next_stateEv+0x18a)[0x5334ea]
> /usr/bin/traffic_server(_ZN6HttpSM17handle_api_returnEv+0x31a)[0x534b8a]
> /usr/bin/traffic_server(_ZN6HttpSM17state_api_calloutEiPv+0x278)[0x527cc8]
> /usr/bin/traffic_server(_ZN6HttpSM14set_next_stateEv+0x18a)[0x5334ea]
> /usr/bin/traffic_server(_ZN6HttpSM14set_next_stateEv+0x7c4)[0x533b24]
> /usr/bin/traffic_server(_ZN6HttpSM17handle_api_returnEv+0x31a)[0x534b8a]
> /usr/bin/traffic_server(_ZN6HttpSM17state_api_calloutEiPv+0x278)[0x527cc8]
> /usr/bin/traffic_server(_ZN6HttpSM14set_next_stateEv+0x18a)[0x5334ea]
> /usr/bin/traffic_server(_ZN6HttpSM17handle_api_returnEv+0x31a)[0x534b8a]
> /usr/bin/traffic_server(_ZN6HttpSM17state_api_calloutEiPv+0x278)[0x527cc8]
> /usr/bin/traffic_server(_ZN6HttpSM14set_next_stateEv+0x18a)[0x5334ea]
> /usr/bin/traffic_server(_ZN6HttpSM32state_read_client_request_headerEiPv+0x6b7)[0x52d527]
> /usr/bin/traffic_server(_ZN6HttpSM12main_handlerEiPv+0xe8)[0x52b558]
> /usr/bin/traffic_server[0x67226b]
> /usr/bin/traffic_server[0x675f64]
> /usr/bin/traffic_server(_ZN10NetHandler12mainNetEventEiP5Event+0x1f2)[0x66db02]
> /usr/bin/traffic_server(_ZN7EThread13process_eventEP5Eventi+0xb4)[0x696814]
> /usr/bin/traffic_server(_ZN7EThread7executeEv+0x4c3)[0x6971a3]
> /usr/bin/traffic_server(main+0x170e)[0x4c2bbe]
> /lib64/libc.so.6(__libc_start_main+0xfd)[0x308a81ecdd]
> /usr/bin/traffic_server[0x4812f9]
> [Feb 19 18:29:24.026] Manager {0x7f4b627cc7e0} ERROR: [LocalManager::pollMgmtProcessServer]
Server Process terminated due to Sig 6: Aborted
> [Feb 19 18:29:24.026] Manager {0x7f4b627cc7e0} ERROR:  (last system error 2: No such
file or directory)
> [Feb 19 18:29:24.026] Manager {0x7f4b627cc7e0} ERROR: [Alarms::signalAlarm] Server Process
was reset
> [Feb 19 18:29:24.026] Manager {0x7f4b627cc7e0} ERROR:  (last system error 2: No such
file or directory)
> [Feb 19 18:29:25.032] Manager {0x7f4b627cc7e0} NOTE: [LocalManager::startProxy] Launching
ts process
> [TrafficServer] using root directory '/usr'
> 
> 


Mime
View raw message