Closed tvelter closed 10 years ago
For further details, I have been trying with several update methods :
Hi, Is it the stable or dev version ? I know the stable version has a problem with session that should have been fixed on dev one.
stable version. I will try with dev version to ensure there is no more problem, and close that issue if fixed. Thanks
OK wait & see
"some items may have been missed since the last update"
I wonder if I should try to keep an open browser (lynx on a server) to be able to update correctly while offline ?
First, I don't know if the javascript part works on lynx. If it does not then, it's useless to let your browser opened. Second, this can occurs if the updating time is too high. For example, the 9gag feed post more than 10 articles per hour and has only 10 articles by feed, so you should decrease the updating time for this particular feed.
I've just think about that as I dit not notice, but why did you say: "Problem is that if no activity occurs, I get logged out after a few hours."
With the cron process http://www.velter.org/Kriss/?update&cron=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx There is no session as the cron has the key to be updated without being logged ?
OK. So there is a slight misunderstanding here. Problem should have not been saying anything about the login out. Which indeed I think it is normal that if no activity occurs, I get logged out after a few hours.
Problem is that even with a cron task in the form: "http://www.velter.org/Kriss/?update&cron=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx". the update is happening correctly only if a session is opened (and probably a couple hours after the last activity (maybe while the session is not killed yet).
My setup is quite particular in the meaning that the instance of Kriss feed is installed on a server that I only can access through ftp, and the cron task is running on another server that I can access through ssh (an a terminal) but which I do not want to use for Kriss for several reasons.
I see, but I don't understand with it works only if a session is opened as the ?update&cron should work even if you are not connected.
How do you perform your request. I've tried with a wget and I encounter a "funny" problem with the &
I should have add \
before ^^
It works for me with wget http://tontof.net/feed/?update\&cron=xxx
The cron is working in a weird way for me. I set up 2 instances of Kriss, 1 with only a 9gag feed, which has been updating fine, even no session got logged in. Another instance can be called by cron only for a few hours after the last login was performed and then fail to update, until the next login. This instance has 700+ feeds, could it be a reason ? I reinstalled that 2nd instance and observed the same behavior.
How did you set your cron and what is the result of the page ? 700+ feeds is a lot but I don't think it's a problem as it saves the data after each update for each feed.
I've set it up as following : wget "http://xxxxxxxxxxxxxx/?update&cron=xxxxxxx" -O /home/xxxxx/temp.log for both instances. When logged, the log looks like the "update all page". A few hours after last logged activity the log is blank
That's very strange. I've tried a wget on my own instance of KrISS feed on a server on which I've never logged in and it works. I cannot reproduce. Can you send to me by email at tontof on free.fr your cron link to test if I have a blank page ? Otherwise, I have no idea why it does not work
After deeper tests, it appeared that the issue was caused by the time-out from the server. The servers used are shared ones, with low-processing power, and the update of the feeds was timing-out (error 500). As my kriss installation has more than 700 feeds, tontof advised to update the feeds by folder, using a cron in the form : "http://www.velter.org/Kriss/?update=XXXXXX&cron=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
XXXXXX being the 6 characters identifiying a folder/feed, and xxxx... the hash to let an external call being made to the update. Thanks tontof for the help
Thanks for the feedback !
Hi,
I have right now installed Kriss on 2 different providers, which do not let me use a real cron. Using a cron on a separate computer, I can update both instances of Kriss while not in front of my computer. Problem is that if no activity occurs, I get logged out after a few hours. Whenever no user is connected to Kriss, no update is possible. This would become an issue if I'm away from the computer for 1 full day, then some heavy feeds will have missing items (lemonde.fr feed for instance provide only the last 25 items, with 50+ items per day, some items will never appear in Kriss if I do not logon from any computer)