Bug #283

Issues with Python2.7 server start

Added by Lauris Radzevics almost 2 years ago. Updated almost 2 years ago.

Status:ClosedStart date:02/09/2018
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

I'm trying to start python server but it fails with

N:NDRX:4:20553:7f7f30eb1700:000:20180209:103214493:tmi/xa.c:0150:Loading XA driver: []
N:NDRX:2:20553:7f7f30eb1700:000:20180209:103214493:tmi/xa.c:0167:Failed to get symbol 'ndrx_get_xa_switch': 
N:NDRX:3:20553:7f7f30eb1700:000:20180209:103214493:perror.c:0280:ndrx_TPset_error_fmt: 12 (TPESYSTEM) [Failed to get symbol 'ndrx_get_xa_switch': ]
N:NDRX:5:20553:7f7f30eb1700:000:20180209:103214493:v/init.c:0227:Advertising: SVC: [] FN: [] ADDR: [(nil)] QUEUE: [/SkyNet_tests,srv,admin,tfpredict.py,3100,20553]
N:NDRX:5:20553:7f7f30eb1700:000:20180209:103214493:v/init.c:0227:Advertising: SVC: [] FN: [] ADDR: [(nil)] QUEUE: [/SkyNet_tests,srv,reply,tfpredict.py,3100,20553]

So I added:

export ORACLE_HOME=/u01/app/oracle/product/12.1.0.2/db_1
export ORACLE_SID=ORA12C
export NDRX_XA_RES_ID=1
export NDRX_XA_OPEN_STR="ORACLE_XA+SqlNet=ORA12C+ACC=P/user/password+SesTM=180+LogDir=/tmp/xa+nolocal=f" 
export NDRX_XA_CLOSE_STR=$NDRX_XA_OPEN_STR
export NDRX_XA_DRIVERLIB=/usr/lib64/libndrxxaoras.so
export NDRX_XA_RMLIB=/u01/app/oracle/product/12.1.0.2/db_1/lib/libclntsh.so.12.1
export NDRX_XA_LAZY_INIT=1

XA config read is ok:

N:NDRX:5:21514:7f09d8a12780:000:20180209:103749199:i/init.c:0388:[NDRX_CLUSTERISED] says: We run in non cluster/single node mode
N:NDRX:5:21514:7f09d8a12780:000:20180209:103749199:i/init.c:0400:[NDRX_XA_RES_ID]: XA Resource ID: 1
N:NDRX:5:21514:7f09d8a12780:000:20180209:103749199:i/init.c:0409:[NDRX_XA_OPEN_STR]: XA Open String: [ORACLE_XA+SqlNet=ORA12C+ACC=P/user/passwd+SesTM=180+LogDir=/tmp/xa+
nolocal=f]
N:NDRX:5:21514:7f09d8a12780:000:20180209:103749199:i/init.c:0418:[NDRX_XA_CLOSE_STR]: XA Close String: [ORACLE_XA+SqlNet=ORA12C+ACC=P/user/passwd+SesTM=180+LogDir=/tmp/x
a+nolocal=f]
N:NDRX:5:21514:7f09d8a12780:000:20180209:103749199:i/init.c:0434:[NDRX_XA_DRIVERLIB]: Enduro/X XA Driver lib (.so): [/usr/lib64/libndrxxaoras.so]
N:NDRX:5:21514:7f09d8a12780:000:20180209:103749199:i/init.c:0443:[NDRX_XA_RMLIB]: Resource manager lib (.so): [/u01/app/oracle/product/12.1.0.2/db_1/lib/libclntsh.so.12
.1]
N:NDRX:5:21514:7f09d8a12780:000:20180209:103749199:i/init.c:0464:[NDRX_XA_LAZY_INIT]: Lazy XA Init: TRUE
N:NDRX:5:21514:7f09d8a12780:000:20180209:103749199:i/init.c:0485:XA config ok

But still server gets error:

N:NDRX:4:21536:7fcf5d995700:000:20180209:103751522:tmi/xa.c:0150:Loading XA driver: [/usr/lib64/libndrxxaoras.so]
N:NDRX:2:21536:7fcf5d995700:000:20180209:103751522:tmi/xa.c:0155:Failed to load XA lib [/usr/lib64/libndrxxaoras.so]: /usr/lib64/libndrxxaoras.so: undefined symbol: G_ndrx_debug
N:NDRX:3:21536:7fcf5d995700:000:20180209:103751522:perror.c:0280:ndrx_TPset_error_fmt: 7 (TPEOS) [Failed to load XA lib [/usr/lib64/libndrxxaoras.so]: (null)]
N:NDRX:5:21536:7fcf5d995700:000:20180209:103751522:v/init.c:0227:Advertising: SVC: [] FN: [] ADDR: [(nil)] QUEUE: [/SkyNet_tests,srv,admin,tfpredict.py,3100,21536]
N:NDRX:5:21536:7fcf5d995700:000:20180209:103751522:v/init.c:0227:Advertising: SVC: [] FN: [] ADDR: [(nil)] QUEUE: [/SkyNet_tests,srv,reply,tfpredict.py,3100,21536]

