Gemini AI logo

Troubleshooting System Messages

The following are extracts from messages you might be presented with on screen or find in Gemini's System Log (Configure Gemini...System...System Log) if you have system issues.

Execution timeout Expired

This should not happen unless the system is under exceptional load. It simply means a query is taking too long to complete, so unless it is happening on a regular basis it is usually safe to ignore. However, if it happens on search then you need to check that you have the SQL Server optional component "Full Text Search" installed. You can check this with the following SQL Query:"

             FULLTEXTSERVICEPROPERTY('IsFullTextInstalled') = 1 
              'NOT INSTALLED' 
    END IsFullTextInstalled

If FTS is not installed you can expect Timeouts not only in search, but elsewhere, because users who are searching will take up consume machine resources (CPU and Memory), resulting in other queries running for longer and sometimes exceeding the Timeout Interval.

SQL Server Full Text Search is on the media that your SQL Server came on. Ask a DBA to install it. Once installed you need to configure Gemini to use it. To do so, execute the following commands in SQL Server:


CREATE FULLTEXT INDEX ON [dbo].[gemini_customfielddata] (
fielddata Language 1033
KEY INDEX gemini_customfielddata_customfielddataid_pk
ON Gemini

CREATE FULLTEXT INDEX ON [dbo].[gemini_issuecomments] (
comment Language 1033
KEY INDEX gemini_issuecomments_commentid_pk
ON Gemini

CREATE FULLTEXT INDEX ON [dbo].[gemini_issues] (
summary Language 1033
,longdesc Language 1033
KEY INDEX gemini_issues_issueid_pk
ON Gemini

The last step is to tell the Gemini application to use the FTS catalog you've just created. To do that, edit web.config and add an app setting with the key gemini.fulltextsearch and value of true

    <add key="gemini.fulltextsearch" value="true"/>
	...more app settings

System.Web.Mvc - A public action 'FetchCards' was not found on controller...

The error message is correct - there is no such public method on the controller. The question is why is IIS trying to invoke it. The system log will identify the user, and if the user is Anonymous you have some kind of explanation in a question - how can an Anonymous (unknown) user be trying to get data and execute actions in your Gemini instance? It suggests that your IIS authentication is wrong in some way.

Please check that:

  • If you are using Windows Authentication, Anonymous Authentication is disabled.
  • If you are using Forms Authentication, Windows Authentication is disabled but Anonymous authentication is enabled.
  • Above all, check that the authentication method in web.config (Forms or Windows) is the same as your IIS authentication. If not, the type of error shown above can occur.
  • You should not have to, but it is wise to recycle Gemini's App Pool in IIS after making any changes to IIS authentication or web.config.

If the user is not Anonymous, but is a named user, check the user's Workspace filters do not filter on a Custom Field that no longer exists. As the image of the error message shows, the Workspace is shown in the URL. Hovering over a Workspace will give you its URL, and you can always find a Workspace by its id using the SQL:

select * from gemini_navigationcard where cardid=<the id from the url>

For example https://getmini/workspace/9091 is a Workspace with a cardid of 9091.

If you cannot identify a problem with the Workspace listed in a system error message, we recommend you delete and recreate it as a practical alternative to spending hours trying to investigate what is wrong with it.

Object reference not set to an instance of an object. SLA at SLA.Helpers.RuleCompiler.Compile...

This error occurs if you do not have a specific trigger in your database. First you need to correct the cause of the message by executing the following SQL statement in your database:

update gemini_users set username='-2system' where userid=-2

Then you need to create the trigger in your database so the error does not occur again. The SQL for this is:

IF EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'gemini_tr_users_update'))
DROP TRIGGER gemini_tr_users_update

CREATE TRIGGER gemini_tr_users_update
ON gemini_users


IF EXISTS (SELECT * FROM inserted i JOIN deleted d ON i.userid = d.userid WHERE i.userid=-2 AND i.username!=d.username)
-- Revert the username to -2system and throw!
UPDATE gemini_users SET username='-2system' WHERE userid=-2
RAISERROR ('Cannot update the system user name.', -- Message text.
16, -- Severity.
1 -- State.

Batch Update returned unexpected row count

The system has almost certainly detected a deadlock. Process A has a record locked that Process B needs, and Process B has a record locked that Process A needs. One process will be killed to release the lock. This is a standard, multi-user database scenario and is not a problem unless it happens frequently, in which case it is likely that you have a long-running query causing a performance bottleneck that needs a DBA to investigate. Check that you are not getting Timeouts as described above.

Various Azure error messages you might see


You are not specifying TLS 1.2. If your mailbox uses EWS then it uses 1.2 by default. If your IMAP and SMTP have TLS 1.2 specified then follow the link from Microsoft because there are O/S implications to TLS 1.2.


Indicates that your email user hasn't been explicitly added to the tenant.


Your Scope settings on your mailbox or SMTP is incorrect. Please specify the Scope settings exactly as shown in our documentation. Gemini will always default the correct Scope, but if you change settings (say from IMAP to EWS) it will not change what it has defaulted.


There's a problem with your SSL Certificate.


Your redirect URI is invalid. Login to Azure Portal and check it.

AADSTS50055 or 56 or 57

Invalid or expired password, or the user account is disabled.


Invalid credentials.


InvalidClient - Error validating the credentials. The specified Client Secret in the Azure App Registration does not match the expected value for this client. Correct the Client Secret and try again. You may have to generate a new Client Secret.


InvalidRedirectUri - The app returned an invalid redirect URI. Make sure you are not specifying http unless it is for a test with 'localhost', and make sure your URI in Azure for your App Registration matches the case of your gemini site as the setting is cAsE sensitive.


The refresh token has expired or is invalid due to sign-in frequency checks by conditional access. The token was issued on {issueDate} and the maximum allowed lifetime for this request is {time}.

There are many more AADS errors that Azure can generate. Whatever you get, don't take our word for the cause of the problem, follow the link to the Microsoft documentation and see what Azure is objecting to. If in doubt, ask Countersoft AND Microsoft.

It's a labor of love so I'm still working on this page, but I hope to soon be done...

This page is under construction