FreeNas version = 11.3-U2.1, Unable to get plugins !!!

KTM_888

Cadet
Joined
May 19, 2020
Messages
3
Hey everyone, I just installed FreeNas on my old laptop yesterday, I want to be able to make a home media server as well backing up important files. So, today I wanted to install plex, currently following the FreeNas guide on YouTube . However I ran with an error when trying to get the plugins install into my system.

Cmd('git') failed due to: exit code(128) cmdline: git clone -v https://github.com/freenas/iocage-ix-plugins.git /mnt/Dragon_Server_Storage/iocage/.plugins/github_com_freenas_iocage-ix-plugins_git stderr: 'Cloning into '/mnt/Dragon_Server_Storage/iocage/.plugins/github_com_freenas_iocage-ix-plugins_git'... fatal: unable to access 'https://github.com/freenas/iocage-ix-plugins.git/': Could not resolve host: github.com '

Code:
Error: Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_plugin.py", line 1506, in _clone_repo
    repo = git.Repo(destination)
  File "/usr/local/lib/python3.7/site-packages/git/repo/base.py", line 131, in __init__
    raise NoSuchPathError(epath)
git.exc.NoSuchPathError: /mnt/Dragon_Server_Storage/iocage/.plugins/github_com_freenas_iocage-ix-plugins_git

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/middlewared/job.py", line 349, in run
    await self.future
  File "/usr/local/lib/python3.7/site-packages/middlewared/job.py", line 388, in __run_body
    rv = await self.middleware.run_in_thread(self.method, *([self] + args))
  File "/usr/local/lib/python3.7/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.7/site-packages/middlewared/utils/io_thread_pool_executor.py", line 25, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/site-packages/middlewared/schema.py", line 965, in nf
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/jail.py", line 409, in available
    plugins_versions_data = IOCPlugin(branch=branch, git_repository=plugin_repository).fetch_plugin_versions()
  File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_plugin.py", line 220, in fetch_plugin_versions
    self.pull_clone_git_repo()
  File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_plugin.py", line 133, in pull_clone_git_repo
    depth, self.callback
  File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_plugin.py", line 1571, in _clone_repo
    k: v for k, v in kwargs.items() if v
  File "/usr/local/lib/python3.7/site-packages/git/repo/base.py", line 988, in clone_from
    return cls._clone(git, url, to_path, GitCmdObjectDB, progress, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/git/repo/base.py", line 939, in _clone
    finalize_process(proc, stderr=stderr)
  File "/usr/local/lib/python3.7/site-packages/git/util.py", line 333, in finalize_process
    proc.wait(**kwargs)
  File "/usr/local/lib/python3.7/site-packages/git/cmd.py", line 415, in wait
    raise GitCommandError(self.args, status, errstr)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git clone -v https://github.com/freenas/iocage-ix-plugins.git /mnt/Dragon_Server_Storage/iocage/.plugins/github_com_freenas_iocage-ix-plugins_git
  stderr: 'Cloning into '/mnt/Dragon_Server_Storage/iocage/.plugins/github_com_freenas_iocage-ix-plugins_git'...
fatal: unable to access 'https://github.com/freenas/iocage-ix-plugins.git/': Could not resolve host: github.com
'


I do not know if this is a problem that has to do with git hub or a missing package in my system. I hope this helps, hoping to hear for someone soon.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Make sure the networking is correct for your plugin jail. In particular, look to see there's a default gateway; NAT is not enabled; and DNS servers are configured in the jail's /etc/resolv.conf.
 
Top