Error When Opening Available Plugins

Description

When attempting to open available plugins to select a new one for installation, the plugin page never loads. Instead, the following error is received:

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 1289, in __clone_repo
repo.reset_index(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/NAS_1/iocage/.plugin_index/asigra.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 131, in main_worker
res = loop.run_until_complete(coro)
File "/usr/local/lib/python3.6/asyncio/base_events.py", line 468, in run_until_complete
return future.result()
File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 91, 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 84, in _call
return methodobj(*params)
File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 84, 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 530, 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/NAS_1/iocage/.plugin_index/asigra.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 166, in call_method
result = await self.middleware.call_method(self, message)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1097, 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 1042, in _call
return await self._call_worker(name, *args)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1062, 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 996, 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 972, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
RuntimeError: [Errno 1] Operation not permitted: b'/mnt/NAS_1/iocage/.plugin_index/asigra.json'

I am unable to install any new plugins due to this. I can look at installed plugins with no problem.

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

William Gryzbowski August 22, 2019 at 11:40 AM

Someone changed it. Unix is the default.

Max Gimperling August 21, 2019 at 8:51 PM

That did correct the issue.  I do know that I had not changed that dataset permission, and it has been set to Windows since created.

Should that always be set as unix? Is there any reason that would change?

 

I appreciate your help!

Thanks,

Max

William Gryzbowski August 21, 2019 at 11:46 AM

I am positive you did. You have ACL set in /mnt/NAS_1 and /mnt/NAS_1/iocage

Please correct it by using Unix permission for NAS_1/iocage dataset and let us know.

Max Gimperling August 20, 2019 at 10:00 PM

Above is the output.  I have not made any changes to permissions prior to or after the error began occurring.

Max Gimperling August 20, 2019 at 9:59 PM

root@freenas/mnt# ls -l /mnt/
total 16
rw-rr- 1 root wheel 5 Aug 17 19:40 md_size
drwxr-xr-x 8 root wheel 8 Jun 22 07:16 NAS_1

 

root@freenas/mnt# ls -l /mnt/NAS_1
total 61
drwxr-xr-x 4 root wheel 4 Jun 21 05:40 .bhyve_containers
drwxrwxr-x+ 9 root wheel 11 Jun 26 17:03 iocage
drwxr-xr-x 2 max admin 11 Jun 16 15:36 max
drwxrwxr-x+ 6 root wheel 7 Aug 17 16:10 NAS_Share
drwxrwxrwx+ 8 root wheel 9 Jul 23 18:49 Plex Library
drwxrwxr-x+ 7 share share 9 Jun 22 07:59 Shared

 

root@freenas/mnt# ls -l /mnt/NAS_1/iocage
total 45
drwxrwxr-x+ 5 root wheel 52 Jun 12 16:59 .plugin_index
-rwxrwxr-x+ 1 root wheel 0 Jun 25 15:12 .windows
-rwxrwxr-x+ 1 root wheel 2925 Jun 26 17:03 defaults.json
drwxrwxr-x+ 3 root wheel 3 Jun 12 17:07 download
drwxrwxr-x+ 2 root wheel 2 Jun 12 16:59 images
drwxrwxr-x+ 6 root wheel 6 Aug 17 15:21 jails
drwxr-xr-x 2 root wheel 6 Aug 17 15:21 log
drwxr-xr-x 3 root wheel 3 Jun 12 17:07 releases
drwxr-xr-x 2 root wheel 2 Jun 12 16:59 templates

 

 

User Configuration Error
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

More fields

Katalon Platform

Created August 17, 2019 at 11:41 PM
Updated August 22, 2019 at 11:40 AM
Resolved August 22, 2019 at 11:40 AM