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

[BUG] Firefox can’t establish a connection to the server at ws://myip:8080/rconsole. #121

Closed
lguariento opened this issue Mar 16, 2020 · 3 comments

Comments

@lguariento
Copy link

Hello,

I have a fresh installation of eXist-db 5.2. running on CentOs 7. When I open the Monex application I'm asked for the admin password; after successfully logging in I get a ' Alert! Connection to server failed. Retrying ... ' message at the top of the page, and I have these errors in the console:

Firefox can’t establish a connection to the server at ws://myip:8080/rconsole. exadmin.js:231:25

WebSocket Error:  
error
​
bubbles: false
​
cancelBubble: false
​
cancelable: false
​
composed: false
​
currentTarget: null
​
defaultPrevented: false
​
eventPhase: 0
​
explicitOriginalTarget: WebSocket { url: "ws://myip222:8080/rconsole", readyState: 3, bufferedAmount: 0, … }
​
isTrusted: true
​
originalTarget: WebSocket { url: "ws://myip:8080/rconsole", readyState: 3, bufferedAmount: 0, … }
​
returnValue: true
​
srcElement: WebSocket { url: "ws://myip:8080/rconsole", readyState: 3, bufferedAmount: 0, … }
​
target: WebSocket { url: "ws://myip:8080/rconsole", readyState: 3, bufferedAmount: 0, … }
​
timeStamp: 3058
​
type: "error"
​
<get isTrusted()>: function isTrusted()
​
<prototype>: EventPrototype { composedPath: composedPath(), stopPropagation: stopPropagation(), stopImmediatePropagation: stopImmediatePropagation(), … }
exadmin.js:236:21
Request URL:http://myip:8080/status?c=instances&c=processes&c=locking&c=memory&c=caches&c=system&c=operatingsystem&token=false
Request Method:GET
Remote Address:myip:8080
Status Code:
403
Version:HTTP/1.1
@lguariento
Copy link
Author

lguariento commented Mar 16, 2020

Interestingly, when I click on instances.xml within the 'remote monitoring' page, I get this message from eXide:

Failed to load document /db/apps/monex/instances.xml: 400 Bad Request
exerr:ERROR Permission denied to read + document: instances.xml [at line 40, column 14]

I can open the instances.xml file via oXygen (xmlrpc connection). The owner of that file is admin, group dba.

@lguariento
Copy link
Author

I see that @joewiz writes that Monex 2.x and eXist-db 5.x should work well together (#92 (comment)). I'm using Monex 2.1.1, and I still get the issue mentioned in #92 .

@lguariento
Copy link
Author

OK, this is weird. I downgraded, as suggested in #92 , to Monex 0.9.16, which doesn't work out of the box with eXist-db 5.2.0 since it gives this error:

<exception>
<path>/db/apps/monex/modules/view.xql</path>
<message>
err:XPST0003 The ':=' notation is no longer accepted in map expressions: use ':' instead. [at line 21, column 33]
</message>
</exception>

Therefore I updated it, via the package manager, from 0.9.16 back to 2.1.1, and now it works a expected. It might be a workaround useful to others.

@line-o line-o removed the triage label Apr 8, 2020
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

2 participants