Page 1 of 1

Updater plugin not working

Posted: 23 Mar 2013, 13:16
by flod
I set up tt-rss on my dedicated server a few days ago. It's running fine and updating with a cron-job.

This morning I'm trying to update to 1.7.5 but I can't get it done.

1) As explained in the <a href="http://tt-rss.org/redmine/projects/tt-rss/wiki/InstallationNotes">Wiki</a>, I enabled the updater plugin. I see a "Update Tiny Tiny RSS" panel, click on the button. A dialog appears and then nothing else (it doesn't move from there)

2) I tried to run update.php manually. It doesn't work with "--update_self" (I guess that's because the syntax changed, I believe it's worth a note on the Wiki). With "-update_self" I get this error (I'm running Debian on this server and executing this script as www-data)

Code: Select all

[email protected]:/srv/www/myurl# su www-data updatettrss.sh
[09:13:01/17964] Warning: self-updating is experimental. Use at your own risk.
[09:13:01/17964] Please backup your tt-rss directory before continuing. Your database will not be modified.
[09:13:01/17964] Type 'yes' to continue.
yes
[09:13:23/17964] Work directory: /srv/www/myurl/public_html
[09:13:23/17964] Checking for tar...
[09:13:23/17964] Checking for gunzip...
[09:13:23/17964] Checking for latest version...
[09:13:23/17964] Target version: 1.7.5
[09:13:24/17964] Downloading checksums...
[09:13:26/17964] Downloading distribution tarball...
[09:13:26/17964] Verifying tarball checksum...
[09:13:26/17964] Saving download to /tmp/tt-rss2Jyqom
PHP Warning:  rename(/srv/www/myurl/public_html,/tmp/tt-rss-old0G0HGo): Permission denied in /srv/www/myurl/public_html/plugins/updater/init.php on line 184
[09:13:26/17964] Renaming tt-rss directory to tt-rss-old0G0HGo
[09:13:26/17964] Unable to rename tt-rss directory.


See the PHP warning, there's an extra "," before /tmp.

Re: Updater plugin not working

Posted: 23 Mar 2013, 17:35
by tagno25
The user running the update script needs to be able to have write permissions on /srv/www/myurl

Re: Updater plugin not working

Posted: 23 Mar 2013, 21:49
by Aldursil
I also am having an issue trying to use the web updater. Previously I could not update with 1.7.3. There was an issue with the init.php file which I fixed and then used the web updater successfully. Now when I try I am getting the same empty updated dialog. I tried updating init.php again and now I am getting "Sorry, an error occurred".

Any idea on what I could do to get this fixed?

Re: Updater plugin not working

Posted: 24 Mar 2013, 10:26
by Firehand
I updated it manually to 1.7.5 because when I tried the web plugin it just popped an empty widget which does nothing.

Re: Updater plugin not working

Posted: 24 Mar 2013, 20:11
by Aldursil
I updated manually also due to the same issue with the empty updater dialog. It looks like init.php did not have the patch applied to it so it's still broken.

Re: Updater plugin not working

Posted: 30 Mar 2013, 10:15
by flod
tagno25 wrote:The user running the update script needs to be able to have write permissions on /srv/www/myurl

The user running the script is the owner of that folder and it's the same running the update cronjob ;-)

In the meantime I've updated manually.