Sametime Meetings prevents logging into the Sametime Web Chat

I've installed Meetings on a K8s 1.17 cluster on it's own physical node. I can open the application at https://meetings.ourdomain.local:32443/meeting. This will show me the login screen, however it fails when logging in.

This is log from the auth container:

FetchError: invalid json response body at https://sametime.ourdomain.local:8443/stwebapi/user/connect reason: Unexpected end of JSON input
2020-10-14T17:41:25.235905615Z at /node_modules/node-fetch/lib/index.js:272:32
2020-10-14T17:41:25.235909935Z at processTicksAndRejections (internal/process/task_queues.js:85:5) {
2020-10-14T17:41:25.235913157Z message: 'invalid json response body at https://sametime.ourdomain.local:8443/stwebapi/user/connect reason: Unexpected end of JSON input',
2020-10-14T17:41:25.235916364Z type: 'invalid-json'
2020-10-14T17:41:25.235919241Z }

We are also prevented from logging into our web based Sametime interface. In the browser I can see that when the connect endpoint is queried with a correct username/password, I get a 404 back. The endpoint is present and I've tested this by using an incorrect username/password in, to which I get the appropriate response and not a 404...

This is our stproxyconfig.xml. I've had to comment out the Meetings part for the moment so that Sametime Web chat works. The jwtSecret is copied from helm/templates/meetings-secrets.yaml.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<configuration>
<server>
<host>sametime.ourdomain.local</host>
<port>1516</port>
<clusterlist/>
<maxconnections>-1</maxconnections>
<SAMLAuth/>
</server>

<httponlyexception/>
<secureexception/>
<IDPUrl/>

<!--<jwtSecret>
****************************************************************************************==
</jwtSecret>
<refreshJwt>
<enabled>true</enabled>
<path>/meeting-auth/api/v1/refresh</path>
</refreshJwt>
<meeting>
<host>meetings.ourdomain.local</host>
<port>32443</port>
<isSecure>false</isSecure>
</meeting>

<tokenDomain>.ourdomain.local</tokenDomain>
-->
</configuration>

This is the relevant part of our sametime.ini:

[ST_BB_NAMES]
ST_CHAT_DATABASE=mongodb
NWAY_PRIMARY_KEY=OrigSId
ST_CHAT_LOG=MongoDB
FLEXNET_URL=
#;ST_AUTH_TOKEN=notes
ST_AUTH_TOKEN=Fork:Jwt,notes

[Config]
JWT_SECRET=***************************************************************************************==

I've also installed the latest Microsoft C++ Runtime as mentioned in other threads, copied the dll into the c:\domino directory and rebooted the server.

I cannot find anything obvious in the trace file either...

I StUsers 14/Oct/20, 19:20:12 Sametime token authentication forking library version [SAMETIME10.0_20200722-1107]
I StUsers 14/Oct/20, 19:20:12 Sametime token authentication JWT library version [SAMETIME10.0_20200825-1211]
I StUsers 14/Oct/20, 19:20:12 Sametime StAuthTokenNotes Library SAMETIME10.0_20200722-1107

The only error being:

E StUsers 14/Oct/20, 19:49:08 Anonymous authentication manager was not initialized!

<isSecure>false</isSecure> 

this mean your connection to Meetings server should be done using http, not https. While it looks like Meeting is configured to use HTTPS: https://meetings.ourdomain.local:32443/meeting

We are also prevented from logging into our web based Sametime interface. 

You mean Sametime Proxy?

Did you checked Tomcat logs? Are you sure you're connecting to proper port (in case Proxy and Community are installed on the same machine, sometimes you can miss right port).

Since Meetings server is using Proxy to authenticate users, you need to get Proxy server working before deploying Meetings.

ah, I assumed isSecure was there in case of untrusted certificates, although I have meetings also on a non-ssl port on our Ingress, so I will give this a try later on...maybe it is just that simple :D

Yes, I meant the sametime proxy's web interface. It is working fine until I uncomment the configuration in the stconfigproxy.xml file and restart the proxy. That is when I hit the 404 with the connect endpoint when trying to log into the proxy.

There is nothing obvious in the tomcat logs either, even setting the logging to fine reveals nothing.

Proxy and community are installed on one server.

It is working fine until I uncomment the configuration in the stconfigproxy.xml file and restart the proxy.

That means you have a problem with JWT tokens. Please try cleaning out Chrome JWT cookies (Chrome Settings -> Cookies and other site data -> All cookies and site data -> find & delete anything about ourdomain.local).

That is when I hit the 404 with the connect endpoint when trying to log into the proxy.

404 is something that should be written in Tomcat logs...

Are you using Windows or Linux? Did you checked Domino domlog.nsf - just to make sure you log in to Tomcat, no Domino web (because it would be an answer about 404 error).

There is a perfect manual about Sametime 11FP2 & 11.5 installation which I recommend you to check - perhaps something was missed.

https://alichtenberg.cz/my-installation-manual-hcl-sametime-v11-0-step-by-step-updated-for-fp2/

https://alichtenberg.cz/installation-manual-hcl-sametime-meetings-v11-5-pre-release-almost-step-by-step/

It is written much clearer than official documentation & contains few undocumented hints.

Please open a ticket so we can review the logs in detail - It could be that the JWT secrets are simply misconfigured, or it could be a larger issue.

We need logs from nginx and auth components on the Meetingside as well as tracing from the STProxyserver so we can confirm the full flow.