## Little problem with lockfiles (on Windows)

If you run tt-rss on an officially unsupported platform (shared hosting, Windows, etc.) post here
eliotcougar
Bear Rating Trainee
Posts: 13
Joined: 03 Apr 2013, 21:22
Location: Puschino, Russia
Contact:

### Little problem with lockfiles (on Windows)

I haven't found any such reports on the forum... I know, I should get dedicated machine with Linux on it, but I have what I have, okay?

Update_daemon.php is running constantly as a windows service here with no problem, except after 2 days (86400*2) I'm starting to get warning messages in php_errors.log every minute:

I guess the problem is that file_is_locked(\$file) always returns false no matter what, so expire_lock_files(\$debug) always tries to unlink lockfile even if it's locked... At least on Windows 7 running Apache 2.2.21+PHP 5.4.12

mrboring
Bear Rating Trainee
Posts: 8
Joined: 03 Apr 2013, 22:36

### Re: Little problem with lockfiles (on Windows)

I'm having exactly the same issue. However, I'm running: Windows 7 32bit, IIS7.5 and PHP 5.4.9.

Any assistance would be appreciated.

Thanks.

eliotcougar
Bear Rating Trainee
Posts: 13
Joined: 03 Apr 2013, 21:22
Location: Puschino, Russia
Contact:

### Re: Little problem with lockfiles (on Windows)

I've just increased the time in that function from 2 to 30 days (my average time between machine restarts, I guess)... I hope it wouldn't give me any side effects...

pir2
Bear Rating Trainee
Posts: 2
Joined: 18 Apr 2013, 05:16

### Re: Little problem with lockfiles (on Windows)

Try creating a batch file and scheduling it with task scheduler.

I just set it up today and it seems to work. Followed the instructions with Google translate

mrboring
Bear Rating Trainee
Posts: 8
Joined: 03 Apr 2013, 22:36

### Re: Little problem with lockfiles (on Windows)

Thanks for the work arounds. Please could someone confirm if this is a bug or something I'm doing wrong.

fox
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

### Re: Little problem with lockfiles (on Windows)

Running on windows is not supported in any way.

GravityWell
Bear Rating Trainee
Posts: 10
Joined: 13 Apr 2013, 01:48

### Re: Little problem with lockfiles (on Windows)

I have the same issue with Win7. When I feel like it I've been stopping the update process and deleting the files in ttrss\lock and then it's back to normal until the next time. I guess a scheduled task would solve it since it would run and then exit, but then I wouldn't get to see the console. I guess I'll go that way eventually. It still seems to work fine despite the lock errors.

pir2
Bear Rating Trainee
Posts: 2
Joined: 18 Apr 2013, 05:16

### Re: Little problem with lockfiles (on Windows)

mrboring
Bear Rating Trainee
Posts: 8
Joined: 03 Apr 2013, 22:36

### Re: Little problem with lockfiles (on Windows)

Hi pir2

Thanks for your help. It looks interesting and I will give it a try.

eliotcougar
Bear Rating Trainee
Posts: 13
Joined: 03 Apr 2013, 21:22
Location: Puschino, Russia
Contact:

### Re: Little problem with lockfiles (on Windows)

No, that looks insane... If you want to see the console (I don't) just run update.php --daemon

mrboring
Bear Rating Trainee
Posts: 8
Joined: 03 Apr 2013, 22:36

### Re: Little problem with lockfiles (on Windows)

Hi eliotcougar

I also had a high CPU issue. Pir2's solution might help with this.

GravityWell
Bear Rating Trainee
Posts: 10
Joined: 13 Apr 2013, 01:48

### Re: Little problem with lockfiles (on Windows)

Bear Rating Master
Posts: 160
Joined: 26 Dec 2012, 20:03

### Re: Little problem with lockfiles (on Windows)

GravityWell
Bear Rating Trainee
Posts: 10
Joined: 13 Apr 2013, 01:48