I’m trying to set PAPERLESS_FILENAME_FORMAT
to {correspondent}/{created} {title}
in the “Additional Environment Variables” section when configuring the official paperless-ngx TrueNAS-app. Setting other variables like PAPERLESS_URL
is working fine but once I set this one, I get an error when trying to save it:
Error: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 469, in run
await self.future
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 511, in __run_body
rv = await self.method(*args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/service/crud_service.py", line 210, in nf
rv = await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 47, in nf
res = await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 187, in nf
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/chart_release.py", line 568, in do_update
await self.middleware.call('chart.release.helm_action', chart_release, chart_path, config, 'update')
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1564, in call
return await self._call(
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1428, in _call
return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1321, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/helm.py", line 49, in helm_action
raise CallError(f'Failed to {tn_action} App: {errmsg}')
middlewared.service_exception.CallError: [EFAULT] Failed to update App: WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /etc/rancher/k3s/k3s.yaml
Error: UPGRADE FAILED: execution error at (paperless-ngx/templates/common.yaml:14:4): Chart - Values contain an error that may be a result of merging. Values containing the error:
Error: 'error converting YAML to JSON: yaml: line 36: did not find expected key'
TZ: Europe/Berlin
bashImage:
pullPolicy: IfNotPresent
repository: bash
tag: 4.4.23
[...]
Which is followed by what seems to be the (very long) yaml. In there I can see my variable which looks correct but it’s not working:
paperlessConfig:
additionalEnvs:
- name: PAPERLESS_FILENAME_FORMAT
value: '{correspondent}/{created} {title}'
When directly adding quotation marks like so "{correspondent}/{created} {title}”
there’s the same error but in the error/yaml I see them now duplicated, which feeld wrong as well.
paperlessConfig:
additionalEnvs:
- name: PAPERLESS_FILENAME_FORMAT
value: '"{correspondent}/{created} {title}”'
I’m stuck here and using paperless without being able to set the file path is not practicable for me. Any ideas?