Orthanc falls after receive dicom

Hello world!
My equipment is: Orthanc 1.5.8, Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-198-generic x86_64), PostgreSQL 12.
The installation and configuration of Orthanc & pg went well. But Orthanc is unstable, after send dicom with AE or Upload, it fails after complete receive data - after reload service orthanc I can see the data.
It fails precisely after receive, when sending is in progress I can use orthanc.
I think the problem is in pg, but I don’t know how to more precisely define the problem.
I would be grateful for your help.
I’m new to this, I hope for your understanding if I expressed myself incorrectly somewhere.
:arrow_down: orthanc.json

{

  • General configuration of Orthanc
    “Name” : “Orthanc”****,
    “StorageDirectory” : “/home/test/ExternalOrthancStorage/psqldb/data”****,
    “IndexDirectory” : “/var/lib/orthanc/db-v6”****,
    // “IndexDirectory” : “/home/test/ExternalOrthancStorage/psqldb/db”
    “StorageCompression” : false**,**
    “MaximumStorageSize” : 0**,**
    “MaximumPatientCount” : 0**,**
    “LuaScripts” : [“/usr/share/orthanc/Lua/auto_send.lua”]****,
    “Plugins” : [“/usr/share/orthanc/plugins/”]****,
    “ConcurrentJobs” : 2**,**
  • Configuration of the HTTP server
    “HttpServerEnabled” : true**,**
    “HttpPort” : 8042**,**
    “HttpDescribeErrors” : true**,**
    “HttpCompressionEnabled” : true**,**
  • Configuration of the DICOM server
    “DicomServerEnabled” : true**,**
    “DicomAet” : “PACS”****,
    “DicomCheckCalledAet” : false**,**
    “DicomPort” : 4242**,**
    “DefaultEncoding” : “Latin1”****,
    “DeflatedTransferSyntaxAccepted” : true**,**
    “JpegTransferSyntaxAccepted” : true**,**
    “Jpeg2000TransferSyntaxAccepted” : true**,**
    “JpegLosslessTransferSyntaxAccepted” : true**,**
    “JpipTransferSyntaxAccepted” : true**,**
    “Mpeg2TransferSyntaxAccepted” : true**,**
    “RleTransferSyntaxAccepted” : true**,**
    “UnknownSopClassAccepted” : false**,**
    “DicomScpTimeout” : 30**,**
    “RemoteAccessAllowed” : true**,**
    “SslEnabled” : false**,**
    “SslCertificate” : “certificate.pem”****,
    “AuthenticationEnabled” : false**,**
    “RegisteredUsers” : {
    “user” : “123456”****,}
    “DicomModalities” : {
    “TEST” : [ “TEST”****, “192.168.4.3”****, 11125 ]}
    “DicomModalitiesInDatabase” : false**,**
    “DicomAlwaysAllowEcho” : true**,**
    “DicomAlwaysAllowStore” : true**,**
    “DicomCheckModalityHost” : false**,**
    “DicomScuTimeout” : 10**,**
    “OrthancPeers” : {}
    “OrthancPeersInDatabase” : false**,**
    “HttpProxy” : “”****,
    “HttpVerbose” : false**,**
    “HttpTimeout” : 60**,**
    “HttpsVerifyPeers” : true**,**
    “HttpsCACertificates” : “”****,
  • Advanced options
    “UserMetadata” : {}
    “UserContentType” : {}
    “StableAge” : 60**,**
    “StrictAetComparison” : false**,**
    “StoreMD5ForAttachments” : true**,**
    “LimitFindResults” : 0**,**
    “LimitFindInstances” : 0**,**
    “LimitJobs” : 10**,**
    “LogExportedResources” : false**,**
    “KeepAlive” : true**,**
    “TcpNoDelay” : true**,**
    “HttpThreadsCount” : 50**,**
    “StoreDicom” : true**,**
    “DicomAssociationCloseDelay” : 5**,**
    “QueryRetrieveSize” : 100
    “CaseSensitivePN” : false**,**
    /**
    “Pkcs11” : {
    “Module” : “/usr/local/lib/libbeidpkcs11.so”****,
    “Module” : "C**:/Windows/System32/beidpkcs11.dll",**
    “Pin” : “1234”****,
    “Verbose” : true
    }
    /
    “LoadPrivateDictionary” : true
    ,**
    “Dictionary” : {}
    “SynchronousCMove” : true**,**
    “JobsHistorySize” : 10**,**
    “SaveJobs” : false**,**
    “OverwriteInstances” : false**,**
    “MediaArchiveSize” : 1**,**
    “StorageAccessOnFind” : “Always”****,
    “MetricsEnabled” : true**,**
    “ExecuteLuaEnabled” : false**,**
    “HttpRequestTimeout” : 30
    }

:arrow_down: postgresql.json

{
“PostgreSQL” : {
“EnableIndex” : true**,**
“EnableStorage” : true**,**
“Host” : “localhost”****,
“Port” : 5432**,**
“Database” : “pacs_orthanc”****,
“Username” : “test_pacs”****,
“Password” : “123456”****,
“Lock” : false
}
}

:arrow_down: Lua

function OnStoredInstance**(instanceId, tags, metadata)**
SendToModality**(instanceId, ’ TEST)**
end

Hi @Harmony

First thing to do is check the logs in verbose mode.

In your case, since you are using a very old version, I would first upgrade to latest version as well.

HTH,

Alain