Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Siproxd stopped working

    Scheduled Pinned Locked Moved pfSense Packages
    17 Posts 6 Posters 5.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K Offline
      kn-net
      last edited by

      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.5

      Here 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

      1 Reply Last reply Reply Quote 0
      • C Offline
        Cartman316
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • D Offline
          dalex
          last edited by

          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 table

          and then repeat of:

          siproxd[66203]: register.c:149 ERROR:unable to write registration file

          SIP registrations and communication works fine for me too.

          1 Reply Last reply Reply Quote 0
          • D Offline
            doktornotor Banned
            last edited by

            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]
            
            1 Reply Last reply Reply Quote 0
            • D Offline
              dalex
              last edited by

              $ 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.

              1 Reply Last reply Reply Quote 0
              • D Offline
                doktornotor Banned
                last edited by

                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.)

                1 Reply Last reply Reply Quote 0
                • D Offline
                  dalex
                  last edited by

                  Worked!

                  I added the line manually (via WinSCP).

                  The siproxd.pid file created ok, and registrations show fine now.

                  Thank you!

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    doktornotor Banned
                    last edited by

                    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

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      Cartman316
                      last edited by

                      @doktornotor:

                      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.

                      1 Reply Last reply Reply Quote 0
                      • E Offline
                        eddi1984
                        last edited by

                        @doktornotor:

                        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!!!

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          doktornotor Banned
                          last edited by

                          @eddi1984:

                          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.

                          1 Reply Last reply Reply Quote 0
                          • S Offline
                            SaschaITM
                            last edited by

                            ~~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.

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              doktornotor Banned
                              last edited by

                              Merged.

                              1 Reply Last reply Reply Quote 0
                              • C Offline
                                Cartman316
                                last edited by

                                Thank you.

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post
                                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.