joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

Unable to delete update server double

Open cmirnow opened this issue 1 year ago • 8 comments

In the dashboard of my Joomla site (5.1.4), after numerous updates (it's an old site) there are two identical update servers. I'm trying to delete one of them, but it's not working. Can you tell me what actions are available to me to remove this extra server? Is this a bug or a feature?

Image

Image

cmirnow avatar Oct 08 '24 02:10 cmirnow

What i would do:

  1. Do a backup
  2. Open in my database the table *_update_sites in phpMyAdmin
  3. Delete the row

Having more questions ask in Forums and close this issue.

ghost avatar Oct 08 '24 04:10 ghost

What i would do:

  1. Do a backup
  2. Open in my database the table *_update_sites in phpMyAdmin
  3. Delete the row

There is also a table update_sites_extensions which holds the cross references from update_sites to extensions. That should also be checked.

It is by design that you cannot delete a core update site, and the rebuild button also doesn’t touch core sites.

But maybe that should be changed/improved. I know of a few other cases where a site had a long update history and duplicate update sites for the core.

richard67 avatar Oct 08 '24 06:10 richard67

But maybe that should be changed/improved. I know of a few other cases where a site had a long update history and duplicate update sites for the core.

For non protected update sites such as joomla core a rebuild of the update sites should resolve any duplicates

brianteeman avatar Oct 08 '24 08:10 brianteeman

For non protected update sites such as joomla core a rebuild of the update sites should resolve any duplicates

@brianteeman Reading the code here looks to me as if this is not the case: https://github.com/joomla/joomla-cms/blob/5.2-dev/administrator/components/com_installer/src/Model/UpdatesitesModel.php#L304-L331

richard67 avatar Oct 08 '24 08:10 richard67

Rebuild should delete all the update sites and then rebuild the table from the extension xml

brianteeman avatar Oct 08 '24 12:10 brianteeman

Rebuild should delete all the update sites and then rebuild the table from the extension xml

@brianteeman I agree that it should do that, but it doesn't. Any update site which refers to the core (joomla files extension) will not be touched. I had once investigated a similar problem and tried it. Reading the code, especially the comment, made me then believe it is desired behaviour, so I haven't opened an issue.

richard67 avatar Oct 08 '24 12:10 richard67

I agree that it should do that, but it doesn't.

@brianteeman , I opened this issue because the “rebuild” button does not solve the problem of removing the update server double. My opinion today is that this is a bug that needs to be fixed. But maybe the development community will decide otherwise.

cmirnow avatar Oct 08 '24 13:10 cmirnow

Rebuild should delete all the update sites and then rebuild the table from the extension xml

@brianteeman I agree that it should do that, but it doesn't. Any update site which refers to the core (joomla files extension) will not be touched.

Which is what I said

For non protected update sites such as joomla core a rebuild of the update sites should resolve any duplicates

brianteeman avatar Oct 08 '24 16:10 brianteeman