# Can't connect to power software

**URL:** <https://community.sixfab.com/t/cant-connect-to-power-software/1131>\
**Category:** Power Management & UPS HAT\
**Created:** [January 26, 2021, 8:11pm UTC](https://community.sixfab.com/t/cant-connect-to-power-software/1131 "2021-01-26T20:11:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeff.clemmer](https://community.sixfab.com/letter_avatar_proxy/v4/letter/j/8baadc/32.png) [@jeff.clemmer](https://community.sixfab.com/u/jeff.clemmer)\
**Post date:** [January 26, 2021, 8:11pm UTC](https://community.sixfab.com/t/cant-connect-to-power-software/1131/1 "2021-01-26T20:11:09Z")

</div>

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](http://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/](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

---

<div class="post-metadata">

**Author:** ![ensar](https://community.sixfab.com/user_avatar/community.sixfab.com/ensar/32/8_2.png) [@ensar](https://community.sixfab.com/u/ensar)\
**Post date:** [January 26, 2021, 9:35pm UTC](https://community.sixfab.com/t/cant-connect-to-power-software/1131/2 "2021-01-26T21:35:34Z")

</div>

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](https://sixfab.github.io/sixfab-power-python-api/power_api.html#power_api.power_api.SixfabPower.get_firmware_ver)?

Thanks.

---

<div class="post-metadata">

**Author:** ![jeff.clemmer](https://community.sixfab.com/letter_avatar_proxy/v4/letter/j/8baadc/32.png) [@jeff.clemmer](https://community.sixfab.com/u/jeff.clemmer)\
**Post date:** [January 29, 2021, 1:25am UTC](https://community.sixfab.com/t/cant-connect-to-power-software/1131/3 "2021-01-29T01:25:49Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ensar](https://community.sixfab.com/user_avatar/community.sixfab.com/ensar/32/8_2.png) [@ensar](https://community.sixfab.com/u/ensar)\
**Post date:** [January 29, 2021, 9:57am UTC](https://community.sixfab.com/t/cant-connect-to-power-software/1131/4 "2021-01-29T09:57:55Z")

</div>

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

Thanks.

---

<div class="post-metadata">

**Author:** ![jeff.clemmer](https://community.sixfab.com/letter_avatar_proxy/v4/letter/j/8baadc/32.png) [@jeff.clemmer](https://community.sixfab.com/u/jeff.clemmer)\
**Post date:** [January 29, 2021, 6:57pm UTC](https://community.sixfab.com/t/cant-connect-to-power-software/1131/5 "2021-01-29T18:57:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ensar](https://community.sixfab.com/user_avatar/community.sixfab.com/ensar/32/8_2.png) [@ensar](https://community.sixfab.com/u/ensar)\
**Post date:** [February 5, 2021, 3:29pm UTC](https://community.sixfab.com/t/cant-connect-to-power-software/1131/6 "2021-02-05T15:29:46Z")

</div>

```
sudo journalctl -u power_agent
sudo journalctl -u power_request

```

Press enter or space to view the entire log.

---

<div class="post-metadata">

**Author:** ![jeff.clemmer](https://community.sixfab.com/letter_avatar_proxy/v4/letter/j/8baadc/32.png) [@jeff.clemmer](https://community.sixfab.com/u/jeff.clemmer)\
**Post date:** [February 21, 2021, 5:01pm UTC](https://community.sixfab.com/t/cant-connect-to-power-software/1131/7 "2021-02-21T17:01:02Z")

</div>

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 -
