Generate API Requests crashes

Showing results for 
Show  only  | Search instead for 
Did you mean: 

Generate API Requests crashes

L3 Networker

I am trying to set up the first set of changes I am making to do some rule enrichment.

Within my project, I am going to Export, API Output Manager, and clicking "[Step 1] Generate API Requests". 

The status start changing, showing different phases, but after probably 35 seconds, I get kicked out of the web GUI and back to the login page. Is this a known bug? Is there a workaround, perhaps a config export to a file or something?

Also, what are the signifigance of the radio buttons for Mega, Atomic, Sub-atomic, and Clean?




L5 Sessionator

Just in case, make sure you are not under version 1.0.100, as we handled some specific XML structures from the PANOS configs in the latest updates.

The current version is 1.0.101.

Also, check if there is a file /tmp/error that could bring us more information about what may have gone wrong.

root@Expedition:/tmp# more error
Traceback (most recent call last):
File "/var/www/html/libs/ansible/", line 40, in <module>
import pan.config
ModuleNotFoundError: No module named 'pan'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/", line 63, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/", line 5, in <module>
from import Report
File "/usr/lib/python3/dist-packages/apport/", line 30, in <module>
import apport.fileutils
File "/usr/lib/python3/dist-packages/apport/", line 23, in <module>
from apport.packaging_impl import impl as packaging
File "/usr/lib/python3/dist-packages/apport/", line 23, in <module>
import apt
File "/usr/lib/python3/dist-packages/apt/", line 23, in <module>
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'

Original exception was:
Traceback (most recent call last):
File "/var/www/html/libs/ansible/", line 40, in <module>
import pan.config
ModuleNotFoundError: No module named 'pan'

Is there an Ansible back-end to Expedition? If so, I didn't know that.

we use some extensions who are in beta that try to convert the output xml as ansible playbook and sometimes it produces an error, and can be omited, then we use pan-python to from the output xml generate the set commands.


If you case seems the library has not being installed properly,


try to run this command from the cli


sudo -H pip3 install pandevice
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!