trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Peach <jamespe...@me.com>
Subject Re: Facing problem in running ATS
Date Tue, 17 Jan 2017 16:42:42 GMT

> On Jan 16, 2017, at 3:08 PM, salil GK <gksalil@gmail.com> wrote:
> 
> I have stopped the other instance that is running ( 26997 ). Then I tried to run this
command. Then I am getting a core dump of traffic_server
> >>>>
> ~/apns/etc # env | grep TS
> 
> TS_ROOT=/tandberg/apns/
> 
> ~/apns/etc # /trafficserver/bin/traffic_manager 
> 
> [E. Mgmt] log ==> [TrafficManager] using root directory '/tandberg/apns'
> 
> traffic_server: using root directory '/tandberg/apns'
> 
> FATAL: unable to load '/tandberg/apns/libexec/trafficserver/libloader.so': /tandberg/apns/libexec/trafficserver/libloader.so:
cannot open shared object file: No such file or directory

Somewhere you have a plugin.config that adds the libloader.so plugin, but it is not in the
plugin directory.

> 
> traffic_server: Aborted (Signal sent by tkill() 9792 0)
> 
> traffic_server - STACK TRACE: 
> 
> /trafficserver/bin/traffic_server(_Z19crash_logger_invokeiP9siginfo_tPv+0xed)[0x55d9a6da82fc]
> 
> /lib/x86_64/libpthread.so.0(+0x11c20)[0x2b7bc01afc20]
> 
> /lib/x86_64/libc.so.6(gsignal+0xff)[0x2b7bc0b1307f]
> 
> /lib/x86_64/libc.so.6(abort+0x181)[0x2b7bc0b146e1]
> 
> /lib/x86_64/libtsutil.so.6(_Z12ink_fatal_vaPKcP13__va_list_tag+0x0)[0x2b7bbe498f77]
> 
> /lib/x86_64/libtsutil.so.6(_Z9ink_fatalPKcz+0x0)[0x2b7bbe499054]
> 
> /lib/x86_64/libtsutil.so.6(_ZNK5Diags8error_vaE10DiagsLevelPKcS2_iS2_P13__va_list_tag+0x121)[0x2b7bbe4807a3]
> 
> /trafficserver/bin/traffic_server(_ZNK5Diags5errorE10DiagsLevelPKcS2_iS2_z+0xe2)[0x55d9a6d90e66]
> 
> /trafficserver/bin/traffic_server(+0x16a5ae)[0x55d9a6dec5ae]
> 
> /trafficserver/bin/traffic_server(_Z11plugin_initb+0x3ee)[0x55d9a6decdcd]
> 
> /trafficserver/bin/traffic_server(main+0x1092)[0x55d9a6de3433]
> 
> /lib/x86_64/libc.so.6(__libc_start_main+0x114)[0x2b7bc0aff314]
> 
> /trafficserver/bin/traffic_server(_start+0x2a)[0x55d9a6d8ed9a]
> 
> traffic_server: using root directory '/tandberg/apns'
> 
> ^C[TrafficManager] ==> Cleaning up and reissuing signal #2
> 
> [TrafficManager] ==> signal #2
> 
> <<<<
> 
> Not sure why it is looking for /tandberg/apns/libexec/trafficserver/libloader.so. all
libraries are under /trafficserver/libexec. Is there any setting that I need to specify for
pointing to the lib location ?
> 
> 
> 
> Regards
> 
> ~S
> 
> 
> On 17 January 2017 at 04:34, salil GK <gksalil@gmail.com> wrote:
> Thanks for the help
> 
> I tried to run traffic_server program also ad it gives the same result
> 
> >>>>
> 
> export TS_ROOT=/tandberg/apns/; /trafficserver/bin/traffic_server 
> 
> traffic_server: using root directory '/tandberg/apns'
> 
> WARNING: Can't acquire lockfile '/tandberg/trafficserver/var/trafficserver/server.lock'
(Lock file held by process ID 26997)
> 
> <<<<
> 
> Nowhere in my configuration files under /tandberg/apns /tandberg/trafficserver is mentioned.
But original configuration location set during compilation is /tandberg/trafficserver .

You can figure this out with traffic_layout.

For example, if I just set TS_ROOT I get this:

$ TS_ROOT=/tandberg/apns /opt/ats/bin/traffic_layout
PREFIX: /tandberg/apns
BINDIR: /tandberg/apns/bin
SYSCONFDIR: /tandberg/apns/etc/trafficserver
LIBDIR: /tandberg/apns/lib
LOGDIR: /tandberg/apns/var/log/trafficserver
RUNTIMEDIR: /tandberg/apns/var/trafficserver
PLUGINDIR: /tandberg/apns/libexec/trafficserver
INCLUDEDIR: /tandberg/apns/include
SNAPSHOTDIR: /tandberg/apns/etc/trafficserver/snapshots
records.config: /tandberg/apns/etc/trafficserver/records.config
remap.config: /tandberg/apns/etc/trafficserver/remap.config
plugin.config: /tandberg/apns/etc/trafficserver/plugin.config
ssl_multicert.config: /tandberg/apns/etc/trafficserver/ssl_multicert.config
storage.config: /tandberg/apns/etc/trafficserver/storage.config
hosting.config: /tandberg/apns/etc/trafficserver/hosting.config
volume.config: /tandberg/apns/etc/trafficserver/volume.config
ip_allow.config: /tandberg/apns/etc/trafficserver/ip_allow.config

But PLUGINDIR is no longer what I need, so I can do this:

$ TS_ROOT=/tandberg/apns PROXY_CONFIG_PLUGIN_PLUGIN_DIR=/opt/ats/libexec/trafficserver /opt/ats/bin/traffic_layout
PREFIX: /tandberg/apns
BINDIR: /tandberg/apns/bin
SYSCONFDIR: /tandberg/apns/etc/trafficserver
LIBDIR: /tandberg/apns/lib
LOGDIR: /tandberg/apns/var/log/trafficserver
RUNTIMEDIR: /tandberg/apns/var/trafficserver
PLUGINDIR: /opt/ats/libexec/trafficserver
INCLUDEDIR: /tandberg/apns/include
SNAPSHOTDIR: /tandberg/apns/etc/trafficserver/snapshots
records.config: /tandberg/apns/etc/trafficserver/records.config
remap.config: /tandberg/apns/etc/trafficserver/remap.config
plugin.config: /tandberg/apns/etc/trafficserver/plugin.config
ssl_multicert.config: /tandberg/apns/etc/trafficserver/ssl_multicert.config
storage.config: /tandberg/apns/etc/trafficserver/storage.config
hosting.config: /tandberg/apns/etc/trafficserver/hosting.config
volume.config: /tandberg/apns/etc/trafficserver/volume.config
ip_allow.config: /tandberg/apns/etc/trafficserver/ip_allow.config

https://docs.trafficserver.apache.org/en/latest/admin-guide/files/records.config.en.html

Remember that LOGDIR and RUNTIMEDIR will need to be writeable by the user traffic_server is
running as.

J


Mime
View raw message