> Source: [sk184838](https://support.checkpoint.com/results/sk/sk184838)

# sk184838 - Gaia API run-script fails with HTTP 500 on Security Gateways when executed by AAA (RADIUS/TACACS) users

| Property | Value |
|----------|-------|
| Solution ID | sk184838 |
| Date Created | 2026-03-25 |
| Last Modified | 2026-03-29 |
| Technical Level | Advanced |
| Products | Security Gateway |
| Versions | R82.10, R82, R81.20, R81.10 (EOS) |

## Symptoms

- * All Management Application Programming Interface (API) calls that use the `run-script` command to the affected Security Gateways fail with , regardless of the script content or parameters.

* `The failure occurs for AAA (external) users (for example, users authenticated via RADIUS).`

* `After an AAA user triggers the issue with run-script, subsequent ``run-script`` executions by local users also fail with ``HTTP 500`` until the ``gaia_api`` service is restarted.`

* `These errors appear repeatedly in `*/var/log/gaia_api_taskmanager.log* `:`  
  `
  ``
  Failed to handle request, reason: 'Fail to get data'`  
  `
  ...`  
  `
  File ".../sessions_manager.py", line ..., in add_entry`  
  `
  db.get_one("mrma:users:user:{user}")`  
  `
  libdb_wrapper.LibdbExcept: Fail to get data`

* `These errors appear in `*/var/log/celery.log* `:`  
  `
  ``
  ERROR ... signal handler session_cleanup raised exception LibdbExcept('Fail to get data')`  
  `
  ...`  
  `
  File ".../rest_rba.py", line ..., in clean_unlocal_user`  
  `
  db.get_one("volatile:mrma:users:user:{user}:pid")`  
  `
  libdb_wrapper.LibdbExcept: Fail to get data`

* `Reverting the Gaia API version to v1.8 restores normal run-script functionality.`

* `Build of gaia_api v1.9 is lower then cp991255084`

## Cause

A behavior in Gaia API engine v1.9 on some Gaia OS Security Gateways can cause intermittent failures when processing session-related records for AAA (external) users. When this condition occurs, Gaia API request processing can terminate and return HTTP 500 (Internal Server Error) for run-script tasks. (HTTP 500 is a documented failure return code for Gaia REST API calls.)

Once triggered, the session state may remain inconsistent until the gaia_api service restarts, after which the issue can reoccur if the triggering conditions happen again.

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
