Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

SOLVED Plugin Issues

Joined
Jul 10, 2019
Messages
9
Thanks
0
#1
Hey guys and gals,

I was going to look for plugins for my FreeNas, mainly one that would work like a personal cloud service... when i came across this error code. I'm still new to Freenas, I've only had my build for a month or so. What did I do to cause this? and how can I recover from it?

[Errno 1] Operation not permitted: b'/mnt/Server/iocage/.plugin_index/couchpotato.json'


Code:
Error: concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_plugin.py", line 643, in fetch_plugin_index
    self.__clone_repo(git_server, git_working_dir)
  File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_plugin.py", line 1255, in __clone_repo
    porcelain.pull(destination, repo_url, errstream=devnull)
  File "/usr/local/lib/python3.6/site-packages/dulwich/porcelain.py", line 826, in pull
    r.reset_index(tree=tree)
  File "/usr/local/lib/python3.6/site-packages/dulwich/repo.py", line 950, in reset_index
    validate_path_element=validate_path_element)
  File "/usr/local/lib/python3.6/site-packages/dulwich/index.py", line 530, in build_index_from_tree
    obj, entry.mode, full_path, honor_filemode=honor_filemode)
  File "/usr/local/lib/python3.6/site-packages/dulwich/index.py", line 460, in build_file_from_blob
    os.chmod(target_path, mode)
PermissionError: [Errno 1] Operation not permitted: b'/mnt/Server/iocage/.plugin_index/couchpotato.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/concurrent/futures/process.py", line 175, in _process_worker
    r = call_item.fn(*call_item.args, **call_item.kwargs)
  File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 133, in main_worker
    res = loop.run_until_complete(coro)
  File "/usr/local/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 93, in _run
    return await self._call(name, serviceobj, methodobj, params=args, job=job)
  File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 85, in _call
    return methodobj(*params)
  File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 85, in _call
    return methodobj(*params)
  File "/usr/local/lib/python3.6/site-packages/middlewared/schema.py", line 668, in nf
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/jail.py", line 540, in list_resource
    header=False)
  File "/usr/local/lib/python3.6/site-packages/iocage_lib/iocage.py", line 914, in fetch
    icon=True, official=official)
  File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_plugin.py", line 650, in fetch_plugin_index
    _callback=self.callback)
  File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_common.py", line 90, in logit
    _callback(content, exception)
  File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_common.py", line 64, in callback
    raise callback_exception(message)
