Continuwuity FAILED during install

A message flashed up during the installation about an error during cleanup and then it disappears and leaves the big error box with stuff about JSON.

Could someone please direct me to where I can see the error logs to determine the real cause?

Thanks

Paul

do you mean an app installation?
if yes the logs can be accessed from shell with

sudo cat /var/log/app_lifecycle.log

Thank you I think that is what I meant. Unfortunately it doesn’t tell me anything why Continuwuity is failing to install.

I get a quick flash of a message “Failure occured while installing…. cleaning up” and then the long error about failure to render compose template

EFAULT] Failed to render compose templates: Traceback (most recent call last): File "/usr/bin/apps_render_app", line 33, in sys.exit(load_entry_point('apps-validation==0.1', 'console_scripts', 'apps_render_app')()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/catalog_templating/scripts/render_compose.py", line 48, in main render_templates_from_path(args.path, args.values) File "/usr/lib/python3/dist-packages/catalog_templating/scripts/render_compose.py", line 19, in render_templates_from_path rendered_data = render_templates( ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/catalog_templating/render.py", line 31, in render_templates rendered_templates[i.name] = env.get_template(i.name).render( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1301, in render self.environment.handle_exception() File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 936, in handle_exception raise rewrite_traceback_stack(source=source) File "/mnt/.ix-apps/app_configs/continuwuity/versions/1.0.1/templates/docker-compose.yaml", line 18, in top-level template code {% do c1.environment.add_env("CONTINUWUITY_TRUSTED_SERVERS", values.continuwuity.trusted_servers|tojson) %} ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/jinja2/filters.py", line 1707, in do_tojson return htmlsafe_json_dumps(value, dumps=dumps, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/jinja2/utils.py", line 661, in htmlsafe_json_dumps dumps(obj, **kwargs) File "/usr/lib/python3.11/json/__init__.py", line 238, in dumps **kw).encode(obj) ^^^^^^^^^^^ File "/usr/lib/python3.11/json/encoder.py", line 200, in encode chunks = self.iterencode(o, _one_shot=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/json/encoder.py", line 258, in iterencode return _iterencode(o, 0) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/json/encoder.py", line 180, in default raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of type Undefined is not JSON serializable 

I’m looking at the Install form for this app and it looks like Trusted Servers is a hidden setting unless you select Enable Federation. If I try to install with all defaults I get the same JSON error.

This looks like a bug. I’d suggest filing an issue at https://github.com/truenas/apps/issues.

Thank you. It installed and worked for me with both Enable Federation and Enable Registration ticked.