Vicibox 7 Issue accessing recording from vicidial web interf

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Vicibox 7 Issue accessing recording from vicidial web interf

Postby Merchant007 » Thu Mar 17, 2016 4:09 am

Vicibox 7 Issue accessing recording from vicidial web interface .


ERROR MESSAGE
Code: Select all

Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.
Error 403
192.168.0.201
Apache



-
Code: Select all
nano /etc/apache2/conf.d/viciarchive.conf
--

Code: Select all
Alias /archive/ "/home/archive/"

<Directory "/home/archive">
        Options Indexes MultiViews
        AllowOverride None
        Require all granted
        <files *.mp3>
                Forcetype application/forcedownload
        </files>
</Directory>

*-------


Code: Select all
Folder Permission ()

Code: Select all
vicibox7:/var/spool # ls -l
drwxr-x--- 10 asterisk asterisk 4096 Mar 13 12:36 asterisk

Code: Select all
vicibox7:/var/spool/asterisk # ls -l
drwxrwxrwt  2 root     root     1840 Mar 17 14:35 monitor
drwxrwxrwx 10 wwwrun   root     4096 Mar 17 14:34 monitorDONE


Recording FILE permission

Code: Select all
-rwxrwxrwx 1 root root    3744 Mar 17 14:37 20160317-144933_8884954604-all.mp3
-rwxrwxrwx 1 root root   26928 Mar 17 14:37 20160317-145012_8553340569-all.mp3


------------
Code: Select all
Apache LOG

Code: Select all
[Thu Mar 17 14:21:08.453184 2016] [core:error] [pid 24973] (13)Permission denied: [client 192.168.0.246:52937] AH00035: access to /RECORDINGS/MP3/20160315-095607_8951844254-all.mp3 denied (filesystem path '/var/spool/asterisk/monitorDONE') because search permissions are missing on a component of the path, referer: http://192.168.0.201/vicidial/admin_modify_lead.php?lead_id=530&archive_search=No&archive_log=0
[Thu Mar 17 14:21:09.452529 2016] [core:error] [pid 24973] (13)Permission denied: [client 192.168.0.246:52937] AH00035: access to /RECORDINGS/MP3/20160315-095607_8951844254-all.mp3 denied (filesystem path '/var/spool/asterisk/monitorDONE') because search permissions are missing on a component of the path, referer: http://192.168.0.201/vicidial/admin_modify_lead.php?lead_id=530&archive_search=No&archive_log=0
[Thu Mar 17 14:21:10.318006 2016] [core:error] [pid 24973] (13)Permission denied: [client 192.168.0.246:52937] AH00035: access to /RECORDINGS/MP3/20160315-095607_8951844254-all.mp3 denied (filesystem path '/var/spool/asterisk/monitorDONE') because search permissions are missing on a component of the path, referer: http://192.168.0.201/vicidial/admin_modify_lead.php?lead_id=530&archive_search=No&archive_log=0
vicibox7:/var/log/apache2 #
VERSION: 2.12-548a
BUILD: 160331-2204
asterisk 11.21.0-vici
Revision:2504
Merchant007
 
Posts: 58
Joined: Sat Oct 03, 2015 11:34 am

Re: Vicibox 7 Issue accessing recording from vicidial web in

Postby udy786 » Fri Mar 18, 2016 7:39 am

Add:-

Here location is default location. If you have changed recording location then change folder location.

Code: Select all
<Directory "/var/spool/asterisk/monitorDONE">
  Order Deny,Allow
  Allow from 127.0.0.1 192.168 10.10
  Options Indexes FollowSymLinks
</Directory>

Alias /RECORDINGS /var/spool/asterisk/monitorDONE
Alias /recordings /var/spool/asterisk/monitorDONE




Comment your previous code:-
Code: Select all
Alias /archive/ "/home/archive/"

<Directory "/home/archive">
        Options Indexes MultiViews
        AllowOverride None
        Require all granted
        <files *.mp3>
                Forcetype application/forcedownload
        </files>
</Directory>


After adding this restart/reload your web server and try to download. Still its not working then allow folder permission.

