Captive Portal Template Upload fails with no error [RESOLVED]

Started by namezero111111, January 21, 2018, 04:07:14 PM

Previous topic - Next topic
January 21, 2018, 04:07:14 PM Last Edit: January 28, 2018, 09:32:49 PM by namezero111111
Dear community, on 18.1, if I upload a template for the captive portal, no error is shown and the template does not show up in the list.

The system log shows the following:

Quoteconfigd.py: [bbb4c32d-c5ef-42fc-83c2-4937056c439f] Script action failed with Command '/usr/local/opnsense/scripts/OPNsense/CaptivePortal/strip_template.py 'cp_8055301b-04b3-4e67-a113-8cfe75784248.tmp'' returned non-zero exit status 1 at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/processhandler.py", line 479, in execute stdout=output_stream, stderr=error_stream) File "/usr/local/lib/python2.7/subprocess.py", line 186, in check_call raise CalledProcessError(retcode, cmd) CalledProcessError: Command '/usr/local/opnsense/scripts/OPNsense/CaptivePortal/strip_template.py 'cp_8055301b-04b3-4e67-a113-8cfe75784248.tmp'' returned non-zero exit status 1

The same happens when just uploading the default template again.

Note: /tmp is mounted with tmpfs ram disk

The issue is if /tmp is too small (ramfs). Extending or waiting for the autoextend works.


January 28, 2018, 09:36:08 PM #3 Last Edit: January 28, 2018, 09:38:00 PM by namezero111111
Yes, they're getting a bit old, but for remote sites still very good :}

Interesting, because the uploaded data is maybe 300k, and 18M free.


Thx; it's low priority though cuz it works eventually with patience and seems to occur only on legacy devices. I may be wrong but there are probably mostly newer systems around these days...

Sure, might be a silly bug though. Better to get rid of those. I'll check and let you know. :)


Cheers,
Franco

If it helps, sometimes the output from OPNsense/CaptivePortal/Api/ServiceController.php line 143 is truncated.

Just as an update, this never works in IE, but with Firefox :}