system recording error

dturell

Joined
Sep 18, 2009
Messages
23
Likes
0
Points
0
#1
I have tried this for 3 days now. I can not get it to save my recording. I have tried in FreePBX as well. I keep getting this error:

[ERROR] The Recorded File Does Not exists:
/tmp/103-ivrrecording.wav

make sure you uploaded or recorded a file with the entered extension

I have put in my extension and a save as name. keep getting the error though.
 

Bob

Joined
Nov 4, 2007
Messages
2,400
Likes
1
Points
36
#2
dturell,

Can you first start with what version on Elastix you have....
Did you install from ISO???
What updates have you performed since your install....

However as a guide, it sounds like the permissions level on the /tmp directory is incorrect. It should be

(viewing by ls -l)

drwxrwxrwt

What is happening is that the recording is writing (probably erroring in the background due to permissions) and then the second part of the code is going to retrieve the file from the tmp directory to move and rename, but it is not written, so it can't find it.


If this is no help, then possibly have a look at the /var/log/asterisk/full to see if it is showing the error or reason for the error.


Regards

Bob
 

dturell

Joined
Sep 18, 2009
Messages
23
Likes
0
Points
0
#3
I have version 1.5.2-2
 

Bob

Joined
Nov 4, 2007
Messages
2,400
Likes
1
Points
36
#4
Just a thought, I have some memory in the back of my head....

Have you tried it both through Unembedded Freepbx and the Elastix PBX GUI.....I seem to remember that it corrected the rights once you have done it via the Unembedded Freepbx interface....but I might be wrong....

Were you able to check permissions??

Regards

Bob
 

dturell

Joined
Sep 18, 2009
Messages
23
Likes
0
Points
0
#5
I have tried both ways. Where do I find the permissions? Sorry real new to this.
 

Bob

Joined
Nov 4, 2007
Messages
2,400
Likes
1
Points
36
#6
Either via the console of the Elastix system or via SSH (e.g. Putty) login as root and the password you entered when you first built the Elastix system

Enter the following commands

cd /

ls -l (note that is an L not a 1)

You should get the following listing


[root@elastix /]# ls -l
total 146
drwxr-xr-x 2 root root 4096 Oct 18 04:06 bin
drwxr-xr-x 4 root root 1024 Oct 17 15:30 boot
drwxr-xr-x 13 root root 4140 Oct 22 07:58 dev
drwxr-xr-x 77 root root 4096 Nov 2 04:02 etc
drwxr-xr-x 2 root root 4096 Mar 10 2009 home
drwxr-xr-x 11 root root 4096 Oct 18 04:06 lib
drwx------ 2 root root 16384 Oct 18 02:22 lost+found
drwxr-xr-x 2 root root 4096 Mar 10 2009 media
drwxr-xr-x 2 root root 4096 Mar 10 2009 mnt
drwxr-xr-x 4 root root 4096 Oct 17 15:29 opt
dr-xr-xr-x 135 root root 0 Oct 22 18:57 proc
drwxr-x--- 2 root root 4096 Oct 18 08:08 root
drwxr-xr-x 2 root root 12288 Oct 18 04:06 sbin
drwxr-xr-x 2 root root 4096 Oct 17 15:23 selinux
drwxr-xr-x 2 root root 4096 Mar 10 2009 srv
drwxr-xr-x 11 root root 0 Oct 22 18:57 sys
drwxrwxrwx 3 root root 4096 Oct 17 17:12 tftpboot
drwxrwxrwt 4 root root 4096 Nov 4 09:11 tmp
drwxr-xr-x 14 root root 4096 Oct 17 15:27 usr
drwxr-xr-x 21 root root 4096 Oct 17 15:29 var

Check the tmp directory permissions (left hand column)....
Yours should be the same or at a minimum drwxrwxrw

if not
chmod 1777 tmp

Dont muck around with the permissions if they match what I have in my listing for /tmp

Regards

Bob
 

dturell

Joined
Sep 18, 2009
Messages
23
Likes
0
Points
0
#7
okay! their is one that is different. it is: drwxr-xr-x 13 root root 5160 Oct 22 07:58 dev

to change it I just type in chmod 1777 tmp

and than put the new line in?
 

Bob

Joined
Nov 4, 2007
Messages
2,400
Likes
1
Points
36
#8
Ok, as was expected....

yes just type the line and press enter

that should be it...don't have to reboot...

just try your recording again....it should work...

Regards

Bob
 

dturell

Joined
Sep 18, 2009
Messages
23
Likes
0
Points
0
#9
Okay! It did not work. It told me in putty "command not found"
 

Bob

Joined
Nov 4, 2007
Messages
2,400
Likes
1
Points
36
#10
Sounds like you either have not typed the commands correctly or you are not in the console.

1) Add a keyboard & monitor to your Elastix box
2) You should be presented with a login prompt
3) Type root<enter>
4) Then you will be prompted for password
5) type your password<enter>
6) now you should be at the Linux prompt #
7) type cd /<enter> (note the space between the cd and /)
8) type chmod 1777 tmp<enter>
9) it should come back with no error messages

type ls -l<enter> again and the correct rights will be shown next to the tmp directory.

There is almost no way that it can come back with command not found. It is one of the fundamental commands in Linux.

Regards

Bob
 

