Update stopped [shared hosting]

If you run tt-rss on an officially unsupported platform (shared hosting, Windows, etc.) post here
User avatar
just-a-human
Bear Rating Trainee
Bear Rating Trainee
Posts: 7
Joined: 27 Jul 2015, 17:36

Update stopped [shared hosting]

Postby just-a-human » 27 Jul 2015, 18:00

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
Last edited by just-a-human on 30 Jul 2015, 10:21, edited 1 time in total.

Zorchenhimer
Bear Rating Trainee
Bear Rating Trainee
Posts: 8
Joined: 07 Apr 2014, 05:45

Re: Update stopped [shared hosting]

Postby Zorchenhimer » 27 Jul 2015, 23:07

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.

User avatar
just-a-human
Bear Rating Trainee
Bear Rating Trainee
Posts: 7
Joined: 27 Jul 2015, 17:36

Re: Update stopped [shared hosting]

Postby just-a-human » 30 Jul 2015, 10:00

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 ?

Zorchenhimer
Bear Rating Trainee
Bear Rating Trainee
Posts: 8
Joined: 07 Apr 2014, 05:45

Re: Update stopped [shared hosting]

Postby Zorchenhimer » 30 Jul 2015, 12:29

Lol, good job. Just pull from git if you've got that setup.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Update stopped [shared hosting]

Postby fox » 30 Jul 2015, 12:40

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?

User avatar
just-a-human
Bear Rating Trainee
Bear Rating Trainee
Posts: 7
Joined: 27 Jul 2015, 17:36

Re: Update stopped [shared hosting]

Postby just-a-human » 30 Jul 2015, 13:21

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

JustAMacUser
Bear Rating Overlord
Bear Rating Overlord
Posts: 373
Joined: 20 Aug 2013, 23:13

Re: Update stopped [shared hosting]

Postby JustAMacUser » 30 Jul 2015, 18:44

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

User avatar
just-a-human
Bear Rating Trainee
Bear Rating Trainee
Posts: 7
Joined: 27 Jul 2015, 17:36

Re: Update stopped [shared hosting]

Postby just-a-human » 31 Jul 2015, 00:10

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.

JustAMacUser
Bear Rating Overlord
Bear Rating Overlord
Posts: 373
Joined: 20 Aug 2013, 23:13

Re: Update stopped [shared hosting]

Postby JustAMacUser » 31 Jul 2015, 00:18

Did you remove "--daemon" option?

User avatar
just-a-human
Bear Rating Trainee
Bear Rating Trainee
Posts: 7
Joined: 27 Jul 2015, 17:36

Re: Update stopped [shared hosting]

Postby just-a-human » 31 Jul 2015, 00:56

I did now. Waiting for the next update in <30 minutes..

User avatar
just-a-human
Bear Rating Trainee
Bear Rating Trainee
Posts: 7
Joined: 27 Jul 2015, 17:36

Re: Update stopped [shared hosting]

Postby just-a-human » 31 Jul 2015, 01:02

Now it tells the following :

Code: Select all

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

User avatar
sleeper_service
Bear Rating Overlord
Bear Rating Overlord
Posts: 884
Joined: 30 Mar 2013, 23:50
Location: Dallas, Texas

Re: Update stopped [shared hosting]

Postby sleeper_service » 31 Jul 2015, 03:55

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*

User avatar
just-a-human
Bear Rating Trainee
Bear Rating Trainee
Posts: 7
Joined: 27 Jul 2015, 17:36

Re: Update stopped [shared hosting]

Postby just-a-human » 02 Aug 2015, 05:12

*impossibru*


Return to “Unsupported platforms”

Who is online

Users browsing this forum: No registered users and 3 guests