Plex rockon disappeared from "All" tab on ROCK-ONS page

Hello!

I tried to reinstall Plex Rockon and consistently added all the necessary shares to it. But after one share addition Plex rockon disappeared from both of tabs on ROCK-ONS page – “Installed” and “All” but Plex was still working and I was able to see it on Web UI.

After that I have removed plex container and image by running
“docker container rm” and “docker image rm” in the hope that it will appear on the tab All and I will reinstall it, but this did not happen.

What should I do to make the plex appear on the All tab and I can reinstall it?

You’ll need to use the undocumented support script /opt/rockstor/bin/delete-rockon, this will clean up the database for you.
Once completed, on the ‘all’ tab, click the ‘refresh’ button.

Note that you need to delete the rockon by the installed container’s name, which in the case of plex, I think is plex-linuxserver.io

Best of luck!

Thanks @Haioken.
@oivanenko, in case the container name does not work, try using the Rock-on name with correct casing. (“Plex”). I never seem to remember which one needs to be used and I can’t verify that right now unfortunately.

On a brief inspection, it appears you may be right, the properties in the Rockon model seem to be those exported from the JSON.

rockstor-core/src/rockstor/storageadmin/models/rockon.py:

class RockOn(models.Model):
    name = models.CharField(max_length=1024)
    description = models.CharField(max_length=2048)
    version = models.CharField(max_length=2048)
    state = models.CharField(max_length=2048)
    status = models.CharField(max_length=2048)
    link = models.CharField(max_length=1024, null=True)
    website = models.CharField(max_length=2048, null=True)
    https = models.BooleanField(default=False)
    icon = models.URLField(max_length=1024, null=True)
    ui = models.BooleanField(default=False)
    volume_add_support = models.BooleanField(default=False)
    more_info = models.CharField(max_length=4096, null=True)

And rockstor-core/src/rockstor/scripts/rockon_delete.py:

def delete_rockon():
    try:
        name = sys.argv[1]
    except IndexError:
        sys.exit('Delete metadata, containers and images of a '
                 'Rock-on\n\tUsage: %s <rockon name>' % sys.argv[0])

    try:
        ro = RockOn.objects.get(name=name)
    except RockOn.DoesNotExist:
        sys.exit('Rock-On(%s) does not exist' % name)

Based on this, @Flox is probably right, and you should use the name Plex (Note the capital ‘P’!), rather than the container image name of plex-linuxserver.io

1 Like

Thank you very much guys! I will try.