Announcement

Collapse
No announcement yet.

find.homeseer.com no maintenance link

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

    find.homeseer.com no maintenance link

    I am trying to updated my raspberry pi hs3. I have updated the software to 551. When I go to find.homeseer.com I have a link to the homeseer system but no maintenance link. What am I doing wrong?

    rkshack

    #2
    Anyone, Anyone.

    Comment


      #3
      Check for a script at /usr/local/HomeSeer/register_with_find.sh. Make sure it it set to be executable (note 1st field shown below has three 'x' characters). Also make sure the size (4th field) isn't zero.

      Code:
      $ ls -l register_with_find.sh
      [COLOR=#e74c3c]-rwxr-xr-x [/COLOR]1 root root [COLOR=#e74c3c]488 [/COLOR]Feb 2 2018 register_with_find.sh
      Code:
      pi@HS3Pi:/usr/local/HomeSeer $ more register_with_find.sh
      #!/bin/bash
      host=`/bin/hostname`
      ip=`ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1  -d'/'`
      wanip=`wget http://checkip.homeseer.com:8245 -q -O -`
      re="[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}"
      if [[ $wanip =~ $re ]]; then
          wanip=${BASH_REMATCH[0]}
      fi
      
      while [[ $x -le 5 ]]
      do
      x=$(( $x + 1 ))
      sleep 5
      done
      
      url=http://find.homeseer.com/findhomeseer/default.aspx?srcip=$wanip\&localip=$ip\&machine=$host\&tools=true\&port=911
      sudo wget $url --spider -q -O -

      Comment


        #4
        Hi, I'm having the same problem with HS3 on Ubuntu 20.04. I have tried editing the register_with_find.sh file with the above code and it still doesn't display the Maintenance link. The file is executable by all and file size is not zero. Any suggestions?

        Comment


          #5
          Originally posted by Twinlead View Post
          Hi, I'm having the same problem with HS3 on Ubuntu 20.04. I have tried editing the register_with_find.sh file with the above code and it still doesn't display the Maintenance link. The file is executable by all and file size is not zero. Any suggestions?
          The Maintenance App is targeted towards the HSPi and the SEL platforms. Not necessarily applicable to a generic Ubuntu install.​

          Components of the app are

          1) register_with_find.sh script discussed above
          2) crontab in /etc/cron.d folder that runs register_with_find.sh every five minutes
          3) lighttpd web server, running on port 911
          4) Custom PHP pages and scripts (installed under web server root /var/www)

          With the first two in place, the Maintenance link appears on the find.homeseer page. The link won't work unless the web server is running.

          Comment


            #6
            Thank you very much zwolfpack, the cron jobs that are in my original HomeTroller build are not on the newly built system. I'll add them and guessing it'll take care of my problems

            Comment


              #7
              Hi again! All the files on the working machine have been copied to the newly built system. It turns out that when I installed the requisite applications I missed lighttpd. So that has been installed and the config file from the working machine copied to the new machine ensuring the path for HomeSeer is correct and the maintenance link is still not showing up.
              It's probably something I either did incorrectly or didn't do...
              Any other thoughts would be appreciated.

              Comment


                #8
                As I stated, what's required for the maintenance link to appear is the register_with_find.sh script (included in the HSx-Linux distributions), plus a cron config file in /etc/cron.d/.

                - what are the contents of your cron config file?
                - does the main server show up on the find.homeseer page?

                If the maintenance link appears on find.homeseer but doesn't work properly, look at the lighttpd configuration.

                Comment


                  #9
                  Thank you for the quick response!
                  The register_with_find.sh script is in the HomeSeer directory and has the content you show above but modified the first line since this is a linux on x86 platform to the following:

                  homeseer@HomeTrollerSELv3:/usr/local/HomeSeer $ more register_with_find.sh
                  #!/bin/bash
                  host=`/bin/hostname`
                  ip=`ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/'`
                  wanip=`wget http://checkip.homeseer.com:8245 -q -O -`
                  re="[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}"
                  if [[ $wanip =~ $re ]]; then
                  wanip=${BASH_REMATCH[0]}
                  fi

                  while [[ $x -le 5 ]]
                  do
                  x=$(( $x + 1 ))
                  sleep 5
                  done

                  url=http://find.homeseer.com/findhomeseer/default.aspx?srcip=$wanip\&localip=$ip\&machine=$host\&tools =true\&port=911
                  sudo wget $url --spider -q -O -

                  The permissions for register_with_find.sh are:
                  -rwxr-xr-x 1 root root 1038 Nov 15 22:12 register_with_find.sh

                  The contents of the cron config file are:
                  cat /etc/cron.d/find are:
                  */5 * * * * root /usr/local/HomeSeer/register_with_find.sh

                  Yes the server name appears on find.homeseer.com but not the Maintenance link

                  After first installing lighttpd the test page showed when I selected the HomeTrollerSELv3 from the find.homeseer.com page

                  Comment


                    #10
                    Make sure /etc/cron.d/find is also owned by root:root. Permissions should be 644 (-rw-r--r--)

                    Test register_with_find.sh by running it manually. At the Linux command prompt, run
                    Code:
                    /usr/local/HomeSeer/register_with_find.sh
                    See if this reveals any errors. If nothing obvious, post results, except redact the WAN address.

                    After first installing lighttpd the test page showed when I selected the HomeTrollerSELv3 from the find.homeseer.com page
                    You need to modify the lighttpd configuration file, /etc/lighttpd/lighttpd.conf

                    Set
                    Code:
                    server.document-root  = "/var/www"
                    
                    server.port = 911
                    Guessing on the document root. I'm going by memory and its been a long time since I looked at this.

                    Comment


                      #11
                      Hello and thank you again!
                      Although I don't understand why it would help, I changed the permissions on /etc/cron.d from -rw-rw-r-- to -rw-r--r--

                      Checking the /etc/lighttpd/lighttpd.conf, the server.document-root = "/var/www" and server.port = 911 were in the file along with other contents.
                      I think my comment about lighttpd may have been confusing. When I first tested lighttpd after installing it I got the the test page, however after copying the contents of lighttpd from my working machine to the new one I no longer saw the test page.

                      When I ran register_with_find.sh from the command line I got the following:
                      register_with_find.sh: 1: homeseer@HomeTrollerSELv3:/usr/local/HomeSeer: not found
                      register_with_find.sh: 7: [[: not found
                      register_with_find.sh: 11: [[: not found

                      Comment


                        #12
                        OK, I see where you got confused. Back in post no. 3, in the code section, the first line is showing the command to display the script. The actual script file contents starts on the second line: "#!/bin/bash" ...

                        You shouldn't need to modify that file beyond what is provided in the installation tar file.

                        Comment


                          #13
                          Thank you for the clarification.
                          I forgot to mention that etc/cron.d/find is owned by root:root
                          I removed the first line from user/local/HomeSeer/register_with_find.sh and executed it but still get:
                          register_with_find.sh: 7: [[: not found
                          register_with_find.sh: 11: [[: not found​

                          Comment


                            #14
                            Looks like the file is still messed up. That error message indicates it's running under the /bin/sh shell rather than /bin/bash. This is a clue that the first line isn't '#!/bin/bash'. And in the "[[" operators should be on lines 6 and 10, not on 7 and 11. Perhaps you have a blank line at the beginning of the file?

                            If all else fails, you can reinstall the file from the distribution.

                            Comment


                              #15
                              Ok, I don't get it, but I copied the file from my working HS3 system and it's working fine. Although I see no differences, I noticed that the file sizes are different between the two.
                              Thank you very much for the help!!

                              Comment

                              Working...
                              X