The Captive Portal won't let me upload new templates I created, why?

Started by Moty_p, July 16, 2025, 06:21:08 PM

Previous topic - Next topic
The Captive Portal won't let me upload new templates I created, why?
i use this templates before and now it not let me to upload and use it
my machine:
1) physical brand computer
    I3-4130 CPU @ 3.40GHz (2 cores, 4 threads)
    8GB Ram
    120GB SSD
    3X1GB Nic

Run: captiveportal, ClamAV Daemon, Insight Aggregator, Intrusion Detection, OpenVPN server, ACME client, zenarmor.

Hi,

i am having the same issue.

I found the following error in my backend log file:
[d15dce03-54d4-4ea8-8771-47ab592e23af] Script action failed with Command '/usr/local/opnsense/scripts/OPNsense/CaptivePortal/strip_template.py '/var/lib/php/tmp/cp_8bdf2612-e847-40b4-bce6-35d0f96f99ce.tmp'' returned non-zero exit status 1. at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/actions/script_output.py", line 78, in execute subprocess.run(script_command, env=self.config_environment, shell=True, File "/usr/local/lib/python3.11/subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '/usr/local/opnsense/scripts/OPNsense/CaptivePortal/strip_template.py '/var/lib/php/tmp/cp_8bdf2612-e847-40b4-bce6-35d0f96f99ce.tmp'' returned non-zero exit status 1.
More over there seemed to be an issue (https://github.com/opnsense/core/issues/4558) in 2020, which was solved with an revert (https://x.com/opnsense/status/1339847119977533442) but since that was 5 years ago i am reluctant to try this.

I can download and upload the unchanged template_default.zip. As soon as i change anything the error appears.

I am running Version 25.7.1_1 amd64.