RuntimeError: [Errno 1] Operation not permitted: b'/mnt/Server/iocage/.plugin_index/couchpotato.json'
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 167, in call_method
    result = await self.middleware.call_method(self, message)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1098, in call_method
    return await self._call(message['method'], serviceobj, methodobj, params, app=app, io_thread=False)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1043, in _call
    return await self._call_worker(name, *args)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1063, in _call_worker
    return await self.run_in_proc(main_worker, name, args, job)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 997, in run_in_proc
    return await self.run_in_executor(self.__procpool, method, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 973, in run_in_executor
    return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
RuntimeError: [Errno 1] Operation not permitted: b'/mnt/Server/iocage/.plugin_index/couchpotato.json'
 

dlavigne

Storage Engineering
Administrator
Moderator
iXsystems
Joined
May 24, 2011
Messages
11,331
Thanks
974
#2
Which FreeNAS version (from the System dashboard)?
 
Joined
Jul 10, 2019
Messages
9
Thanks
0
#3
Hey thanks for the fast replay. I am running "FreeNAS-11.2-U5"

I found this Post and did the same command with a similar result. It seems like a pain to fix this deleting jails. Is there an easy way to backup my jails so i don't lose my other two plugin settings?

At this point, you may want to delete that iocage dataset and recreate your jail(s) from scratch.
Code:
root@freenas[~]# ls -la /mnt/Server/iocage/.plugin_index
total 482
drwxrwxr-x+ 5 root  wheel     52 Jul 22 20:31 .
drwxrwxr-x+ 9 root  wheel     11 Jul 23 05:11 ..
drwxrwxr-x+ 7 root  wheel     11 Jul 22 20:31 .git
-rwxrwxr-x+ 1 root  wheel    810 Jul 22 20:31 asigra-11.1.json
-rwxrwxr-x+ 1 root  wheel    818 Aug 12 17:55 asigra.json
-rwxrwxr-x+ 1 root  wheel    435 Aug 12 17:56 backuppc.json
-rwxrwxr-x+ 1 root  wheel    510 Aug 12 18:08 bacula-server.json
-rwxrwxr-x+ 1 root  wheel    500 Aug 12 18:08 bitcoin-node.json
-rwxrwxr-x+ 1 root  wheel    428 Aug 12 18:24 bru-server.json
-rwxrwxr-x+ 1 root  wheel    475 Aug 13 18:56 channels-dvr.json
-rwxrwxr-x+ 1 root  wheel    409 Aug 13 20:45 clamav.json
-rwxrwxr-x+ 1 root  wheel    448 Aug 13 20:49 couchpotato.json
-rwxrwxr-x+ 1 root  wheel    502 Aug 14 05:23 crashplan.json
-rwxrwxr-x+ 1 root  wheel    437 Aug 14 05:33 deluge.json
-rwxrwxr-x+ 1 root  wheel    442 Jul 22 20:31 dnsmasq.json
-rwxrwxr-x+ 1 root  wheel    424 Aug 14 05:34 emby.json
-rwxrwxr-x+ 1 root  wheel    493 Jul 22 20:31 gitlab-runner.json
-rwxrwxr-x+ 1 root  wheel    565 Aug 14 05:34 gitlab.json
-rwxrwxr-x+ 1 root  wheel    534 Jul 22 20:31 homebridge.json
drwxrwxr-x+ 2 root  wheel     41 Jul 22 20:31 icons
-rwxrwxr-x+ 1 root  wheel  12271 Aug 12 17:54 INDEX
-rwxrwxr-x+ 1 root  wheel    430 Aug 14 05:34 irssi.json
-rwxrwxr-x+ 1 root  wheel    437 Aug 14 05:41 jenkins-lts.json
-rwxrwxr-x+ 1 root  wheel    425 Aug 14 05:41 jenkins.json
-rwxrwxr-x+ 1 root  wheel    426 Aug 14 05:44 madsonic.json
-rwxrwxr-x+ 1 root  wheel    770 Aug 14 05:45 mineos.json
-rwxrwxr-x+ 1 root  wheel    475 Jul 22 20:31 nextcloud.json
-rwxrwxr-x+ 1 root  wheel    552 Jul 22 20:31 openvpn.json
-rwxrwxr-x+ 1 root  wheel    483 Jul 22 20:31 plexmediaserver-plexpass.json
-rwxrwxr-x+ 1 root  wheel    465 Jul 22 20:31 plexmediaserver.json
-rwxrwxr-x+ 1 root  wheel    475 Jul 22 20:31 qbittorrent.json
-rwxrwxr-x+ 1 root  wheel    429 Jul 22 20:31 quasselcore.json
-rwxrwxr-x+ 1 root  wheel    421 Jul 22 20:31 radarr.json
-rwxrwxr-x+ 1 root  wheel    595 Jul 22 20:31 README.md
-rwxrwxr-x+ 1 root  wheel    469 Jul 22 20:31 redmine.json
-rwxrwxr-x+ 1 root  wheel    423 Jul 22 20:31 rslsync.json
-rwxrwxr-x+ 1 root  wheel    412 Jul 22 20:31 sabnzbd.json
-rwxrwxr-x+ 1 root  wheel    480 Jul 22 20:31 sickchill.json
-rwxrwxr-x+ 1 root  wheel    480 Jul 22 20:31 sickrage.json
-rwxrwxr-x+ 1 root  wheel    470 Jul 22 20:31 sonarr.json
-rwxrwxr-x+ 1 root  wheel    434 Jul 22 20:31 subsonic.json
-rwxrwxr-x+ 1 root  wheel    471 Jul 22 20:31 syncthing.json
-rwxrwxr-x+ 1 root  wheel    425 Jul 22 20:31 tarsnap.json
-rwxrwxr-x+ 1 root  wheel    502 Jul 22 20:31 tautulli.json
drwxrwxr-x+ 3 root  wheel      7 Jul 22 20:31 template
-rwxrwxr-x+ 1 root  wheel    474 Jul 22 20:31 transmission.json
-rwxrwxr-x+ 1 root  wheel    409 Jul 22 20:31 ttrss.json
-rwxrwxr-x+ 1 root  wheel    435 Jul 22 20:31 unificontroller-lts.json
-rwxrwxr-x+ 1 root  wheel    427 Jul 22 20:31 unificontroller.json
-rwxrwxr-x+ 1 root  wheel    420 Jul 22 20:31 weechat.json
-rwxrwxr-x+ 1 root  wheel    418 Jul 22 20:31 xmrig.json
-rwxrwxr-x+ 1 root  wheel    505 Jul 22 20:31 zoneminder.json
 
Last edited:

dlavigne

Storage Engineering
Administrator
Moderator
iXsystems
Joined
May 24, 2011
Messages
11,331
Thanks
974
#4
Have you since resolved this? If not, you could make a new dataset (which will have the correct permissions), change the Jails -> Configuration to point to the new dataset, reinstall the plugins, and copy over your configs from the original plugins. Once you've verified they're working as expected, at that point you could delete the problematic dataset.
 
Joined
Jul 10, 2019
Messages
9
Thanks
0
#5
I ended up throwing the baby out with the bath water. I have a raid 1 on my desktop big enough to hold all the data. did a clean install of freenas, and created a new pool.

I am now being very careful with my permissions as I don't want to incur the same issue. I really only wanted 2 more plugins. :'( User inflicted strife
 
Top