Hello, I have 3 server, 2 running with asterisk and another one generate call files say some directory callfile/serverA and callfile/serverB (NFS Sharing) and mounted this directory to respectively on Server A (Asterisk) and Server B(Asterisk) on /var/spool/asterisk/outgoing. Server A has Asterisk 1.8.0-rc2 and Server B has asterisk version 1.8.9.0, and both asterisk compile ./configure --without-inotify Callfile will execute call successfully on both machine, but got the following problem *[Jul 6 16:15:04] WARNING[26921]: pbx_spool.c:278 safe_append: Unable to set utime on /var/spool/asterisk/outgoing/1000000005.call: Operation not permitted * I have set the folder (callfile/Server{A/B}) permission to 777 as well as call file permission to 777. -- Regards, Chandrakant Solanki -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120706/333e1d30/attachment.htm>
Why don't you just generate call files for each of the servers on the same server? Anyhow you are not sharing one single pool of call files among servers, I suspect that's where network drive would come in handy. Sent from my iPhone On Jul 6, 2012, at 6:56 PM, Chandrakant Solanki <solanki.chandrakant at gmail.com> wrote:> Hello, > > I have 3 server, 2 running with asterisk and another one generate call files say some directory callfile/serverA and callfile/serverB (NFS Sharing) and mounted this directory to respectively on Server A (Asterisk) and Server B(Asterisk) on /var/spool/asterisk/outgoing. > > Server A has Asterisk 1.8.0-rc2 and Server B has asterisk version 1.8.9.0, and both asterisk compile ./configure --without-inotify > > Callfile will execute call successfully on both machine, but got the following problem > > [Jul 6 16:15:04] WARNING[26921]: pbx_spool.c:278 safe_append: Unable to set utime on /var/spool/asterisk/outgoing/1000000005.call: Operation not permitted > > I have set the folder (callfile/Server{A/B}) permission to 777 as well as call file permission to 777. > > -- > Regards, > > Chandrakant Solanki > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120706/4037312f/attachment.htm>
On Friday 06 July 2012, Chandrakant Solanki wrote:> I have 3 server, 2 running with asterisk and another one generate call > files say some directory callfile/serverA and callfile/serverB (NFS > Sharing) and mounted this directory to respectively on Server A (Asterisk) > and Server B(Asterisk) on /var/spool/asterisk/outgoing. > > Server A has Asterisk 1.8.0-rc2 and Server B has asterisk version 1.8.9.0, > and both asterisk compile ./configure --without-inotify > > Callfile will execute call successfully on both machine, but got the > following problem > > *[Jul 6 16:15:04] WARNING[26921]: pbx_spool.c:278 safe_append: Unable to > set utime on /var/spool/asterisk/outgoing/1000000005.call: Operation not > permitted > * > I have set the folder (callfile/Server{A/B}) permission to 777 as well as > call file permission to 777.The problem is that root on one machine doesn't have full root access to other users' files on NFS shares. A user logged in as root on a local machine and accessing an NFS share on a remote machine ordinarily has *fewer* privileges, and even world write doesn't allow remote root write. This is by design; as otherwise, a local privilege escalation on one machine can lead to a whole- network privilege escalation. (By the way, you should have permissions 666 for a callfile, not 777. Callfiles should not be executable.) You could either recompile all the NFS stuff (not really recommended); or have the callfile generated and re-timed by a CGI script on the remote machine (where /var/spool/asterisk/outgoing actually is), fired off by `wget` on the local machine. -- AJS Answers come *after* questions.