Coder Social home page Coder Social logo

Comments (8)

ryanblenis avatar ryanblenis commented on August 30, 2024

Interesting, what distro are you using so I can build a test VM for this case?

from meshcentral-routeplus.

guerby avatar guerby commented on August 30, 2024

debian 10.3 with /etc/gdm3/daemon.conf

[daemon]
# Uncomment the line below to force the login screen to use Xorg
WaylandEnable=false

Same system than for this bug report :

Ylianst/MeshCentral#1287

gdm3 is running X but the meshagent doesn't seem to be able to pick up the login screen

Thanks!

from meshcentral-routeplus.

guerby avatar guerby commented on August 30, 2024

@ryanblenis I know how to recompile the linux meshagent if needed

from meshcentral-routeplus.

guerby avatar guerby commented on August 30, 2024

And of I forgot : the machine was running a GNOME/X11 session of a logged in user.

from meshcentral-routeplus.

ryanblenis avatar ryanblenis commented on August 30, 2024

Thanks, I'll install a VM with Debian 10.3 on it and give it a test. The plugin doesn't require a recompile of the MeshAgent (it's all in the MeshCore / aka Javascript). If it did require a recompile we'd likely be involving Brian from the MeshAgent project because it would be a root cause of the agent functionality itself, and not the plugin.

from meshcentral-routeplus.

ryanblenis avatar ryanblenis commented on August 30, 2024

Ok, so I

  1. installed a fresh copy from https://cdimage.debian.org/debian-cd/current/amd64/bt-cd/debian-10.3.0-amd64-netinst.iso.torrent ran the default install
  2. set WaylandEnable=false in /etc/gdm3/daemon.conf
  3. Rebooted, installed MeshAgent (left logged into X session as user for the remainder of the test)
  4. Set the debian PC as "My Computer" in RoutePlus
  5. Added a route to another node
  6. Was still able to remote desktop in via MeshCentral without issue.

Just want to make sure those are the repeatable steps to take to try to reproduce the issue... because I'm not seeing it on my end. Let me know if I missed something.

from meshcentral-routeplus.

guerby avatar guerby commented on August 30, 2024

I tried again (cleanup/reboot/reinstall) and I got sometimes Desktop working and sometimes not but not depending on RoutePlus additions as for my first tests.

In the webagent console after my experiments I noticed ("versions" I explicitely typed it):

ncaughtException1: Error:  => EventEmitter.emit(): Event dispatch for 'Command' on 'MeshAgent' threw an exception: TypeError: undefined not callable (property 'write' of [object Object]) in method 'handleServerCommand()'
uncaughtException1: Error:  => EventEmitter.emit(): Event dispatch for 'Command' on 'MeshAgent' threw an exception: TypeError: undefined not callable (property 'write' of [object Object]) in method 'handleServerCommand()'
uncaughtException1: Error:  => EventEmitter.emit(): Event dispatch for 'Command' on 'MeshAgent' threw an exception: TypeError: undefined not callable (property 'write' of [object Object]) in method 'handleServerCommand()'
uncaughtException1: Error:  => EventEmitter.emit(): Event dispatch for 'Command' on 'MeshAgent' threw an exception: TypeError: undefined not callable (property 'write' of [object Object]) in method 'handleServerCommand()'
Error trying to determine XAUTHORITY/DISPLAY: TypeError: undefined not callable (property 'trim' of [object Function]) 
uncaughtException1: Error:  => EventEmitter.emit(): Event dispatch for 'data' on 'http.WebSocketStream.decoded' threw an exception: TypeError: cannot read property 'userid' of undefined in method 'onTunnelData()'
uncaughtException1: Error:  => EventEmitter.emit(): Event dispatch for 'data' on 'http.WebSocketStream.decoded' threw an exception: TypeError: undefined not callable (property 'write' of [object Object]) in method 'onTunnelData()'
uncaughtException1: Error:  => EventEmitter.emit(): Event dispatch for 'data' on 'http.WebSocketStream.decoded' threw an exception: TypeError: undefined not callable (property 'write' of [object Object]) in method 'onTunnelData()'
uncaughtException1: Error:  => EventEmitter.emit(): Event dispatch for 'data' on 'http.WebSocketStream.decoded' threw an exception: TypeError: undefined not callable (property 'write' of [object Object]) in method 'onTunnelData()'
uncaughtException1: Error:  => EventEmitter.emit(): Event dispatch for 'data' on 'http.WebSocketStream.decoded' threw an exception: TypeError: undefined not callable (property 'write' of [object Object]) in method 'onTunnelData()'
uncaughtException1: Error:  => EventEmitter.emit(): Event dispatch for 'Command' on 'MeshAgent' threw an exception: TypeError: undefined not callable (property 'write' of [object Object]) in method 'handleServerCommand()'
uncaughtException1: Error:  => EventEmitter.emit(): Event dispatch for 'Command' on 'MeshAgent' threw an exception: TypeError: undefined not callable (property 'write' of [object Object]) in method 'handleServerCommand()'
> versions
{
  "openssl": "1.1.1g",
  "duktape": "v2.3.0",
  "meshAgent": "2020-04-26T23:39:59.000Z"
}
uncaughtException1: Error:  => EventEmitter.emit(): Event dispatch for 'data' on 'http.WebSocketStream.decoded' threw an exception: TypeError: cannot read property 'userid' of undefined in method 'onTunnelData()'
uncaughtException1: Error:  => EventEmitter.emit(): Event dispatch for 'data' on 'http.WebSocketStream.decoded' threw an exception: TypeError: undefined not callable (property 'write' of [object Object]) in method 'onTunnelData()'
uncaughtException1: Error:  => EventEmitter.emit(): Event dispatch for 'data' on 'http.WebSocketStream.decoded' threw an exception: TypeError: undefined not callable (property 'write' of [object Object]) in method 'onTunnelData()'
uncaughtException1: Error:  => EventEmitter.emit(): Event dispatch for 'data' on 'http.WebSocketStream.decoded' threw an exception: TypeError: undefined not callable 

(long list of the last one if I go back to Desktop and do something)

For reference I have 3 plugins installed enabled in meshcentral Event Log 0.0.23, Script Task 0.0.15 and RoutePlus 0.1.3.

I will probably reinstall the server and all the agents in the next few days, feel free to close if you don't think issues are related to routeplus.

Sorry for the noise.

from meshcentral-routeplus.

ryanblenis avatar ryanblenis commented on August 30, 2024

Sorry, just want to confirm (probably a language gap with me reading your last comment) that you tested without plugins and have the same issues. In that case, we can close this as it is more than likely unrelated to the plugin.

from meshcentral-routeplus.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.