Discussion:
[asterisk-users] Master.csv
Brent Vrieze
2009-05-07 13:29:09 UTC
Permalink
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
Steve Howes
2009-05-07 13:36:15 UTC
Permalink
Post by Brent Vrieze
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.
Danny Nicholas
2009-05-07 13:39:35 UTC
Permalink
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-***@lists.digium.com
[mailto:asterisk-users-***@lists.digium.com] On Behalf Of Brent Vrieze
Sent: Thursday, May 07, 2009 8:29 AM
To: asterisk-***@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
Brent Vrieze
2009-05-07 15:47:02 UTC
Permalink
Thanks to everyone for the help. I suppose questions this easy to
answer can be a nice diversion, at least they are for me. I thought it
might be as easy as adding the directory but the double slashes "//" in
the CLI error message threw me off.

Anyway adding the directory worked and I am now getting the CDR logged.
I don't know if I really need them but I have them.

So last question on this. Why are there double slashes in the CLI error
message?

Thanks again
Brent
Post by Danny Nicholas
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-----
Sent: Thursday, May 07, 2009 8:29 AM
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
Steve Edwards
2009-05-07 14:20:38 UTC
Permalink
Post by Brent Vrieze
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
Others 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.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
Benny Amorsen
2009-05-10 21:15:51 UTC
Permalink
Post by Steve Edwards
Others have posted the solution, but to clear up your assumption, extra
touch //////var//////tmp//////foo
rm //////var//////tmp//////foo
Middle slashes are guaranteed to turn into a single slash, but starting
slashes are not!

Linux doesn't do anything special with double slashes at the front, but
some network file systems on other POSIX-compatible operating systems
have handled them differently.

/var////tmp////foo is always the same as /var/tmp/foo, but //var/tmp/foo
and /var/tmp/foo can be different.


/Benny

Loading...