Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Getting 503 when starting automatically


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
freeswitch.opencode at...
Guest





PostPosted: Thu Feb 25, 2016 4:31 pm    Post subject: [Freeswitch-users] Getting 503 when starting automatically Reply with quote

On Thu, 2016-02-25 at 21:26:09 +0300, Bote wrote:
Quote:
A 503 error, huh? Weird. Check for permissions problems.

Quote:
My guess is that you are building as "root" so when you first ran it
manually all the databases and log files were created with root as owner.
But when it boots systemd is starting it as root and then dropping
privileges to the freeswitch user as it should. After dropping privileges it
can't access its config files or open ports necessary to function.

Thanks for the suggestion. I compiled as a normal user using Arch Linux's makepkg tool and installed using its pacman tool, so I don't think that's the problem. I'm also letting system start freeswitch.service with its default user setting (as root).

The weirdest thing is that it does start and connect fine using systemd when make a request after boot to have systemd start it (systemctl start freeswitch or systemctl restart freeswitch). In both cases, systemd is controlling process identity, so I don't think it's a permissions issue. My best guess is there's some kind of race condition at boot and if FreeSWITCH starts too early, it gets a cached but invalid handle of some sort that doesn't allow communicating in or out. This is just a guess though.

Thanks,

David

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services