PDA

View Full Version : pluginLicenses.conf could not open file, no such file and directory error



MarBe
January 15th, 2016, 02:16 PM
Hi, please, I get this error on my raspberrypi. On stopping the service girder6 system is waiting and at log:
/opt/girder/qt/etc/xdg/Proximis/pluginLicenses.conf

Thanks.

Ron
January 15th, 2016, 02:21 PM
Copy the contents of your Windows machine's C:\ProgramData\Promixis\Girder 6.ini into that file. Make sure it's world readable (or at least so by the girder service).



[License]
license=Your Name\nYOUR-LICENSE-HERE-ITSVE-RYLONG

MarBe
January 15th, 2016, 03:27 PM
thanks, but the file is there.
when issued /etc/init.d/girder stop
console returns following and just hangs. this happens also on system reboot
and I have to manually reset the device (raspberypi)

root@raspberrypi:~# /etc/init.d/girder stop
Stopping Girder 6 backend: Girder6 Girder License Path "/opt/girder/qt/etc/xdg/Promixis/"


we have also tried to create missing pluginLicenses.conf by copying 'Girder 6.ini' that we already had on the system.

pi@raspberrypi ~ $ ls -l /opt/girder/qt/etc/xdg/Promixis/
total 8
-rw-r--r-- 1 root root 128 Dec 8 16:41 Girder 6.ini
-rw-r--r-- 1 pi pi 128 Jan 15 20:45 pluginLicenses.conf


Last but not least, after system reboot Girder starts properly and is running under root user.
When we kill all processes and start service as /etc/init.d/girder start the service starts properly but we can not see any action tree, so we suspect that configuratin is read from different directory but we can not find which one.

Ron
January 16th, 2016, 06:11 PM
When manually starting make sure you start it via 'sudo'. You assumption is correct, when Girder runs as a different user it reads its settings from a different directory.

MarBe
January 17th, 2016, 01:01 PM
OK, that maybe should be the starting script with sudo commands?

#!/bin/sh

### BEGIN INIT INFO
# Provides: girder
# Required-Start: $network $local_fs $remote_fs $syslog
# Required-Stop: $network $local_fs $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts Girder
# Description: Starts the Girder backend daemon
### END INIT INFO

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# LOCATION=/usr/local/bin
DAEMON=/opt/girder/Girder6Service
NAME="Girder6"
DESC="Girder 6 backend"

USER="${USER:=root}"
export USER
HOME="${HOME:=/root}"
export HOME

test -x $DAEMON || (echo "girder is not installed." && exit 1)


LOGFILE=/var/log/girder.log
ARGS=""
EXTRA_ARGS=""

if [ -f /etc/girder/config ]; then
. /etc/girder/config
fi

ARGS="$ARGS $EXTRA_ARGS"


case "$1" in
start)
echo -n "Starting $DESC: $NAME"
sudo /opt/girder/Girder6Service 2> $LOGFILE
;;
stop)
echo -n "Stopping $DESC: $NAME "
sudo /opt/girder/Girder6Service -terminate
;;
restart|force-reload)
echo -n "Restarting $DESC: $NAME"
sudo /opt/girder/Girder6Service -terminate
sleep 3
sudo /opt/girder/Girder6Service 2> $LOGFILE
;;
*)
N=/etc/init.d/$NAME
# echo "Usage: $N {start|stop|restart}" >&2
echo "Usage: $N {start|stop|restart}" >&2
exit 1
;;
esac

exit 0