HG email not sending

Started by mike, February 24, 2019, 12:16:12 PM

Previous topic - Next topic

Tuicemen

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
Please Read Topic:
General Forum Etiquette
Before you post!

mike

searching for homegenie.service...

I found it so far here:

var/run/systemd/generator.late   

still searching for another cc...

mike

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")

mike

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

mike

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...

mike

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

mike

Quote from: Tuicemen 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

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.

Tuicemen

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

Tuicemen

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

mike

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.

mike

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!

mike

#26
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...

Tuicemen

Please Read Topic:
General Forum Etiquette
Before you post!

Tuicemen

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.
>!
Please Read Topic:
General Forum Etiquette
Before you post!

mike

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.

SMF spam blocked by CleanTalk