Hi,
I have been trying to setup an rsync task using the built in editor. It was working as expected but I was trying to add a bit more detail to the logging from rsync by adding human readable figures into the log. When trying to save the changes under "extra options" I got a popup saying "No closing Quotation" and the error as below. The issue is now if I go to the rsync tab of the tasks dropdown the rsync tasks dont appear, the system appears to be trying to load them and the error "No closing quotation" appears again and again. Ideally I'd just remove the offending task but I am unable to do this through the web GUI as they do not load.
The extra option I tried to use was "--out-format="%t %f %'''b""
Am I able to remove the rsync task through shell? Could someone please point me in the right direction?
Any other ideas would be greatly appriecated. Thanks for your time.
More info displays the following:
Error: Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 130, in call_method
io_thread=False)
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1084, in _call
return await methodobj(*args)
File "/usr/local/lib/python3.7/site-packages/middlewared/schema.py", line 961, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/middlewared/service.py", line 383, in query
'datastore.query', self._config.datastore, [], datastore_options
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1141, in call
app=app, pipes=pipes, job_on_progress_cb=job_on_progress_cb, io_thread=True,
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1098, in _call
return await run_method(methodobj, *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/datastore.py", line 192, in query
qs, options.get('extend'), options.get('extend_context'), options.get('prefix'), options.get('select'),
File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/datastore.py", line 98, in __queryset_serialize
select=select)
File "/usr/local/lib/python3.7/site-packages/middlewared/utils/__init__.py", line 77, in django_modelobj_serialize
data = middleware.call_sync(extend, data, extend_context_value)
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1157, in call_sync
io_thread=True, job_on_progress_cb=job_on_progress_cb,
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1180, in run_coroutine
return fut.result()
File "/usr/local/lib/python3.7/concurrent/futures/_base.py", line 428, in result
return self.__get_result()
File "/usr/local/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1084, in _call
return await methodobj(*args)
File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/rsync.py", line 202, in rsync_task_extend
data['extra'] = shlex.split(data['extra'].replace('"', r'"\"').replace("'", r'"\"'))
File "/usr/local/lib/python3.7/shlex.py", line 309, in split
return list(lex)
File "/usr/local/lib/python3.7/shlex.py", line 299, in __next__
token = self.get_token()
File "/usr/local/lib/python3.7/shlex.py", line 109, in get_token
raw = self.read_token()
File "/usr/local/lib/python3.7/shlex.py", line 191, in read_token
raise ValueError("No closing quotation")
ValueError: No closing quotation
I have been trying to setup an rsync task using the built in editor. It was working as expected but I was trying to add a bit more detail to the logging from rsync by adding human readable figures into the log. When trying to save the changes under "extra options" I got a popup saying "No closing Quotation" and the error as below. The issue is now if I go to the rsync tab of the tasks dropdown the rsync tasks dont appear, the system appears to be trying to load them and the error "No closing quotation" appears again and again. Ideally I'd just remove the offending task but I am unable to do this through the web GUI as they do not load.
The extra option I tried to use was "--out-format="%t %f %'''b""
Am I able to remove the rsync task through shell? Could someone please point me in the right direction?
Any other ideas would be greatly appriecated. Thanks for your time.
More info displays the following:
Error: Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 130, in call_method
io_thread=False)
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1084, in _call
return await methodobj(*args)
File "/usr/local/lib/python3.7/site-packages/middlewared/schema.py", line 961, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/middlewared/service.py", line 383, in query
'datastore.query', self._config.datastore, [], datastore_options
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1141, in call
app=app, pipes=pipes, job_on_progress_cb=job_on_progress_cb, io_thread=True,
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1098, in _call
return await run_method(methodobj, *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/datastore.py", line 192, in query
qs, options.get('extend'), options.get('extend_context'), options.get('prefix'), options.get('select'),
File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/datastore.py", line 98, in __queryset_serialize
select=select)
File "/usr/local/lib/python3.7/site-packages/middlewared/utils/__init__.py", line 77, in django_modelobj_serialize
data = middleware.call_sync(extend, data, extend_context_value)
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1157, in call_sync
io_thread=True, job_on_progress_cb=job_on_progress_cb,
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1180, in run_coroutine
return fut.result()
File "/usr/local/lib/python3.7/concurrent/futures/_base.py", line 428, in result
return self.__get_result()
File "/usr/local/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1084, in _call
return await methodobj(*args)
File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/rsync.py", line 202, in rsync_task_extend
data['extra'] = shlex.split(data['extra'].replace('"', r'"\"').replace("'", r'"\"'))
File "/usr/local/lib/python3.7/shlex.py", line 309, in split
return list(lex)
File "/usr/local/lib/python3.7/shlex.py", line 299, in __next__
token = self.get_token()
File "/usr/local/lib/python3.7/shlex.py", line 109, in get_token
raw = self.read_token()
File "/usr/local/lib/python3.7/shlex.py", line 191, in read_token
raise ValueError("No closing quotation")
ValueError: No closing quotation