Edge Agent "Required Port is in use" error when another user logs into PC

We are On Prem 2024.1 and our MSP has pushed out Edge Agent to all devices as we require Admin credentials to install.

Edge Agent works fine when primary user of PC is logged in. However, if another user attempts to login to the same PC they get the following error:

The Edge Agent does not seem to start up and is not visible in task tray.

Has anyone else experienced this issue?

Thanks

1 Like

Yes, easiest solution is to reboot. You can also try to stop the edge agent service and restart it under the logged in user profile but that is more complicated than just rebooting the computer.

3 Likes

^^^^^ mark as answer if it works for you @dena.schmidt. We also have to do this from time to time.

Yes, if second user reboots the PC then logs in they don’t get the error, and Edge Agent starts up ok. But this is not an acceptable solution for us. Our production staff work across multiple PCs and we have multiple staff sharing a PC, so they need to be able to switch users.

1 Like

I found the below post yesterday after I posted my topic that states you need to set the installMode=multiSessionInstall.

This will also install in Multi-User mode so that if you ever have a machine that more than 1 person could ever log into it will work for everyone, not just the first person to sign in (the fact that this is not just the default way it works is mind blowing to me).

We are going to test whether changing the install mode resolves this issue.

4 Likes

Wow Dena, please do let us know what you find from that.

It works unless the service fails to start for some reason, Multi User Mode installs the agent as a service and I have a few machines where for some apparent reason the service fails to start.

2 Likes

Thanks for the feedback, do you think it’s more resilient/reliable than the alternative?

If you are referring to the alternative of the default install and locking the agent to the first person that logs in and not allowing for multi-user computers, yes.

We have a scheduled task that runs to check if the service is running during a user log on and to start it if it isn’t and since then I’ve not heard of any issues. We have used the multi-user install mode for close to a year now and that is really the only problem we have seen with it.

Very occasionally a user will have to ‘restart the agent’ from the taskbar but they can do that without Admin rights.

I actually went this direction because the default single-user mode actually started giving me the unable to start error even when that person was the first one to login to the computer, the multi-user got us around whatever was causing that issue and we haven’t really looked back since.

3 Likes

Thanks, upon next deployment I’ll remember this.

the Edge Agent for 2025 forward is different, I’m going to see if this switch is available as it’s still installing in single-user mode.

1 Like

Yeah that’s what I was trying to figure out.

1 Like

The ‘–help’ on the installer doesn’t look like it does. When I tried it, I got this error:

For 2025 onwards there are 2 installers. The main one that you are probably using there and the ‘network’ one. In reality the ‘network’ one is the old installer and has the option for RDs / multi session mode.

4 Likes

Thanks for the additional info - we’ll bear this in mind with our testing / rollout.