berend

Joined
Feb 6, 2009
Messages
31
Likes
0
Points
0
#11
Hi Bob,

I have a similar problem here. When making a recording through an extension I can listen to it change it and everything. When I try to save it the system says the message can't be found.

When I upload a previously recorded *.wav file in the I get the message: "Succesfully uploaded file.wav"

In Step 2 when naming the file I get:

[ERROR] The Recorded File Does Not exists:
/var/spool/asterisk/tmp/unnumbered-ivrrecording.wav

I checked the permissions on the tmp dir and the sounds dir.

When trying to play existing soundfiles I get the error:
Warning: Invalid argument supplied for foreach() in /var/www/html/admin/functions.inc.php on line 772

Cheers, Berend
 

dturell

Joined
Sep 18, 2009
Messages
23
Likes
0
Points
0
#12
I tried what you said and I keep getting

chmod: cannot access `drwxr-xr-x': No such file or directory
chmod: cannot access `2': No such file or directory
chmod: cannot access `4096': No such file or directory
chmod: cannot access `Oct': No such file or directory
chmod: cannot access `18': No such file or directory
chmod: cannot access `04:06': No such file or directory


This is what I have currently:

[root@boca /]# cd /
[root@boca /]# ls -l
total 146
drwxrwxrwt 2 root root 4096 Sep 18 04:07 bin
drwxr-xr-x 4 root root 1024 Sep 17 17:32 boot
drwxr-xr-x 13 root root 5160 Nov 3 16:03 dev
drwxr-xr-x 77 root root 4096 Nov 3 16:03 etc
drwxr-xr-x 2 root root 4096 Mar 29 2007 home
drwxr-xr-x 12 root root 4096 Sep 18 04:06 lib
drwx------ 2 root root 16384 Sep 17 11:22 lost+found
drwxr-xr-x 2 root root 4096 Mar 29 2007 media
drwxr-xr-x 2 root root 4096 Mar 29 2007 mnt
drwxr-xr-x 4 root root 4096 Sep 17 17:32 opt
dr-xr-xr-x 116 root root 0 Nov 3 09:02 proc
drwxrwxrwt 2 root root 4096 Sep 17 15:11 root
drwxr-xr-x 2 root root 12288 Sep 18 04:07 sbin
drwxr-xr-x 2 root root 4096 Sep 17 17:23 selinux
drwxr-xr-x 2 root root 4096 Mar 29 2007 srv
drwxr-xr-x 11 root root 0 Nov 3 09:02 sys
drwxrwxrwx 2 root root 4096 Oct 15 12:01 tftpboot
drwxrwxrwt 3 root root 4096 Nov 4 11:01 tmp
drwxr-xr-x 13 root root 4096 Sep 17 17:28 usr
drwxr-xr-x 21 root root 4096 Sep 17 17:33 var
 

dturell

Joined
Sep 18, 2009
Messages
23
Likes
0
Points
0
#13
Now I get this message:

Failed to create /var/lib/asterisk /sounds/custom
 

Bob

Joined
Nov 4, 2007
Messages
2,400
Likes
1
Points
36
#14
dturell,

at the linux prompt type the following commands

cd /var/lib/asterisk/sounds/custom
chown -R asterisk:asterisk *
{note that is a * at the end of this line}

and try again with your recordings.
By the looks of it, your permissions are fine on the tmp directory now...

Regards
Bob
 

dturell

Joined
Sep 18, 2009
Messages
23
Likes
0
Points
0
#15
No Luck. Still not working.
 

dturell

Joined
Sep 18, 2009
Messages
23
Likes
0
Points
0
#16
I also have this coming up when I try to play the build in sound files.

No compatible wav, mp3 or gsm format found to play:
 

dturell

Joined
Sep 18, 2009
Messages
23
Likes
0
Points
0
#17
My sound files are gone now as well.
 

strongbow242

Joined
Apr 25, 2009
Messages
65
Likes
0
Points
0
#18
cp: cannot create regular file `/var/lib/asterisk/sounds/custom/Closed.wav': Permission denied

I am having the same problem. I am using the unembedded FreePBX on Elastix 1.6. It is a new install from the ISO. Ihave read this thread and followed all the instruction. My TMP permissions are correct.

Help?
 

strongbow242

Joined
Apr 25, 2009
Messages
65
Likes
0
Points
0
#19
Just fixed my problem.

cd /var/lib/asterisk/sounds
chown 1777 custom

New sound file created successfully.
 

Bob

Joined
Nov 4, 2007
Messages
2,400
Likes
1
Points
36
#20
Strongbow242,

Well done, that is the issue...however, I am not sure if you typo'ed on your fix for the issue..

It should be
cd /var/lib/asterisk/sounds
chown asterisk:asterisk custom


and for good measure in case you might have changed the permissions

chmod 0777 custom


Note the 0 in the chmod is to take away the "sticky" bit (basically the t you see in the permissions. This is normally on used on the /tmp directory, and in very simple terms, stops anyone below root (in this case) of changing permissions or deleting the directory.

I have already reported it in the Bugs area last month
http://bugs.elastix.org/view.php?id=170

regards

Bob
 

Members online

Latest posts

Forum statistics

Threads
30,898
Messages
130,879
Members
17,560
Latest member
manuelc
Top