Can't connect to power software

The device used to be able to connect to the web interface, but now I can’t get it to connect.
I manually updated the firmware to 0.3.22

Here are the outputs of some of the commands that were suggested:

pi@driving-cod:~ $ sudo systemctl status power_agent
● power_agent.service - Sixfab PMS Agent
Loaded: loaded (/etc/systemd/system/power_agent.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2021-01-24 18:56:27 EST; 21h ago
Main PID: 482 (python3)
Tasks: 4 (limit: 3861)
CGroup: /system.slice/power_agent.service
├─ 482 /usr/bin/python3 -u agent.py
└─7666 ping -c1 -s0 power.sixfab.com

Jan 24 18:56:27 driving-cod systemd[1]: Started Sixfab PMS Agent.
Jan 24 18:56:29 driving-cod sudo[624]: pi : TTY=unknown ; PWD=/opt/sixfab/pms/agent ; USER=root ; COMMAND=/bin/cat
Jan 24 18:56:29 driving-cod sudo[624]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jan 24 18:56:29 driving-cod sudo[624]: pam_unix(sudo:session): session closed for user root
lines 1-13/13 (END)

pi@driving-cod:~ $ sudo systemctl status power_request
● power_request.service - Sixfab UPS HAT Distributed API
Loaded: loaded (/etc/systemd/system/power_request.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2021-01-24 18:56:24 EST; 21h ago
Main PID: 362 (python3)
Tasks: 2 (limit: 3861)
CGroup: /system.slice/power_request.service
└─362 /usr/bin/python3 /opt/sixfab/pms/api/run_server.py

Jan 25 16:12:07 driving-cod python3[362]: 192.168.2.146 - - [25/Jan/2021 16:12:07] “GET /signals/soft_shutdown HTTP/1.1”
Jan 25 16:12:07 driving-cod python3[362]: 192.168.2.146 - - [25/Jan/2021 16:12:07] “GET /signals/soft_reboot HTTP/1.1” 2
Jan 25 16:12:07 driving-cod python3[362]: 192.168.2.146 - - [25/Jan/2021 16:12:07] "GET /signals/system_temperature HTTP
Jan 25 16:12:07 driving-cod python3[362]: 192.168.2.146 - - [25/Jan/2021 16:12:07] "GET /signals/battery_temperature HTT
Jan 25 16:12:07 driving-cod python3[362]: 192.168.2.146 - - [25/Jan/2021 16:12:07] “GET /signals/watchdog HTTP/1.1” 200
Jan 25 16:12:22 driving-cod python3[362]: 192.168.2.146 - - [25/Jan/2021 16:12:22] “GET /signals/soft_shutdown HTTP/1.1”
Jan 25 16:12:22 driving-cod python3[362]: 192.168.2.146 - - [25/Jan/2021 16:12:22] “GET /signals/soft_reboot HTTP/1.1” 2
Jan 25 16:12:22 driving-cod python3[362]: 192.168.2.146 - - [25/Jan/2021 16:12:22] "GET /signals/system_temperature HTTP
Jan 25 16:12:22 driving-cod python3[362]: 192.168.2.146 - - [25/Jan/2021 16:12:22] "GET /signals/battery_temperature HTT
Jan 25 16:12:22 driving-cod python3[362]: 192.168.2.146 - - [25/Jan/2021 16:12:22] “GET /signals/watchdog HTTP/1.1” 200
lines 1-18/18 (END)

pi@driving-cod:~ $ sudo journalctl -u power_agent
– Logs begin at Sun 2021-01-24 18:17:01 EST, end at Mon 2021-01-25 16:12:48 EST. –
Jan 24 18:56:27 driving-cod systemd[1]: Started Sixfab PMS Agent.
Jan 24 18:56:29 driving-cod sudo[624]: pi : TTY=unknown ; PWD=/opt/sixfab/pms/agent ; USER=root ; COMMAND=/bin/cat
Jan 24 18:56:29 driving-cod sudo[624]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jan 24 18:56:29 driving-cod sudo[624]: pam_unix(sudo:session): session closed for user root
lines 1-5/5 (END)

pi@driving-cod:~ $ sudo journalctl -u power_request
– Logs begin at Sun 2021-01-24 18:17:01 EST, end at Mon 2021-01-25 16:13:12 EST. –
Jan 24 18:56:24 driving-cod systemd[1]: Started Sixfab UPS HAT Distributed API.
Jan 24 18:56:39 driving-cod python3[362]: * Serving Flask app “src” (lazy loading)
Jan 24 18:56:39 driving-cod python3[362]: * Environment: production
Jan 24 18:56:39 driving-cod python3[362]: WARNING: This is a development server. Do not use it in a production deploy
Jan 24 18:56:39 driving-cod python3[362]: Use a production WSGI server instead.
Jan 24 18:56:39 driving-cod python3[362]: * Debug mode: off
Jan 24 18:56:39 driving-cod python3[362]: * Running on http://0.0.0.0:6060/ (Press CTRL+C to quit)
Jan 24 18:56:44 driving-cod python3[362]: 192.168.2.146 - - [24/Jan/2021 18:56:44] “GET /metrics/version HTTP/1.1” 200 -
Jan 24 18:56:44 driving-cod python3[362]: 192.168.2.146 - - [24/Jan/2021 18:56:44] “GET /signals/soft_shutdown HTTP/1.1”
Jan 24 18:56:44 driving-cod python3[362]: 192.168.2.146 - - [24/Jan/2021 18:56:44] “GET /signals/soft_reboot HTTP/1.1” 2
Jan 24 18:56:44 driving-cod python3[362]: 192.168.2.146 - - [24/Jan/2021 18:56:44] "GET /signals/system_temperature HTTP
Jan 24 18:56:44 driving-cod python3[362]: 192.168.2.146 - - [24/Jan/2021 18:56:44] "GET /signals/battery_temperature HTT
Jan 24 18:56:44 driving-cod python3[362]: 192.168.2.146 - - [24/Jan/2021 18:56:44] “GET /signals/watchdog HTTP/1.1” 200
Jan 24 19:04:33 driving-cod python3[362]: 192.168.2.146 - - [24/Jan/2021 19:04:33] “GET /signals/soft_shutdown HTTP/1.1”
Jan 24 19:04:33 driving-cod python3[362]: 192.168.2.146 - - [24/Jan/2021 19:04:33] “GET /signals/soft_reboot HTTP/1.1” 2
Jan 24 19:04:33 driving-cod python3[362]: 192.168.2.146 - - [24/Jan/2021 19:04:33] "GET /signals/system_temperature HTTP
Jan 24 19:04:33 driving-cod python3[362]: 192.168.2.146 - - [24/Jan/2021 19:04:33] "GET /signals/battery_temperature HTT
Jan 24 19:04:33 driving-cod python3[362]: 192.168.2.146 - - [24/Jan/2021 19:04:33] “GET /signals/watchdog HTTP/1.1” 200
Jan 24 19:04:48 driving-cod python3[362]: 192.168.2.146 - - [24/Jan/2021 19:04:48] “GET /signals/soft_shutdown HTTP/1.1”
Jan 24 19:04:48 driving-cod python3[362]: 192.168.2.146 - - [24/Jan/2021 19:04:48] “GET /signals/soft_reboot HTTP/1.1” 2
Jan 24 19:04:48 driving-cod python3[362]: 192.168.2.146 - - [24/Jan/2021 19:04:48] "GET /signals/system_temperature HTTP
Jan 24 19:04:48 driving-cod python3[362]: 192.168.2.146 - - [24/Jan/2021 19:04:48] "GET /signals/battery_temperature HTT
Jan 24 19:04:48 driving-cod python3[362]: 192.168.2.146 - - [24/Jan/2021 19:04:48] “GET /signals/watchdog HTTP/1.1” 200
Jan 24 19:05:03 driving-cod python3[362]: 192.168.2.146 - - [24/Jan/2021 19:05:03] “GET /signals/soft_shutdown HTTP/1.1”
Jan 24 19:05:03 driving-cod python3[362]: 192.168.2.146 - - [24/Jan/2021 19:05:03] “GET /signals/soft_reboot HTTP/1.1” 2
Jan 24 19:05:03 driving-cod python3[362]: 192.168.2.146 - - [24/Jan/2021 19:05:03] "GET /signals/system_temperature HTTP
Jan 24 19:05:03 driving-cod python3[362]: 192.168.2.146 - - [24/Jan/2021 19:05:03] "GET /signals/battery_temperature HTT
Jan 24 19:05:03 driving-cod python3[362]: 192.168.2.146 - - [24/Jan/2021 19:05:03] “GET /signals/watchdog HTTP/1.1” 200
lines 1-29

Hi @jeff.clemmer,

The version you are using in power software may be outdated. Please delete the device, create a new device and try to set up again.
Also, can you check the firmware version with get_firmware_ver?

Thanks.

Hi @ensar,

a = power_api.power_api.SixfabPower()
a.get_firmware_ver()
‘v0.3.22\x00’

And deleting and re-added to web portal, and reran the command:

pi@driving-cod:~ $ curl https://install.power.sixfab.com | sudo sh -s UUID
    .&@&.             %%          .%@%
   #@@@%           *&@@@&.         %@@@#
  &@@&. .&@@%   .%@@@@@%/.   .%@@&. ,&@@%
 %@@&. /@@@#  *&@@@@&&&@@@@&,  %@@&* .&@@&
/@@@* .@@@#  &@@&(       (@@@%  #@@&, *@@@*
%@@&. #@@&. (@@@,         ,&@@( .@@@(  &@@#
%@@&. #@@&. /@@@,         *&@@( .@@@(  &@@#
*@@@* .&@@#  %@@@#       %@@@#  #@@&, /@@@,
 %@@&, *@@@%  .&@@@@@@@@@@@%. .&@@&, ,&@@%
  %@@&*  %@@#     *#%%%#*     #@@%  *&@@%
   (@@@&.                         .&@@&/
     #@#                           #@#

 _____ _       __      _      ______
/  ___(_)     / _|    | |     | ___ \
\ `--. ___  _| |_ __ _| |__   | |_/ /____      _____ _ __
 `--. \ \ \/ /  _/ _` | '_ \  |  __/ _ \ \ /\ / / _ \ '__|
/\__/ / |>  <| || (_| | |_) | | | | (_) \ V  V /  __/ |
\____/|_/_/\_\_| \__,_|_.__/  \_|  \___/ \_/\_/ \___|_|
==========================================================
100 11710  100 11710    0     0  57970      0 --:--:-- --:--:-- --:--:-- 57970
[INFO]  Updating system package index...
[INFO]  Creating Sixfab root directory on /opt...
[INFO]  Directory already exists, skipping.
[INFO]  Enabling i2c...
[INFO]  I2C enabled.
[INFO]  Installing agent dependencies from PyPI...
[INFO]  Environment file exists, updated token.
[INFO]  Downloading request service...
[INFO]  Service downloaded.
[INFO]  Request service already installed, restarting...
[INFO]  Agent already installed, restarting...
[DONE]  Installation complated successfully, connecting to cloud...

Still no connection.

Could you share a log of all services with me? Any information you can provide me would be greatly appreciated.

Thanks.

@ensar If you have specific commands you want me to run let me know.
Thanks.

sudo journalctl -u power_agent
sudo journalctl -u power_request

Press enter or space to view the entire log.

Sorry for the slow reply.

Using ‘sudo journalctl -u power_agent’ repeats the same line over and over. The is for power sixfab dot com, but the forum won’t let me post full output, as it thinks it is a link.

python3[19366]: ping: power.sixfab.com: Temporary failure in name resolution

pi@driving-cod:~ $ sudo journalctl -u power_request
– Logs begin at Thu 2021-02-04 12:01:06 EST, end at Sat 2021-02-06 07:29:36 EST. –
Feb 04 12:01:06 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:01:06] “GET /signals/soft_shutdown HTTP/1.1” 200 -
Feb 04 12:01:06 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:01:06] “GET /signals/soft_reboot HTTP/1.1” 200 -
Feb 04 12:01:06 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:01:06] “GET /signals/system_temperature HTTP/1.1” 200 -
Feb 04 12:01:06 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:01:06] “GET /signals/battery_temperature HTTP/1.1” 200 -
Feb 04 12:01:06 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:01:06] “GET /signals/watchdog HTTP/1.1” 200 -
Feb 04 12:01:21 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:01:21] “GET /signals/soft_shutdown HTTP/1.1” 200 -
Feb 04 12:01:21 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:01:21] “GET /signals/soft_reboot HTTP/1.1” 200 -
Feb 04 12:01:21 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:01:21] “GET /signals/system_temperature HTTP/1.1” 200 -
Feb 04 12:01:21 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:01:21] “GET /signals/battery_temperature HTTP/1.1” 200 -
Feb 04 12:01:21 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:01:21] “GET /signals/watchdog HTTP/1.1” 200 -
Feb 04 12:01:36 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:01:36] “GET /signals/soft_shutdown HTTP/1.1” 200 -
Feb 04 12:01:36 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:01:36] “GET /signals/soft_reboot HTTP/1.1” 200 -
Feb 04 12:01:36 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:01:36] “GET /signals/system_temperature HTTP/1.1” 200 -
Feb 04 12:01:36 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:01:36] “GET /signals/battery_temperature HTTP/1.1” 200 -
Feb 04 12:01:37 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:01:37] “GET /signals/watchdog HTTP/1.1” 200 -
Feb 04 12:01:52 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:01:52] “GET /signals/soft_shutdown HTTP/1.1” 200 -
Feb 04 12:01:52 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:01:52] “GET /signals/soft_reboot HTTP/1.1” 200 -
Feb 04 12:01:52 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:01:52] “GET /signals/system_temperature HTTP/1.1” 200 -
Feb 04 12:01:52 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:01:52] “GET /signals/battery_temperature HTTP/1.1” 200 -
Feb 04 12:01:52 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:01:52] “GET /signals/watchdog HTTP/1.1” 200 -
Feb 04 12:02:07 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:02:07] “GET /signals/soft_shutdown HTTP/1.1” 200 -
Feb 04 12:02:07 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:02:07] “GET /signals/soft_reboot HTTP/1.1” 200 -
Feb 04 12:02:07 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:02:07] “GET /signals/system_temperature HTTP/1.1” 200 -
Feb 04 12:02:07 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:02:07] “GET /signals/battery_temperature HTTP/1.1” 200 -
Feb 04 12:02:07 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:02:07] “GET /signals/watchdog HTTP/1.1” 200 -
Feb 04 12:02:22 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:02:22] “GET /signals/soft_shutdown HTTP/1.1” 200 -
Feb 04 12:02:22 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:02:22] “GET /signals/soft_reboot HTTP/1.1” 200 -
Feb 04 12:02:22 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:02:22] “GET /signals/system_temperature HTTP/1.1” 200 -
Feb 04 12:02:22 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:02:22] “GET /signals/battery_temperature HTTP/1.1” 200 -
Feb 04 12:02:22 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:02:22] “GET /signals/watchdog HTTP/1.1” 200 -
Feb 04 12:02:37 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:02:37] “GET /signals/soft_shutdown HTTP/1.1” 200 -
Feb 04 12:02:37 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:02:37] “GET /signals/soft_reboot HTTP/1.1” 200 -
Feb 04 12:02:37 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:02:37] “GET /signals/system_temperature HTTP/1.1” 200 -
Feb 04 12:02:37 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:02:37] “GET /signals/battery_temperature HTTP/1.1” 200 -
Feb 04 12:02:37 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:02:37] “GET /signals/watchdog HTTP/1.1” 200 -
Feb 04 12:02:52 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:02:52] “GET /signals/soft_shutdown HTTP/1.1” 200 -
Feb 04 12:02:52 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:02:52] “GET /signals/soft_reboot HTTP/1.1” 200 -
Feb 04 12:02:52 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:02:52] “GET /signals/system_temperature HTTP/1.1” 200 -
Feb 04 12:02:52 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:02:52] “GET /signals/battery_temperature HTTP/1.1” 200 -
Feb 04 12:02:52 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:02:52] “GET /signals/watchdog HTTP/1.1” 200 -
Feb 04 12:03:07 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:03:07] “GET /signals/soft_shutdown HTTP/1.1” 200 -
Feb 04 12:03:08 driving-cod python3[19363]: 10.3.141.1 - - [04/Feb/2021 12:03:08] “GET /signals/soft_reboot HTTP/1.1” 200 -