P.S. my Python server does not use XA!

Any ideas how to fix this?

Environment:

Started NDRX environment
Enduro/X 5.1.2, build Dec  8 2017 14:07:52, using epoll for LINUX (64 bits)

Enduro/X Middleware Platform for Distributed Transaction Processing
Copyright (C) 2009-2016 ATR Baltic Ltd.
Copyright (C) 2017 Mavimax Ltd. All Rights Reserved.

This software is released under one of the following licenses:
GPLv2 (or later) or Mavimax license for commercial use.

ndrxd PID (from PID file): 21514
XDG_VTNR=1
NDRX_APPHOME=/home/lradzev/D8/GIT/SkyNet/tests/init_tests/../init_tests/server
FLDTBLDIR=/home/lradzev/D8/GIT/SkyNet/tests/init_tests/../../src/ubftab
SSH_AGENT_PID=2444
XDG_SESSION_ID=3
PAM_KWALLET5_LOGIN=/tmp/kwallet5_lradzev.socket
NDRX_LOG=/home/lradzev/D8/GIT/SkyNet/tests/init_tests/../init_tests/server/log/xadmin.log
HOSTNAME=lradzev.d8.com
LC_MONETARY=lv_LV.UTF-8
NDRX_UBFMAXFLDS=16000
NDRX_XA_LAZY_INIT=1
NDRX_SRVMAX=10000
NDRX_MSGMAX=1000
FIELDTBLS=Exfields,redis.fd,skynet.fd
TERM=xterm-256color
XDG_MENU_PREFIX=kf5-
SHELL=/bin/zsh
HISTSIZE=10000
MAKEFLAGS=w
KONSOLE_DBUS_SERVICE=:1.73
GTK2_RC_FILES=/home/lradzev/.gtkrc-2.0-kde4
ORACLE_UNQNAME=ORA12C
KONSOLE_PROFILE_NAME=Profile 2
NDRX_MSGSIZEMAX=64000
LC_NUMERIC=lv_LV.UTF-8
WINDOWID=102760453
QTDIR=/usr/lib64/qt-3.3
QTINC=/usr/lib64/qt-3.3/include
SHELL_SESSION_ID=031e55d1ae33466f88ae8e9059ca2203
NDRX_XA_RES_ID=1
QSG_RENDER_LOOP=
ZSH=/root/.oh-my-zsh
KDE_FULL_SESSION=true
NDRX_TOUT=60
XDG_SESSION_CLASS=user
USER=lradzev
NDRX_DMNLOG=/home/lradzev/D8/GIT/SkyNet/tests/init_tests/../init_tests/server/log/ndrxd.log
LS_COLORS=rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=01;05;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;40:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.oga=38;5;45:*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:
NDRX_HOME=/usr
ORACLE_SID=ORA12C
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
NDRX_CLUSTERISED=0
MAKE_TERMOUT=/dev/pts/1
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
QT_AUTO_SCREEN_SCALE_FACTOR=0
ORACLE_HOSTNAME=ORA12C.localhost
SSH_AUTH_SOCK=/tmp/ssh-7nPDekL84EMl/agent.2418
ORACLE_BASE=/u01/app/oracle
MAKELEVEL=3
LIBPATH=/u01/app/oracle/product/12.1.0.2/db_1/lib:/usr/lib64:/usr/lib:/home/lradzev/D8/instantclient/instantclient_12_2
SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/2638,unix/unix:/tmp/.ICE-unix/2638
PAGER=less
MFLAGS=-w
NDRX_XA_CLOSE_STR=ORACLE_XA+SqlNet=ORA12C+ACC=P/user/passwd+SesTM=180+LogDir=/tmp/xa+nolocal=f
LSCOLORS=Gxfxcxdxbxegedabagacad
XDG_CONFIG_DIRS=/etc/xdg:/usr/share/kde-settings/kde-profile/default/xdg
NDRX_CCONFIG=/home/lradzev/D8/GIT/SkyNet/tests/init_tests/../init_tests/conf
MAIL=/var/spool/mail/lradzev
PATH=/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/home/lradzev/bin:/usr/local/sbin:/usr/sbin:/usr/sbin:/u01/app/oracle/product/12.1.0.2/db_1/bin:/stronghold/bin:/usr/local/go/bin:/home/lradzev/D8/EnduroX/bin:/usr/bin:/home/lradzev/D8/GIT/SkyNet/tests/init_tests/../../bin:/usr/bin
DESKTOP_SESSION=/usr/share/xsessions/plasma
NDRX_QPREFIX=/SkyNet_tests
NDRX_LDBAL=0
NDRX_DQMAX=100
NDRX_NODEID=1
NDRX_QPATH=/dev/mqueue
PWD=/home/lradzev/D8/GIT/SkyNet/tests/init_tests
XDG_SESSION_TYPE=x11
GO_COMPILER=/usr/local/go/bin/go
KONSOLE_DBUS_WINDOW=/Windows/1
KDE_SESSION_UID=1000
LANG=en_GB.UTF-8
NDRX_IPCKEY=44000
OCILIB_WORKAROUND_UTF16_COLUMN_NAME=1
NDRX_DEBUG_CONF=/home/lradzev/D8/GIT/SkyNet/tests/init_tests/../init_tests/conf/debug.ini
LC_MEASUREMENT=lv_LV.UTF-8
KDEDIRS=/usr
S_COLORS=auto
KONSOLE_DBUS_SESSION=/Sessions/1
SSH_ASKPASS=/usr/bin/ksshaskpass
HISTCONTROL=ignoredups
NDRX_DPID=/home/lradzev/D8/GIT/SkyNet/tests/init_tests/../init_tests/server/tmp/ndrxd.pid
COLORFGBG=15;0
SHLVL=4
XDG_SEAT=seat0
HOME=/root
GDK_CORE_DEVICE_EVENTS=1
NDRX_ULOG=/home/lradzev/D8/GIT/SkyNet/tests/init_tests/../init_tests/server/log
NDRX_SHMPATH=/dev/shm
LANGUAGE=
KDE_SESSION_VERSION=5
XCURSOR_THEME=breeze_cursors
NDRX_XA_OPEN_STR=ORACLE_XA+SqlNet=ORA12C+ACC=P/user/passwd+SesTM=180+LogDir=/tmp/xa+nolocal=f
LESS=-R
LOGNAME=lradzev
XDG_SESSION_DESKTOP=KDE
NDRX_SVCMAX=20000
NDRX_XA_DRIVERLIB=/usr/lib64/libndrxxaoras.so
MAKE_TERMERR=/dev/pts/1
CVS_RSH=ssh
QTLIB=/usr/lib64/qt-3.3/lib
NDRX_CONFIG=/home/lradzev/D8/GIT/SkyNet/tests/init_tests/../init_tests/conf/ndrxconfig.xml
CLASSPATH=/u01/app/oracle/product/12.1.0.2/db_1/jlib:/u01/app/oracle/product/12.1.0.2/db_1/rdbms/jlib
LC_CTYPE=en_GB.UTF-8
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
XDG_DATA_DIRS=/usr/share/kde-settings/kde-profile/default/share:/usr/local/share:/usr/share
GOPATH=/home/lradzev/D8/GIT/SkyNet
LESSOPEN=||/usr/bin/lesspipe.sh %s
DISPLAY=:0
PROFILEHOME=
XDG_RUNTIME_DIR=/run/user/1000
NDRX_RNDK=test_skynet
XDG_CURRENT_DESKTOP=KDE
ORACLE_HOME=/u01/app/oracle/product/12.1.0.2/db_1
LC_TIME=lv_LV.UTF-8
PAM_KWALLET_LOGIN=/tmp/kwallet_lradzev.socket
NDRX_CMDWAIT=1
NDRX_XA_RMLIB=/u01/app/oracle/product/12.1.0.2/db_1/lib/libclntsh.so.12.1
COLORTERM=truecolor
QMLSCENE_DEVICE=
XAUTHORITY=/root/.xauthTMTpKj
_=/usr/bin/xadmin
---------------------------------------------------------------

GitHub issue: https://github.com/endurox-dev/endurox-python2/issues/1

History

#2 Updated by Lauris Radzevics almost 2 years ago

Python server is working ok with latest changes (c4b6e2e)

#3 Updated by Madars Vitolins almost 2 years ago

Fixed.

#4 Updated by Madars Vitolins almost 2 years ago

  • Status changed from New to Resolved

#5 Updated by Madars Vitolins almost 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF