Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebTerminal lost connection with server (code 1006) #148

Closed
jpontois opened this issue Jul 5, 2022 · 10 comments
Closed

WebTerminal lost connection with server (code 1006) #148

jpontois opened this issue Jul 5, 2022 · 10 comments

Comments

@jpontois
Copy link

jpontois commented Jul 5, 2022

Hi,

I have a problem with the recent update 4.9.4 of the WebTerminal.

This message appeared after the loading of the page :

New update is available. Click here to install it now. Changelist:
4.9.4: No longer require /terminal to be at the root of the URL

So I installed the new version. Unfortunatly, after refreshing the page, I have this message again and again :

WebTerminal lost connection with server (code 1006).
Attempting to restore session in 10 seconds...
Please, refresh the web page to start a new session.

WebTerminal lost connection with server (code 1006).
Attempting to restore session in 10 seconds...

I tried to reinstall the previous version we were using, the 4.9.3, but it doesn't solve the problem (I also tried the 4.9.2, but same result).

The web application under System Administration -> Security -> Applications -> Web Applications seems to be identical to the one on another environment that work from the WebTerminal perspective.

It seems to be a setting issue, but I don't know where to look at. I don't know if this is a bug or a if something isn't right in my parameters, but I thought you might be interested by this behavior.

And if someone has an idea on how to solve this, I could use it :D

@gjsjohnmurray
Copy link
Contributor

When comparing between an environment that works and the one that doesn't, did you also check the settings of the /terminalsocket application? If not, please do that.

@jpontois
Copy link
Author

jpontois commented Jul 5, 2022

Yes, they are identical

@gjsjohnmurray
Copy link
Contributor

Have you restarted the IRIS environment since the problem appeared? If not, please do this. #143 is a similar issue and the OP says a restart sometimes resolves it. Maybe yours isn't related to the 4.9.4 update.

@jpontois
Copy link
Author

jpontois commented Jul 5, 2022

We just did, and it still doesn't solve the problem :/

@gjsjohnmurray
Copy link
Contributor

When you downgraded to 4.9.3 did you import the XML using an account that holds the %All role? I don't know whether that would make a difference. I'm puzzled that the 4.9.4 upgrade could have broken WebTerminal so comprehensively on this one environment.

What is the $ZV string?

On DC you reported that you don't seem to have run out of licenses. Did you review the License Usage page on System Operation section of Portal? And also the Web Sessions page?

@jpontois
Copy link
Author

jpontois commented Jul 5, 2022

Yes, the account on which I did the downgrade have the %All role.

$zv : IRIS for Windows (x86-64) 2021.1 (Build 215U) Wed Jun 9 2021 09:39:22 EDT

What I posted on the DC is the table you find at System Operation -> License Usage
I don't know what is the System Operation section of Portal or the Web Sessions page. Where can I find these informations ?

@gjsjohnmurray
Copy link
Contributor

image

@jpontois
Copy link
Author

jpontois commented Jul 5, 2022

License usage :

License Unit Use Local Distributed
Current License Units Used 17 18
Maximum License Units Used 64 65
License Units Authorized 64 64
Current Connections 20 24
Maximum Connections 67 71

Web Sessions () :

ID Username Preserve Application Timeout (UTC) License Id Process Id
5AhE9rcT4o rbesbes 0 /csp/sys/ 2022-07-05 22:09:17 [email protected]  
IJS4vIsA4s ddiop 0 /csp/sys/mgr/ 2022-07-05 21:23:54 [email protected]  
OMXWojmA4m jul 0 /csp/sys/op/ 2022-07-05 22:26:46 [email protected]  
QY9mHL6b8h jul 0 /api/atelier/ 2022-07-05 15:07:47 [email protected]  
UBQSVocA4c jul 0 /csp/hubic/ 2022-07-05 14:36:56 [email protected]  
VBzl8PekSD rbesbes 0 /csp/biauto/ 2022-07-05 14:39:39 [email protected]  
bhPK8wCBx9 rbesbes 0 /csp/eos/ 2022-07-05 14:36:42 [email protected]  
iF9iKv5T75 jul 0 /api/atelier/ 2022-07-05 15:13:13 [email protected]  
lPJj9Lzb8J UnknownUser 0 /terminalsocket/ 2022-07-05 14:41:44 lPJj9Lzb8J  
zZrfqHuA4u ddiop 0 /csp/retail/ 2022-07-05 14:36:46 [email protected]  

These are with a web terminal page running (even though it doesn't work)

@gjsjohnmurray
Copy link
Contributor

According to https://community.intersystems.com/post/web-teminal-lost-connection-server-code-1006#comment-194696 the underlying cause was that the UnknownUser account didn't have %DB_IRISLIB:R permission.

@ZitRos I think this issue can be closed.

@nikitaeverywhere
Copy link
Member

Great! Let me know if this-like behavior happens again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants