Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 20.1.7 to 20.1.8 breaks Status Overview in IPsec #4189

Closed
mimugmail opened this issue Jul 2, 2020 · 7 comments
Closed

Update 20.1.7 to 20.1.8 breaks Status Overview in IPsec #4189

mimugmail opened this issue Jul 2, 2020 · 7 comments
Assignees
Labels
bug Production bug
Milestone

Comments

@mimugmail
Copy link
Member

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

[X] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md

[X] I have searched the existing issues and I'm convinced that mine is new.

Describe the bug
I just did an upgrade to 20.1.8 on my test machine cause of this report:
https://forum.opnsense.org/index.php?topic=17912.msg81304#msg81304

Seems this is true, after update the Status Overview page is empty:

image

Reverting to 20.1.7 does not work, I got this in configd.log when refreshing the page:

Jul 2 18:38:05 OPNsense configd.py: [2704c3dc-254b-4a86-b107-1cb6fd0d6fd2] Script action failed with Command '/usr/local/opnsense/scripts/ipsec/list_status.py' returned non-zero exit status 1. at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/processhandler.py", line 484, in execute stdout=output_stream, stderr=error_stream) File "/usr/local/lib/python3.7/subprocess.py", line 363, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '/usr/local/opnsense/scripts/ipsec/list_status.py' returned non-zero exit status 1.

@AdSchellevis
Copy link
Member

the output of /usr/local/opnsense/scripts/ipsec/list_status.py please :)

@mimugmail
Copy link
Member Author

root@OPNsense:~ # /usr/local/opnsense/scripts/ipsec/list_status.py
Traceback (most recent call last):
  File "/usr/local/opnsense/scripts/ipsec/list_status.py", line 90, in <module>
    print (ujson.dumps(result))
TypeError: reject_bytes is on and 'pre-shared key' is bytes

@AdSchellevis
Copy link
Member

yeay, new options.... ultrajson/ultrajson#266
30a9195 should fix it.

@AdSchellevis AdSchellevis self-assigned this Jul 2, 2020
@AdSchellevis AdSchellevis added the bug Production bug label Jul 2, 2020
@mimugmail
Copy link
Member Author

Sorry, added my comment in commit and not here

fichtner pushed a commit that referenced this issue Jul 2, 2020
@fichtner fichtner added this to the 20.7 milestone Jul 3, 2020
@fichtner
Copy link
Member

fichtner commented Jul 4, 2020

Hotfix is out :)

@fichtner fichtner closed this as completed Jul 4, 2020
@Teemoe86
Copy link

Since some weeks,the status overview of ipsec is blanc. I have two opnsense installed. One without the bug, the second have the issue.

OPNsense 22.1.10-amd64
FreeBSD 13.0-STABLE
OpenSSL 1.1.1q 5 Jul 2022

Script action failed with Command '/usr/local/opnsense/scripts/ipsec/list_status.py ' returned non-zero exit status 1. at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/processhandler.py", line 482, in execute subprocess.check_call(script_command, env=self.config_environment, shell=True, File "/usr/local/lib/python3.9/subprocess.py", line 373, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '/usr/local/opnsense/scripts/ipsec/list_status.py ' returned non-zero exit status 1.

/usr/local/opnsense/scripts/ipsec/list_status.py

Traceback (most recent call last):
File "/usr/local/opnsense/scripts/ipsec/list_status.py", line 35, in
import vici
ImportError: bad magic number in 'vici': b'\x03\xf3\r\n'

@fichtner
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Production bug
Development

No branches or pull requests

4 participants