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:
PHP Warning: unlink(lock/update_daemon.lock): Permission denied in C:\...\...\include\rssfuncs.php on line 1183
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
Little problem with lockfiles (on Windows)
- eliotcougar
- Bear Rating Trainee
- Posts: 13
- Joined: 03 Apr 2013, 21:22
- Location: Puschino, Russia
- Contact:
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.
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...
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
https://www.google.ca/url?sa=t&source=w ... 8065,d.b2I
I just set it up today and it seems to work. Followed the instructions with Google translate
https://www.google.ca/url?sa=t&source=w ... 8065,d.b2I
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
- ^ me reading your posts ^
- 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.
-
- 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.
Re: Little problem with lockfiles (on Windows)
If you want to see the console, you could set the computer to Auto Login, then add the batch file to startup folder.
batch file:
This will update every 5 minutes.
Ping Wait: http://www.robvanderwoude.com/wait.php
Loop: http://www.computerhope.com/issues/ch001050.htm
batch file:
Code: Select all
:start
cd /D FullPath\TT-RSSFolder
php FullPath\TT-RSSFolder\update.php --feeds
PING 1.1.1.1 -n 1 -w 300000
goto start
This will update every 5 minutes.
Ping Wait: http://www.robvanderwoude.com/wait.php
Loop: http://www.computerhope.com/issues/ch001050.htm
Re: Little problem with lockfiles (on Windows)
Hi pir2
Thanks for your help. It looks interesting and I will give it a try.
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
Re: Little problem with lockfiles (on Windows)
Hi eliotcougar
I also had a high CPU issue. Pir2's solution might help with this.
I also had a high CPU issue. Pir2's solution might help with this.
-
- Bear Rating Trainee
- Posts: 10
- Joined: 13 Apr 2013, 01:48
Re: Little problem with lockfiles (on Windows)
I decided to go ahead and create a batch file with:
And put that in a 5 minute scheduled task. This also allows me to link to update_log.txt via the browser if I want to confirm updates are being made.
There was a side effect that I kept getting the error "Update daemon is not running", so I commented out the error in the code. Not sure if there is a better way to handle that.
Code: Select all
<path>php.exe <path>update.php --feeds>>update_log.txt
And put that in a 5 minute scheduled task. This also allows me to link to update_log.txt via the browser if I want to confirm updates are being made.
There was a side effect that I kept getting the error "Update daemon is not running", so I commented out the error in the code. Not sure if there is a better way to handle that.
Re: Little problem with lockfiles (on Windows)
GravityWell wrote:There was a side effect that I kept getting the error "Update daemon is not running", so I commented out the error in the code. Not sure if there is a better way to handle that.
Delete the daemon's lock file in the subdirectory lock of your ttRSS directory.
-
- Bear Rating Trainee
- Posts: 10
- Joined: 13 Apr 2013, 01:48
Re: Little problem with lockfiles (on Windows)
feader wrote:GravityWell wrote:There was a side effect that I kept getting the error "Update daemon is not running", so I commented out the error in the code. Not sure if there is a better way to handle that.
Delete the daemon's lock file in the subdirectory lock of your ttRSS directory.
Thanks, that works, and one less code change is good, so I will have less to patch on the next update(s).
Return to “Unsupported platforms”
Who is online
Users browsing this forum: No registered users and 1 guest