Hello, I am getting the following error on my CLI [May 6 15:59:20] ERROR[25789]: cdr_csv.c:314 csv_log: Unable to re-open master file /var/log/asterisk//cdr-csv//Master.csv : No such file or directory I am a bit of a Linux newb so please be gentle. I assume this has something to do with the fact that there are two slashes between asterisk//cdr-csv and cdr-csv//Master.csv I have looked at all the .conf files that deal with CDR and cannot find the entry for this file location. logger.conf and asterisk.conf have not born fruit either. /var/log/asterisk/cdr-csv does not exist and this Master.csv does not exist. Running Asterisk 1.4.23 on openSuse 11. I am also using the Asterisk GUI 2.0 for my interface. Thanks in advance for any help. -- Brent T. Vrieze CIM Automation Softare Engineer 507-216-0465
On 7 May 2009, at 14:29, Brent Vrieze wrote:> Hello, > > I am getting the following error on my CLI > [May 6 15:59:20] ERROR[25789]: cdr_csv.c:314 csv_log: Unable to re- > open master file /var/log/asterisk//cdr-csv//Master.csv : No such > file or directory > > I am a bit of a Linux newb so please be gentle. I assume this has > something to do with the fact that there are two slashes between > asterisk//cdr-csv and cdr-csv//Master.csv > > I have looked at all the .conf files that deal with CDR and cannot > find the entry for this file location. logger.conf and > asterisk.conf have not born fruit either. > > /var/log/asterisk/cdr-csv does not exist and this Master.csv does > not exist.mkdir /var/log/asterisk/cdr-csv Might need to chmod it to whoever asterisk runs as.
Here is your problem. The directory /var/log/asterisk/cdr-csv must exist for asterisk to write it's "plain-jane" (their term) text CDR file. This is defined in cdr.conf (it's the last working section of mine). You can create the directory or comment out that section of cdr.conf. Your choice. -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Brent Vrieze Sent: Thursday, May 07, 2009 8:29 AM To: asterisk-users at lists.digium.com Subject: [asterisk-users] Master.csv Hello, I am getting the following error on my CLI [May 6 15:59:20] ERROR[25789]: cdr_csv.c:314 csv_log: Unable to re-open master file /var/log/asterisk//cdr-csv//Master.csv : No such file or directory I am a bit of a Linux newb so please be gentle. I assume this has something to do with the fact that there are two slashes between asterisk//cdr-csv and cdr-csv//Master.csv I have looked at all the .conf files that deal with CDR and cannot find the entry for this file location. logger.conf and asterisk.conf have not born fruit either. /var/log/asterisk/cdr-csv does not exist and this Master.csv does not exist. Running Asterisk 1.4.23 on openSuse 11. I am also using the Asterisk GUI 2.0 for my interface. Thanks in advance for any help. -- Brent T. Vrieze CIM Automation Softare Engineer 507-216-0465 _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
On Thu, 7 May 2009, Brent Vrieze wrote:> I am getting the following error on my CLI> [May 6 15:59:20] ERROR[25789]: cdr_csv.c:314 csv_log: Unable to re-open > master file /var/log/asterisk//cdr-csv//Master.csv : No such file or > directory > > I am a bit of a Linux newb so please be gentle. I assume this has > something to do with the fact that there are two slashes between > asterisk//cdr-csv and cdr-csv//Master.csvOthers have posted the solution, but to clear up your assumption, extra slashes are fine in Unix. Try: touch //////var//////tmp//////foo rm //////var//////tmp//////foo Whenever asked to specify a directory or a path, I always end with a slash so my intention is obvious. When applications concatenate path fragments, some add slashes and some don't but extra slashes don't cause a problem. Unfortunately, some applications complain when you include the trailing slash. I consider that a bug. Thanks in advance, ------------------------------------------------------------------------ Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000