KeyError: 'dataset_name' when adding storage to plex
Description
Problem/Justification
Impact
Activity
Michelle Johnson August 15, 2024 at 12:02 PM
@Michael O'Connor
I need a bit more clarification. Originally you used the ixVolume option, then later when you wanted to use host path to add a dataset, you did create this dataset before trying to use the Host Path option? The order you do things is important. 🤓
Also, As mentioned by Caleb, there have been many changes to apps related to the upcoming Electric Eel release and in the nightly train. The changes include moving off Kubernetes to Docker Compose for the “under the hood” container engine. The nightly version you have currently installed has so many changes in it the issue you are experiencing is likely due to these and other changes.
To get your app running, try reverting back to the 24.04.2 release and wait for the upcoming BETA.1 release of 24.10 to try Electric Eel again. ETA for theBETA.1 release is a week or so out. Be aware, there are more changes coming and in the works to apps that will land in the early 24.10 releases until the final major release of this version.
The nightly branch is switching off Electric Eel to the next release in development so you will have issues with that build train as engineering works on new features and functionality.
Michael O'Connor August 15, 2024 at 2:39 AM
@Michelle Johnson I let the system create the ixVolume when I first set it up. I shut the container down to try and add a new volume via a host mount and it gave me the error.
Thanks,
Michael O’Connor
Michael O'Connor August 15, 2024 at 2:37 AM
I was not even given the chance to upload anything. My ticket was closed within 2 hours! I am on the latest nightly release. Please reopen so I can upload the debug file.
Bug Clerk August 14, 2024 at 1:31 PM
This issue has now been closed. Comments made after this point may not be viewed by the TrueNAS Teams. Please open a new issue if you have found a problem or need to re-engage with the TrueNAS Engineering Teams.
Bug Clerk August 14, 2024 at 1:30 PM
Thanks for running a nightly and reporting this issue! However, there have been quite a bit of changes to our apps implementation there so please upgrade to latest nightly image and see if this is still an issue. If it is still an issue, create a fresh ticket with a new debug and we’ll take a look.
When adding new storage to plex, I get dataset_name error.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 469, in run
await self.future
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 513, in __run_body
rv = await self.middleware.run_in_thread(self.method, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1340, in run_in_thread
return await self.run_in_executor(io_thread_pool_executor, method, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1337, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/service/crud_service.py", line 268, in nf
rv = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 55, in nf
res = f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 183, in nf
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/crud.py", line 262, in do_update
app = self.update_internal(job, self.get_instance__sync(app_name), data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/crud.py", line 284, in update_internal
new_values = self.middleware.call_sync(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1612, in call_sync
return self.run_coroutine(methodobj(*prepared_call.args))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1652, in run_coroutine
return fut.result()
^^^^^^^^^^^^
File "/usr/lib/python3.11/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/schema_normalization.py", line 37, in normalize_and_validate_values
new_values, context = await self.normalize_values(dict_obj, values, update, {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/schema_normalization.py", line 59, in normalize_values
values[attr.name] = await self.normalize_question(attr, values[attr.name], update, values, context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/schema_normalization.py", line 71, in normalize_question
value[attr.name] = await self.normalize_question(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/schema_normalization.py", line 71, in normalize_question
value[attr.name] = await self.normalize_question(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/schema_normalization.py", line 82, in normalize_question
value = await self.middleware.call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1587, in call
return await self._call(
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1431, in _call
return await methodobj(*prepared_call.args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/schema_normalization.py", line 129, in normalize_ix_volume
vol_data = {'name': value['dataset_name'], 'properties': value.get('properties') or {}}
~~~~~^^^^^^^^^^^^^^^^
KeyError: 'dataset_name'
Session ID: 19841baa-c797-e750-c931-adbe23b74783