Custom Rock-on 5.0.15-0 Nonetype:None Error

Hi, I recently did a clean Rockstor install with newest 5.x.xx image and added a custom rockon. However when I hit update from Web-UI I get following error: NoneType: None
What does this mean, and is there a fix for this?
Logs tell following:

[15/Mar/2025 05:05:28] INFO [storageadmin.views.rockon:504] Rock-on definitions retrieved in: 6.00 seconds.
[15/Mar/2025 05:05:30] ERROR [storageadmin.views.rockon:142] ''
Traceback (most recent call last):
  File "/opt/rockstor/src/rockstor/storageadmin/views/rockon.py", line 139, in post
    self._create_update_meta(r, rockons[r])
  File "/usr/lib64/python3.11/contextlib.py", line 81, in inner
    return func(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^
  File "/opt/rockstor/src/rockstor/storageadmin/views/rockon.py", line 357, in _create_update_meta
    self._update_env(co, c_d)
  File "/opt/rockstor/src/rockstor/storageadmin/views/rockon.py", line 467, in _update_env
    ccc_d = cc_d[k]
            ~~~~^^^
KeyError: ''
[15/Mar/2025 05:05:30] ERROR [storageadmin.util:44] Exception: Errors occurred while processing updates for the following Rock-ons (Jellyfin-NVIDIA: '').
NoneType: None

Clearing registry doen’t help either.
My custom Rock-On can been look at here:
Jellyfin-NVIDIA

Hi @nasrocket ,

I only have my phone, which is not the best to look at code formatting, but I seem to see a potential syntax error in the JSON you linked to. The error you is indeed indicative or a problem in parsing that file.

Line 73: need to indicate a value. You could for instance use:

"default": 100

Line 74: you need to close that dict by adding:

},

Hopefully that’ll move things forward, but my apologies if these are there and I miss them.

1 Like

Thank you for reply and help. I fixed my lines as suggested and found my culprit from enviriomental index value as it were duplicate to another. Changing that solved my problem and rockon is working again :smile:. No worries, I have myself to blame of rookie mistakes :sweat_smile:.

3 Likes

Glad this worked out. While it won’t identify a duplicate environment variable, using an online Json linter will at least tell you whether your brackets and commas are having issues (e.g. here: Json Online Validator)

3 Likes