Root folder showing as 93GB file instead of folder

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.

Re: Root folder showing as 93GB file instead of folder

Postby ShadowPuppet » Fri Nov 23, 2012 4:52 am

Okay I will try that. Sorry for being so stupid lol

And I don't run the server as root, I was sudo su'd to check for log files anywhere on the server

EDIT:

Code: Select all
root@homeserver:/usr/lib/ps3mediaserver# cd /usr/bin/ps3mediaserver
bash: cd: /usr/bin/ps3mediaserver: Not a directory
ShadowPuppet
 
Posts: 17
Joined: Tue Nov 20, 2012 6:12 am

Re: Root folder showing as 93GB file instead of folder

Postby chocolateboy » Fri Nov 23, 2012 4:57 am

/usr/bin/ps3mediaserver is PMS.sh. It's a script, not a directory. Run it as described at the end of the FAQ post and post the output.txt along with the debug.log or JVM error file.

And, as I said, it needs to not be run by root.
chocolateboy
Project Member
 
Posts: 2577
Joined: Wed Sep 16, 2009 10:05 am

Re: Root folder showing as 93GB file instead of folder

Postby ShadowPuppet » Fri Nov 23, 2012 5:00 am

Code: Select all
23:00:15.196 [main] DEBUG o.a.c.c.PropertiesConfiguration - FileName set to PMS.conf
23:00:15.204 [main] DEBUG o.a.c.c.PropertiesConfiguration - Base path set to /home/rossvaller/.config/PMS
23:00:15.275 [main] INFO  net.pms.PMS - GUI environment not available
23:00:15.283 [main] INFO  net.pms.PMS - Switching to console mode
23:00:15.285 [main] INFO  net.pms.PMS - Starting PS3 Media Server 1.80.0-SNAPSHOT
23:00:15.285 [main] INFO  net.pms.PMS - by shagrath / 2008-2012
23:00:15.285 [main] INFO  net.pms.PMS - http://ps3mediaserver.org
23:00:15.285 [main] INFO  net.pms.PMS - https://github.com/ps3mediaserver/ps3mediaserver
23:00:15.285 [main] INFO  net.pms.PMS -
23:00:15.285 [main] INFO  net.pms.PMS - Build: f3da164a9 (2012-11-23)
23:00:15.285 [main] INFO  net.pms.PMS - Java: 1.6.0_24-Sun Microsystems Inc.
23:00:15.286 [main] INFO  net.pms.PMS - OS: Linux amd64 3.2.0-33-generic
23:00:15.286 [main] INFO  net.pms.PMS - Encoding: UTF-8
23:00:15.286 [main] INFO  net.pms.PMS - Memory: 682 MB
23:00:15.294 [main] INFO  net.pms.PMS -
23:00:15.294 [main] INFO  net.pms.PMS - Working directory: /usr/lib/ps3mediaserver
23:00:15.307 [main] INFO  net.pms.PMS - Temp directory: /tmp/ps3mediaserver
23:00:15.307 [main] INFO  net.pms.PMS - Logging config file: internal defaults
23:00:15.308 [main] INFO  net.pms.PMS -
23:00:15.308 [main] INFO  net.pms.PMS - Profile directory: /home/rossvaller/.config/PMS
23:00:15.320 [main] INFO  net.pms.PMS - Profile path: /home/rossvaller/.config/PMS/PMS.conf
23:00:15.320 [main] INFO  net.pms.PMS - Profile permissions: no such file
23:00:15.410 [main] INFO  n.pms.configuration.PmsConfiguration - Can't determine hostname
23:00:15.410 [main] INFO  net.pms.PMS - Profile name: unknown host
23:00:15.410 [main] INFO  net.pms.PMS -
Configuration error: java.lang.Error: Failed to create temporary file for jnidispatch library: java.io.IOException: Permission denied
ShadowPuppet
 
Posts: 17
Joined: Tue Nov 20, 2012 6:12 am

Re: Root folder showing as 93GB file instead of folder

Postby chocolateboy » Fri Nov 23, 2012 5:03 am

ShadowPuppet wrote:
Code: Select all
Configuration error: java.lang.Error: Failed to create temporary file for jnidispatch library: java.io.IOException: Permission denied


viewtopic.php?f=3&t=15807&p=75471#p75471
chocolateboy
Project Member
 
Posts: 2577
Joined: Wed Sep 16, 2009 10:05 am

Re: Root folder showing as 93GB file instead of folder

Postby ShadowPuppet » Fri Nov 23, 2012 5:23 am

Fixed but now I get another error saying it can't find mplayer. This didn't happen before when I ran it as sudo... here's the new log

