Synology NAS, selfoss and cron

by Cinnamon, Wednesday, May 15, 2013, 09:56 (4432 days ago)

Hi,

I switched from TTRSS to selfoss because of better performance and lower requirements to the server. My selfoss instance run on a synology DiskStation 113+ and it runs good so far. The only thing what bothers me is updating selfoss via cron. My cronjob looks like this:

15 * * * * wget --quiet --delete-after --no-check-certificate https://myurl.com/selfoss/update

This cronjob doesn't work and I don't know why. I've also tried it with the directory where wget is installed but without the parameters --quiet and --delete-after.

Has someone a hint for me how can fix this problem?

Synology NAS, selfoss and cron

by gerdroot, Thursday, May 16, 2013, 08:48 (4431 days ago) @ Cinnamon

i'm using the following line on my Synoloy DS211j and it works perfectly - altough it takes roughly a minute to update the database for ~15 feeds.


0 12 * * * root curl -k https://localhost/selfoss/update


I'm not sure wether CURL is available on diskstations by default.

good luck.
br
gerdroot

Synology NAS, selfoss and cron

by Cinnamon, Thursday, May 16, 2013, 09:35 (4431 days ago) @ gerdroot

I think I get it now.

I set a login and password for selfoss. This configuration doesn't work with my cronjob or a cronjob with curl. (unallowed access)

Now I have delete login and the cronjob works fine.

Maybe this should be written down on the homepage of selfoss.

Synology NAS, selfoss and cron

by gerdroot, Thursday, May 16, 2013, 12:03 (4431 days ago) @ Cinnamon

I think I get it now.
I set a login and password for selfoss. This configuration doesn't work with my cronjob or a cronjob with curl. (unallowed access)

I dont think its relating to the Login of Selfoss itself.

I also set a login to protect my News-feeds, but i think the Update script is unprotected or works without authentication.

Of course if you use HTTP Authentication this would be an issue.

I suggest you test wether you can wget/curl to your update URL from Synology Commandline (login with Putty, etc.) if your feeds get updated by calling your update url manually, then it should be no problem at all to use this command and put it into Crontab.

good luck
br
gerdroot

Synology NAS, selfoss and cron

by Cinnamon, Sunday, May 19, 2013, 22:21 (4427 days ago) @ gerdroot

Hello gerdroot,

I tried it manually but it doesn't work. Without login it works perfect (automatic and manual).

When I use curl and login to selfoss to get all new feeds, I get the following result:

unallowed access

Synology NAS, selfoss and cron

by elcanux, Friday, May 17, 2013, 08:07 (4430 days ago) @ Cinnamon

Hi,
I use this, it's work :

*/15 * * * * root /usr/bin/php /volume1/web/rss/update.php >> /volume1/web/rss/update.log

If there are errors, check update.log defined.

RSS Feed of thread
powered by my little forum