Siproxd stopped working
-
Hi,
I have pfsense 2.2.5 installed. I think that I also updated from siproxd 1.0.6 to 1.0.7 today.
Nevertheless, the siproxd 1.0.7 installation is not working. I have had siproxd since pfsense 2.0.x and never had an issue even when updating the firewall to new versions.
Not sure what is going on, but I found this in the syslog:
Nov 19 19:47:19 siproxd[17102]: register.c:149 ERROR:unable to write registration file Nov 19 19:46:34 siproxd[17102]: register.c:149 ERROR:unable to write registration file Nov 19 19:45:49 siproxd[17102]: register.c:149 ERROR:unable to write registration file Nov 19 19:44:56 siproxd[17102]: register.c:149 ERROR:unable to write registration file Nov 19 19:44:10 siproxd[17102]: register.c:149 ERROR:unable to write registration file Nov 19 19:43:23 siproxd[17102]: register.c:149 ERROR:unable to write registration file Nov 19 19:42:36 siproxd[17102]: register.c:149 ERROR:unable to write registration file Nov 19 19:41:49 siproxd[17102]: register.c:149 ERROR:unable to write registration file Nov 19 19:41:01 siproxd[17102]: register.c:149 ERROR:unable to write registration file Nov 19 19:40:46 siproxd[17102]: register.c:149 ERROR:unable to write registration file Nov 19 19:40:32 siproxd[17102]: register.c:149 ERROR:unable to write registration file Nov 19 19:40:16 siproxd[17102]: register.c:149 ERROR:unable to write registration file Nov 19 19:40:01 siproxd[17102]: register.c:149 ERROR:unable to write registration file Nov 19 19:39:47 siproxd[17102]: register.c:149 ERROR:unable to write registration file Nov 19 19:39:34 siproxd[17102]: siproxd.c:349 INFO:siproxd-0.8.0-5470 amd64-portbld-freebsd10.1 started Nov 19 19:39:34 siproxd[17102]: register.c:73 WARNING:registration file not found, starting with empty table Nov 19 19:39:34 siproxd[17102]: sock.c:131 INFO:bound to port XXXX Nov 19 19:39:34 siproxd[17102]: utils.c:585 WARNING:couldn't create new PID file: No such file or directory Nov 19 19:39:34 siproxd[17102]: plugins.c:88 ERROR:plugin plugin_stun.la not found - skipped Nov 19 19:39:34 siproxd[17102]: plugins.c:88 ERROR:plugin plugin_fix_bogus_via.la not found - skipped Nov 19 19:39:34 siproxd[17102]: plugins.c:88 ERROR:plugin plugin_logcall.la not found - skipped Nov 19 19:39:34 siproxd[17102]: siproxd.c:295 INFO:daemonized, pid=17102 Nov 19 19:39:34 siproxd[14709]: siproxd.c:247 INFO:siproxd-0.8.0-5470 amd64-portbld-freebsd10.1 starting up Nov 19 19:39:34 siproxd[14709]: readconf.c:243 WARNING:empty argument in config file, line:"chrootjail = " Nov 19 19:39:32 php-fpm[150]: /rc.filter_configure_sync: [siproxd] Package is installed but not started. Not installing firewall rules. Nov 19 19:39:32 php-fpm[150]: /rc.filter_configure_sync: [siproxd] Package is installed but not started. Not installing firewall rules. Nov 19 19:39:32 php-fpm[150]: /rc.filter_configure_sync: [siproxd] Package is installed but not started. Not installing firewall rules. Nov 19 19:39:26 siproxd[3313]: siproxd.c:349 INFO:siproxd-0.8.0-5470 amd64-portbld-freebsd10.1 started Nov 19 19:39:26 siproxd[3313]: register.c:73 WARNING:registration file not found, starting with empty table Nov 19 19:39:26 siproxd[3313]: sock.c:131 INFO:bound to port XXXX
Anybody and idea what it could be? To me, it looks like permission issues with the jail, not sure how to fix it.
Thanks.
-
Either uninstall and reinstall the package or re-save the config.
-
Hi,
I re-saved the config, but that did not help.
I uninstalled siproxd, restarted the firewall and installed siproxd again. No change, did not work.
One thing I noticed, once I removed and reinstalled siproxd, all my fields were still populated, as if not all files (config) were deleted.
How can I uninstall and completely remove all files that relate to siproxd?
EDIT:
In the past, I was able to see all registered phones in the "Registered Phones" tab. Now its empty. Nothing was changed on the phones.My phones did not work last night, but this morning they did. But still nothing in "Registered Phones" tab.
Looking at the log files, it seems, that after the 2.2.5 update, there are some permission issues.I remember, that I had similar symptoms with siproxd way back when (probably like 2.0.X). An update of siproxd fixed it back than.
One more time, the current log files, after restarting the service:
Nov 20 10:57:02 siproxd[92683]: register.c:149 ERROR:unable to write registration file Nov 20 10:56:48 siproxd[92683]: register.c:149 ERROR:unable to write registration file Nov 20 10:56:36 siproxd[92683]: siproxd.c:349 INFO:siproxd-0.8.0-5470 amd64-portbld-freebsd10.1 started Nov 20 10:56:36 siproxd[92683]: register.c:73 WARNING:registration file not found, starting with empty table Nov 20 10:56:36 siproxd[92683]: sock.c:131 INFO:bound to port XXXX Nov 20 10:56:36 siproxd[92683]: utils.c:585 WARNING:couldn't create new PID file: No such file or directory Nov 20 10:56:36 siproxd[92683]: plugins.c:88 ERROR:plugin plugin_stun.la not found - skipped Nov 20 10:56:36 siproxd[92683]: plugins.c:88 ERROR:plugin plugin_fix_bogus_via.la not found - skipped Nov 20 10:56:36 siproxd[92683]: plugins.c:88 ERROR:plugin plugin_logcall.la not found - skipped Nov 20 10:56:36 siproxd[92683]: siproxd.c:295 INFO:daemonized, pid=92683 Nov 20 10:56:36 siproxd[90478]: siproxd.c:247 INFO:siproxd-0.8.0-5470 amd64-portbld-freebsd10.1 starting up Nov 20 10:56:36 siproxd[90478]: readconf.c:243 WARNING:empty argument in config file, line:"chrootjail = "
Thanks.
-
I have the same problem after Update siproxd 1.0.6 to 1.0.7. No registered phones in "Registered Phones" Tab.
Now we have Pfsense 2.2.4. I don't think thats a problem with 2.2.5Here the massage:
warning: file_get_contents(/var/siproxd/siproxd_registrations): failed to open stream: No such file or directory in /usr/local/www/siproxd_registered_phones.php on line 43
-
Hello.
I upgraded my PFSense today from 2.2.1 to 2.2.5.
Since then on the site Siproxd - "Registered Phones" i get the error message: "Warning: file_get_contents(/var/siproxd/siproxd_registrations): failed to open stream: No such file or directory in /usr/local/www/siproxd_registered_phones.php on line 43" - And no phones are shown anymore.
However the package seems to work as i experienced no issius on calling and receiving calls yet since the upgrade.
About every 10 seconds i get the following error message on the system logs/general: "siproxd[59872]: register.c:149 ERROR:unable to write registration file".
Thank in advance for any suggestions to fix this issue.
Best regards.
-
Same thing here. Pfs 2.2.4-RELEASE (amd64), and tried to upgrade siproxd.
1- The upgrade never finished.
2- Uninstalled the package.
3- Re-installed the package.Click on Registered Phones tab gave an error message on top of page, so i went and created the file myself with nobody:nobody owner and 666 permissions.
No luck, the page is clear from errors (and data), the logs still complain:
siproxd[63037]: readconf.c:243 WARNING:empty argument in config file, line:"chrootjail = "
siproxd[66203]: plugins.c:88 ERROR:plugin plugin_logcall.la not found - skipped
siproxd[66203]: utils.c:585 WARNING:couldn't create new PID file: Permission denied
siproxd[66203]: register.c:73 WARNING:registration file not found, starting with empty tableand then repeat of:
siproxd[66203]: register.c:149 ERROR:unable to write registration file
SIP registrations and communication works fine for me too.
-
The file has never been created by the package, this has nothing to do with the upgrade except for the fast that on uninstall /var/siproxd is now being deleted as it should. I'm having hard time understanding why the thing is so stupid that it cannot create the file itself when needed.
Can someone post
ps auxw | grep "[s]iprox" output? Suspect that 0755 + nobody:nobody is not exactly the correct permissions for the directory (again, nothing changed here).[/s]
-
$ ps auxw | grep "
iprox"
nobody 66203 0.0 0.4 31668 7308 - S 11:41AM 0:00.75 /usr/local/sbin/siproxd -c /usr/pbi/siproxd-amd64/etc/siproxd. -
You can try this via System Patches package
--- a/usr/local/pkg/siproxd.inc +++ b/usr/local/pkg/siproxd.inc @@ -146,6 +146,7 @@ function sync_package_siproxd() { } $siproxd_conffile = SIPROXD . '/etc/siproxd.conf'; $siproxd_pwfile = SIPROXD . '/etc/siproxd_passwd.cfg'; + $siproxd_chroot = "/var/siproxd/"; $pfs_version = substr(trim(file_get_contents("/etc/version")), 0, 3); if ($pfs_version == '2.2') {
(Save the siproxd configuration after patching.)
-
Worked!
I added the line manually (via WinSCP).
The siproxd.pid file created ok, and registrations show fine now.
Thank you!
-
PR done, thanks for testing and reporting. (Fixed that siproxd_registered_phones.php thing as well to shut up when the file doesn't exist while there.)
https://github.com/pfsense/pfsense-packages/pull/1190
-
You can try this via System Patches package
--- a/usr/local/pkg/siproxd.inc +++ b/usr/local/pkg/siproxd.inc @@ -146,6 +146,7 @@ function sync_package_siproxd() { } $siproxd_conffile = SIPROXD . '/etc/siproxd.conf'; $siproxd_pwfile = SIPROXD . '/etc/siproxd_passwd.cfg'; + $siproxd_chroot = "/var/siproxd/"; $pfs_version = substr(trim(file_get_contents("/etc/version")), 0, 3); if ($pfs_version == '2.2') {
(Save the siproxd configuration after patching.)
Thank you, it works again. I followed your instruction.
-
You can try this via System Patches package
--- a/usr/local/pkg/siproxd.inc +++ b/usr/local/pkg/siproxd.inc @@ -146,6 +146,7 @@ function sync_package_siproxd() { } $siproxd_conffile = SIPROXD . '/etc/siproxd.conf'; $siproxd_pwfile = SIPROXD . '/etc/siproxd_passwd.cfg'; + $siproxd_chroot = "/var/siproxd/"; $pfs_version = substr(trim(file_get_contents("/etc/version")), 0, 3); if ($pfs_version == '2.2') {
(Save the siproxd configuration after patching.)
Hi,
I have not checked this thread for a while. Will try the fix tonight.
When will the next siproxd update be available via the pfsense package manager?
Thank you doktormotor!!!
Cheers.
EDIT: Applied the patch and its working perfect! Thanks again!!!
-
When will the next siproxd update be available via the pfsense package manager?
Whenever someone merges https://github.com/pfsense/pfsense-packages/pull/1190 - have no influence on that, sorry.
-
~~I've noticed siproxd not working on my system (softphones not ringing), so I've searched via Google and found this thread. After installing the patch siproxd started working again. A few minutes later I saw an updated pfSense package, uninstalled the patch, and installed the new package. siproxd is still working, but it doesn't display anything in the "registered phones" tab, even though the phones seem to be registered. I've already tried the obvious stuff (uninstall/reinstall package, save package config, reboot pfSense, re-register softphones, etc.).
EDIT: after a bit of rebooting and reconnecting softphones two entries show up in the "registered phones" tab, even though three phones are registered and working. Not sure if this a cosmetic issue or something else.~~
Please disregard for now, seems to be an issue on my side.
-
Merged.
-
Thank you.