Code: Select all
23:22:12.843 [main] DEBUG o.a.c.c.PropertiesConfiguration - FileName set to PMS.conf
23:22:12.849 [main] DEBUG o.a.c.c.PropertiesConfiguration - Base path set to /home/rossvaller/.config/PMS
23:22:12.871 [main] INFO  net.pms.PMS - GUI environment not available
23:22:12.871 [main] INFO  net.pms.PMS - Switching to console mode
23:22:12.873 [main] INFO  net.pms.PMS - Starting PS3 Media Server 1.80.0-SNAPSHOT
23:22:12.873 [main] INFO  net.pms.PMS - by shagrath / 2008-2012
23:22:12.873 [main] INFO  net.pms.PMS - http://ps3mediaserver.org
23:22:12.873 [main] INFO  net.pms.PMS - https://github.com/ps3mediaserver/ps3mediaserver
23:22:12.873 [main] INFO  net.pms.PMS -
23:22:12.873 [main] INFO  net.pms.PMS - Build: f3da164a9 (2012-11-23)
23:22:12.873 [main] INFO  net.pms.PMS - Java: 1.6.0_24-Sun Microsystems Inc.
23:22:12.874 [main] INFO  net.pms.PMS - OS: Linux amd64 3.2.0-33-generic
23:22:12.874 [main] INFO  net.pms.PMS - Encoding: UTF-8
23:22:12.874 [main] INFO  net.pms.PMS - Memory: 682 MB
23:22:12.874 [main] INFO  net.pms.PMS -
23:22:12.874 [main] INFO  net.pms.PMS - Working directory: /usr/lib/ps3mediaserver
23:22:12.883 [main] INFO  net.pms.PMS - Temp directory: /tmp/ps3mediaserver
23:22:12.884 [main] INFO  net.pms.PMS - Logging config file: internal defaults
23:22:12.884 [main] INFO  net.pms.PMS -
23:22:12.884 [main] INFO  net.pms.PMS - Profile directory: /home/rossvaller/.config/PMS
23:22:12.884 [main] INFO  net.pms.PMS - Profile path: /home/rossvaller/.config/PMS/PMS.conf
23:22:12.884 [main] INFO  net.pms.PMS - Profile permissions: no such file
23:22:12.967 [main] INFO  n.pms.configuration.PmsConfiguration - Can't determine hostname
23:22:12.968 [main] INFO  net.pms.PMS - Profile name: unknown host
23:22:12.968 [main] INFO  net.pms.PMS -
23:22:13.078 [main] WARN  net.pms.dlna.MediaInfo - Error loading libzen: Unable to load library 'zen': libzen.so: cannot open shared object file: No such file or directory
23:22:13.079 [main] INFO  net.pms.dlna.MediaInfo - Loading MediaInfo library
23:22:13.115 [main] INFO  net.pms.dlna.MediaInfo - Error loading MediaInfo library: Unable to load library 'mediainfo': libmediainfo.so: cannot open shared object file: No such file or directory
23:22:13.115 [main] INFO  net.pms.dlna.MediaInfo - Make sure you have libmediainfo and libzen installed
23:22:13.115 [main] INFO  net.pms.dlna.MediaInfo - The server will now use the less accurate ffmpeg parsing method
23:22:13.119 [main] INFO  net.pms.PMS - Checking MPlayer font cache. It can take a minute or so.
23:22:13.120 [main] DEBUG net.pms.PMS - launching: mplayer
23:22:13.136 [main] ERROR net.pms.PMS - Cannot launch MPlayer / Check the presence of mplayer ...
java.io.IOException: Cannot run program "mplayer": java.io.IOException: error=2, No such file or directory
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:475) ~[na:1.6.0_24]
   at net.pms.PMS.checkProcessExistence(PMS.java:213) [pms.jar:na]
   at net.pms.PMS.init(PMS.java:391) [pms.jar:na]
   at net.pms.PMS.createInstance(PMS.java:778) [pms.jar:na]
   at net.pms.PMS.main(PMS.java:852) [pms.jar:na]
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
   at java.lang.UNIXProcess.<init>(UNIXProcess.java:164) ~[na:1.6.0_24]
   at java.lang.ProcessImpl.start(ProcessImpl.java:81) ~[na:1.6.0_24]
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:468) ~[na:1.6.0_24]
   ... 4 common frames omitted
