[OpenSER-Devel] [ openser-Bugs-1827363 ] configuration check deletes fifo and socket files

SourceForge.net noreply at sourceforge.net
Mon Nov 19 18:01:00 UTC 2007


Bugs item #1827363, was opened at 2007-11-07 09:36
Message generated for change (Comment added) made by bogdan_iancu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1827363&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver devel
Status: Open
>Resolution: Fixed
Priority: 7
Private: No
Submitted By: Dan (dan_pascu)
Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: configuration check deletes fifo and socket files

Initial Comment:
I got these error messages while running openser -c to check the configuration:

Nov  2 19:29:44 [10055] ERROR:mi_datagram:mi_destroy: cannot delete the socket (/var/run/openser/socket): Permission denied
Nov  2 19:29:44 [10055] ERROR:mi_fifo:mi_destroy: cannot delete the fifo (/var/run/openser/fifo): Permission denied

As it seems, trying to check the configuration will attempt to remove the fifo and socket files. Fortunately I didn't have enough privileges to 
remove those files as the user I was when checking the config, but I recall that I noticed repeatedly that my fifo and socket files were gone and couldn't explain why.

Trying to remove them while just checking for the configuration is wrong. I may have a server already running and I only want to make sure the new config is OK before I attempt to restart it. We even have this check in the debian init.d file before restarts to make sure we won't restart unless the config is valid. But with this behavior, the running server will be crippled by any attempt to simply check the configuration.

Those files shouldn't be removed, even on a normal start, unless openser is sure it is not already running. Else it will error that it cannot bind to the SIP socket and fail to start, but will cripple at the same time an already running server.


----------------------------------------------------------------------

>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2007-11-19 20:01

Message:
Logged In: YES 
user_id=1275325
Originator: NO

Dan,

can you give it a try with the current SVN version?

Bogdan


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1827363&group_id=139143



More information about the Devel mailing list