FreeSWITCH Windows Service does not Start
Hi, If I try starting FreeSWITCH Windows service it immediately fails with a messagebox: "The FreeSWITCH service on local computer started and then stopped. Some services stop automatically...etc." I noticed that the service is installed to log on as "NT AUTHORITY\NetworkService". If I change this to "Local System account" then FreeSWITCH starts and runs OK. This failure occurred on multiple Windows XP servers. Why does it fail and why does it not use the local system account like almost all services? Thanks, Ron
Ron, Thanks, I'll ask Mike J to take a quick look. -MC On Tue, Jan 20, 2009 at 5:52 AM, Ron Avriel <ravriel_1@yahoo.com> wrote:
Hi,
If I try starting FreeSWITCH Windows service it immediately fails with a messagebox:
"The FreeSWITCH service on local computer started and then stopped. Some services stop automatically...etc."
I noticed that the service is installed to log on as "NT AUTHORITY\NetworkService". If I change this to "Local System account" then FreeSWITCH starts and runs OK.
This failure occurred on multiple Windows XP servers.
Why does it fail and why does it not use the local system account like almost all services?
Thanks, Ron
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
One issue with the service is we have no console to dump errors too, it sounds like it is failing one of the startup requirements like config files being there. Are you able to start it in non service mode? If so, check permissions on the freeswitch dir that the user running the service has permissions to that dir. Mike On Jan 20, 2009, at 8:52 AM, Ron Avriel wrote:
Hi,
If I try starting FreeSWITCH Windows service it immediately fails with a messagebox:
"The FreeSWITCH service on local computer started and then stopped. Some services stop automatically...etc."
I noticed that the service is installed to log on as "NT AUTHORITY \NetworkService". If I change this to "Local System account" then FreeSWITCH starts and runs OK.
This failure occurred on multiple Windows XP servers.
Why does it fail and why does it not use the local system account like almost all services?
Thanks for answer. The problem is missing permission for the network service account to FreeSWITCH directory. Once permission is granted FreeSWITCH service starts OK. However, I think that unless there's a way to grant that permission inside the service installation code ("freeswitch -install") then the service should be configured to run as local system account. Otherwise, I think it will cause a lot of trouble to all. Ron ----- Original Message ----
From: Michael Jerris <mike@jerris.com> To: freeswitch-users@lists.freeswitch.org Sent: Tuesday, January 20, 2009 6:08:25 PM Subject: Re: [Freeswitch-users] FreeSWITCH Windows Service does not Start
One issue with the service is we have no console to dump errors too, it sounds like it is failing one of the startup requirements like config files being there. Are you able to start it in non service mode? If so, check permissions on the freeswitch dir that the user running the service has permissions to that dir.
Mike
On Jan 20, 2009, at 8:52 AM, Ron Avriel wrote:
Hi,
If I try starting FreeSWITCH Windows service it immediately fails with a messagebox:
"The FreeSWITCH service on local computer started and then stopped. Some services stop automatically...etc."
I noticed that the service is installed to log on as "NT AUTHORITY \NetworkService". If I change this to "Local System account" then FreeSWITCH starts and runs OK.
This failure occurred on multiple Windows XP servers.
Why does it fail and why does it not use the local system account like almost all services?
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
You're right, there should be a full installer system that'll ask what account you want to use, check permissions, etc. -Michael -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Ron Avriel Sent: Tuesday, January 20, 2009 11:22 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] FreeSWITCH Windows Service does not Start Thanks for answer. The problem is missing permission for the network service account to FreeSWITCH directory. Once permission is granted FreeSWITCH service starts OK. However, I think that unless there's a way to grant that permission inside the service installation code ("freeswitch -install") then the service should be configured to run as local system account. Otherwise, I think it will cause a lot of trouble to all. Ron ----- Original Message ----
From: Michael Jerris <mike@jerris.com> To: freeswitch-users@lists.freeswitch.org Sent: Tuesday, January 20, 2009 6:08:25 PM Subject: Re: [Freeswitch-users] FreeSWITCH Windows Service does not Start
One issue with the service is we have no console to dump errors too, it sounds like it is failing one of the startup requirements like config files being there. Are you able to start it in non service mode? If so, check permissions on the freeswitch dir that the user running the service has permissions to that dir.
Mike
On Jan 20, 2009, at 8:52 AM, Ron Avriel wrote:
Hi,
If I try starting FreeSWITCH Windows service it immediately fails with a messagebox:
"The FreeSWITCH service on local computer started and then stopped. Some services stop automatically...etc."
I noticed that the service is installed to log on as "NT AUTHORITY \NetworkService". If I change this to "Local System account" then FreeSWITCH starts and runs OK.
This failure occurred on multiple Windows XP servers.
Why does it fail and why does it not use the local system account like almost all services?
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Wed, Jan 21, 2009 at 4:38 AM, Michael Giagnocavo <mgg@giagnocavo.net> wrote:
You're right, there should be a full installer system that'll ask what account you want to use, check permissions, etc. -Michael
Has somone opened a feature request issue on jira yet? If not, I highly recommend that you do so -MC
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Ron Avriel Sent: Tuesday, January 20, 2009 11:22 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] FreeSWITCH Windows Service does not Start
Thanks for answer. The problem is missing permission for the network service account to FreeSWITCH directory. Once permission is granted FreeSWITCH service starts OK.
However, I think that unless there's a way to grant that permission inside the service installation code ("freeswitch -install") then the service should be configured to run as local system account. Otherwise, I think it will cause a lot of trouble to all.
Ron
----- Original Message ----
From: Michael Jerris <mike@jerris.com> To: freeswitch-users@lists.freeswitch.org Sent: Tuesday, January 20, 2009 6:08:25 PM Subject: Re: [Freeswitch-users] FreeSWITCH Windows Service does not Start
One issue with the service is we have no console to dump errors too, it sounds like it is failing one of the startup requirements like config files being there. Are you able to start it in non service mode? If so, check permissions on the freeswitch dir that the user running the service has permissions to that dir.
Mike
On Jan 20, 2009, at 8:52 AM, Ron Avriel wrote:
Hi,
If I try starting FreeSWITCH Windows service it immediately fails with a messagebox:
"The FreeSWITCH service on local computer started and then stopped. Some services stop automatically...etc."
I noticed that the service is installed to log on as "NT AUTHORITY \NetworkService". If I change this to "Local System account" then FreeSWITCH starts and runs OK.
This failure occurred on multiple Windows XP servers.
Why does it fail and why does it not use the local system account like almost all services?
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
You should run things with as little permission as possible. In the case of FreeSWITCH, there's no need for it to run as LocalSystem (which is like a root account). NetworkService is much more restricted, which is good in the case of a security failure, such as a buffer overrun or a misconfigured module/application. Maybe it's not loading because NetworkService doesn't have permissions to the FS directory. -Michael -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Ron Avriel Sent: Tuesday, January 20, 2009 6:52 AM To: freeswitch-users@lists.freeswitch.org Subject: [Freeswitch-users] FreeSWITCH Windows Service does not Start Hi, If I try starting FreeSWITCH Windows service it immediately fails with a messagebox: "The FreeSWITCH service on local computer started and then stopped. Some services stop automatically...etc." I noticed that the service is installed to log on as "NT AUTHORITY\NetworkService". If I change this to "Local System account" then FreeSWITCH starts and runs OK. This failure occurred on multiple Windows XP servers. Why does it fail and why does it not use the local system account like almost all services? Thanks, Ron _______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (4)
-
Michael Collins
-
Michael Giagnocavo
-
Michael Jerris
-
Ron Avriel