23:22:13.137 [main] INFO  net.pms.PMS - Done!
23:22:13.142 [main] INFO  net.pms.external.ExternalFactory - Searching for plugins in /usr/lib/ps3mediaserver/plugins
23:22:13.143 [main] INFO  net.pms.external.ExternalFactory - No plugins found
23:22:13.168 [main] INFO  net.pms.formats.FormatFactory - Registering transcoding engine: FFmpeg Audio
23:22:13.174 [main] INFO  net.pms.formats.FormatFactory - Registering transcoding engine: MEncoder
23:22:13.174 [main] INFO  net.pms.formats.FormatFactory - Registering transcoding engine: FFmpeg
23:22:13.174 [main] INFO  net.pms.formats.FormatFactory - Registering transcoding engine: MPlayer Audio
23:22:13.175 [main] INFO  net.pms.formats.FormatFactory - Registering transcoding engine: FFmpeg Web Video
23:22:13.175 [main] INFO  net.pms.formats.FormatFactory - Registering transcoding engine: MEncoder Web
23:22:13.175 [main] INFO  net.pms.formats.FormatFactory - Registering transcoding engine: MPlayer Video Dump
23:22:13.175 [main] INFO  net.pms.formats.FormatFactory - Registering transcoding engine: MPlayer Web
23:22:13.177 [main] INFO  net.pms.formats.FormatFactory - Registering transcoding engine: tsMuxeR
23:22:13.177 [main] INFO  net.pms.formats.FormatFactory - Registering transcoding engine: Audio High Fidelity
23:22:13.177 [main] INFO  net.pms.formats.FormatFactory - Registering transcoding engine: VLC Audio Streaming
23:22:13.177 [main] INFO  net.pms.formats.FormatFactory - Registering transcoding engine: VLC Video Streaming
23:22:13.178 [main] INFO  net.pms.formats.FormatFactory - Registering transcoding engine: dcraw Thumbnailer
23:22:13.187 [main] INFO  net.pms.network.HTTPServer - Using address /192.168.126.100 found on network interface: name:eth0 (eth0)
23:22:13.188 [main] INFO  net.pms.network.HTTPServer - Created socket: /192.168.126.100:5001
23:22:13.365 [main] DEBUG net.pms.network.UPNPHelper - Sending ALIVE...
23:22:13.369 [main] INFO  net.pms.PMS - Generated new random UUID: 128851da-f84f-44ed-bcf8-21af5eeba712
23:22:13.381 [main] INFO  n.pms.configuration.PmsConfiguration - Configuration saved to: /home/rossvaller/.config/PMS/PMS.conf
23:22:13.381 [main] INFO  net.pms.PMS - Using the following UUID configured in PMS.conf: 128851da-f84f-44ed-bcf8-21af5eeba712
23:22:14.013 [New I/O server worker #1-1] INFO  net.pms.configuration.IpFilter - No IP filter specified, access granted to /192.168.126.20
23:22:14.029 [New I/O server worker #1-1] INFO  net.pms.network.RequestHandlerV2 - Media renderer was not recognized. Possible identifying HTTP headers: User-Agent: SEC_HHP_[TV]Ross/1.0 DLNADOC/1.50
23:22:14.029 [New I/O server worker #1-2] INFO  net.pms.network.RequestHandlerV2 - Media renderer was not recognized. Possible identifying HTTP headers: User-Agent: SEC_HHP_[TV]Ross/1.0 DLNADOC/1.50
23:22:14.085 [New I/O server worker #1-3] INFO  net.pms.network.RequestHandlerV2 - Media renderer was not recognized. Possible identifying HTTP headers: User-Agent: SEC_HHP_[TV]Ross/1.0 DLNADOC/1.50
23:22:14.100 [New I/O server worker #1-4] INFO  net.pms.network.RequestHandlerV2 - Media renderer was not recognized. Possible identifying HTTP headers: User-Agent: SEC_HHP_[TV]Ross/1.0 DLNADOC/1.50
23:22:14.107 [New I/O server worker #1-1] INFO  net.pms.network.RequestHandlerV2 - Media renderer was not recognized. Possible identifying HTTP headers: User-Agent: SEC_HHP_[TV]Ross/1.0 DLNADOC/1.50
23:22:14.139 [New I/O server worker #1-2] INFO  net.pms.network.RequestHandlerV2 - Media renderer was not recognized. Possible identifying HTTP headers: User-Agent: SEC_HHP_[TV]Ross/1.0 DLNADOC/1.50
23:22:15.744 [New I/O server worker #1-3] INFO  net.pms.configuration.IpFilter - No IP filter specified, access granted to /192.168.126.11
23:22:15.746 [New I/O server worker #1-3] INFO  net.pms.network.RequestHandlerV2 - Media renderer was not recognized. Possible identifying HTTP headers: User-Agent: UPnP/1.0, X-AV-Client-Info: av=5.0; cn="Sony Computer Entertainment Inc."; mn="PLAYSTATION 3"; mv="1.0";
23:22:15.810 [New I/O server worker #1-4] INFO  net.pms.network.RequestHandlerV2 - Media renderer was not recognized. Possible identifying HTTP headers: User-Agent: UPnP/1.0, X-AV-Client-Info: av=5.0; cn="Sony Computer Entertainment Inc."; mn="PLAYSTATION 3"; mv="1.0";
23:22:15.883 [New I/O server worker #1-1] INFO  net.pms.network.RequestHandlerV2 - Media renderer was not recognized. Possible identifying HTTP headers: User-Agent: UPnP/1.0 DLNADOC/1.50, X-AV-Client-Info: av=5.0; cn="Sony Computer Entertainment Inc."; mn="PLAYSTATION 3"; mv="1.0";
23:22:15.914 [New I/O server worker #1-2] INFO  net.pms.network.RequestHandlerV2 - Media renderer was not recognized. Possible identifying HTTP headers: User-Agent: UPnP/1.0 DLNADOC/1.50, X-AV-Client-Info: av=5.0; cn="Sony Computer Entertainment Inc."; mn="PLAYSTATION 3"; mv="1.0";
23:22:15.969 [main] INFO  net.pms.PMS - The server should now appear on your renderer
23:22:25.967 [UPNP-AliveMessageSender] DEBUG net.pms.network.UPNPHelper - Sending ALIVE...
23:22:29.921 [New I/O server worker #1-3] INFO  net.pms.network.RequestHandlerV2 - Media renderer was not recognized. Possible identifying HTTP headers: User-Agent: UPnP/1.0, X-AV-Client-Info: av=5.0; cn="Sony Computer Entertainment Inc."; mn="PLAYSTATION 3"; mv="1.0";
23:22:51.228 [UPNP-AliveMessageSender] DEBUG net.pms.network.UPNPHelper - Sending ALIVE...
23:22:53.939 [New I/O server worker #1-4] INFO  net.pms.network.RequestHandlerV2 - Media renderer was not recognized. Possible identifying HTTP headers: User-Agent: UPnP/1.0, X-AV-Client-Info: av=5.0; cn="Sony Computer Entertainment Inc."; mn="PLAYSTATION 3"; mv="1.0";
ShadowPuppet
 
Posts: 17
Joined: Tue Nov 20, 2012 6:12 am

Re: Root folder showing as 93GB file instead of folder

Postby chocolateboy » Fri Nov 23, 2012 5:46 am

First of all, please don't copy and paste whole logfiles. Upload them to pastebin as has already been requested.

Second, your server has no hostname (add a name (a single word) to /etc/hostname and reboot the server).

Third, the fact that you ran PMS as root ("This didn't happen before when I ran it as sudo") might well be why it's broken. Try reinstalling:

Code: Select all
sudo rm -rf /tmp/ps3mediaserver
sudo apt-get purge ps3mediaserver
sudo apt-get install ps3mediaserver
mv /home/rossvaller/.config/PMS/PMS.conf /home/rossvaller/.config/PMS/PMS.conf.bak
chocolateboy
Project Member
 
Posts: 2577
Joined: Wed Sep 16, 2009 10:05 am

Re: Root folder showing as 93GB file instead of folder

Postby ShadowPuppet » Fri Nov 23, 2012 6:28 am

There is a hostname: homeserver

And I did that and when trying to start the service (service ps3mediaserver start) I get this

Code: Select all
rossvaller@homeserver:~$ service ps3mediaserver start
stop: Unknown instance:
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.16" (uid=1000 pid=1767 comm="start ps3mediaserver ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")
ShadowPuppet
 
Posts: 17
Joined: Tue Nov 20, 2012 6:12 am

Re: Root folder showing as 93GB file instead of folder

Postby chocolateboy » Fri Nov 23, 2012 12:59 pm

when trying to start the service (service ps3mediaserver start) I get this


As I said, don't run PMS as a service while troubleshooting.

If you can't launch PMS by running /usr/bin/ps3mediaserver as an ordinary user, your system is not set up properly and the snapshot jar won't work. If you need help with the PPA, post in the PPA thread.
chocolateboy
Project Member
 
Posts: 2577
Joined: Wed Sep 16, 2009 10:05 am

Re: Root folder showing as 93GB file instead of folder

Postby ShadowPuppet » Sat Nov 24, 2012 5:20 am

Woot after a bunch of trouble (reinstalling, cleaning out config files, changing hostname to 'localhost', general stuff lol) I managed to get it to run smoothly from command line

Experimenting with running as service and seems better! Thanks a TON for all your help dude! Really appreciate it!!

I shall post again if things spiral out of control again by this n00b right here :P Thanks again bro :)
ShadowPuppet
 
Posts: 17
Joined: Tue Nov 20, 2012 6:12 am

Re: Root folder showing as 93GB file instead of folder

Postby ShadowPuppet » Tue Nov 27, 2012 3:35 am

Just updating the situation,

Everything seems perfect now. The server has been running straight for the last 4 days and have always been able to access it when I try. Seems to be fixed :D

Thanks again dude! Amazing help :D

Cheers

Shad
ShadowPuppet
 
Posts: 17
Joined: Tue Nov 20, 2012 6:12 am

Previous

Return to Linux/Unix Support

Who is online

Users browsing this forum: No registered users and 7 guests