Get Plugins Failed JSONDecodeError

Chade

Cadet
Joined
Jan 7, 2022
Messages
3
I updated my TrueNAS to 12.0-U7

When attempting to open the Plugins page, I receive two errors.

The first. Get Plugins Failed:
Code:
Error: Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 367, in run
    await self.future
  File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 405, in __run_body
    rv = await self.middleware.run_in_thread(self.method, *([self] + args))
  File "/usr/local/lib/python3.9/site-packages/middlewared/utils/run_in_thread.py", line 10, in run_in_thread
    return await self.loop.run_in_executor(self.run_in_thread_executor, functools.partial(method, *args, **kwargs))
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 979, in nf
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/jail_freebsd.py", line 372, in available
    return self.middleware.call_sync('plugin.available_impl', options).wait_sync(raise_error=True)
  File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 338, in wait_sync
    raise CallError(self.error)
middlewared.service_exception.CallError: [EFAULT] Expecting value: line 1 column 1 (char 0)


And the second. JSONDecodeError:
Code:
Error: Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 138, in call_method
    result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self,
  File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1224, in _call
    return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
  File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1128, in run_in_executor
    return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 979, in nf
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/jail_freebsd.py", line 184, in query
    resource_list = iocage.list('all', plugin=True, plugin_data=True)
  File "/usr/local/lib/python3.9/site-packages/iocage_lib/iocage.py", line 1350, in list
    return ioc_list.IOCList(
  File "/usr/local/lib/python3.9/site-packages/iocage_lib/ioc_list.py", line 82, in list_datasets
    _all = self.list_all(ds)
  File "/usr/local/lib/python3.9/site-packages/iocage_lib/ioc_list.py", line 396, in list_all
    ] = json.loads(f.read())
  File "/usr/local/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.9/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)


Does anyone know what might be happening or how to fix this?
 

Chade

Cadet
Joined
Jan 7, 2022
Messages
3
Apologies for the bump. I'm struggling to get to the bottom of this!
 

New2NSA

Cadet
Joined
Nov 9, 2022
Messages
8
I am getting an error when i click on plugins. This is a fresh install of Truenas Core
Version: TrueNAS-13.0-U3. What I have done is check my gateway and DNS Servers and they are all set correctly. Also my IP address
is static on. Any help would be great.

Get Plugins Failed​


Error: Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 355, in run
await self.future
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 393, in __run_body
rv = await self.middleware.run_in_thread(self.method, *([self] + args))
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1154, in run_in_thread
return await self.run_in_executor(self.thread_pool_executor, method, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1151, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 979, in nf
return f(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/jail_freebsd.py", line 372, in available
return self.middleware.call_sync('plugin.available_impl', options).wait_sync(raise_error=True)
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 326, in wait_sync
raise CallError(self.error)
middlewared.service_exception.CallError: [EFAULT] Cmd('git') failed due to: exit code(128)
cmdline: git clone -v https://github.com/freenas/iocage-ix-plugins.git /mnt/POOL-01/iocage/.plugins/github_com_freenas_iocage-ix-plugins_git
stderr: 'Cloning into '/mnt/POOL-01/iocage/.plugins/github_com_freenas_iocage-ix-plugins_git'...
fatal: unable to access 'https://github.com/freenas/iocage-ix-plugins.git/': SSL certificate problem: certificate is not yet valid
'
 

New2NSA

Cadet
Joined
Nov 9, 2022
Messages
8
I got my Plugins up and running. At least I am able to get past the error I posted. I was reading about the idea of testing it in a VM rather then a fresh install as mentioned by another poster in the thread. I spun up a VM in ESX 7.x and was in a fresh install able to get into plugins and select a pool. So I poped and and created a pool with 100% of my disks and the error was gone. Yet i could not get my physical install to work. So this is what I found and fixed it

I was out of space in my pool on my physical so I re installed it fresh created a pool ( no dataset yet ) and then went back to plugins and io worked fine. It did NOT matter that I did or did not have any information in Network / Global Configuration. It was a POOL issue in my case.

NEW2NAS
 
Top