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

Webconfigurator Hangs

Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
29 Posts 10 Posters 10.2k 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.
  • J
    jimp Rebel Alliance Developer Netgate
    last edited by May 4, 2012, 11:41 PM

    Get the output from the shell of

    ps uxawww
    

    Before you edit, and then again when it hangs

    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

    Need help fast? Netgate Global Support!

    Do not Chat/PM for help!

    1 Reply Last reply Reply Quote 0
    • D
      Deimos
      last edited by May 5, 2012, 1:28 PM

      Before:

      USER     PID %CPU %MEM   VSZ   RSS  TT  STAT STARTED      TIME COMMAND
      root      11 398.6  0.0     0    32  ??  RL   Fri01PM 6153:28.27 [idle]
      root   18520  0.7  3.0 58832 30268  ??  S    Fri01PM   0:31.29 /usr/local/bin/php
      root   18442  0.1  2.4 58832 24528  ??  S    Fri01PM   0:06.80 /usr/local/bin/php
      root       0  0.0  0.0     0    56  ??  DLs  Fri01PM   0:00.30 [kernel]
      root       1  0.0  0.0  1888   492  ??  ILs  Fri01PM   0:00.05 /sbin/init --
      root       2  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.01 [g_event]
      root       3  0.0  0.0     0     8  ??  DL   Fri01PM   0:04.27 [g_up]
      root       4  0.0  0.0     0     8  ??  DL   Fri01PM   0:03.28 [g_down]
      root       5  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.00 [crypto]
      root       6  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.00 [crypto returns]
      root       7  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.00 [sctp_iterator]
      root       8  0.0  0.0     0     8  ??  DL   Fri01PM   0:01.03 [pfpurge]
      root       9  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.00 [xpt_thrd]
      root      10  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.00 [audit]
      root      12  0.0  0.0     0   192  ??  WL   Fri01PM   3:40.49 [intr]
      root      13  0.0  0.0     0    32  ??  DL   Fri01PM   0:02.90 [ng_queue]
      root      14  0.0  0.0     0     8  ??  DL   Fri01PM   0:09.84 [yarrow]
      root      15  0.0  0.0     0   168  ??  DL   Fri01PM   0:23.58 [usb]
      root      16  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.13 [pagedaemon]
      root      17  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.00 [vmdaemon]
      root      18  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.00 [pagezero]
      root      19  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.19 [idlepoll]
      root      20  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.57 [bufdaemon]
      root      21  0.0  0.0     0     8  ??  DL   Fri01PM   0:07.28 [syncer]
      root      22  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.65 [vnlru]
      root      23  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.67 [softdepflush]
      root      39  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.80 [md0]
      root     244  0.0  0.1  3416  1160  ??  INs  Fri01PM   0:00.09 /usr/local/sbin/check_reload_status
      root     246  0.0  0.1  3416  1004  ??  IN   Fri01PM   0:00.00 check_reload_status: Monitoring daemon of check_reload_status
      root     256  0.0  0.2  3936  2264  ??  Is   Fri01PM   0:00.01 /sbin/devd
      root     953  0.0  0.2  3708  1560  ??  SN   12:21AM   0:10.38 /bin/sh /var/db/rrd/updaterrd.sh
      root    6577  0.0  0.3  5344  3072  ??  Is   Fri01PM   0:00.01 /usr/sbin/sshd
      root    6878  0.0  0.1  3328   988  ??  Is   Fri01PM   0:00.00 /usr/local/bin/minicron 240 /var/run/ping_hosts.pid /usr/local/bin/ping_hosts.sh
      root    7458  0.0  0.1  3328  1036  ??  I    Fri01PM   0:00.11 minicron: helper /usr/local/bin/ping_hosts.sh  (minicron)
      root    7548  0.0  0.1  3328   988  ??  Is   Fri01PM   0:00.00 /usr/local/bin/minicron 3600 /var/run/expire_accounts.pid /etc/rc.expireaccounts
      root    7811  0.0  0.1  3328  1036  ??  I    Fri01PM   0:00.01 minicron: helper /etc/rc.expireaccounts  (minicron)
      root    7948  0.0  0.1  3328   988  ??  Is   Fri01PM   0:00.00 /usr/local/bin/minicron 86400 /var/run/update_alias_url_data.pid /etc/rc.update_alias_url_data
      root    8358  0.0  0.1  3328  1036  ??  I    Fri01PM   0:00.00 minicron: helper /etc/rc.update_alias_url_data  (minicron)
      root   10856  0.0  0.1  4568  1204  ??  Is   Fri01PM   0:00.02 /usr/local/sbin/sshlockout_pf 15
      root   11672  0.0  0.1  3424  1512  ??  INs  12:21AM   0:00.01 ntpd: [priv] (ntpd)
      _ntp   11832  0.0  0.2  3424  1592  ??  SN   12:21AM   0:00.32 ntpd: ntp engine (ntpd)
      root   11840  0.0  0.2  4976  2536  ??  Ss   Fri01PM   0:09.52 /usr/sbin/syslogd -c -c -l /var/dhcpd/var/run/log -f /var/etc/syslog.conf
      _ntp   11854  0.0  0.2  3424  1536  ??  IN   12:21AM   0:00.00 ntpd: dns engine (ntpd)
      root   12432  0.0  0.1  3448  1408  ??  Is   Fri01PM   0:00.18 /usr/sbin/inetd -wW -R 0 -a 127.0.0.1 /var/etc/inetd.conf
      root   19428  0.0  0.1  1576   772  ??  SN    3:29PM   0:00.00 sleep 60
      root   19758  0.0  0.4  8956  4348  ??  Ss   12:21AM   0:00.86 /usr/local/sbin/mpd5 -b -k -d /var/etc -f mpd_wan.conf -p /var/run/pppoe_wan.pid -s ppp pppoeclient
      root   20507  0.0  0.4  6720  3888  ??  S    Fri01PM   0:02.98 /usr/local/sbin/lighttpd -f /var/etc/lighty-webConfigurator.conf
      root   21100  0.0  1.4 56784 14464  ??  I    Fri01PM   0:00.18 /usr/local/bin/php
      root   23729  0.0  0.1  3328  1112  ??  Is   12:21AM   0:00.00 /usr/local/sbin/dhcpleases -l /var/dhcpd/var/db/dhcpd.leases -d matrix -p /var/run/dnsmasq.pid -h /var/etc/hosts
      nobody 25264  0.0  0.3  5576  2620  ??  I    12:21AM   0:00.49 /usr/local/sbin/dnsmasq --local-ttl 1 --all-servers --rebind-localhost-ok --stop-dns-rebind --dns-forward-max=5000 --cache-size=10000 --dhcp-hostsfile=/var/etc/hosts
      root   25524  0.0  1.4 56784 14464  ??  I    Fri01PM   0:00.18 /usr/local/bin/php
      dhcpd  27881  0.0  0.6  8448  5968  ??  Ss   12:21AM   0:02.78 /usr/local/sbin/dhcpd -user dhcpd -group _dhcp -chroot /var/dhcpd -cf /etc/dhcpd.conf -pf /var/run/dhcpd.pid re0
      root   31427  0.0  0.2  4584  1944  ??  IN   12:26AM   0:00.34 /usr/local/bin/rrdtool -
      root   31653  0.0  1.4 56784 14464  ??  I    Fri01PM   0:00.16 /usr/local/bin/php
      root   34339  0.0  1.4 56784 14464  ??  I    Fri01PM   0:00.14 /usr/local/bin/php
      root   34678  0.0  2.0 57808 20616  ??  I    Fri01PM   0:00.81 /usr/local/bin/php
      root   34841  0.0  2.0 57808 20532  ??  S    Fri01PM   0:03.45 /usr/local/bin/php
      root   35988  0.0  0.4  8096  3616  ??  Ss    3:27PM   0:00.10 sshd: admin@pts/0 (sshd)
      root   47744  0.0  0.1  3420  1380  ??  Ss   Fri01PM   0:00.18 /usr/sbin/cron -s
      root   59513  0.0  0.1  3328  1324  ??  SNs  12:21AM   0:12.04 /usr/local/sbin/apinger -c /var/etc/apinger.conf
      root   10743  0.0  0.3  5928  2596  v0- S    Fri01PM   0:03.14 /usr/sbin/tcpdump -s 256 -v -l -n -e -ttt -i pflog0
      root   10761  0.0  0.2  3784  1660  v0  Is   Fri01PM   0:00.02 login [pam] (login)
      root   10827  0.0  0.1  3328   908  v0- S    Fri01PM   0:03.14 logger -t pf -p local0.info
      root   10921  0.0  0.1  3708  1464  v0  I    Fri01PM   0:00.01 -sh (sh)
      root   12866  0.0  0.1  3708  1464  v0  I+   Fri01PM   0:00.01 /bin/sh /etc/rc.initial
      root   19573  0.0  0.1  3468  1224   0  R+    3:29PM   0:00.00 ps uxawww
      root   46104  0.0  0.2  3708  1544   0  Is    3:27PM   0:00.01 /bin/sh /etc/rc.initial
      root   52312  0.0  0.2  3736  2320   0  S     3:28PM   0:00.02 /bin/tcsh
      
      

      After i click edit on any ppp interface:

      USER     PID %CPU %MEM   VSZ   RSS  TT  STAT STARTED      TIME COMMAND
      root      11 398.9  0.0     0    32  ??  RL   Fri01PM 6160:17.70 [idle]
      root   18520  0.7  3.0 58832 30460  ??  S    Fri01PM   0:32.33 /usr/local/bin/php
      root       0  0.0  0.0     0    56  ??  DLs  Fri01PM   0:00.30 [kernel]
      root       1  0.0  0.0  1888   492  ??  SLs  Fri01PM   0:00.05 /sbin/init --
      root       2  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.01 [g_event]
      root       3  0.0  0.0     0     8  ??  DL   Fri01PM   0:04.28 [g_up]
      root       4  0.0  0.0     0     8  ??  DL   Fri01PM   0:03.29 [g_down]
      root       5  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.00 [crypto]
      root       6  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.00 [crypto returns]
      root       7  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.00 [sctp_iterator]
      root       8  0.0  0.0     0     8  ??  DL   Fri01PM   0:01.03 [pfpurge]
      root       9  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.00 [xpt_thrd]
      root      10  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.00 [audit]
      root      12  0.0  0.0     0   192  ??  WL   Fri01PM   3:40.74 [intr]
      root      13  0.0  0.0     0    32  ??  DL   Fri01PM   0:02.90 [ng_queue]
      root      14  0.0  0.0     0     8  ??  DL   Fri01PM   0:09.85 [yarrow]
      root      15  0.0  0.0     0   168  ??  DL   Fri01PM   0:23.59 [usb]
      root      16  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.13 [pagedaemon]
      root      17  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.00 [vmdaemon]
      root      18  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.00 [pagezero]
      root      19  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.19 [idlepoll]
      root      20  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.57 [bufdaemon]
      root      21  0.0  0.0     0     8  ??  DL   Fri01PM   0:07.29 [syncer]
      root      22  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.65 [vnlru]
      root      23  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.67 [softdepflush]
      root      39  0.0  0.0     0     8  ??  DL   Fri01PM   0:00.81 [md0]
      root     244  0.0  0.1  3416  1160  ??  SNs  Fri01PM   0:00.09 /usr/local/sbin/check_reload_status
      root     246  0.0  0.1  3416  1004  ??  IN   Fri01PM   0:00.00 check_reload_status: Monitoring daemon of check_reload_status
      root     256  0.0  0.2  3936  2264  ??  Is   Fri01PM   0:00.01 /sbin/devd
      root     953  0.0  0.2  3708  1560  ??  IN   12:21AM   0:10.39 /bin/sh /var/db/rrd/updaterrd.sh
      root    6577  0.0  0.3  5344  3072  ??  Is   Fri01PM   0:00.01 /usr/sbin/sshd
      root    6878  0.0  0.1  3328   988  ??  Is   Fri01PM   0:00.00 /usr/local/bin/minicron 240 /var/run/ping_hosts.pid /usr/local/bin/ping_hosts.sh
      root    7458  0.0  0.1  3328  1036  ??  I    Fri01PM   0:00.11 minicron: helper /usr/local/bin/ping_hosts.sh  (minicron)
      root    7548  0.0  0.1  3328   988  ??  Is   Fri01PM   0:00.00 /usr/local/bin/minicron 3600 /var/run/expire_accounts.pid /etc/rc.expireaccounts
      root    7811  0.0  0.1  3328  1036  ??  I    Fri01PM   0:00.01 minicron: helper /etc/rc.expireaccounts  (minicron)
      root    7948  0.0  0.1  3328   988  ??  Is   Fri01PM   0:00.00 /usr/local/bin/minicron 86400 /var/run/update_alias_url_data.pid /etc/rc.update_alias_url_data
      root    8358  0.0  0.1  3328  1036  ??  I    Fri01PM   0:00.00 minicron: helper /etc/rc.update_alias_url_data  (minicron)
      root   10856  0.0  0.1  4568  1204  ??  Is   Fri01PM   0:00.02 /usr/local/sbin/sshlockout_pf 15
      root   11672  0.0  0.1  3424  1512  ??  INs  12:21AM   0:00.01 ntpd: [priv] (ntpd)
      _ntp   11832  0.0  0.2  3424  1592  ??  IN   12:21AM   0:00.32 ntpd: ntp engine (ntpd)
      root   11840  0.0  0.2  4976  2536  ??  Ss   Fri01PM   0:09.55 /usr/sbin/syslogd -c -c -l /var/dhcpd/var/run/log -f /var/etc/syslog.conf
      _ntp   11854  0.0  0.2  3424  1536  ??  IN   12:21AM   0:00.00 ntpd: dns engine (ntpd)
      root   12432  0.0  0.1  3448  1408  ??  Ss   Fri01PM   0:00.18 /usr/sbin/inetd -wW -R 0 -a 127.0.0.1 /var/etc/inetd.conf
      root   18442  0.0  2.4 58832 24528  ??  S    Fri01PM   0:07.21 /usr/local/bin/php
      root   19758  0.0  0.4  8956  4348  ??  Ss   12:21AM   0:00.86 /usr/local/sbin/mpd5 -b -k -d /var/etc -f mpd_wan.conf -p /var/run/pppoe_wan.pid -s ppp pppoeclient
      root   20507  0.0  0.4  6720  3888  ??  S    Fri01PM   0:03.02 /usr/local/sbin/lighttpd -f /var/etc/lighty-webConfigurator.conf
      root   21100  0.0  1.4 56784 14464  ??  I    Fri01PM   0:00.18 /usr/local/bin/php
      root   23729  0.0  0.1  3328  1112  ??  Is   12:21AM   0:00.00 /usr/local/sbin/dhcpleases -l /var/dhcpd/var/db/dhcpd.leases -d matrix -p /var/run/dnsmasq.pid -h /var/etc/hosts
      root   25210  0.0  0.1  1576   772  ??  IN    3:30PM   0:00.00 sleep 60
      nobody 25264  0.0  0.3  5576  2620  ??  I    12:21AM   0:00.50 /usr/local/sbin/dnsmasq --local-ttl 1 --all-servers --rebind-localhost-ok --stop-dns-rebind --dns-forward-max=5000 --cache-size=10000 --dhcp-hostsfile=/var/etc/hosts
      root   25524  0.0  1.4 56784 14464  ??  I    Fri01PM   0:00.18 /usr/local/bin/php
      dhcpd  27881  0.0  0.6  8448  5968  ??  Ss   12:21AM   0:02.78 /usr/local/sbin/dhcpd -user dhcpd -group _dhcp -chroot /var/dhcpd -cf /etc/dhcpd.conf -pf /var/run/dhcpd.pid re0
      root   31427  0.0  0.2  4584  1944  ??  IN   12:26AM   0:00.34 /usr/local/bin/rrdtool -
      root   31653  0.0  1.4 56784 14464  ??  I    Fri01PM   0:00.16 /usr/local/bin/php
      root   34339  0.0  1.4 56784 14464  ??  I    Fri01PM   0:00.14 /usr/local/bin/php
      root   34678  0.0  2.0 57808 20616  ??  I    Fri01PM   0:00.91 /usr/local/bin/php
      root   34841  0.0  2.0 57808 20532  ??  S    Fri01PM   0:03.85 /usr/local/bin/php
      root   35988  0.0  0.4  8096  3616  ??  Ss    3:27PM   0:00.12 sshd: admin@pts/0 (sshd)
      root   47744  0.0  0.1  3420  1380  ??  Is   Fri01PM   0:00.18 /usr/sbin/cron -s
      root   59513  0.0  0.1  3328  1324  ??  SNs  12:21AM   0:12.07 /usr/local/sbin/apinger -c /var/etc/apinger.conf
      root   10743  0.0  0.3  5928  2596  v0- S    Fri01PM   0:03.14 /usr/sbin/tcpdump -s 256 -v -l -n -e -ttt -i pflog0
      root   10761  0.0  0.2  3784  1660  v0  Is   Fri01PM   0:00.02 login [pam] (login)
      root   10827  0.0  0.1  3328   908  v0- S    Fri01PM   0:03.15 logger -t pf -p local0.info
      root   10921  0.0  0.1  3708  1464  v0  I    Fri01PM   0:00.01 -sh (sh)
      root   12866  0.0  0.1  3708  1464  v0  I+   Fri01PM   0:00.01 /bin/sh /etc/rc.initial
      root   10540  0.0  0.1  3468  1224   0  R+    3:30PM   0:00.00 ps uxawww
      root   46104  0.0  0.2  3708  1544   0  Is    3:27PM   0:00.01 /bin/sh /etc/rc.initial
      root   52312  0.0  0.2  3736  2320   0  S     3:28PM   0:00.02 /bin/tcsh
      
      

      Hope it help :)

      1 Reply Last reply Reply Quote 0
      • J
        jimp Rebel Alliance Developer Netgate
        last edited by May 5, 2012, 3:40 PM

        Nothing appears to be out of the ordinary there, I was expecting to maybe see a spawned shell process that was stuck, but the list is identical (except for a couple things shifted around).

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • D
          Deimos
          last edited by May 5, 2012, 4:55 PM May 5, 2012, 4:52 PM

          Yep i noticed it, but i'm puzzled to see that behaviour on that machine.

          I' will try to install pfsense on a different machine to see the behaviour, since i can't manage to modify my PPP connection at the moment.

          1 Reply Last reply Reply Quote 0
          • D
            Deimos
            last edited by May 6, 2012, 5:51 PM May 6, 2012, 3:32 PM

            Got some news after some tweak / test.

            I fixed the problem by enabling the option "Enable Device Polling" under Networking.

            Was kinda surprised that fix my problem, on the stable release i never had this enabled.

            Hope it helps maybe on the development :)

            Edit:

            Suppose i have 2 PPP connection, PPP1 and PPP2.

            I tried to disable again the Device polling.
            I have on WAN interface PPP1 connection, i want to swap on PPP2.

            After 5 - 10 min i got back to the PC and it have again PPP1, without me changing it.

            I've enabled again Device Polling and it's fine again.

            I'm quite concerned about that behaviour :\

            1 Reply Last reply Reply Quote 0
            • ?
              Guest
              last edited by May 13, 2012, 3:28 PM May 13, 2012, 1:57 PM

              Hm - having similar issues (with Firefox 12) when loading new screens in general -
              Was curious and noticed that reloading the page helped sometimes.

              Also when i do a rude killall php it continues to load the screen, so i think theres a blocking php call.
              But for sure one cant do that when hes saving/applying something.
              Will try the Device polling too and report.  …. Amazing ... is much more responsive - but hangs are still there for me. (on interfaces_ppp_edit for example)  Just to compare - when you issue a

              less /var/log/lighthttp.error.log

              Do you see errors like "Broken Pipe" or "Backend Died" during the time you noticed the hang ?

              1 Reply Last reply Reply Quote 0
              • W
                wallabybob
                last edited by May 13, 2012, 10:04 PM

                I see web GUI hangs when I try to edit PPP Advanced options - see http://forum.pfsense.org/index.php/topic,48499.0.html

                @ThorstenK:

                Just to compare - when you issue a

                less /var/log/lighthttp.error.log

                Do you see errors like "Broken Pipe" or "Backend Died" during the time you noticed the hang ?

                No. Most (all?) pfSense logs are circular logs which should be displayed by the clog utility. On my system the last few lines of the output from clog are:

                2012-05-12 23:55:51: (log.c.166) server started
                2012-05-12 23:56:06: (log.c.166) server started
                clog: ERROR: could not write output (Bad address)

                (It is now 8:03 on 14 May 2012 and in the last 20 minutes I got a seeming hang in the GUI attempting to edit PPP Options.)

                1 Reply Last reply Reply Quote 0
                • J
                  jimp Rebel Alliance Developer Netgate
                  last edited by May 13, 2012, 10:23 PM

                  Try to get a full ps output from when it's working and when it's hung and compare the two. If it is blocking on exec, the command it's running should appear. (Or it might be easier to spot with pstree, pkg_add -r pstree, look for anything that's a child process of a PHP process under lighttpd.)

                  The only thing I can think of that the ppp's page does is that it tries to query 3G modems/serial devices to detect ports that are valid to use. It's possible those probes are failing/blocking for some reason.

                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

                  1 Reply Last reply Reply Quote 0
                  • ?
                    Guest
                    last edited by May 14, 2012, 7:11 AM

                    Hi - looking at pstree during an interfaces_ppp hung showed nothing unusual so i commented out get_modem_devices.
                    Currently the hungs are gone. I will look a bit deeper now.

                    interfaces_ppp_get_modem_devices.png
                    interfaces_ppp_get_modem_devices.png_thumb

                    1 Reply Last reply Reply Quote 0
                    • W
                      wallabybob
                      last edited by May 14, 2012, 1:48 PM

                      @ThorstenK:

                      Hi - looking at pstree during an interfaces_ppp hung showed nothing unusual so i commented out get_modem_devices.
                      Currently the hungs are gone. I will look a bit deeper now.

                      I wonder where the definition of pfSense_get_modem_devices is? I see the reference in /usr/local/www/interfaces_ppps_edit.php

                      1 Reply Last reply Reply Quote 0
                      • ?
                        Guest
                        last edited by May 14, 2012, 2:01 PM May 14, 2012, 1:52 PM

                        oh yeah… currently at the same task tryingto find it.
                        grep gives me much at pfsense_ but no declaration for pfsense_get_modem_devices so i think this is an export from the pfSense php module. (oh double post)

                        1 Reply Last reply Reply Quote 0
                        • J
                          jimp Rebel Alliance Developer Netgate
                          last edited by May 14, 2012, 1:56 PM

                          It's a function in the pfSense PHP module. Some functions, especially those that deal directly with hardware, were put there for optimization.

                          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                          Need help fast? Netgate Global Support!

                          Do not Chat/PM for help!

                          1 Reply Last reply Reply Quote 0
                          • ?
                            Guest
                            last edited by May 14, 2012, 2:12 PM May 14, 2012, 2:06 PM

                            found it
                            https://github.com/bsdperimeter/pfsense-tools/blob/master/pfPorts/php52-pfSense-module/files/pfSense.c
                            Maybe i am able to at least add a timeout in it. Otherway you will see a funny new bug :)

                            1 Reply Last reply Reply Quote 0
                            • J
                              jimp Rebel Alliance Developer Netgate
                              last edited by May 14, 2012, 2:12 PM

                              Yes, it's in the tools repo. It's coded in C and not PHP though.

                              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                              Need help fast? Netgate Global Support!

                              Do not Chat/PM for help!

                              1 Reply Last reply Reply Quote 0
                              • ?
                                Guest
                                last edited by May 14, 2012, 2:50 PM May 14, 2012, 2:46 PM

                                hmm.. Im more into scripting and can hardly read C, but as far i can say, the module has a verbose mode and configureable default timeout of 700 retries.

                                
                                if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|bl", &show_info, &poll_timeout) == FAILURE) {
                                php_printf("Maximum two parameter can be passed\n");
                                
                                
                                if ((nw = poll(&pfd, 1, poll_timeout)) > 0) {..}
                                

                                I tried to activate the verbose (show_info) mode with  pfSense_get_modem_devices(1,300) but didnt see something relevant popping up at the console or in /tmp/phpError.log. i cant find a poll_timeout– so maybe it tries forever.

                                Ill open a bug.

                                1 Reply Last reply Reply Quote 0
                                • W
                                  wallabybob
                                  last edited by May 14, 2012, 3:09 PM

                                  On my pfSense 2.0.1 system:```

                                  $ find / -type f | xargs grep pfSense_get_modem_devices
                                  Binary file /usr/local/lib/php/20060613/pfSense.so matches
                                  /usr/local/www/interfaces_ppps_edit.php: $serialports = pfSense_get_modem_devices();
                                  grep: /var/etc/dyndns_wandnsomaticall.dnsomatic.com.debug: No such file or directory
                                  grep: /cf/conf/dyndns_wandnsomaticall.dnsomatic.com.cache: No such file or directory
                                  $

                                  
                                  On my pfSense 2.1 system:```
                                  
                                  $ find / -type f | xargs grep pfSense_get_modem_devices
                                  Binary file /usr/local/lib/php/20060613/pfSense.so matches
                                  Binary file /usr/local/lib/php/20090626/pfSense.so matches
                                  /usr/local/www/interfaces_ppps_edit.php:				$serialports = pfSense_get_modem_devices();
                                  grep: /var/etc/dyndns_wandnsomaticall.dnsomatic.com.debug: No such file or directory
                                  grep: /cf/conf/dyndns_wandnsomaticall.dnsomatic.com.cache: No such file or directory
                                  $
                                  
                                  

                                  On this system at attempt to edit PPP advanced options on a 3G modem PPP interface hangs. The version of pfSense_get_modem_devices in /usr/local/lib/php/20090626/pfSense.so hangs?

                                  1 Reply Last reply Reply Quote 0
                                  • ?
                                    Guest
                                    last edited by May 14, 2012, 6:55 PM May 14, 2012, 3:23 PM

                                    Yes, commenting out the call to pfsense_get_modem_devices lets the page load.
                                    I opened a bug for version 2.1 http://redmine.pfsense.org/issues/2433

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      dhatz
                                      last edited by Jun 20, 2012, 6:56 PM

                                      @jimp:

                                      Try to get a full ps output from when it's working and when it's hung and compare the two. If it is blocking on exec, the command it's running should appear. (Or it might be easier to spot with pstree, pkg_add -r pstree, look for anything that's a child process of a PHP process under lighttpd.)

                                      Just a quick suggestion, it'd be nice to offer a pstree binary as part of the base system.

                                      1 Reply Last reply Reply Quote 0
                                      • A
                                        allpoints
                                        last edited by Jun 20, 2012, 11:00 PM Jun 20, 2012, 10:34 PM

                                        uname -a
                                        FreeBSD hostname.domain 8.3-RELEASE-p3 FreeBSD 8.3-RELEASE-p3 #1: Thu Jun 14 19:12:21 EDT 2012     root@FreeBSD_8.3_pfSense_2.1.snaps.pfsense.org:/usr/obj./usr/pfSensesrc/src/sys/pfSense_SMP.8  i386
                                        

                                        Clean install from .iso. Big gitsync. Reboot.  Config.xml restored from GUI via FFox static LAN host on bare metal.

                                        1. pfSense up since 6/16

                                        uptime
                                        12:34PM  up 3 days, 15:03, 2 users, load averages: 0.00, 0.09, 0.08
                                        

                                        Everything appears well, except:

                                        ~~2. http://forum.pfsense.org/index.php/topic,50600.0.html
                                        Webconfigurator hasn't shown OPT or IPv6 gateways for at least a couple weeks (2 updates and a restore from clean install to present snapshot). Been ignoring since IPv6 has been working. Config.xml shows OPT & Gateways properly and=backup from 2.1 Full instance that displayed everything properly.

                                        3. Lost IPv6 some time last night. V4 is up.
                                        Can't ping6 out from LAN hosts, or from pfSense…logs strangely quiet...
                                        Decided to reenter OPT1 and assign the v6 gif & gateways from pfSense GUI, so I could: rule the configuration out, solve 2., hopefully start to see IPv6 info properly through GUI, use the forced config changes to flush.

                                        IPv6 now works.
                                        But either the GUI is down, or I'm locked out. I can't raise GUI via IP or domain name, although I did get a cert warning from Firefox 13, once. Page never loads.

                                        I have ssh/sftp to pfSense via domain name, but "Restart Webconfigurator" doesn't result in a page load on any host on the LAN.

                                        Any suggestions what needs to be restarted? Don't want to reboot.~~

                                        EDIT: GUI no longer hangs. Solved by gitsync (or php_ini reload). GUI loads quickly, displays everything.
                                        If IPv6 fails again, I'll post under a different topic.

                                        1 Reply Last reply Reply Quote 0
                                        • B
                                          bkraptor
                                          last edited by Nov 19, 2012, 10:47 PM

                                          Has there been any progress on this bug? I want to add a PPP interface and can not do it because the WebConfigurator hangs.

                                          2.1-BETA0 (amd64)
                                          built on Mon Nov 19 04:44:07 EST 2012
                                          FreeBSD 8.3-RELEASE-p4

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received