Page 1 of 1

Access forbidden! on recording links

PostPosted: Wed Feb 07, 2018 12:51 pm
by rhonautics
Hi!

I know that this question had been asked and answered so many times as I have searched and read this forum many times but all the solutions i've tried didn't work for me. This is a cluster setup using Vicibox 8.0.1. I had the same issue with Vicibox 7 express install but I got it resolved just by chmoding the asterisk directory.

I tried chmoding
Code: Select all
chmod 755 /var/spool/asterisk


I tried editing the config files
From:
Code: Select all
Alias /RECORDINGS/ "/var/spool/asterisk/monitorDONE/"

<Directory "/var/spool/asterisk/monitorDONE">
   Options Indexes MultiViews
   AllowOverride None
   Require all granted
   <files *.mp3>
      Forcetype application/forcedownload
   </files>
</Directory>

To:
Code: Select all
Alias /RECORDINGS/ "/var/spool/asterisk/monitorDONE/"

<Directory "/var/spool/asterisk/monitorDONE">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
        <files *.mp3>
                Forcetype application/forcedownload
        </files>
</Directory>
Alias /RECORDINGS /var/spool/asterisk/monitorDONE
Alias /recordings /var/spool/asterisk/monitorDONE


Restored the default vicirecord.conf file but nothing seems to work. This is my first cluster install, so please bear with me.

Any help would be appreciated.

Thanks.

Re: Access forbidden! on recording links

PostPosted: Wed Feb 07, 2018 1:55 pm
by williamconley
1) Good job posting specs.

2) Consider -R on chmod (but shouldn't be necessary)

3) Show the present owner/ll results on the folder in question

4) /var/log/apache2 error log(s) that occur when this happens. May contain a hint.

5) Seriously consider activating the script to push audio to ftp
Code: Select all
/usr/share/astguiclient/AST_CRON_audio_3_ftp.pl

This script can push to the same server in the /home/ folder or a completely different web/ftp server while maintaining links within Vicidial so they still work. This offloads a large amount of data from the server so the drive usage remains small. In case of catastrophic failure, that comes in very handy (no need to recover 750G of client audio files from a backup file while the call center Waits Patiently!).

Even if you just mount a 2nd HD in /home/, that HD won't need rebuilding in case the main HD dies one day.

Re: Access forbidden! on recording links

PostPosted: Fri Feb 09, 2018 4:28 am
by rhonautics
Thank you for the reply williamconley.

It was indeed a folder permission issue. What I did was:
Code: Select all
find /var/spool/asterisk -type d -exec chmod 755 {} \;
find /var/spool/asterisk -type f -exec chmod 644 {} \;

Not sure if it's necessary to chmod the files, but i did it anyway.

And yes, I'm definitely considering the audio files ftp.

--
Ronnie

Re: Access forbidden! on recording links

PostPosted: Sat Feb 10, 2018 12:51 pm
by Kumba
You need to reverse your changes to the vicirecord.conf file. The old Apache 2.2 configs won't work properly and will likely prevent Apache from starting up correctly.

Re: Access forbidden! on recording links

PostPosted: Sun Feb 11, 2018 12:23 pm
by rhonautics
Yes, I reverted to the default vicirecord.conf as the changes I made did not resolve the issue.

Re: Access forbidden! on recording links

PostPosted: Wed May 30, 2018 6:20 am
by micom67
Hi Can evrybudy help

Vicidial 8.01

Error 404

RECORDINGS/MP3 not work

and i can not hear the voice in web gui.

Re: Access forbidden! on recording links

PostPosted: Wed Jun 20, 2018 7:54 pm
by btaveras
have the same problem!! how is the fix???????????????

Re: Access forbidden! on recording links

PostPosted: Wed Jun 20, 2018 10:00 pm
by williamconley
btaveras wrote:have the same problem!! how is the fix???????????????

you've posted NOTHING about your system so here is a guess.
Code: Select all
chmod -R 755 /var/spool/asterisk

Re: Access forbidden! on recording links

PostPosted: Wed Jun 20, 2018 10:34 pm
by btaveras
Lol nevermind it was a user permission thing allow recordings

Re: Access forbidden! on recording links

PostPosted: Fri Jul 27, 2018 3:11 pm
by wahmed
Recording access forbidden
chown -R wwwrun:root /var/spool/asterisk/monitorDONE
Enter this command on root and check issue Will be Solved .100%

Re: Access forbidden! on recording links

PostPosted: Wed Sep 26, 2018 2:51 am
by asifrahmanbd
wahmed wrote:Recording access forbidden
chown -R wwwrun:root /var/spool/asterisk/monitorDONE
Enter this command on root and check issue Will be Solved .100%


Cool man! you are such a genius :idea: .