Page 1 of 1

Any idea what this error means?

Posted: Sat Dec 27, 2014 1:26 pm
by sahar
getting it whenever i start up the server:
*sys-package-mgr*: can't create package cache dir, '/l2j/libs/jython.jar/../cachedir/packages'

Re: Any idea what this error means?

Posted: Sat Dec 27, 2014 4:35 pm
by Zoey76

Re: Any idea what this error means?

Posted: Sat Dec 27, 2014 5:08 pm
by sahar
I don't get it the folder has permissions and the folder packages does gets created but still it throws that message...

Re: Any idea what this error means?

Posted: Sat Dec 27, 2014 5:35 pm
by Zoey76
The path is incorrect for some reason, try passing the path in the server starting script.

Re: Any idea what this error means?

Posted: Sat Dec 27, 2014 5:44 pm
by sahar
you mean the gameserver_loop.sh?

Code: Select all

#!/bin/bash

# exit codes of GameServer:
#  0 normal shutdown
#  2 reboot attempt

while :; do
	[ -f log/java0.log.0 ] && mv log/java0.log.0 "log/`date +%Y-%m-%d_%H-%M-%S`_java.log"
	[ -f log/stdout.log ] && mv log/stdout.log "log/`date +%Y-%m-%d_%H-%M-%S`_stdout.log"
	java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Dpython.cachedir=../cachedir -Xms1024m -Xmx1536m -jar l2jserver.jar > log/stdout.log 2>&1
	[ $? -ne 2 ] && break
#	/etc/init.d/mysql restart
	sleep 10
done

Re: Any idea what this error means?

Posted: Sat Dec 27, 2014 5:53 pm
by Zoey76

Code: Select all

-Dpython.cachedir=../cachedir
Make sure that folder exist and it has permissions to create and delete there.

Re: Any idea what this error means?

Posted: Sat Dec 27, 2014 6:14 pm
by sahar
I go to that path and it exist and has full permissions, really no idea why is it failing...
is it even a valid path?
*sys-package-mgr*: can't create package cache dir, '/root/l2j/libs/jython.jar/../cachedir/packages'

Re: Any idea what this error means?

Posted: Sat Dec 27, 2014 9:50 pm
by Zoey76
I'll have to test myself, try with explicit path

Code: Select all

-Dpython.cachedir=root/l2j/libs/cachedir

Re: Any idea what this error means?

Posted: Sat Dec 27, 2014 10:07 pm
by sahar
Works with:
/root/l2j/libs/cachedir
Note the slash at the beginning in addition to what you sent me.

I guess this should be considered a bug to fix.

Re: Any idea what this error means?

Posted: Sun Dec 28, 2014 4:08 am
by Zoey76
sahar wrote:Works with:
/root/l2j/libs/cachedir
Note the slash at the beginning in addition to what you sent me.

I guess this should be considered a bug to fix.

Not really a bug fix, we cannot hardcode it to that path, mostly a bug report.

Need to get my hands on a linux both and start testing.