Skip to main content

MOH - Failed to make directory for uploaded file

Posted by tschilbach on Thu, 07/15/2010

I hate to bring old stuff back up, but I am having the same issue here. I tried to enact the fixed as listed above.

I have a fresh install of Debian (latest stable) and installed Apache2, MySQL, Asterisk 1.4 and Webmin as described in teh setup documentation. I added the latest WEBMIN module for Thirdlane (ver. 6.0.1.81 MTE).

I created a tennant using the thirdlane demo as the TEMPLATE. Everything so far has gone smooth. I have added DID's with no issue and I can also add extensions and the whole shibang.
I now try and upload the music after creating a Playlist under MOH in teh Media Files area. I did notice that /var/lib/asterisk/moh/TENNANT/default was not added when I setup my tennant. I tried adding 2 more tennants and the same issue occurs.

So I go in and add the tennant and default sub directory. I did a chown and chgrp -R so that asterisk user has control and matched the permissions of the demo thirdlane directory. I noticed that if I also created other playlists that none of those gets added to the TENNANT directory at all. I have to manually add every one of them.

Is there a config I am missing here? It seems to be an issue for every tennant I created (about 12 of them) and they are all having the same issue. Wierd.

I even did a test upload into the default tennant (thirdlane) and I also get the dreaded "Failed to make directory for uploaded file"...


Submitted by eeman on Thu, 07/15/2010 Permalink

check the /var/lib/asterisk/moh/thirdlane directory.. what ever exists there is what gets copied when you create the new tenant (assuming it is the tenant you told the system to clone)

Submitted by tschilbach on Thu, 07/15/2010 Permalink

Hi Eeman,

Thanks for your prompt response. I did check that directory and its there. However if I login as the default tenant (thirdlane) I have the exact same issue no matter what. I cannot upload MOH files nor can I conduct a backup in thirdlane as I get this result:

"Error creating archive, command tar -cf /usr/share/webmin/asterisk/tlbackup.tar.gz_temp -T /tmp/tar.driver 2>&1"

I think they are all related. I just created 2 more tennants an NOTHINHG is created in the /var/lib/asterisk/moh directory for those new tennants. This is a pretty simple straight forward installation.

Would it have something to do with ASTERISK 1.4? Whats the safest version to use thats the most stable and gives me the wides variety of features? I installed 1.4 based on your past recommendations.

-Timothy

Submitted by eeman on Thu, 07/15/2010 Permalink

it wouldnt have anythign to do with asterisk. It is webmin touching the filesystem not asterisk in this case.

i would start with file permissions on the directories and I would make sure that SELinux is disabled.

does your dmesg have a bunch of context denied comments in it? does the command 'getenforce' work in debian the way it works in centos?

Submitted by thirdlane on Sun, 07/18/2010 Permalink

Hi Timothy,

What happens (what error messages do you get) if you run this at the shell prompt? What does /tmp/tar.driver look like? Could you please post first few tar.driver lines?