QS-backup-and-restore-app icon indicating copy to clipboard operation
QS-backup-and-restore-app copied to clipboard

Cannot connect to QS Engine

Open mountaindude opened this issue 9 years ago • 17 comments

When opening the mashup, no apps are shown, the green circle keeps spinning and next to it says "No active document".

I am already authenticated with Sense (Enterprise) on the same server where the Backup and Restore extension is running, but for some reason no connection is established to the QS Server.

Looking at the developer console in Chrome, a couple of errors are reported:

extensions::messaging:65 Uncaught Error: Attempting to use a disconnected port objectPortImpl.postMessage @ extensions::messaging:65target.(anonymous function) @ extensions::SafeBuiltins:19publicClass.(anonymous function) @ extensions::utils:94(anonymous function) @ cleekiagent.js:8555

qsocks.bundle.js:162 WebSocket is already in CLOSING or CLOSED state.(anonymous function) @ qsocks.bundle.js:162tryCallTwo @ qsocks.bundle.js:1940doResolve @ qsocks.bundle.js:2066Promise @ qsocks.bundle.js:1960Connection.ask @ qsocks.bundle.js:156Global.getDocList @ qsocks.bundle.js:1256(anonymous function) @ backup-and-restore.js:457tryCallOne @ qsocks.bundle.js:1932(anonymous function) @ qsocks.bundle.js:1998flush @ qsocks.bundle.js:2648drainQueue @ qsocks.bundle.js:1849

mountaindude avatar Feb 09 '16 13:02 mountaindude

I am having the same problem. Help!!

rachelehughes avatar Feb 18 '16 18:02 rachelehughes

Sorry guys somehow missed the notifications. Which version of the mashup you are using? (you can see the version in the mashup itself in the top right corner)

countnazgul avatar Feb 19 '16 07:02 countnazgul

@countnazgul

Using 0.9.3, steps I've taken:

  1. install the ZIP file found inside the zip downloaded from GitHub
  2. Use the Dev-Hub to find the extension, it shows up nicely there with an icon and everything.
  3. Opening it works fine, but then it fails to connect to the server, with the symptoms described above.

I can email you a screen shot etc if needed (let me know your email address if so)

mountaindude avatar Feb 19 '16 08:02 mountaindude

I am also using 0.9.3. I used the Developer Tools in Chrome to trap the error and I’m getting a socket error. We are using https for the site and our certificate wasn’t signed by a CA. I’m wondering if this is the problem.

Thoughts?

Thanks! Rachel

On Feb 19, 2016, at 1:40 AM, mountaindude [email protected] wrote:

@countnazgul https://github.com/countnazgul Using 0.9.3, steps I've taken:

  1. install the ZIP file found inside the zip downloaded from GitHub
  2. Use the Dev-Hub to find the extension, it shows up nicely there with an icon and everything.
  3. Opening it works fine, but then it fails to connect to the server, with the symptoms described above.

I can email you a screen shot etc if needed (let me know your email address if so)

— Reply to this email directly or view it on GitHub https://github.com/countnazgul/QS-backup-and-restore-app/issues/2#issuecomment-186118698.

rachelehughes avatar Feb 19 '16 13:02 rachelehughes

We have a proper commercial cert, and still get that error.

Göran

On 19 Feb 2016, at 14:41, rachelehughes [email protected] wrote:

I am also using 0.9.3. I used the Developer Tools in Chrome to trap the error and I’m getting a socket error. We are using https for the site and our certificate wasn’t signed by a CA. I’m wondering if this is the problem.

Thoughts?

Thanks! Rachel

On Feb 19, 2016, at 1:40 AM, mountaindude [email protected] wrote:

@countnazgul https://github.com/countnazgul Using 0.9.3, steps I've taken:

  1. install the ZIP file found inside the zip downloaded from GitHub
  2. Use the Dev-Hub to find the extension, it shows up nicely there with an icon and everything.
  3. Opening it works fine, but then it fails to connect to the server, with the symptoms described above.

I can email you a screen shot etc if needed (let me know your email address if so)

— Reply to this email directly or view it on GitHub https://github.com/countnazgul/QS-backup-and-restore-app/issues/2#issuecomment-186118698.

— Reply to this email directly or view it on GitHub.

mountaindude avatar Feb 19 '16 14:02 mountaindude

We now have a commercial certificate and we still aren’t getting any response.

The value in URI is "wss:///local/app/%3Ftransient%3D"

Any more progress?

Thanks! Rachel

On Feb 19, 2016, at 7:24 AM, mountaindude [email protected] wrote:

We have a proper commercial cert, and still get that error.

Göran

