Please login or register.

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

Author Topic: HG email not sending  (Read 9786 times)

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10509
  • I don't work for X10, I use it successfuly!
Re: HG email not sending
« Reply #15 on: March 11, 2019, 02:54:40 PM »

ok error may be the result of just not finding a file. I thought this was the version I had used but I may have another copy somewhere let me check. Check to see if HG is still installed or if it is now on version 1.2-stable.30
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

mike

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 1057
Re: HG email not sending
« Reply #16 on: March 11, 2019, 02:56:56 PM »

searching for homegenie.service...

I found it so far here:

var/run/systemd/generator.late   

still searching for another cc...
Logged

mike

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 1057
Re: HG email not sending
« Reply #17 on: March 11, 2019, 03:00:40 PM »

ok, changed to that directory in your Revert.  Goes further before crashing:

pi@X10Hub:~ $ sh Revert
homegenie.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable homegenie
rm: cannot remove '/var/run/systemd/generator.late/system/homegenie.service': No such file or directory
(Reading database ... 52406 files and directories currently installed.)
Removing homegenie (1.2-stable.26) ...
[ ok ] Stopping homegenie (via systemctl): homegenie.service.
dpkg: warning: while removing homegenie, directory '/usr/local/bin/homegenie/lib/mig' not empty so not removed
dpkg: warning: while removing homegenie, directory '/usr/local/bin/homegenie/programs' not empty so not removed
dpkg: warning: while removing homegenie, directory '/usr/local/bin/homegenie/html/images/wallpapers' not empty so not removed
Revert: 10: Revert: Syntax error: "else" unexpected (expecting "then")
Logged

mike

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 1057
Re: HG email not sending
« Reply #18 on: March 11, 2019, 03:02:30 PM »

my bad;  missed a subdirectory name...  trying again
Logged

mike

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 1057
Re: HG email not sending
« Reply #19 on: March 11, 2019, 03:05:20 PM »

pi@X10Hub:~ $ sh Revert
Warning: homegenie.service changed on disk. Run 'systemctl daemon-reload' to reload units.
rm: cannot remove '/var/run/systemd/generator.late/homegenie.service': No such file or directory
dpkg: warning: ignoring request to remove homegenie which isn't installed
Revert: 10: Revert: Syntax error: "else" unexpected (expecting "then")


hmmm..   homegenie.service is there...
Logged

mike

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 1057
Re: HG email not sending
« Reply #20 on: March 11, 2019, 03:06:58 PM »

not my day.

pi@X10Hub:~ $ systemctl daemon-reload
==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ===
Authentication is required to reload the systemd state.
Authenticating as: root
Password:
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
==== AUTHENTICATION FAILED ===
Failed to reload daemon: Access denied
pi@X10Hub:~ $ systemctl daemon-reload
==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ===
Authentication is required to reload the systemd state.
Authenticating as: root
Password:
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
==== AUTHENTICATION FAILED ===
Failed to reload daemon: Access denied
Logged

mike

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 1057
Re: HG email not sending
« Reply #21 on: March 11, 2019, 03:08:27 PM »

ok error may be the result of just not finding a file. I thought this was the version I had used but I may have another copy somewhere let me check. Check to see if HG is still installed or if it is now on version 1.2-stable.30

BTW, after not getting anywhere with allowing me to change options (email account data), I tried updating to latest, so this HG is on stable.38 if that matters.

And I just checked, and this pi is still happily running HG on my system.
Logged

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10509
  • I don't work for X10, I use it successfuly!
Re: HG email not sending
« Reply #22 on: March 11, 2019, 03:08:45 PM »

Ok looks like that Revert file was from my beta test stop running it. you most likely have HG removed check to see.
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10509
  • I don't work for X10, I use it successfuly!
Re: HG email not sending
« Reply #23 on: March 11, 2019, 03:09:40 PM »

HG version your reverting from makes no difference.
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

mike

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 1057
Re: HG email not sending
« Reply #24 on: March 11, 2019, 03:12:27 PM »

I assume it was still running as it switched pages from dashboard to the funny lites page;  may have been in cache tho as now with a refresh HG seems gone, yet.
Logged

mike

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 1057
Re: HG email not sending
« Reply #25 on: March 11, 2019, 03:13:15 PM »

so now I go find your posts of how to install HG?  nevewrmind.  just looked at Revert text;  I can run the stuff there now.

will let you kow.  THANKS!
Logged

mike

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 1057
Re: HG email not sending
« Reply #26 on: March 11, 2019, 03:17:51 PM »

