tresni / freenas-rss-extension

Automatically exported from code.google.com/p/freenas-rss-extension
0 stars 0 forks source link

No history saved for feeds #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Setup a feed
2. Setup a filter
3. Wait for a torrent to be added

What is the expected output? What do you see instead?
After the torrent is fully downloaded i remove the torrent but leave the 
data in the download folder. Next time the cronjob runs it re-adds the same 
torrent. The history is empty for all feeds.

What version of the product are you using? On what operating system?
Version 0.7RC1 Sardaukar (revision 4735)
Operativsystem   FreeBSD 7.2-RELEASE-p1 (revision 199506)
Plattform    i386-embedded on AMD Athlon(tm) 64 X2 Dual Core Processor 
3800+

Please provide any additional information below.
I'm suspecting some kind of access right problem but haven't solved it so 
far.

Original issue reported on code.google.com by ralf.ran...@gmail.com on 28 Oct 2009 at 6:40

GoogleCodeExporter commented 9 years ago
Just read Issue 18 but I don't get the same error.
Mine says "There is no histroy, yet!"

Original comment by ralf.ran...@gmail.com on 28 Oct 2009 at 6:43

GoogleCodeExporter commented 9 years ago
I'm getting the same issue. I've added an RSS feed and have it set to download 
all
new items in the feed (ie: no filters). Everytime the cron job runs I get a 
bunch of
new dowlaods in Transmission but when I go to view the history it give the 
message
"There is no history, yet!"

Version - 0.7RC1 Sardaukar (revision 4735)
OS - FreeBSD 7.2-RELEASE-p1 (revision 199506) 
Platform - i386-full on Intel(R) Pentium(R) 4 CPU 1.60GHz 

Original comment by davefur...@gmail.com on 28 Oct 2009 at 6:30

GoogleCodeExporter commented 9 years ago
"There is no history, yet!" is the new friendlier error than the old PHP errors 
as 
seen in Issue 18 .  A few things to help troubleshoot this please:

1) Under Advanced|Command, what is the output when you execute the command 
"mount"?
2) Under Advanced|Command, in the "PHP Command" box enter the following text, 
then 
click the Execute button:
  print_r($config['rss']);
  echo 'PATH permissions: ' . decoct(fileperms($config['rss']['path'])) . "\n";
  $user = posix_getpwuid(fileowner($config['rss']['path']));
  $group = posix_getgrgid(filegroup($config['rss']['path']));
  echo 'PATH owner: ' . $user['name'] . "\n";
  echo 'PATH group: ' . $group['name'] . "\n";
  echo "Crontab\n" . file_get_contents('/etc/crontab');
3) What directory do you have the extension installed in?

Please do not edit the information, if you aren't comfortable pasting here, 
please 
email to me directly: tresni@gmail.com

Original comment by tre...@gmail.com on 29 Oct 2009 at 2:46

GoogleCodeExporter commented 9 years ago
In case the directions were not entirely clear, I need all the output from the 
second 
item.

Original comment by tre...@gmail.com on 29 Oct 2009 at 2:47

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I have the comments saved but have deleted them from here ;-)  Everything looks 
good 
there.  I don't believe permissions should be an issue as both have 777 set on 
the 
directory.  I'll do some more testing and see if I can replicate what's going 
on.

Original comment by tre...@gmail.com on 29 Oct 2009 at 9:35

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r67.

Original comment by tre...@gmail.com on 2 Nov 2009 at 4:14

GoogleCodeExporter commented 9 years ago
Thanks a ton for fixing. Seems to be working great!!

Original comment by davefur...@gmail.com on 2 Nov 2009 at 3:49

GoogleCodeExporter commented 9 years ago
thanks from me to, works like a charm =)

Original comment by ralf.ran...@gmail.com on 2 Nov 2009 at 6:36

GoogleCodeExporter commented 9 years ago
This fix has worked like a charm until last monday then it stopped adding info 
to the 
history. It adds and downloads the torrents still but nothing in the log and 
when I 
remove a torrent it's re-added the next time cronjob runs. Is the log full or 
something 
?

Original comment by ralf.ran...@gmail.com on 11 Nov 2009 at 6:55

GoogleCodeExporter commented 9 years ago
I have entries in the history but nothing after Monday the 9th of November and 
I have  
torrents added after that.

Original comment by ralf.ran...@gmail.com on 11 Nov 2009 at 6:57

GoogleCodeExporter commented 9 years ago
Make sure you have available disk space in the folder that you installed the 
extension.  
Enable logging and attach the rss.log file.

Original comment by tre...@gmail.com on 11 Nov 2009 at 10:11

GoogleCodeExporter commented 9 years ago
I have currently 644Gb available on the drive the extension is installed on.
Where do I enable logging? and where is the rss.log located?

Original comment by ralf.ran...@gmail.com on 12 Nov 2009 at 6:29

GoogleCodeExporter commented 9 years ago
In the php Command box under *Advanced|Command* enter the following:
$config['rss']['debug'] = 3;
$config['rss']['debuglog'] = true;

rss.log will be stored in the folder the extension is installed to.

Original comment by tre...@gmail.com on 12 Nov 2009 at 4:07

GoogleCodeExporter commented 9 years ago
I've tried to run the command but no feedback is given that it worked and no 
rss.log 
file is found anywhere

ran the cron.sh file to see if the log file is written after cronjob but still 
nothing

Original comment by ralf.ran...@gmail.com on 13 Nov 2009 at 12:09

GoogleCodeExporter commented 9 years ago
Forgot to write_config...  In the php Command box under *Advanced|Command* 
enter the 
following:

 $config['rss']['debug'] = 3;
 $config['rss']['debuglog'] = true;
 write_config();
 echo "Done";

Then try running the cronjob (or waiting for it to execute, either way works.)

Original comment by tre...@gmail.com on 13 Nov 2009 at 4:03

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The "unable to add" torrents is already running from the last cronjob

Original comment by ralf.ran...@gmail.com on 13 Nov 2009 at 6:33

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Under *Advanced|Command* enter the following:

  echo md5_file($config['rss']['path'].'/sys/rss_cron.php');

It should give you a blue box that says "ef1e620d58675adab51228ca9b384a7f", if 
not 
your rss_cron.php has either been modified or is not the latest download.  The 
fact 
that the "Saving Data" line is missing from your log leads me to believe this 
is the 
case.  As of r67 that should be output every run.

If you hash matches, please email me (tresni@gmail.com) your rss.log and 
history.dat 
files.  Do not attach to this ticket.

Original comment by tre...@gmail.com on 13 Nov 2009 at 7:01

GoogleCodeExporter commented 9 years ago
Mine says 6908865b0364a09ee68b927521a09845
So it seems it's not the latest version. The weird thing is that has been 
working but 
suddenly stopped.

Before I update is there any way save the filters?

Original comment by ralf.ran...@gmail.com on 13 Nov 2009 at 7:46

GoogleCodeExporter commented 9 years ago
I took my chances and updated anyway. It saved the filters and works like a 
charm again 
=)

thx for your help and patience

Original comment by ralf.ran...@gmail.com on 13 Nov 2009 at 8:06