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
lmorley at neny.cslimi...
Guest





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

David,
What happens if you either don't start FS via systemd or stop it once the system's done booting, then start it like, say,
su
PATH=/usr/local/freeswitch/bin:$PATH
freeswitch -nc
Note that you'll likely want to keep a record of what the permissions on your FS files and directories are BEFORE doing this.
Does it work then? Can you see from the console where the problem is?
I'm nearly positive that I've chased this same error myself before. Unfortunately, I can't recall what the root cause or the fix was.
Good luck!
- Larry
On Feb 25, 2016 16:30, <freeswitch.opencode@spamgourmet.com (freeswitch.opencode@spamgourmet.com)> wrote:
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 (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 (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
freeswitch.opencode at...
Guest





PostPosted: Sun Feb 28, 2016 5:44 pm    Post subject: [Freeswitch-users] Getting 503 when starting automatically Reply with quote

I enabled sofia tracing while the problem was occurring. I haven't had a chance to look into the source code yet, but so far I'm guessing it's not a permissions issue and something more like the invalid connection handle caching hypothesis.

Here's the sofia log snippet (DNS names and IP addresses sanitized):
nta.c:10803 outgoing_query_a() nta: for "myvoip.example.com" query "myvoip.example.com" A (cached)
nta.c:10856 outgoing_answer_a() nta: myvoip.example.com. IN A 10.0.0.1
tport.c:3257 tport_tsend() tport_tsend(0xb5b392e8) tpn = udp/10.0.0.1:5060
tport.c:4046 tport_resolve() tport_resolve addrinfo = 10.0.0.1:5060
tport.c:4680 tport_by_addrinfo() tport_by_addrinfo(0xb5b392e8): not found by name udp/10.0.0.1:5060
tport.c:3636 tport_send_fatal() tport_vsend(0xb5b392e8): Invalid argument with (s=22 udp/10.0.0.1:5060)
tport.c:3492 tport_send_msg() tport_vsend returned -1

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