[asterisk-bugs] [Asterisk-GUI 0018908]: GUI hangs on "Checking write permission for gui folder"
Asterisk Bug Tracker
noreply at bugs.digium.com
Fri Mar 11 08:12:36 CST 2011
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=18908
======================================================================
Reported By: douwe
Assigned To:
======================================================================
Project: Asterisk-GUI
Issue ID: 18908
Category: General
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Asterisk GUI Version: SVN
Asterisk Version: 1.8.2.4
JIRA:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 2011-03-02 09:59 CST
Last Modified: 2011-03-11 08:12 CST
======================================================================
Summary: GUI hangs on "Checking write permission for gui
folder"
Description:
I installed the sources from SVN r5161, set all the appropriate
permissions, enabled the http and manager, and did everything by the book,
as far as I know.
Note, this is on FreeBSD 8.2:
FreeBSD XXX 8.2-STABLE FreeBSD 8.2-STABLE
https://issues.asterisk.org/view.php?id=1: Tue Mar 1 17:29:18 CET 2011
virtus at XXX:/usr/obj/usr/src/sys/SERVER i386
When going to the GUI configuration page, after logging in the GUI keeps
returning to "Checking write permission for gui folder". This error seems
recurrent, as it occurs in several other bug reports and on the mailing
lists.
As far as I can tell, it seems to be a problem with the DAHDI detection,
because the parseConfig loop exits perfectly fine. I'm surprised that it
just keeps going, instead of giving an error which could tell me where it's
going wrong.
It appears that in some places, "/etc/modprobe.d" is hardcoded. In FreeBSD
(using the dahdi-freebsd sources), the modules are installed in
/usr/local/lib/dahdi/, which might be what's causing this.
Firebug reports errors on the following GET commands:
http://XXX:8088/asterisk/rawman?action=originate&channel=Local%2Fexecutecommand%40asterisk_guitools&Variable=command%3Decho%2097555%20%3E%20%2Fvar%2Flib%2Fasterisk%2Fstatic-http%2Fconfig%2Fsysinfo_output3771.html&application=noop&timeout=60000
http://XXX:8088/asterisk/rawman?action=originate&channel=Local%2Fexecutecommand%40asterisk_guitools&Variable=command%3Decho%2097555%20%3E%20%2Fvar%2Flib%2Fasterisk%2Fstatic-http%2Fconfig%2Fsysinfo_output3771.html&application=noop&timeout=60000
My manager.conf file does allow "originate", so that shouldn't be the
problem here.
If necessary, I can provide external access to the server. I would really
like for this to work on FreeBSD! There is a FreeBSD port available, that
works like a charm for 1.4 but is severely outdated.
======================================================================
----------------------------------------------------------------------
(0132848) douwe (reporter) - 2011-03-11 08:12
https://issues.asterisk.org/view.php?id=18908#c132848
----------------------------------------------------------------------
Ah, nice one!
The debug log is as follows:
# 15:07:21 AJAX Request : '{action : originate ,channel :
Local/executecommand at asterisk_guitools ,Variable : command=echo 88559 >
/var/lib/asterisk/static-http/config/sysinfo_output3112.html ,application :
noop ,timeout : 60000}'
# 15:07:21 Executing System Command : 'echo 88559 >
/var/lib/asterisk/static-http/config/sysinfo_output3112.html'
# 15:07:21 AJAX Request : reading 'misdn.conf'
# 15:07:21 AJAX Request : reading 'users.conf'
# 15:07:21 AJAX Request : reading 'users.conf'
# 15:07:21 Error in pbx.queues.load()
# 15:07:21 AJAX Request : reading 'extensions.conf'
# 15:07:21 AJAX Request : reading 'extensions.conf'
# 15:07:20 AJAX Request : reading 'meetme.conf'
# 15:07:20 AJAX Request : reading 'extensions.conf'
# 15:07:20 AJAX Request : reading 'http.conf'
# 15:07:20 AJAX Request : reading 'guipreferences.conf'
# 15:07:20 parsed all contexts in extensions.conf
# 15:07:20 AJAX Request : reading 'extensions.conf'
# 15:07:20 AJAX Request : reading 'sip.conf'
# 15:07:20 AJAX Request : reading 'sip.conf'
# 15:07:20 AJAX Request : reading 'extensions.conf'
# 15:07:20 AJAX Request : reading 'extensions.conf'
# 15:07:20 AJAX Request : reading 'extensions.conf'
# 15:07:19 AJAX Request : reading 'extensions.conf'
# 15:07:19 AJAX Request : reading 'manager.conf'
# 15:07:19 AJAX Request : '{action : updateconfig ,dstfilename : http.conf
,srcfilename : http.conf ,Action-000000 : delcat ,Cat-000000 : test_13687
,Var-000000 : ,Value-000000 : }'
# 15:07:19 AJAX Request : reading 'http.conf'
# 15:07:19 AJAX Request : reading 'http.conf'
# 15:07:19 AJAX Request : reading 'http.conf'
# 15:07:19 AJAX Request : '{action : updateconfig ,srcfilename : http.conf
,dstfilename : http.conf ,Action-000000 : newcat ,Cat-000000 : test_13687
,Var-000000 : ,Value-000000 : ,Action-000001 : append ,Cat-000001 :
test_13687 ,Var-000001 : writeaccess ,Value-000001 : yes}'
# 15:07:19 AJAX Request : reading 'http.conf'
# 15:07:19 Got PONG , session is active
# 15:07:19 permission denied for reading file asterisk.conf
# 15:07:19 AJAX Request : reading 'asterisk.conf'
# 15:07:18 Login Success result: response: success message: authentication
accepted
# 15:07:18 AJAX Request : '{action : login ,username : douwe ,secret :
XXX}'
Three things:
1) There's an error with queues, I don't know what is causing this but I
saw it happening before in parseConfig, so I uncommented it then.
2) It complains about permissions to asterisk.conf, however:
server1# ls -l /etc/asterisk/asterisk.conf
-rwxrwxrwx 1 asterisk asterisk 3270 Mar 8 17:44
/etc/asterisk/asterisk.conf
server1# ls -l /etc/asterisk
lrwxr-xr-x 1 asterisk asterisk 23 Mar 1 07:00 /etc/asterisk ->
/usr/local/etc/asterisk
3) It does login properly. When I refresh the screen I get to the GUI.
Issue History
Date Modified Username Field Change
======================================================================
2011-03-11 08:12 douwe Note Added: 0132848
======================================================================
More information about the asterisk-bugs
mailing list