Page 1 of 1

Update stopped [shared hosting]

Posted: 27 Jul 2015, 18:00
by just-a-human
Hi there,

I searched for similar posts (mentioned after this post) and tried solutions present there but did not succeed.

TTRSS update function stopped working.

Tried changing permissions of the .lock file , deleting the .lock file but this solved nothing.

My TTRSS instance is on shared linux host (LAMP based).

Here are the outputs of some parts :

A. TTRSS System log screen shows nothing.

B. Cron output via email message :

Code: Select all

X-Powered-By: PHP/5.4.33
Content-type: text/html

[14:00:05/754289] Lock: update_daemon.lock
error: Can't create lockfile (update_daemon.lock). Maybe another update process is already running.

How can I solve this problem so TTRSS goes back to normal operation and resumes auto update ?



Previous posts :

Updating Feeds Using a Cron Job non-functional
viewtopic.php?f=24&t=2617

Help getting feeds to update
viewtopic.php?f=24&t=2484

Re: Update stopped [shared hosting]

Posted: 27 Jul 2015, 23:07
by Zorchenhimer
just-a-human wrote:Hi there,
Tried changing permissions of the .lock file , deleting the .lock file but this solved nothing.


You need to check the permissions on the folder, not the file itself.

Re: Update stopped [shared hosting]

Posted: 30 Jul 2015, 10:00
by just-a-human
Folder "lock" has the full permission 777 !.
Given that a tempered with the system and deleted all files in lock folder, now in the system log screen I get the warning :

Code: Select all

E_WARNING (2)   include/functions2.php:227   file_get_contents(lock/update_daemon.stamp): failed to open stream: No such file or directory

How can I restore back ttrss into normal operation ?

Re: Update stopped [shared hosting]

Posted: 30 Jul 2015, 12:29
by Zorchenhimer
Lol, good job. Just pull from git if you've got that setup.

Re: Update stopped [shared hosting]

Posted: 30 Jul 2015, 12:40
by fox
do you have shell access? what happens if you run update.php manually?

Code: Select all

cd /dir/someplace/tt-rss
php ./update.php


also do

Code: Select all

ls -ld lock


another problem is that you're using php cgi interpreter to run cron jobs but that is to be expected in a shitty shared hosting environment

e: how does your cron entry look like?

Re: Update stopped [shared hosting]

Posted: 30 Jul 2015, 13:21
by just-a-human
fox wrote:do you have shell access?
No.

fox wrote:e: how does your cron entry look like?

Cron job for the update runs once per hour :

Code: Select all

0   *   *   *   *   php /public_html/reader/update.php --daemon

Re: Update stopped [shared hosting]

Posted: 30 Jul 2015, 18:44
by JustAMacUser
You're launching the daemon every hour; that's not going to work well. If you're using cron you should run it with "--feeds --quiet" instead. Read more on the wiki page:

https://tt-rss.org/gitlab/fox/tt-rss/wikis/UpdatingFeeds

Re: Update stopped [shared hosting]

Posted: 31 Jul 2015, 00:10
by just-a-human
Thanks for Zorchenhimer , JustAMacUser and fox for your help to figuring and solving this issue , which is persisting till now.

I changed daemon launch to be each 30 minutes. And I added the two switches : --feeds and --quiet . The cron job still returns the follwoing output by email :

Code: Select all

error: Can't create lockfile (update_daemon.lock). Maybe another update process is already running.

Re: Update stopped [shared hosting]

Posted: 31 Jul 2015, 00:18
by JustAMacUser
Did you remove "--daemon" option?

Re: Update stopped [shared hosting]

Posted: 31 Jul 2015, 00:56
by just-a-human
I did now. Waiting for the next update in <30 minutes..

Re: Update stopped [shared hosting]

Posted: 31 Jul 2015, 01:02
by just-a-human
Now it tells the following :

Code: Select all

Status: 500 Internal Server Error
X-Powered-By: PHP/5.4.33
Content-type: text/html

Re: Update stopped [shared hosting]

Posted: 31 Jul 2015, 03:55
by sleeper_service
just-a-human wrote:Now it tells the following :

Code: Select all

Status: 500 Internal Server Error
X-Powered-By: PHP/5.4.33
Content-type: text/html


*facepalm*

Re: Update stopped [shared hosting]

Posted: 02 Aug 2015, 05:12
by just-a-human
*impossibru*