Fix iocage fstabs containing spaces and other bad characters

Description

Hi every body after update freenas to 11.2 U3 in jails create mounting point and then I cann´t start again jails and server emby.
Can you repair in next update. Thx Robert.

This error view:

Error: concurrent.futures.process._RemoteTraceback:
"""
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 128, 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 88, in _run
return await self._call(f'
{service_name}
.
{method}
', serviceobj, methodobj, params=args, job=job)
File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 81, in _call
return methodobj(*params)
File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 81, 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 609, in start
iocage.start()
File "/usr/local/lib/python3.6/site-packages/iocage_lib/iocage.py", line 1663, in start
callback=self.callback
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_start.py", line 66, in _ init _
self._ start_jail _()
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_start.py", line 401, in _ start_jail _
silent=self.silent)
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: jail: mount.fstab: FILMY/AVANGERS: not an absolute pathname

"""

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 165, in call_method
result = await self.middleware.call_method(self, message)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1141, 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 1078, in _call
return await self._call_worker(serviceobj, name, *args)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1105, in _call_worker
job,
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1036, 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 1021, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
RuntimeError: jail: mount.fstab: FILMY/AVANGERS: not an absolute pathname

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Jeff Ervin 
April 30, 2019 at 2:16 PM

Test Passed FreeNAS-11.2-U4-INTERNAL12

Created pool with a space in the name.  Mounted Nextcloud to that pool, no traceback received.  See screenshots

Carl Adams 
April 29, 2019 at 3:29 AM
(edited)

This used to work and was fixed 8 months ago: https://redmine.ixsystems.com/issues/37802 

I have old iocage jails that still work with mounts using spaces but any newly created mounts do not seem to accept spaces in the pool or folder names.

I am having this same error when spaces are in a name. Do you still need server logs to help?

Dru Lavigne 
April 18, 2019 at 3:52 PM

William Gryzbowski 
April 18, 2019 at 12:17 PM

Robert Virág 
April 1, 2019 at 6:01 PM

If I remove mounting point i can start emby server again. Everything working great. If again mounting point jail doesn´t start.

Complete

Details

Assignee

Reporter

Components

Fix versions

Priority

More fields

Katalon Platform

Created March 30, 2019 at 7:17 PM
Updated July 1, 2022 at 4:32 PM
Resolved April 30, 2019 at 2:45 PM