Please login or register.

Login with username, password and session length
Pages: [1] 2 3

Author Topic: HomeGenie no longer works  (Read 7929 times)

dkbialik

  • Sr. Member
  • ****
  • Helpful Post Rating: 1
  • Posts: 148
HomeGenie no longer works
« on: December 22, 2019, 12:50:08 AM »

I had a power outage.  When things came back, HA Bridge comes up and is able to be accessed but not Homegenie.  Of course I was planning on backing up my sd card today but that did not happen.  Is there a way to reinstall or restore Homegenie?  I was looking through the forum for the extensive help you gave and could not find it.
Logged

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10514
  • I don't work for X10, I use it successfuly!
Re: HomeGenie no longer works
« Reply #1 on: December 22, 2019, 08:16:30 AM »

Sometimes on a hard reset (power outage ,blip...) HG will move to the next port so If you had been using port 8080 try 8081
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

petera

  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 27
  • Posts: 1751
Re: HomeGenie no longer works
« Reply #2 on: December 22, 2019, 09:09:32 AM »

In a PuTTY session use either of these commands to see what port HG is listening on

sudo ss -tulw
sudo ss -tulwn

Alternatively using the brute force method try ports in the range of 8080-8090 to see what port HG has started on. HG usually changes ports when the plug is pulled or in your case a power break occurs while the HG configuration file is still opened. When HG is restarted it sees it's previous port in use so assigns the next available port incrementally. In some cases if port 80 is available it will default to that one. If you do discover what port HG is running on ensure you amend the settings in HA Bridge to reflect this.

Don't assume that HG is broken because it doesn't start immediately.
Logged

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10514
  • I don't work for X10, I use it successfuly!
Re: HomeGenie no longer works
« Reply #3 on: December 22, 2019, 09:36:09 AM »

Also check to see if HG service is running: sudo systemctl status homegenie.service
if it is stopped or failed try to restart it:  sudo systemctl start homegenie.service
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

dkbialik

  • Sr. Member
  • ****
  • Helpful Post Rating: 1
  • Posts: 148
Re: HomeGenie no longer works
« Reply #4 on: December 22, 2019, 11:32:45 AM »

It looks like 8080 as it has been
Logged

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10514
  • I don't work for X10, I use it successfuly!
Re: HomeGenie no longer works
« Reply #5 on: December 22, 2019, 11:52:35 AM »

status shows service dead exit it with ctl c then type sudo systemctl start homegenie.service
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

dkbialik

  • Sr. Member
  • ****
  • Helpful Post Rating: 1
  • Posts: 148
Re: HomeGenie no longer works
« Reply #6 on: December 22, 2019, 11:59:16 AM »

Web page is still not coming up
Logged

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10514
  • I don't work for X10, I use it successfuly!
Re: HomeGenie no longer works
« Reply #7 on: December 22, 2019, 12:28:52 PM »

Ok now it shows service is active but exited. ::) :' try a reboot: sudo reboot
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

dkbialik

  • Sr. Member
  • ****
  • Helpful Post Rating: 1
  • Posts: 148
Re: HomeGenie no longer works
« Reply #8 on: December 22, 2019, 12:43:17 PM »

No change
Logged

petera

  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 27
  • Posts: 1751
Re: HomeGenie no longer works
« Reply #9 on: December 22, 2019, 02:16:02 PM »

No change

If you follow the procedure you used to troubleshoot your HA Bridge you should get this working but just to recap

Type the following

cd

sudo systemctl stop homegenie.service

cd /etc/systemd/system

ls

and screencap and post the output


Logged

petera

  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 27
  • Posts: 1751
Re: HomeGenie no longer works
« Reply #10 on: December 22, 2019, 03:41:53 PM »

Maybe @Tuicemen could post the path for WorkingDirectory and ExecStart.

In the meantime it looks like your init.d file may be corrupted. Since Raspbian Jessie,  init.d is not used to launch a service. Systemd is now the standard way to launch a service for the reason that is so simple to create and maintain.

Below is a sample Systemd file to launch the Homegenie service. You will need to adjust the paths of WorkingDirectory and ExecStart to reflect where your copy of HG is installed. If you want to reply back before you start work on what I have set out below it might be easier for you.

What you need to do is stop the current init.d service, disable it and create a new HG service and launch it. You will name the new service as homegenie1.service

cd

sudo systemctl stop homegenie.service

sudo systemctl disable homegenie.service

Now you create the new service called homegenie1.service

cd

sudo nano /etc/systemd/system/homegenie1.service

Now copy/paste the following lines below adjusting the paths as I mentioned above as soon Mr T supplies them. As soon as you finish press ctrl-x keys followed by the key y and press return.



[Unit]
Description=Homegenie Server
After=network.target

[Service]
WorkingDirectory=/home/pi/homegenie
ExecStart=/usr/bin/mono /home/pi/homegenie/HomeGenie.exe --log
Restart=always

[Install]
WantedBy=multi-user.target

Now you need to enable the new service you just created and start it.

cd

sudo systemctl enable homegenie1.service

sudo systemctl start homegenie1.service

To check your service is running type

sudo systemctl status homegenie1.service

Could you screen cap the output of the last command and post it.

« Last Edit: December 22, 2019, 03:45:03 PM by petera »
Logged

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10514
  • I don't work for X10, I use it successfuly!
Re: HomeGenie no longer works
« Reply #11 on: December 22, 2019, 03:52:26 PM »

The working directory would depend on if the installer was used or the tar file.
Working directory from installer I believe is /usr/local/bin/homegenie
I don't remember if the installer was used in the construction of the PiX10Hub but believe it was. so exe would be usr/local/bin/homegenie/HomeGenie.exe
if the Buster OS is in use then the working directory should be that of the tar install
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

dkbialik

  • Sr. Member
  • ****
  • Helpful Post Rating: 1
  • Posts: 148
Re: HomeGenie no longer works
« Reply #12 on: December 22, 2019, 04:12:17 PM »

Here is the screen capture from Peter's post
Logged

petera

  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 27
  • Posts: 1751
Re: HomeGenie no longer works
« Reply #13 on: December 22, 2019, 04:12:57 PM »

I'm assuming from what I read the OP installed via your hub so what path does HG end up in.
Logged

dkbialik

  • Sr. Member
  • ****
  • Helpful Post Rating: 1
  • Posts: 148
Re: HomeGenie no longer works
« Reply #14 on: December 22, 2019, 04:16:04 PM »

I am not sure.
Logged
Pages: [1] 2 3
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.