jnidispatch library Permission denied

For help and support with issues specific to Linux/Unix
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

jnidispatch library Permission denied

Postby gareth_iowc » Wed Nov 21, 2012 5:15 am

hey all,

can any one help me with this error?

Configuration error: java.lang.Error: Failed to create temporary file for jnidispatch library: java.io.IOException: Permission denied

heres it in full:

Code: Select all
server01@Server01:~$ /opt/pms/PMS.sh
03:28:41.631 [main] DEBUG o.a.c.c.PropertiesConfiguration - FileName set to PMS.conf
03:28:41.638 [main] DEBUG o.a.c.c.PropertiesConfiguration - Base path set to /home/server01/.config/PMS
03:28:41,765 |-INFO in ch.qos.logback.core.joran.action.DefinePropertyAction - About to instantiate property definer of type [net.pms.logging.DebugLogPathDefiner]
03:28:41,767 |-INFO in ch.qos.logback.core.joran.action.DefinePropertyAction - Popping property definer for property named [debugLogPath] from the object stack
03:28:41,771 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
03:28:41,771 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [console]
03:28:41,821 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
03:28:41,824 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [debug.log]
03:28:41,830 |-INFO in ch.qos.logback.core.FileAppender[debug.log] - File property is set to [/opt/pms/debug.log]
03:28:41,832 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
03:28:41,834 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [debug.log.10MB]
03:28:41,856 |-INFO in ch.qos.logback.core.rolling.FixedWindowRollingPolicy@23309e87 - Will use zip compression
03:28:41,867 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[debug.log.10MB] - Active log file name: /opt/pms/debug.log
03:28:41,867 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[debug.log.10MB] - File property is set to [/opt/pms/debug.log]
03:28:41,867 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache] to WARN
03:28:41,868 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [httpclient.wire] to WARN
03:28:41,868 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to DEBUG
03:28:41,868 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [console] to Logger[ROOT]
03:28:41,868 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [debug.log] to Logger[ROOT]
03:28:41,869 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
03:28:41,869 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@e49d67c - Registering current configuration as safe fallback point
INFO  2012-11-21 03:28:41.872 [main] GUI environment not available
INFO  2012-11-21 03:28:41.873 [main] Switching to console mode
INFO  2012-11-21 03:28:41.874 [main] Starting PS3 Media Server 1.72.0
INFO  2012-11-21 03:28:41.875 [main] by shagrath / 2008-2012
INFO  2012-11-21 03:28:41.875 [main] http://ps3mediaserver.org
INFO  2012-11-21 03:28:41.875 [main] https://github.com/ps3mediaserver/ps3mediaserver
INFO  2012-11-21 03:28:41.875 [main]
INFO  2012-11-21 03:28:41.875 [main] Build: d9fd0a44c (2012-11-18)
INFO  2012-11-21 03:28:41.875 [main] Java: 1.6.0_24-Sun Microsystems Inc.
INFO  2012-11-21 03:28:41.876 [main] OS: Linux amd64 3.0.0-15-server
INFO  2012-11-21 03:28:41.876 [main] Encoding: UTF-8
INFO  2012-11-21 03:28:41.876 [main] Memory: 742 MB
INFO  2012-11-21 03:28:41.876 [main]
INFO  2012-11-21 03:28:41.876 [main] Working directory: /opt/pms
INFO  2012-11-21 03:28:41.883 [main] Temp directory: /tmp/ps3mediaserver
INFO  2012-11-21 03:28:41.884 [main] Logging config file: /opt/pms/logback.headless.xml
INFO  2012-11-21 03:28:41.884 [main] debug.log: /opt/pms/debug.log
INFO  2012-11-21 03:28:41.884 [main]
INFO  2012-11-21 03:28:41.885 [main] Profile directory: /home/server01/.config/PMS
INFO  2012-11-21 03:28:41.885 [main] Profile path: /home/server01/.config/PMS/PMS.conf
INFO  2012-11-21 03:28:41.885 [main] Profile permissions: no such file
INFO  2012-11-21 03:28:41.885 [main] Profile name: Server01
INFO  2012-11-21 03:28:41.886 [main]
Configuration error: java.lang.Error: Failed to create temporary file for jnidispatch library: java.io.IOException: Permission denied


i'm running ubuntu server 12.10 64bit.

any suggestions?

thanks
gareth_iowc
 
Posts: 1
Joined: Wed Nov 21, 2012 4:46 am

Re: jnidispatch library Permission denied

Postby chocolateboy » Wed Nov 21, 2012 2:46 pm

1) Don't run PMS as root.

2) Check the permissions of /tmp/jna:

Code: Select all
ls -ld /tmp/jna


If they're wrong, change them or remove the directory:

Code: Select all
sudo rm -rf /tmp/jna
chocolateboy
Project Member
 
Posts: 2580
Joined: Wed Sep 16, 2009 10:05 am

Re: jnidispatch library Permission denied

Postby jupo » Sun Mar 31, 2013 4:52 pm

chocolateboy wrote:1) Don't run PMS as root.

2) Check the permissions of /tmp/jna:

Code: Select all
ls -ld /tmp/jna


If they're wrong, change them or remove the directory:

Code: Select all
sudo rm -rf /tmp/jna


this resolved the problem for me. thanks chocolateboy!
jupo
 
Posts: 12
Joined: Sat Mar 30, 2013 12:39 pm


Return to Linux/Unix Support

Who is online

Users browsing this forum: No registered users and 5 guests