Page 1 of 1

.dir file in C:\ root

PostPosted: Sun Sep 16, 2012 2:58 am
by seus
I noticed a .dir file with no filename kept popping up in the root of C:\, I used Process Monitor and noticed Serviio service was creating it. All the file contains is a timestamp and a big hash. Just curious what the purpose of this file is...I'm on Windows 8 but never noticed this on Windows 7.

Re: .dir file in C:\ root

PostPosted: Sun Sep 16, 2012 7:05 pm
by zip
Not sure. Might be created by libRTMP to cache security hashes (but normally is under user's tmp folder)

Re: .dir file in C:\ root

PostPosted: Wed Sep 19, 2012 5:22 am
by seus
zip wrote:Not sure. Might be created by libRTMP to cache security hashes (but normally is under user's tmp folder)

Interesting, not sure how that would get redirected to root of C:\, curious if other Windows 8 users see this.

Re: .dir file in C:\ root

PostPosted: Wed Sep 19, 2012 5:37 am
by iheartninjas
seus wrote:
zip wrote:Not sure. Might be created by libRTMP to cache security hashes (but normally is under user's tmp folder)

Interesting, not sure how that would get redirected to root of C:\, curious if other Windows 8 users see this.


Running win7 home premium i have this file. I didnt know where it came from

Re: .dir file in C:\ root

PostPosted: Wed Sep 19, 2012 10:17 pm
by zip
It's there possibly because the user running the service doesn't have a 'home' directory?

Re: .dir file in C:\ root

PostPosted: Fri Sep 21, 2012 5:53 am
by seus
zip wrote:It's there possibly because the user running the service doesn't have a 'home' directory?

It's running as SYSTEM under Windows so I guess that's possible, just not sure why I never saw it in the past.

Re: .dir file in C:\ root

PostPosted: Thu Nov 01, 2012 6:20 am
by greenythebeast
I have this problem as well. There's a .dir file in C:\

When looking in the Serviio log I see this:

  Code:
2012-10-31 21:12:57,256 INFO  [MediaServer] Serviio DLNA media streaming server v 1.0.1 (rev. 6dbf7c6e334f+)
2012-10-31 21:12:57,256 INFO  [MediaServer] Petr Nejedly 2009-2012
2012-10-31 21:12:57,256 INFO  [MediaServer] http://www.serviio.org
2012-10-31 21:12:57,256 INFO  [MediaServer]
2012-10-31 21:12:57,256 INFO  [MediaServer] Java 1.7.0_05-Oracle Corporation
2012-10-31 21:12:57,256 INFO  [MediaServer] OS Windows 7 amd64 6.1
2012-10-31 21:12:57,256 INFO  [MediaServer] File encoding: windows-1252
2012-10-31 21:12:57,256 INFO  [MediaServer] Headless mode enabled: true
2012-10-31 21:12:57,256 INFO  [MediaServer] User home dir: C:\
2012-10-31 21:12:57,256 INFO  [MediaServer] Temp dir: C:\Windows\TEMP\


I assume it's going into C:\ because that's what the user home dir is? Is there a way to change the user home dir?

Re: .dir file in C:\ root

PostPosted: Thu Nov 01, 2012 3:13 pm
by zip
try to set user.home system property

http://www.serviio.org/index.php?option ... e&id=21#q3

Re: .dir file in C:\ root

PostPosted: Fri Nov 02, 2012 3:24 am
by greenythebeast
zip wrote:try to set user.home system property

http://www.serviio.org/index.php?option ... e&id=21#q3


What should I set it to? Would my temp folder be an ok place?

Re: .dir file in C:\ root

PostPosted: Fri Nov 02, 2012 3:41 pm
by zip
set it to your user folder, i.e. /Users/username or Documents and Settings/username

Re: .dir file in C:\ root

PostPosted: Sun Dec 16, 2012 5:15 pm
by michpo
Hi, I have also problem with dir file on my C drive. I tried edit ServiioService.exe.vmoptions and add there new line with /Users/username, but it not work for me :(

In my ServiioService.exe.vmoptions is this:
  Code:
-Xmx512m
user.home="/Users/michpo"

I also tried some modifications, for example "C:\Users\michpo", but also not work :(
Please can you help me?
Thanks.

Re: .dir file in C:\ root

PostPosted: Sun Dec 16, 2012 8:55 pm
by zip
NOt sure if the above helps, it might be internal to librtmp. Is that such a problem the file is there?

Re: .dir file in C:\ root

PostPosted: Sun Dec 16, 2012 9:41 pm
by michpo
Why the dir file is in root of C drive? For what is this file?
I like tidy on my drives. In older versions of Serviio this file was not on root of C drive. Why now yes?
I think that it will be better if the file will be in Serviio folder.

Re: .dir file in C:\ root

PostPosted: Mon Dec 17, 2012 12:03 am
by zip
Try to change the .vmoptions file to:

  Code:
-Xmx512m -Duser.home=/Users/michpo

Re: .dir file in C:\ root

PostPosted: Mon Dec 17, 2012 11:01 pm
by michpo
Thanks for your reply. After this change I obtaining this error message: Cannot connect to Serviio server, it does not seem to be running. Exiting...
Serviio service not run, and if I want to start it, nothing happens :(

Re: .dir file in C:\ root

PostPosted: Mon Dec 17, 2012 11:31 pm
by zip
Try this

  Code:
-Xmx512m -Duser.home="/Users/michpo"


If it still doesn't work, check the serviio.log

Re: .dir file in C:\ root

PostPosted: Tue Dec 18, 2012 7:16 pm
by michpo
Still not working :(
When I try to run service from task manager, nothing happens. But if I try to run service from service window, then I obtain this error message: "Error 1067 : The Process terminated unexpectedly".
There is no information about this problem in serviio.log file.

Re: .dir file in C:\ root

PostPosted: Tue Dec 18, 2012 9:14 pm
by zip
Ok, the -D has to go before -Xmx

  Code:
-Duser.home=/Users/michpo -Xmx512m

Re: .dir file in C:\ root

PostPosted: Tue Dec 18, 2012 10:19 pm
by michpo
Nice! It works :)
Thanks mate.