· Jan 2

How to debug ERROR_SEQUENCE_ERROR when using irisnative python module

Using the below python script I am getting : 

$ ./ 
Traceback (most recent call last):
  File "/home/wwillett/dev/vscode-objectscript/Samples-python-helloworld/./", line 34, in <module>
  File "/home/wwillett/dev/vscode-objectscript/Samples-python-helloworld/./", line 21, in run
    connection = irisnative.createConnection(ip, port, namespace, username, password)

I have verified that the Gateway is running.

I don't know what logs to look at for more information. I have checked mgr/messages.log, csp/CSP.log and httpd/logs/error.log. Nothing in ^%ER for either the USER or %SYS namespaces.

My os is Fedora 38


Script :




PURPOSE: Makes a connection to an instance of InterSystems IRIS Data Platform.

This example also stores data natively into your instance of InterSystems IRIS.


import irisnative

def run():

# Credentials to connect to InterSystems IRIS database

ip = ""

port = 53472

namespace = "USER"

username = "wwillett"

password = "xxxxx"


# Make connection to InterSystems IRIS database

connection = irisnative.createConnection(ip, port, namespace, username, password)    <------- FAILS HERE

print("Hello World! You have successfully connected to InterSystems IRIS.")


if __name__ == '__main__':


Product version: IRIS 2021.2
$ZV: IRIS for UNIX (Red Hat Enterprise Linux for x86-64) 2021.1.2 (Build 336U) Wed Mar 16 2022 17:56:57 EDT
Discussion (2)2
Log in or sign up to continue

may be that you are connecting to the webserver port and not the superserver one?

Can you post an "iris list"?

You can also include the connection in a try/catch and check on iris in application error logs and audit database (the audit db probably is the one that you need to check first).

you can have a look at a script that i've made that basically implements a remote cli to iris