[Spce-user] Call Recordings can't be deleted via GUI mr8.5.4

Matthias Hohl matthias.hohl at telematica.at
Mon May 17 09:10:24 EDT 2021


Hello Alex,

yes i know i could contact support-team directly but I thought this is also a CE problem.

 

Btw: we already solved it!

It was a permission problem of the directory /var/lib/rtpengine-recording

This directory just has “root” user rights, so recordings could be written there from the recordings module but could not be deleted via WebGUI cause WebGUI is not root just “www-data”.

After setting “www-data” permission for read and write to this directory deleting of call recordings works via GUI.

 

Maybe you can fix this in a upcoming update or maybe note it in the handbook.

Thanks 😊

 

Von: Alex Lutay <alutay at sipwise.com> 
Gesendet: Montag, 17. Mai 2021 10:20
An: spce-user at lists.sipwise.com
Betreff: Re: [Spce-user] Call Recordings can't be deleted via GUI mr8.5.4

 

Dear Matthias,

It is definitely a permissions issues.
Both ngcp-panel (WEB+API) and RTPEnging need read+write access to files 
stored on NFS share.

AFAIK, Sipwise support team can assist you here. Isn't it?

On 5/16/21 11:52 PM, [ EXT ] Matthias Hohl wrote:
> Hello again,
> 
> deleting a call recording is still not working. Normal delete and force 
> delete don’t work.
> 
> But if I delete the recorded file on the NFS share, I can delete the 
> call recoding via GUI with “force delete”.
> 
> So there is somewhere a permission problem… but really don’t know where 
> cause the GUI account has master and system rights.
> 
> BTW: how can I batch-force-delete all entries of a subscriber, peer? Is 
> there some CLI command for it?
> 
> thanks
> 
> *Von:*Matthias Hohl <matthias.hohl at telematica.at>
> *Gesendet:* Mittwoch, 12. Mai 2021 00:55
> *An:* spce-user at lists.sipwise.com <mailto:spce-user at lists.sipwise.com> 
> *Betreff:* [Spce-user] Call Recordings can't be deleted via GUI mr8.5.4
> 
> Hello,
> 
> I played around today with the call recordings feature and it works fine 
> so far. I can playback them via GUI and also download it from NFS share.
> 
> But as I try to delete my recorded files via the GUI (Subscriber > Call 
> Recordings > Delete Recordings) I get an error back: Failed to delete 
> recording [167E2498F5DADAF8]
> 
> Also if I try to enable “Force delete” I get back the same error message.
> 
> In var/log/ngcp/panel.log I found this:
> 
> May 12 00:50:34 spce ngcp-panel: ERROR: IP=188.65.77.77 
> CALLED=Controller::Subscriber::delete_recording TX=167E24DA0B49FD10 
> USER=matthias.hohl DATA=�{ 'submitid' => '', 'save' => 
> "L\x{f6}schen"}�MSG="�Failed to delete recording (Can't 
> unlink('/var/lib/rtpengine-recording/61d8faaa58d48272164dd0c559dab759%40xxx.telematica.at-0756b6033b77axxx-mix.wav'): 
> Permission denied at /usr/share/perl5/NGCP/Panel/Utils/Subscriber.pm 
> line 2434#012)�" LOG=""
> 
> May 12 00:50:42 spce ngcp-panel: ERROR: IP=188.65.77.77 
> CALLED=Controller::Subscriber::delete_recording TX=167E24DBE996FB08 
> USER=matthias.hohl DATA=�{ 'submitid' => '', 'force_delete' => '1', 
> 'save' => "L\x{f6}schen"}�MSG="�Failed to delete recording (Can't 
> unlink('/var/lib/rtpengine-recording/61d8faaa58d48272164dd0c559dab759%40xxx.telematica.at-0756b6033b77axxx-mix.wav'): 
> Permission denied at /usr/share/perl5/NGCP/Panel/Utils/Subscriber.pm 
> line 2434#012)�" LOG=""
> 
> I record to a NFS mount:
> 
>     nfs_remote_path: /NFS_share/call-recordings
> 
>     output_dir: /var/lib/rtpengine-recording
> 
> Any idea how to fix that?
> 
> Mit freundlichen Grüßen,
> 
> Matthias Hohl
> 
> 

-- 
Alex Lutay

-- 
Spce-user mailing list
Spce-user at lists.sipwise.com <mailto:Spce-user at lists.sipwise.com> 
http://lists.sipwise.com/mailman/listinfo/spce-user_lists.sipwise.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20210517/090964a6/attachment-0001.html>


More information about the Spce-user mailing list