Trouble with my own rockons

Hi.

I am trying to create my own rockon for minidlna.
I’ve created minidlna.json. minidlna.json

Error

Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/storageadmin/views/rockon.py", line 105, in post
    self._create_update_meta(r, rockons[r])
  File "/opt/rockstor/eggs/Django-1.6.11-py2.7.egg/django/db/transaction.py", line 371, in inner
    return func(*args, **kwargs)
  File "/opt/rockstor/src/rockstor/storageadmin/views/rockon.py", line 305, in _create_update_meta
    if (ContainerOption.objects.filter(container=co, name=o[0], val=o[1]).count() > 1):
IndexError: list index out of range

Please help me to find the problem

@alexey From a quick look it may be that you require an empty string second argument in the opts section, look at some of the other rockon json files that use this feature such as the plex rockon json:

Haven’t tried it but worth a try especially given several other rockon jsons have the same empty second string here, ie the emby json.

Hope that helps.

:+1: working now! thanks Philip :grinning:

@alexey Great, thanks for the update. Chuffed is sorted now. Fancy submitting it as a pull request to the official Rockon repository? Bit of a back log there at the moment but upon the next merge session that should be reduced some. Please see the Contributing to Rockstor - Overview section of the official docs for a guide. And the Readme in the Rockon repo also has a small guide on the same ie the “Steps to Contribute a Rock-on with a pull request” section.

Cheers.

@alexey Thanks for the MiniDLNA Rock-On. Downloaded it, patched with @phillxnet suggestion, made some minor changes and stored the result on github: https://github.com/martmaiste/rockstor/tree/master/minidlna
Hope it helps somebody.

1 Like