Project

General

Profile

Bug #8431

Stray nonexistant plugin popped up in the Installed list

Added by Jaimie Vandenbergh over 5 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Nice to have
Assignee:
John Hixson
Category:
Middleware
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

Many moons ago I installed Transmission, then ended up deleting it and the jail as I didn't use it. With 9.3, at some point recently (not sure when as I don't look at the plugins much) that old Transmission has popped back up in the Installed list (image over in the forums, https://forums.freenas.org/index.php?threads/stray-nonexistant-transmission-plugin-popped-up-in-the-installed-list.28023/#post-181662 )

There's no associated jail for it, just the two for the real plugins, and unsurprisingly it doesn't start. Trying to delete it with the gui fails but also doesn't remove it from the list.

I tried installing the current Transmission and deleting it, but that just made a new line for Transmission and then deleted the new line.

Tried updating a couple of times to new train versions, no change.

I've had a look around /etc /cfg /conf /data /usr and not found anything that looks relevant containing the text transmission.

I've taken a look through the backupfile DB, and there doesn't seem to be an entry for Transmission in there either, which surprised me (and makes me wonder if jails+plugins need to be hand-reconfigured after restoring the config).

Happy to supply the backupfile on request, or other diagnostics.

History

#1 Updated by Joshua Ruehlig over 5 years ago

  • Assignee changed from Joshua Ruehlig to John Hixson

FreeNAS' database is above my head, best this be assigned to someone else. John H. do you know who?

#2 Updated by Jaimie Vandenbergh over 5 years ago

When I press Delete on the spurious Transmission entry, after the confirmation popup I get "Error: Jail not found" at the top of the GUI, and this lot in the console log:

Mar 7 18:06:12 Sisyphus manage.py: [plugins.utils:92] Couldn't retrieve http://10.0.0.2/plugins/transmission/1/_s/status: HTTP Error 500: INTERNAL SERVER ERROR
Mar 7 18:06:19 Sisyphus manage.py: [middleware.exceptions:38] [MiddlewareError: jail not found]
Mar 7 18:06:23 Sisyphus manage.py: [plugins.utils:92] Couldn't retrieve http://10.0.0.2/plugins/plexmediaserver/2/_s/status: HTTP Error 500: INTERNAL SERVER ERROR
Mar 7 18:06:23 Sisyphus manage.py: [plugins.utils:92] Couldn't retrieve http://10.0.0.2/plugins/transmission/1/_s/status: HTTP Error 500: INTERNAL SERVER ERROR
Mar 7 18:06:24 Sisyphus manage.py: [plugins.utils:92] Couldn't retrieve http://10.0.0.2/plugins/crashplan/3/_s/status: HTTP Error 500: INTERNAL SERVER ERROR
Mar 7 18:06:25 Sisyphus manage.py: [freeadmin.navtree:550] Couldn't retrieve http://10.0.0.2/plugins/plexmediaserver/2/_s/treemenu: HTTP Error 500: INTERNAL SERVER ERROR
Mar 7 18:06:25 Sisyphus manage.py: [freeadmin.navtree:550] Couldn't retrieve http://10.0.0.2/plugins/crashplan/3/_s/treemenu: HTTP Error 500: INTERNAL SERVER ERROR

After this, until next reboot all plugins show as Service Status: Off, and when trying to switch them back on "Some error occurred" is reported by the GUI at the top. Fortunately the status is a lie, the plugins are still active and can be accessed directly in their usual ways.

#3 Updated by John Hixson over 5 years ago

  • Status changed from Unscreened to 15
  • Target version set to Unspecified

There was a point in the past where you could have a rogue entry in the database, which sounds like the case here. So, remove it from the database.

sqlite3 /data/freenas-v1.db "select * from plugins_plugins;"

Find the correct ID for the entry, then

sqlite3 /data/freenas-v1.db "delete from plugins_plugins where id = ID;"

Let me know how it goes.

#4 Updated by Jaimie Vandenbergh over 5 years ago

Success - the stray is cleaned out, the UI works again. Guess I was just unlucky with the timing of getting that rogue entry in. Thanks very much for the help!

#5 Updated by John Hixson over 5 years ago

  • Status changed from 15 to Resolved

#6 Avatar?id=14398&size=24x24 Updated by Kris Moore about 4 years ago

  • Target version changed from Unspecified to N/A

Also available in: Atom PDF