'Permission denied' when starting SFA

A forum for Skype For Asterisk users to ask questions and get advice from other users

Moderators: twilson, pete engler

'Permission denied' when starting SFA

Postby streamingmeemee » Tue Aug 04, 2009 6:47 am

[Aug 4 12:38:56] DEBUG[28846] core.cpp: License directory set to: /var/lib/asterisk/licenses
[Aug 4 12:38:56] DEBUG[28854] core.cpp: starting skyhost as: skypeforasterisk -z -f /var/spool/asterisk/skype/data
[Aug 4 12:38:56] DEBUG[28854] core.cpp: skyhost environment is : HOME=/var/spool/asterisk/skype
[Aug 4 12:38:56] DEBUG[28853] core.cpp: starting skypewatcher as: skypewatcher 28854
[Aug 4 12:38:57] DEBUG[28852] core.cpp: got [Aug 4 12:38:57] ERROR[28854]: core.cpp:1496 sfa_startup: fexecve() returned error 'Permission denied'

With Asterisk 1.4.26 and SFA 1.4-0.9.11-x86-32.

Skype For Asterisk Settings:
engine_directory: /var/lib/asterisk
data_directory: /var/spool/asterisk/skype
defaultuser: brring.skype.beta
bind_address: 12.158.191.131
bind_port: 0
rtp_address: 127.0.0.1
https_proxy:
https_proxy_user:
https_proxy_password:
socks5_proxy:
socks5_proxy_user:
socks5_proxy_password:
disable_tcpauto: no
disable_udp: no
debug: no

I am running * as asterisk:asterisk. When I run it as root:root (not cool) the sfa processes seem to start but then immediately generate a dump-trace to the * log.

First off, any clue on which permission was denied? Filesystem? Process?
streamingmeemee
Newsterisk
 
Posts: 7
Joined: Thu Dec 21, 2006 10:56 pm

Results when run as root

Postby streamingmeemee » Tue Aug 04, 2009 3:37 pm

If I run asterisk as root here is what I get;

[Aug 4 21:33:23] DEBUG[15985]: core.cpp:1311 sfa_startup: License directory set to: /var/lib/asterisk/licenses
[Aug 4 21:33:23] NOTICE[15985]: core.cpp:1153 skype_cp_handler: Found license 'S4AB-LXAJQxxxxxxx' providing 3 concurrent calls
[Aug 4 21:33:23] NOTICE[15985]: core.cpp:1000 display_host: Skype For Asterisk Host-ID: 98:3b:3b:3e:37:90:5b:41:1a:d0:d1:ab:ad:c9:XX:XX:XX:XX:XX:02
[Aug 4 21:33:23] NOTICE[15985]: core.cpp:1320 sfa_startup: Found a total of 3 Skype For Asterisk licenses
[Aug 4 21:33:23] DEBUG[16001]: core.cpp:1512 sfa_startup: starting skypewatcher as: skypewatcher 16002
[Aug 4 21:33:23] DEBUG[16002]: core.cpp:1424 sfa_startup: starting skyhost as: skypeforasterisk -z -f /var/spool/asterisk/skype/data -d /var/spool/asterisk/skype/skyhost-debug
[Aug 4 21:33:23] DEBUG[16002]: core.cpp:1426 sfa_startup: skyhost environment is : HOME=/var/spool/asterisk/skype
[Aug 4 21:33:24] DEBUG[16000]: core.cpp:382 skyhost_watcher: pfd 0 had an error
[Aug 4 21:33:24] DEBUG[16000]: core.cpp:282 kill_skypewatcher: sending SIGTERM to 16001.
[Aug 4 21:33:33] ERROR[15985]: core.cpp:1551 sfa_startup: Skype engine failed to start.
[Aug 4 21:33:33] ERROR[15985]: chan_skype.c:3092 load_module: Unable to start Skype For Asterisk library.

I'm not getting the dump trace as before perhaps because I recompiled SfA...

ANY help would be appreciated including pointing me in the correct direction for support if this is not the place.
streamingmeemee
Newsterisk
 
Posts: 7
Joined: Thu Dec 21, 2006 10:56 pm

Postby twilson » Thu Aug 06, 2009 1:45 pm

You might try setting the the bindport explicitly to a value over 1024 and set disable_tcpauto=yes as well. Also you need to make sure that the engine_directory is set to a directory where the user that you are running asterisk as has permission to execute files.
twilson
Oldsterisk
 
Posts: 87
Joined: Mon Jun 01, 2009 9:35 am

Postby streamingmeemee » Thu Aug 06, 2009 3:18 pm

twilson wrote:You might try setting the the bindport explicitly to a value over 1024 and set disable_tcpauto=yes as well. Also you need to make sure that the engine_directory is set to a directory where the user that you are running asterisk as has permission to execute files.


Ah HA! Yes, that's a great idea as non-root users cannot bind to ports under 1024.

I'll give that a go and report back -- thanks!

T.
streamingmeemee
Newsterisk
 
Posts: 7
Joined: Thu Dec 21, 2006 10:56 pm


Return to Skype For Asterisk

Who is online

Users browsing this forum: No registered users and 1 guest