wierd:

pi@X10Hub:~ $ sudo rm -r /usr/local/bin/homegenie
rm: cannot remove '/usr/local/bin/homegenie': No such file or directory

I am staring at that directory in WinSCP right now...

again, nevermind;  winSCP is not good at refreshing.  directory is gone.   one to reinstalling...
« Last Edit: March 11, 2019, 03:19:33 PM by mike »
Logged

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10509
  • I don't work for X10, I use it successfuly!
Re: HG email not sending
« Reply #27 on: March 11, 2019, 03:20:07 PM »

why do you have owner as 2000?
where are you seeing that?
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10509
  • I don't work for X10, I use it successfuly!
Re: HG email not sending
« Reply #28 on: March 11, 2019, 03:25:43 PM »

I think part of the issue may have been the script was made in Windows  as it was on my Windows PC and it may have some hidden characters which throws errors. at least you've got HG uninstalled and you can reinstall I'll work at fixing the script.
 >!
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

mike

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 1057
Re: HG email not sending
« Reply #29 on: March 11, 2019, 03:31:07 PM »

no, your script is fine:

#!bin/bash
#this reverts HG back to the homegenie_1.2-stable.34 build
cd
sudo systemctl stop homegenie.service
sudo systemctl disable homegenie.service
sudo rm -r /var/run/systemd/generator.late/homegenie.service
sudo dpkg --remove homegenie
if [ -f homegenie/HomeGenie.exe ] then
sudo rm -r homegenie
else
sudo rm -r /usr/local/bin/homegenie
fi
sudo wget https://github.com/genielabs/HomeGenie/releases/download/v1.2-stable.34/homegenie_1.2-stable.34_all.deb
sudo gdebi homegenie_1.2-stable.34_all.deb
echo " HomeGenie 1.2-stable.34 is now installed please reboot"


I just tried to reinstall and failed miserably:

pi@X10Hub:/usr/local/bin $ pi@X10Hub:~ $ fi
-bash: pi@X10Hub:~: command not found
pi@X10Hub:/usr/local/bin $ -bash: syntax error near unexpected token `fi'
> pi@X10Hub:~ $ cd /usr
> pi@X10Hub:/usr $ cd local/bin
> pi@X10Hub:/usr/local/bin $ dir
> pi@X10Hub:/usr/local/bin $ cd ..
> pi@X10Hub:/usr/local $ chown pi:pi bin
> chown: changing ownership of 'bin': Operation not permitted
> pi@X10Hub:/usr/local $ sudo chown pi:pi bin
> pi@X10Hub:/usr/local $ cd bin
> pi@X10Hub:/usr/local/bin $ sh Revert-reinstall_HG
> --2019-03-11 15:23:53--  https://github.com/genielabs/HomeGenie/releases/download/v1.2-stable.34/homegenie_1.2-stable.34_all.deb%0D
> Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
> Connecting to github.com (github.com)|192.30.253.113|:443... connected.
> HTTP request sent, awaiting response... 404 Not Found
> 20SCP19-03-11 15:23:53 ERROR 404: Not Found.
>
> gdebi error, file not found: homegenie_1.2-stable.34_all.deb
>  HomeGenie 1.2-stable.34 is now installed please reboot
> : not foundstall_HG: 4: Revert-reinstall_HG:
> pi@X10Hub:/usr/local/bin $
>

Not sure what a "fi" command is...
winSCP would not allow me to copy my program to this usr/local/bin dir as it was owned by root, so I changed that, copied my new program Revert-reinstall_HG to that directory:

sudo wget https://github.com/genielabs/HomeGenie/releases/download/v1.2-stable.34/homegenie_1.2-stable.34_all.deb
sudo gdebi homegenie_1.2-stable.34_all.deb
echo " HomeGenie 1.2-stable.34 is now installed please reboot"

running it gave Result that was less than pleasing:

pi@X10Hub:/usr/local/bin $ sh Revert-reinstall_HG
--2019-03-11 15:30:52--  https://github.com/genielabs/HomeGenie/releases/download/v1.2-stable.34/homegenie_1.2-stable.34_all.deb%0D
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-03-11 15:30:52 ERROR 404: Not Found.

gdebi error, file not found: homegenie_1.2-stable.34_all.deb
 HomeGenie 1.2-stable.34 is now installed please reboot
: not foundstall_HG: 4: Revert-reinstall_HG:


Quit for now.
Logged
Pages: 1 [2] 3
 

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