Hello!
I'm using PBIS-open on Ubuntu since 12.04 but with 16.04 I've got an issue (which appears only on few laptop models, for ex. Dell E7270) where PBIS just won't start
Code:
root@<hostname>:/opt/pbis/libexec# domainjoin-cli query
Error: ERROR_FILE_NOT_FOUND [code 0x00000002]
Code:
root@<hostname>:/opt/pbis/libexec# service lwsmd restart
Job for lwsmd.service failed because a timeout was exceeded. See "systemctl status lwsmd.service" and "journalctl -xe" for details.
root@<hostname>:/opt/pbis/libexec# journalctl -xe
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: State 'stop-final-sigterm' timed out. Killing.
Aug 08 10:57:35 <hostname> systemd[1]: Stopped BeyondTrust PBIS Service Manager.
-- Subject: Unit lwsmd.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit lwsmd.service has finished shutting down.
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Unit entered failed state.
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Failed with result 'timeout'.
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment 'alias aliastest=echo': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment 'alias _test_alias=true': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment 'case a in a) _test_alias; alias_case_works=$?;; esac': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment 'alias echo=echo_rename': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment 'alias alias=alias_replacement': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment 'elif [ "`uname -s`"=AIX]; then': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment 'elif [ "`uname -s`"=HP-UX]; then': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment 'elif [ "`uname -s`"=SunOS]; then': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment 'elif [ "`uname -s`"=VMkernel]; then': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment 'elif [ "`uname`"=FreeBSD-o "`uname`" = "Isilon OneFS" ]; then': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment 'if [ $PLATFORM=HP-UX-o $PLATFORM = "SOLARIS" -o $PLATFORM = "FREEBSD" ]; then': /opt/pbis/libexec/init-base.s
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment 'alias printf=/bin/printf': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment 'if [ "$1"=-n]; then': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment 'if [ "`echo -n`"=-n]; then': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment 'alias echo=echo_replacement': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment 'alias seq=seq_replacement': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment 'if [ $status=0 ]; then': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment 'if [ "${PLATFORM}"=ESXI]; then': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment 'if [ "$pid_comm"=<defunct>]; then': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment 'if [ "$pid_comm"=${PROG_BIN}]; then': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment '( UNIX95=ps -e -o pid= -o args= | grep "^ *[0123456789]* *${PROG_BIN}" | awk '{ print $1 };' )': /opt/pbis/li
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment '( UNIX95=1; ps -e -o pid= -o args= | grep "^ *[0123456789]* *${PROG_BIN}" | awk '{ print $1 };' )': /opt/pbis
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment 'eval value=$$name': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment '[ $status=0 ] && [ ${PLATFORM} != "DEBIAN" ] && touch ${LOCKFILE}': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment '[ $? -ne 0 -a $? -ne 4 ] && status=0 && break': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment '[ $? -ne 0 -a $? -ne 4 ] && status=0 && break': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment '[ $status=0 ] && /bin/rm -f ${LOCKFILE}': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment 'grep -q ${AUTHD_BIN} /proc/${pid}/cmdline && pids=$pids $pid': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> lwsmd[5677]: 20160808105735:ALWAYS: Logging started
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment '[ ! -z "`UNIX95=1 ps -p $pid -o pid=`" ] && kill "$1" $pid': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment 'eval "${name}_enable=YES"': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment '[ "$1"=start-a -n "${STARTHOOK}" ] && ${STARTHOOK}': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Ignoring invalid environment assignment '[ "$1"=start-a -n "${POSTSTARTHOOK}" ] && ${POSTSTARTHOOK}': /opt/pbis/libexec/init-base.sh
Aug 08 10:57:35 <hostname> systemd[1]: Starting BeyondTrust PBIS Service Manager...
-- Subject: Unit lwsmd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit lwsmd.service has begun starting up.
Aug 08 10:57:35 <hostname> lwsmd[5677]: 20160808105735:INFO: Likewise Service Manager starting up
Aug 08 10:57:35 <hostname> lwsmd[5677]: 20160808105735:INFO:lwsm-ipc: Listener started
Aug 08 10:57:35 <hostname> lwsmd[5677]: 20160808105735:VERBOSE: Bootstrapping
Aug 08 10:57:35 <hostname> lwsmd[5677]: 20160808105735:INFO: Starting service: lwreg
Aug 08 10:57:35 <hostname> lwreg[5732]: Logging started
Aug 08 10:57:35 <hostname> lwsmd[5677]: 20160808105735:VERBOSE: Populating service table
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Control process exited, code=killed status=11
Aug 08 10:57:35 <hostname> kernel: traps: lwsmd[5731] general protection ip:7fd02b4c3960 sp:7fd01e9bade8 error:0 in libpthread-2.23.so[7fd02b4b1000+18000]
Code:
root@<hostname>:/opt/pbis/libexec# cat /etc/systemd/system/lwsmd.service
[Unit]
Description=BeyondTrust PBIS Service Manager
After=network.target
[Service]
Type=forking
EnvironmentFile=/opt/pbis/libexec/init-base.sh
#ExecPreStart=/opt/pbis/libexec/init-base.sh
ExecStart=/opt/pbis/sbin/lwsmd –start-as-daemon
ExecReload=/opt/pbis/bin/lwsm refresh
ExecStop=/opt/pbis/bin/lwsm shutdown
# We want systemd to give lwsmd some time to finish gracefully, but still want
# it to kill lwsmd after TimeoutStopSec if something went wrong during the
# graceful stop. Normally, Systemd sends SIGTERM signal right after the
# ExecStop, which would kill lwsmd. We are sending useless SIGCONT here to give
# lwsmd time to finish.
KillSignal=SIGCONT
PrivateTmp=false
[Install]
WantedBy=multi-user.target nss-lookup.target
Code:
root@<hostname>:/opt/pbis/libexec# service lwsmd status
● lwsmd.service - BeyondTrust PBIS Service Manager
Loaded: loaded (/lib/systemd/system/lwsmd.service; enabled; vendor preset: enabled)
Active: failed (Result: timeout) since Mon 2016-08-08 10:59:05 CEST; 9min ago
Process: 5677 ExecStart=/opt/pbis/sbin/lwsmd –start-as-daemon (code=killed, signal=SEGV)
Aug 08 10:57:35 <hostname> lwsmd[5677]: 20160808105735:INFO:lwsm-ipc: Listener started
Aug 08 10:57:35 <hostname> lwsmd[5677]: 20160808105735:VERBOSE: Bootstrapping
Aug 08 10:57:35 <hostname> lwsmd[5677]: 20160808105735:INFO: Starting service: lwreg
Aug 08 10:57:35 <hostname> lwreg[5732]: Logging started
Aug 08 10:57:35 <hostname> lwsmd[5677]: 20160808105735:VERBOSE: Populating service table
Aug 08 10:57:35 <hostname> systemd[1]: lwsmd.service: Control process exited, code=killed status=11
Aug 08 10:59:05 <hostname> systemd[1]: lwsmd.service: State 'stop-final-sigterm' timed out. Killing.
Aug 08 10:59:05 <hostname> systemd[1]: Failed to start BeyondTrust PBIS Service Manager.
Aug 08 10:59:05 <hostname> systemd[1]: lwsmd.service: Unit entered failed state.
Aug 08 10:59:05 <hostname> systemd[1]: lwsmd.service: Failed with result 'timeout'.
Tried few versions of PBIS; for ex.
7.5.3.1536 and
8.3.0.3287 Any ideas, what more can I do?
systemd symlinks are created