ERROR! unable to open ZRTP cache file
Hello. Regularly in FS log I see: 09:03:54.044779 [DEBUG] switch_rtp.c:915 [ zrtp cache]: Storing ZRTP Cache... 09:03:54.044779 [DEBUG] switch_rtp.c:915 [ zrtp cache]: Storing ZRTP cache to <... 09:03:54.044779 [DEBUG] switch_rtp.c:915 [ zrtp cache]: ERROR! unable to open ZRTP cache file <. 09:03:54.044779 [DEBUG] switch_rtp.c:915 [ zrtp cache]: Storing ZRTP Cache - DONE. 09:03:54.044779 [DEBUG] switch_rtp.c:776 Saving ZRTP cache: OK Why is this logged, and why an error? There is no file name to search for permission or access. Note the missing ">" where file name must be. -- Mimiko desu.
It's a log message from within the libzrtp library. It means it cannot open the cache file. The log message contains the filename it tried to open, but it looks like you've removed the end of the lines with that information. The default filename within the library is "./zrtp_def_cache_path.dat". That'd be within the cwd FS is running with, which you can find with "ls -ld /proc/PID/cwd" where PID is the PID freeswitch is running as. The most likely cause is perhaps a write permission error. libzrtp doesn't log the error that occurred, but you might be able to see it by attaching strace, but it'd first be easier to check if FS can write to its cwd directory. -Steve On 5 September 2012 07:14, Vbvbrj <vbvbrj@gmail.com> wrote:
Hello.
Regularly in FS log I see:
09:03:54.044779 [DEBUG] switch_rtp.c:915 [ zrtp cache]: Storing ZRTP Cache... 09:03:54.044779 [DEBUG] switch_rtp.c:915 [ zrtp cache]: Storing ZRTP cache to <... 09:03:54.044779 [DEBUG] switch_rtp.c:915 [ zrtp cache]: ERROR! unable to open ZRTP cache file <. 09:03:54.044779 [DEBUG] switch_rtp.c:915 [ zrtp cache]: Storing ZRTP Cache - DONE. 09:03:54.044779 [DEBUG] switch_rtp.c:776 Saving ZRTP cache: OK
Why is this logged, and why an error? There is no file name to search for permission or access. Note the missing ">" where file name must be.
-- Mimiko desu.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On 05.09.2012 11:39, Steven Ayre wrote:
It's a log message from within the libzrtp library.
It means it cannot open the cache file. The log message contains the filename it tried to open, but it looks like you've removed the end of the lines with that information.
No, I didn't remove any symbol from the log output. Realy it does not show the file name.
The default filename within the library is "./zrtp_def_cache_path.dat". That'd be within the cwd FS is running with, which you can find with "ls -ld /proc/PID/cwd" where PID is the PID freeswitch is running as.
Yes, the cmd of FS is running is correct and the username under which FS is running does not have write permission except some subfolders, for ex. log sobfolder. Then how to specify the zrtp cache file path and name? -- Mimiko desu.
If freeswitch is not already using one of its directory defines to pass down to the library for where this file should be, someone please open a jira issue to correct this. This should be using one of dirs we define out of configure appropriately so it has the right permissions. Thanks Mike On Sep 5, 2012, at 6:19 AM, Vbvbrj <vbvbrj@gmail.com> wrote:
On 05.09.2012 11:39, Steven Ayre wrote:
It's a log message from within the libzrtp library.
It means it cannot open the cache file. The log message contains the filename it tried to open, but it looks like you've removed the end of the lines with that information.
No, I didn't remove any symbol from the log output. Realy it does not show the file name.
The default filename within the library is "./zrtp_def_cache_path.dat". That'd be within the cwd FS is running with, which you can find with "ls -ld /proc/PID/cwd" where PID is the PID freeswitch is running as.
Yes, the cmd of FS is running is correct and the username under which FS is running does not have write permission except some subfolders, for ex. log sobfolder. Then how to specify the zrtp cache file path and name?
--
switch_snprintf(zrtp_cache_path, sizeof(zrtp_cache_path), "%s%szrtp.dat", SWITCH_GLOBAL_dirs.db_dir, SWITCH_PATH_SEPARATOR); it should go in /usr/local/freeswitch/db does the user running the process have ownership of /usr/local/freeswitch ? On Wed, Sep 5, 2012 at 11:50 AM, Michael Jerris <mike@jerris.com> wrote:
If freeswitch is not already using one of its directory defines to pass down to the library for where this file should be, someone please open a jira issue to correct this. This should be using one of dirs we define out of configure appropriately so it has the right permissions.
Thanks Mike
On Sep 5, 2012, at 6:19 AM, Vbvbrj <vbvbrj@gmail.com> wrote:
On 05.09.2012 11:39, Steven Ayre wrote:
It's a log message from within the libzrtp library.
It means it cannot open the cache file. The log message contains the filename it tried to open, but it looks like you've removed the end of the lines with that information.
No, I didn't remove any symbol from the log output. Realy it does not show the file name.
The default filename within the library is "./zrtp_def_cache_path.dat". That'd be within the cwd FS is running with, which you can find with "ls -ld /proc/PID/cwd" where PID is the PID freeswitch is running as.
Yes, the cmd of FS is running is correct and the username under which FS is running does not have write permission except some subfolders, for ex. log sobfolder. Then how to specify the zrtp cache file path and name?
--
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
On 05.09.2012 21:18, Anthony Minessale wrote:
switch_snprintf(zrtp_cache_path, sizeof(zrtp_cache_path), "%s%szrtp.dat", SWITCH_GLOBAL_dirs.db_dir, SWITCH_PATH_SEPARATOR);
it should go in /usr/local/freeswitch/db
does the user running the process have ownership of /usr/local/freeswitch ?
The user "freeswitch" and which FS is running does not have the ownership, but the group it belongs has rx access and rws access to the log,db,recording and some other subdirectories. FS was build and isntalled with --prefix. -- Mimiko desu.
I am getting the similar problem. I can see while starting up the FS. 2013-03-19 07:54:20.425555 [DEBUG] switch_rtp.c:916 [ zrtp main]: ERROR! cache on_init() callback failed <Unable to read data from the file/stream> 2013-03-19 07:54:20.425577 [CRIT] switch_rtp.c:957 ZRTP init failed! And everything is running as a root user! -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/ERROR-unable-to-open-ZRTP-cach... Sent from the freeswitch-users mailing list archive at Nabble.com.
I can recall that there was a recent change in the zrtp cache behaviour that fixed the location of the cache file instead of taking ./!. See if you have the directory for the cache created. On Mar 22, 2013 9:04 AM, "mehroz" <mehroz.ashraf85@gmail.com> wrote:
I am getting the similar problem. I can see while starting up the FS.
2013-03-19 07:54:20.425555 [DEBUG] switch_rtp.c:916 [ zrtp main]: ERROR! cache on_init() callback failed <Unable to read data from the file/stream> 2013-03-19 07:54:20.425577 [CRIT] switch_rtp.c:957 ZRTP init failed!
And everything is running as a root user!
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/ERROR-unable-to-open-ZRTP-cach... Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thanks Ivanov, Can you please assist me how can i check that? and what else i can check to fix it up? -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/ERROR-unable-to-open-ZRTP-cach... Sent from the freeswitch-users mailing list archive at Nabble.com.
participants (6)
-
Anthony Minessale
-
Daniel Ivanov
-
mehroz
-
Michael Jerris
-
Steven Ayre
-
Vbvbrj