Code: Select all
chmod 755 /var/spool/asterisk/monitorDONE -R
udy786
 
Posts: 148
Joined: Fri Jul 19, 2013 10:55 am

Re: Vicibox 7 Issue accessing recording from vicidial web in

Postby Merchant007 » Sat Mar 19, 2016 6:01 am

i changed to

Code: Select all


<Directory "/var/spool/asterisk/monitorDONE">
  Order Deny,Allow
  Allow from 127.0.0.1 192.168 0.0
  Options Indexes FollowSymLinks
</Directory>

Alias /RECORDINGS /var/spool/asterisk/monitorDONE
Alias /recordings /var/spool/asterisk/monitorDONE

as said in post but after restarting apache2 vicidila website is not loading , after i revert my change to old one its working again

(our network is 192.168.0.0)
VERSION: 2.12-548a
BUILD: 160331-2204
asterisk 11.21.0-vici
Revision:2504
Merchant007
 
Posts: 58
Joined: Sat Oct 03, 2015 11:34 am

Re: Vicibox 7 Issue accessing recording from vicidial web in

Postby williamconley » Sat Mar 19, 2016 12:52 pm

1) When apache logs say "permissions issue" ... it's a permissions issue.

2) Try:
Code: Select all
chmod 755 /var/spool/asterisk


3) Don't use "express" install any more. use the standard.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Vicibox 7 Issue accessing recording from vicidial web in

Postby Merchant007 » Sun Mar 20, 2016 11:38 pm

williamconley wrote:1) When apache logs say "permissions issue" ... it's a permissions issue.

2) Try:
Code: Select all
chmod 755 /var/spool/asterisk


3) Don't use "express" install any more. use the standard.

:P thank you , worked
VERSION: 2.12-548a
BUILD: 160331-2204
asterisk 11.21.0-vici
Revision:2504
Merchant007
 
Posts: 58
Joined: Sat Oct 03, 2015 11:34 am

Re: Vicibox 7 Issue accessing recording from vicidial web in

Postby cvillarreal77 » Sat May 21, 2016 8:52 pm

i have the same problem

i have file server in another machine..

1.- first vicidial cant tranfer the recordings to the file server,, and i resolv the problem configuring the vsftpd.conf in write_enable=yes..

2.- Now the recordings are copy sussescfull to the file server , but now the recorgins in the file server are created with permisions 600 chmod and when i try to get the link http://192.168.21.201/archive/2016-05-2 ... 94-all.mp3 i cant access beacouse the apache say : error 403 access denied

can you help me please :D ?
cvillarreal77
 
Posts: 92
Joined: Wed Dec 16, 2015 3:38 pm

Re: Vicibox 7 Issue accessing recording from vicidial web in

Postby williamconley » Mon May 23, 2016 9:11 pm

The ftp user may need to be added to the www user's group so the www user has permission to access the files. Or you may need to modify the vsftp configuration file umask to create the file with different permissions. Or both. Note that umask is a "reverse" mask that takes away permissions instead of giving them because programmers are smart(@sses) and like things to be simple(y complex).

It may also have to do with the folder that these files are in having the wrong permissions or ownership.

Experiment with one file and the folders until that one file is accessible, then see if you can modify the system to make them all that way from the beginning. Note that your apache web server may have a more detailed error message (the apache server on the ftp server, since that's the one being asked for the file).

Or you can post the owner/permissions of the recording files and the folders in which they reside, and the mask/umask/user settings for vsftp and we may be able to help you get there.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Vicibox 7 Issue accessing recording from vicidial web in

Postby bedis » Fri Dec 16, 2016 8:20 am

https://httpd.apache.org/docs/2.4/fr/upgrading.html

so add this in http.conf

<Directory "/var/spool/asterisk/monitorDONE">
Require all granted
Options Indexes FollowSymLinks
</Directory>

Alias /RECORDINGS /var/spool/asterisk/monitorDONE
bedis
 
Posts: 1
Joined: Fri Dec 16, 2016 8:09 am


Return to Support

Who is online

Users browsing this forum: No registered users and 125 guests