Announcement

Collapse
No announcement yet.

Z-Net not reconnecting after disconnect - Solved!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #91
    Here I'm running seven V.1 Z-Nets on firmware .17
    No Upgrade button

    Two of them at a remote site lost connectivity today and we had about 2 hours of chatter in the log before they successfully reconnected.

    Been to the help desk and not getting much back from them.

    Will there be a solution ???
    Blair

    HomeSeer: HS3 Pro | Blue-Iris 4 on Windows10Pro
    | Devices: 832 | Events: 211 |
    Plug-Ins: Z-Wave | RFXCOM | UltraRachio3 | Sonos
    BLLAN | BLLOCK | NetCAM | Global Cache Pro | Blue-Iris4

    Comment


      #92
      Originally posted by zwolfpack View Post
      Not promising. However, ifplugd must be at least partially installed, as you previously confirmed existence of directory /etc/ifplugd/action.d

      If you can, try a similar search for ifplugd that you did for ser2net previously.
      The search came up with nothing. In /etc/ifplugd/action.d there are two files. Your znetdown and action_wpa.
      HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

      Comment


        #93
        Originally posted by rprade View Post
        The search came up with nothing. In /etc/ifplugd/action.d there are two files. Your znetdown and action_wpa.
        Well that about does it ... unless you want to be brave and install it yourself :

        https://raamdev.com/2009/a-script-to...ugd-on-debian/

        Comment


          #94
          Originally posted by BlairG View Post
          Here I'm running seven V.1 Z-Nets on firmware .17
          No Upgrade button
          To get the upgrade button, the Z-NET needs to be able to contact the Homeseer.com mothership. This is the same channel as the find.homeseer.com service uses. Do your Z-NET's show up there, and are the 'Last seen' entries current?
          Originally posted by BlairG View Post
          Will there be a solution ???
          We've got our commando fix working for the v1; we've stuck out on the v2 so far.

          Comment


            #95
            Originally posted by zwolfpack View Post
            Well that about does it ... unless you want to be brave and install it yourself :

            https://raamdev.com/2009/a-script-to...ugd-on-debian/
            If you want to devote the time to walking me through it, I don't mind.

            I have notched the back of all of my Z-Nets and keep a spare imaged flash card attached to the side of each of them, so disaster recovery is a 30 second expense.

            I also have a full v2 SD image on my server, if you want a link to download it I can send it to you by PM. Its 4gb but the connection is fast, so it will take a minute or two to download.
            HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

            Comment


              #96
              Originally posted by BlairG View Post
              Here I'm running seven V.1 Z-Nets on firmware .17
              No Upgrade button

              Two of them at a remote site lost connectivity today and we had about 2 hours of chatter in the log before they successfully reconnected.

              Been to the help desk and not getting much back from them.

              Will there be a solution ???
              David's "commando" solution works very well on the v1 Z-Net. See post #50 above.
              HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

              Comment


                #97
                Originally posted by rprade View Post
                If you want to devote the time to walking me through it, I don't mind.

                I have notched the back of all of my Z-Nets and keep a spare imaged flash card attached to the side of each of them, so disaster recovery is a 30 second expense.

                I also have a full v2 SD image on my server, if you want a link to download it I can send it to you by PM. Its 4gb but the connection is fast, so it will take a minute or two to download.
                I'd be glad to try, with the disclaimer that package installation is new to me. I have fair UNIX/Linux experience, but my R-Pi exposure is limited to the past two weeks since I got the Z-NET password. But Google is my friend!

                That being said, since you wisely (unlike me) have backups, here's what I suggest:

                $ sudo apt-get update
                $ sudo apt-get install ifplugd

                1st line updates the package database with the latest & greatest
                2nd line installs the package

                If that works, edit the file /etc/default/ifplugd with the same contents from the v1, which minus the comments is:
                Code:
                INTERFACES="auto"
                HOTPLUG_INTERFACES="all"
                ARGS="-q -f -u0 -d10 -w -I"
                SUSPEND_ACTION="stop"
                then
                $ sudo service ifplugd start

                Thanks for the link - got the image. I'm not sure how to read it on my Windows box, but sure I'll figure it out!

                Comment


                  #98
                  Originally posted by zwolfpack View Post
                  I'd be glad to try, with the disclaimer that package installation is new to me. I have fair UNIX/Linux experience, but my R-Pi exposure is limited to the past two weeks since I got the Z-NET password. But Google is my friend!

                  That being said, since you wisely (unlike me) have backups, here's what I suggest:

                  $ sudo apt-get update
                  $ sudo apt-get install ifplugd

                  1st line updates the package database with the latest & greatest
                  2nd line installs the package

                  If that works, edit the file /etc/default/ifplugd with the same contents from the v1, which minus the comments is:
                  Code:
                  INTERFACES="auto"
                  HOTPLUG_INTERFACES="all"
                  ARGS="-q -f -u0 -d10 -w -I"
                  SUSPEND_ACTION="stop"
                  then
                  $ sudo service ifplugd start

                  Thanks for the link - got the image. I'm not sure how to read it on my Windows box, but sure I'll figure it out!
                  You can burn that image to an SD card with win32diskimager and plug it in a Pi or Z-Net.

                  I'll try what you suggested above later today.
                  HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

                  Comment


                    #99
                    Originally posted by zwolfpack View Post
                    I'd be glad to try, with the disclaimer that package installation is new to me. I have fair UNIX/Linux experience, but my R-Pi exposure is limited to the past two weeks since I got the Z-NET password. But Google is my friend!

                    That being said, since you wisely (unlike me) have backups, here's what I suggest:

                    $ sudo apt-get update
                    $ sudo apt-get install ifplugd

                    1st line updates the package database with the latest & greatest
                    2nd line installs the package

                    If that works, edit the file /etc/default/ifplugd with the same contents from the v1, which minus the comments is:
                    Code:
                    INTERFACES="auto"
                    HOTPLUG_INTERFACES="all"
                    ARGS="-q -f -u0 -d10 -w -I"
                    SUSPEND_ACTION="stop"
                    then
                    $ sudo service ifplugd start

                    Thanks for the link - got the image. I'm not sure how to read it on my Windows box, but sure I'll figure it out!
                    Here are the sessions
                    Code:
                    login as: homeseer
                    homeseer@192.168.2.5's password:
                    
                    The programs included with the Debian GNU/Linux system are free software;
                    the exact distribution terms for each program are described in the
                    individual files in /usr/share/doc/*/copyright.
                    
                    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
                    permitted by applicable law.
                    homeseer@Z-Net-Primary:~ $ sudo apt-get update
                    Get:1 http://archive.raspberrypi.org jessie InRelease [13.2 kB]
                    Get:2 http://mirrordirector.raspbian.org jessie InRelease [14.9 kB]
                    Get:3 http://archive.raspberrypi.org jessie/main armhf Packages [144 kB]
                    Get:4 http://mirrordirector.raspbian.org jessie/main armhf Packages [8,981 kB]
                    Hit http://archive.raspberrypi.org jessie/ui armhf Packages
                    Ign http://archive.raspberrypi.org jessie/main Translation-en_US
                    Ign http://archive.raspberrypi.org jessie/main Translation-en
                    Ign http://archive.raspberrypi.org jessie/ui Translation-en_US
                    Ign http://archive.raspberrypi.org jessie/ui Translation-en
                    Get:5 http://mirrordirector.raspbian.org jessie/contrib armhf Packages [37.5 kB]
                    Get:6 http://mirrordirector.raspbian.org jessie/non-free armhf Packages [70.3 kB]
                    Get:7 http://mirrordirector.raspbian.org jessie/rpi armhf Packages [1,356 B]
                    Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_US
                    Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
                    Ign http://mirrordirector.raspbian.org jessie/main Translation-en_US
                    Ign http://mirrordirector.raspbian.org jessie/main Translation-en
                    Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_US
                    Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
                    Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_US
                    Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
                    Fetched 9,263 kB in 40s (228 kB/s)
                    Reading package lists... Done
                    homeseer@Z-Net-Primary:~ $ sudo apt-get install ifplugd
                    Reading package lists... Done
                    Building dependency tree
                    Reading state information... Done
                    The following NEW packages will be installed:
                      ifplugd
                    0 upgraded, 1 newly installed, 0 to remove and 23 not upgraded.
                    Need to get 70.0 kB of archives.
                    After this operation, 264 kB of additional disk space will be used.
                    Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main ifplugd armhf 0.28-19 [70.0 kB]
                    Fetched 70.0 kB in 0s (84.7 kB/s)
                    Preconfiguring packages ...
                    Selecting previously unselected package ifplugd.
                    (Reading database ... 31443 files and directories currently installed.)
                    Preparing to unpack .../ifplugd_0.28-19_armhf.deb ...
                    Unpacking ifplugd (0.28-19) ...
                    Processing triggers for man-db (2.7.0.2-5) ...
                    Processing triggers for systemd (215-17+deb8u4) ...
                    Setting up ifplugd (0.28-19) ...
                    Processing triggers for systemd (215-17+deb8u4) ...
                    homeseer@Z-Net-Primary:~ $
                    edited /etc/default/ifplugd file
                    all I did was to add "auto" and "all" to the first two lines

                    Code:
                    # This file may be changed either manually or by running dpkg-reconfigure.
                    #
                    # N.B.: dpkg-reconfigure deletes everything from this file except for
                    # the assignments to variables INTERFACES, HOTPLUG_INTERFACES, ARGS and
                    # SUSPEND_ACTION.  When run it uses the current values of those variables
                    # as their default values, thus preserving the administrator's changes.
                    #
                    # This file is sourced by both the init script /etc/init.d/ifplugd and
                    # the udev script /lib/udev/ifplugd.agent to give default values.
                    # The init script starts ifplugd for all interfaces listed in
                    # INTERFACES, and the udev script starts ifplugd for all interfaces
                    # listed in HOTPLUG_INTERFACES. The special value all starts one
                    # ifplugd for all interfaces being present.
                    INTERFACES="auto"
                    HOTPLUG_INTERFACES="all"
                    ARGS="-q -f -u0 -d10 -w -I"
                    SUSPEND_ACTION="stop"
                    Code:
                    The programs included with the Debian GNU/Linux system are free software;
                    the exact distribution terms for each program are described in the
                    individual files in /usr/share/doc/*/copyright.
                    
                    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
                    permitted by applicable law.
                    homeseer@Z-Net-Primary:~ $ sudo service ifplugd start
                    homeseer@Z-Net-Primary:~ $ service ifplugd status
                     ifplugd.service - LSB: Brings up/down network automatically
                       Loaded: loaded (/etc/init.d/ifplugd)
                       Active: active (running) since Sun 2016-08-14 11:21:07 EDT; 7min ago
                      Process: 11331 ExecStart=/etc/init.d/ifplugd start (code=exited, status=0/SUCCESS)
                       CGroup: /system.slice/ifplugd.service
                               11344 /usr/sbin/ifplugd -i eth0 -q -f -u0 -d10 -w -I
                    homeseer@Z-Net-Primary:~ $
                    It all looks good and the Z-Net is still working Is there anything else I need to do?
                    HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

                    Comment


                      Wow, thats great! Just verify it's running with

                      $ service ifplugd status

                      [....] eth0: ifplugd process for device eth0 running as pid 1341.
                      [info] all: device all is either not present or not functional.

                      Verify that the patch file /etc/ifplugd/action.d/znetdown didn't get clobbered; if so, reinstall the patch. Then test!

                      Comment


                        Originally posted by zwolfpack View Post
                        Wow, thats great! Just verify it's running with

                        $ service ifplugd status

                        [....] eth0: ifplugd process for device eth0 running as pid 1341.
                        [info] all: device all is either not present or not functional.

                        Verify that the patch file /etc/ifplugd/action.d/znetdown didn't get clobbered; if so, reinstall the patch. Then test!
                        If you look at the last session above, I did that just after starting the service. It returned different information than you show.

                        /etc/ifplugd/action.d/znetdown is in place and looks correct.
                        HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

                        Comment


                          Making good progress in getting the patch running on znetv2, thanks to Randy's patience. Decided to post a 'beta' r4 of the patch here since can't post attachments via PM. Will update original post #50 once confirmed.

                          Edit: patch r4 removed. Ran into problems on znetv2. See post #50 for patch r3 that will work on znet v1 only.
                          Last edited by zwolfpack; August 17, 2016, 02:32 AM. Reason: patch r4 removed

                          Comment


                            Originally posted by zwolfpack View Post
                            To get the upgrade button, the Z-NET needs to be able to contact the Homeseer.com mothership. This is the same channel as the find.homeseer.com service uses. Do your Z-NET's show up there, and are the 'Last seen' entries current?
                            All seven of the Ver.1 Z-nets are behind a thick firewall, I'm lucky that I can see just the HS server with find.homeseer.

                            In addition all of them are in cabinetry or above ceiling tiles, several of them are a few miles from the S6 server.

                            My experience with Linux is about like Randy, as such I'm not so keen going around upgrading them all, signing the disclaimer and all.

                            Has Rich still been working on an official solution?
                            Blair

                            HomeSeer: HS3 Pro | Blue-Iris 4 on Windows10Pro
                            | Devices: 832 | Events: 211 |
                            Plug-Ins: Z-Wave | RFXCOM | UltraRachio3 | Sonos
                            BLLAN | BLLOCK | NetCAM | Global Cache Pro | Blue-Iris4

                            Comment


                              .20 firmware update making problem worse

                              Since I've upgraded my Z-net V2 to .20, the problem seems to have gotten worse for me. I used to have one of these disconnecting errors once every couple of days, since the upgrade I have 3 a day. I am using the log monitor to send a reboot to the Z-net after 3 of those errors, which reconnects it in a couple of minutes, but its still not ideal...
                              I would like to look into zwolfpacks solution, but do not feel comfortable applying it as my experience with ssh and Linux is failry limited. Is Rich still working on this ? If not I might have to look into how to apply zwolfpacks patch, and how to remove it if it doesn't work.

                              Comment


                                The posted solution is no good in that it only handles a link going down, and it does not handle other network issues like loss of Internet, or loss of WIFI.

                                With the version .20, can you unplug the cable then wait and see if the LED goes RED in about 60 seconds, then re-connect the cable and see if it reconnects.

                                With all my testing here is always re-connects, I don't understand why this fix will not work, I would need to see more logs.

                                Make sure you are running the latest Z-Wave plugin as there are some re-connect fixes there also.

                                Originally posted by mikee123 View Post
                                Since I've upgraded my Z-net V2 to .20, the problem seems to have gotten worse for me. I used to have one of these disconnecting errors once every couple of days, since the upgrade I have 3 a day. I am using the log monitor to send a reboot to the Z-net after 3 of those errors, which reconnects it in a couple of minutes, but its still not ideal...
                                I would like to look into zwolfpacks solution, but do not feel comfortable applying it as my experience with ssh and Linux is failry limited. Is Rich still working on this ? If not I might have to look into how to apply zwolfpacks patch, and how to remove it if it doesn't work.
                                💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

                                Comment

                                Working...
                                X