On 19 Feb 2016, at 14:41, rachelehughes [email protected] wrote:

I am also using 0.9.3. I used the Developer Tools in Chrome to trap the error and I’m getting a socket error. We are using https for the site and our certificate wasn’t signed by a CA. I’m wondering if this is the problem.

Thoughts?

Thanks! Rachel

On Feb 19, 2016, at 1:40 AM, mountaindude [email protected] wrote:

@countnazgul https://github.com/countnazgul Using 0.9.3, steps I've taken:

  1. install the ZIP file found inside the zip downloaded from GitHub
  2. Use the Dev-Hub to find the extension, it shows up nicely there with an icon and everything.
  3. Opening it works fine, but then it fails to connect to the server, with the symptoms described above.

I can email you a screen shot etc if needed (let me know your email address if so)

— Reply to this email directly or view it on GitHub https://github.com/countnazgul/QS-backup-and-restore-app/issues/2#issuecomment-186118698.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/countnazgul/QS-backup-and-restore-app/issues/2#issuecomment-186234847.

rachelehughes avatar Feb 22 '16 20:02 rachelehughes

Just finished some testing and still can't see why its not working. Tested it no 3 different sense server installations and started from the first time.

In the chrome dev tools if you click on the %3Ftransient%3D what is shown under the Frames tab? Any weird/error messages?

Stefan

countnazgul avatar Feb 22 '16 21:02 countnazgul

I am getting:

The webpage at wss:///app/%3Ftransient%3D might be temporarily down or it may have moved permanently to a new web address.

—R

On Feb 22, 2016, at 2:24 PM, Stefan Stoichev [email protected] wrote:

Just finished some testing and still can't see why its not working. Tested it no 3 different sense server installations and started from the first time.

In the chrome dev tools if you click on the %3Ftransient%3D what is shown under the Frames tab? Any weird/error messages?

Stefan

— Reply to this email directly or view it on GitHub https://github.com/countnazgul/QS-backup-and-restore-app/issues/2#issuecomment-187389071.

rachelehughes avatar Feb 22 '16 21:02 rachelehughes

@countnazgul: We are using SAML authentication, if that makes a difference..

mountaindude avatar Feb 23 '16 06:02 mountaindude

We have gotten past this error but the app list is still not populating. Any additional thoughts?

rachelehughes avatar Mar 01 '16 21:03 rachelehughes

It seems like it is redirecting us to our single sign on page without passing on the authentication tokens. To get to the hub, for instance, we need "https://localhost/local/hub". Without "local" in the url, it will redirect you to an SSO page. Do we need to similarly alter the code somehow to incorporate this in the web socket URI?

rachelehughes avatar Mar 01 '16 22:03 rachelehughes

Yea ticket is not passed. I'll make the change this weekend and bring the ticket to the picture. Need to check about the "local"

countnazgul avatar Mar 04 '16 06:03 countnazgul

The main js file is updated. If ticket is present, after the authentication, it will be passed to qSocks and all web socket requests will benefit from this afterwards.

countnazgul avatar Mar 09 '16 05:03 countnazgul

@countnazgul, sorry - still no luck. Getting that same spinning green circle, and "No active document" message.

The JS console shows this:

qsocks.bundle.js:162 WebSocket is already in CLOSING or CLOSED state.(anonymous function) @ qsocks.bundle.js:162tryCallTwo @ qsocks.bundle.js:1940doResolve @ qsocks.bundle.js:2066Promise @ qsocks.bundle.js:1960Connection.ask @ qsocks.bundle.js:156Global.getDocList @ qsocks.bundle.js:1256(anonymous function) @ backup-and-restore.js:480tryCallOne @ qsocks.bundle.js:1932(anonymous function) @ qsocks.bundle.js:1998flush @ qsocks.bundle.js:2648drainQueue @ qsocks.bundle.js:1849

Happy to send a screen shot over email if that helps debugging things. Also, I am using a SAML authenticated Sense 2.1.1 system. If you rely on webtickets, that might be the issue..?

mountaindude avatar Mar 09 '16 08:03 mountaindude

can you send me the screenshot/copy paste of the response in the dev console - the Frames tab against the "3Ftransient%3D" row? you can mail me at [email protected]

countnazgul avatar Mar 09 '16 11:03 countnazgul

Any updates? Still not working for us.

rachelehughes avatar Mar 18 '16 15:03 rachelehughes

I work with @mountaindude and wanted to follow up on the issue reported. We're still getting the "no active document" error. I just emailed you a screenshot of the Frames tab agains the "3Ftransiend%3D" row, in case it is helpful. Let me know if there's anything else you need to know.!

fallonchen avatar Apr 28 '16 22:04 fallonchen