SynoCommunity / spksrc

Cross compilation framework to create native packages for the Synology's NAS
https://synocommunity.com
Other
3.02k stars 1.23k forks source link

Rutorrent - RSS feeds not auto updating #791

Closed Schiznit closed 7 years ago

Schiznit commented 10 years ago

I have the latest rutorrent beta package from synocommunity on Synology DS212j NAS. I have working feeds that I can add torrents from manually and all filters are working. Problem is that no feed is updating automatically when the counter reaches zero. I have to manually update the feed and that works fine. What could be the cause of this? I have tried chmod -R 777 on the entire /@appstore/rutorrent/ directory in case of rights issue but same issue persist.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

moneytoo commented 10 years ago

http://code.google.com/p/rutorrent/wiki/Plugins#Starting_plugins_with_rtorrent http://code.google.com/p/rutorrent/wiki/PluginRSS#Autostart_rss

Indeed, seems like additional configurations is required. I agree this should be working by default or available for enabling in setup wizard.

Schiznit commented 10 years ago

I tried both of these but does not make any difference. The feeds I use for a private tracker looks like this: http://mytracker.org/rss.php?bookmarks&passkey=xxxxxxxxxxxxxxxxxxxxxxxxxxxx

And I tried: http://mytracker.org.rss.php?bookmarks&passkey=xxxxxxxxxxxxxxxxxxxxxxxxxxxx::COOKIE:uid=myUN;pass=mypassword;

And I use this in the .rtorrent.rc:

execute = {sh,-c,/usr/bin/php /volume1/@appstore/rutorrent/share/rutorrent/php/initplugins.php &}

Both makes no difference at all unfortunately. Manual update works fine but not when the counter reaches zero. If I dont update manually, the feeds never update.

moneytoo commented 10 years ago

You should run it from web directory, it should be something like: /var/services/web/rutorrent/php/initplugins.php (running as user nobody is preferable). Also try executing it manually first to see if there are any errors (php basedir could cause issues).

Schiznit commented 10 years ago

Found it at /volume1/web/rutorrent/php/initplugins.php. To run as user nobody I guess I just do the code like:

execute = {sh,-c,/usr/bin/php /volume1/web/rutorrent/php/initplugins.php &} Is that correct?

I added this and it does not work either.

Ran it manually and got this: PHP Warning: chdir(): open_basedir restriction in effect. File(/volume1/web/rutorrent/php) is not within the allowed path(s): (/volume1/Downloads:/volume1/TV-Shows) in /volume1/web/rutorrent/php/initplugins.php on line 16

If I add volume1/web/rutorrent I get tons of errors like this for many different directories.. What command should I use to run this initplugins.php manually?

moneytoo commented 10 years ago

Try su - nobody -s /bin/sh -c "php -d open_basedir=none /volume1/web/rutorrent/php/initplugins.php"

Schiznit commented 10 years ago

After adding /volume1/web to php-basedir rutorrent seems to update feeds just fine! :) I left the line in .rtorrent.rc as execute = {sh,-c,/usr/bin/php /volume1/web/rutorrent/php/initplugins.php &}

Why do I get all those errors when trying to run the initplugins.php? I used command: php -f initplugins.php but dont know if thats correct. Im a linux noob you see so I googled that ;)

Schiznit commented 10 years ago

Just wondering about uninstalling plugins. It says in the wiki to rm -r /var/www/rutorrent/plugins/rpc/ Is this in the /volume1/@appstore/rutorrent/share/rutorrent/plugins directory or in the /volume1/web/rutorrent/plugins directory where I should remove them?

I did remove a couple before in /@appstore/ but those still exist in the /web/ directory. Remove in both locations?

EDIT: This seems to have solved the second issue with torrents loading in "stopped" state ;) Will add that to that issue.

moneytoo commented 10 years ago

It's the /volume1/web directory where are "the installation files copied to".

Schiznit commented 10 years ago

Ok so what about the directory in /@appstore/? All the plugins are there as well. Do I need to delete both?

Regarding this issue, thank you so much for helping, now everything is working really well. Just needed to add that correct line in .rtorrent.rc which should be done by default maybe and then adding the volume1/web/ to php open_basedir in Synology.

moneytoo commented 10 years ago

Keep the files in @appstore/ and modify plugins only in web/.

Thank you too. I will try to test it as well and include some polished and verified config in the spk.

Schiznit commented 10 years ago

My .rtorrent.rc is like this now:

scgi_port = localhost:8050 directory = /volume1/Downloads session = /usr/local/rutorrent/var/.session schedule = watch_directory,5,5,load_start=/volume1/Watched/*.torrent

max_memory_usage = 63791104

log.open_file = "rtorrent.log", "/usr/local/rutorrent/var/rtorrent.log" log.add_output = "warn", "rtorrent.log" http_cacert = /usr/local/rutorrent/etc/cacert.pem system.umask.set = 002 port_range = 6890-6999 port_random = no peer_exchange = no use_udp_trackers = no dht = disable encoding_list = UTF-8 min_peers = 50 max_peers = 150 download_rate = 9000 upload_rate = 1000 execute = {sh,-c,/usr/bin/php /volume1/web/rutorrent/php/initplugins.php &}

I had to add /volume1/web to php open_basedir in the Synology DSM. How come it works for some people without this added line in .rtorrent.rc and in open_basedir?