Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Ryland_Denley
Employee
Employee

Error exporting Policy package with Python tool

I have a customer using the Python script for export/importing Policy packages.

They have already successfully move a few packages over with no issues but ran into some problems on 1 policy. This policy has over 5000 Rules but very little NAT rules.

They are getting the following error which looks more related to the session closing or ending but not sure as to why:

Failed to retrieve NAT rulebase! Error: message: Wrong session id [4CqUm2VkMbKBkxtD0PHS9J0qTjX4mC2xkf-M9Vy6xak]. Session may be expired. Please check session id and resend the request.

code: generic_err_wrong_session_id

. NAT rulebase was not exported!’

Wondering if anybody has any ideas. I didn't see any logs to check for more detailed information but I haven't had much exposure to this script besides very recently so I may be missing something.

2 Replies
PhoneBoy
Admin
Admin

How long does it take for the script to run?

Only thing I can think of is the session ID is timing out because it's taking too long between operations.

The default session timer (refreshable) is 600 seconds (10 minutes).

You could easily hack the script to support a longer timeout.

Ryland_Denley
Employee
Employee

Taking well over an hour before failing. 
I think you are right as nothing else is really making sense in reference to the session ID.

Will look into the script for that Timeout.

 

Thanks for the direction on this!

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    Tue 23 Apr 2024 @ 11:00 AM (EDT)

    East US: What's New in R82

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Thu 02 May 2024 @ 11:00 AM (SGT)

    APAC: What's new in R82

    Tue 23 Apr 2024 @ 11:00 AM (EDT)

    East US: What's New in R82

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Thu 02 May 2024 @ 11:00 AM (SGT)

    APAC: What's new in R82
    CheckMates Events