Pi installation issues

Thank you for taking the time to submit your bug/issue! Please use the points below as a guide when submitting.

  • Pi 3 model B

  • web and Ios

  • Attempting to add my pi - Old version of Raspberian failed so I built a brand new SD card using pibakery.

  • Installed from command line using invite as per the instructions
  • Installation completed after an extended time
  • pi is visible in both web and iOS applications but showing as offline
    output from commands:
    pi@raspberrypi:~ $ sudo service myDevices status
    ● myDevices.service - myDevices service
    Loaded: loaded (/etc/systemd/system/myDevices.service; enabled)
    Active: active (running) since Wed 2017-08-09 11:54:18 UTC; 19min ago
    Main PID: 2835 (python3)
    CGroup: /system.slice/myDevices.service
    ‣ 2835 /usr/bin/python3 -m myDevices -P /var/run/myDevices.pid

Aug 09 11:54:18 raspberrypi systemd[1]: Started myDevices service.
Aug 09 11:54:18 raspberrypi systemd[2835]: pam_exec(login:session): conversation failed
Aug 09 11:54:18 raspberrypi systemd[2835]: pam_unix(login:session): session opened for user root by (uid=0)
pi@raspberrypi:~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 15G 3.9G 10G 28% /
devtmpfs 458M 0 458M 0% /dev
tmpfs 462M 0 462M 0% /dev/shm
tmpfs 462M 6.4M 456M 2% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 462M 0 462M 0% /sys/fs/cgroup
/dev/mmcblk0p1 41M 21M 21M 52% /boot
tmpfs 93M 0 93M 0% /run/user/1000
tmpfs 93M 0 93M 0% /run/user/0
pi@raspberrypi:~ $ sudo service webopi status
● webopi.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
pi@raspberrypi:~ $

Disk is NOT full

net stat

pi@raspberrypi:~ $ sudo netstat -natp | grep -i established
Active Internet connections (servers and established)
tcp 0 0 127.0.0.1:51190 127.0.0.1:40205 ESTABLISHED 587/vncserver-x11-c
tcp 0 0 127.0.0.1:58666 127.0.0.1:8000 ESTABLISHED 2835/python3
tcp 0 0 192.168.1.4:22 192.168.1.14:52906 ESTABLISHED 2093/sshd: pi [priv
tcp 0 0 192.168.1.4:50940 54.173.248.213:8181 ESTABLISHED 2835/python3
tcp 0 0 192.168.1.4:5900 192.168.1.14:53370 ESTABLISHED 587/vncserver-x11-c
tcp 0 0 127.0.0.1:40205 127.0.0.1:51190 ESTABLISHED 1062/vncserverui
tcp6 0 0 127.0.0.1:8000 127.0.0.1:58666 ESTABLISHED -

pi@raspberrypi:~ $ tail -f /var/log/myDevices.log
2017-08-09 12:24:53 - myDevices - INFO - Resouce usage info: resource.struct_rusage(ru_utime=79.49, ru_stime=11.39, ru_maxrss=21712, ru_ixrss=0, ru_idrss=0, ru_isrss=0, ru_minflt=491807, ru_majflt=3, ru_nswap=0, ru_inblock=2744, ru_oublock=6152, ru_msgsnd=0, ru_msgrcv=0, ru_nsignals=0, ru_nvcsw=39631, ru_nivcsw=7442)
2017-08-09 12:24:53 - myDevices - INFO - PacketTypes.PT_SYSTEM_INFO
2017-08-09 12:24:54 - myDevices - INFO - PacketTypes.PT_UTILIZATION
2017-08-09 12:25:23 - myDevices - INFO - History CalculateAverages increment: 50
2017-08-09 12:25:23 - myDevices - INFO - Calculate sensor info averages: {‘SensorsInfo’: {‘b4a57012e70a76baa631f7c1c49f672a24569653’: 50}}
2017-08-09 12:25:23 - myDevices - INFO - Save History Averages
2017-08-09 12:25:23 - myDevices - INFO - Memory usage : 63 size: 21712
2017-08-09 12:25:23 - myDevices - INFO - Resouce usage info: resource.struct_rusage(ru_utime=80.79, ru_stime=11.58, ru_maxrss=21712, ru_ixrss=0, ru_idrss=0, ru_isrss=0, ru_minflt=498939, ru_majflt=3, ru_nswap=0, ru_inblock=2744, ru_oublock=6232, ru_msgsnd=0, ru_msgrcv=0, ru_nsignals=0, ru_nvcsw=40202, ru_nivcsw=7505)
2017-08-09 12:25:23 - myDevices - INFO - PacketTypes.PT_SYSTEM_INFO
2017-08-09 12:25:24 - myDevices - INFO - PacketTypes.PT_UTILIZATION
2017-08-09 12:25:45 - myDevices - INFO - SendHistoryData previously SendFailed items:
2017-08-09 12:25:53 - myDevices - INFO - History CalculateAverages increment: 51
2017-08-09 12:25:53 - myDevices - INFO - Calculate sensor info averages: {‘SensorsInfo’: {‘b4a57012e70a76baa631f7c1c49f672a24569653’: 51}}
2017-08-09 12:25:53 - myDevices - INFO - Save History Averages
2017-08-09 12:25:53 - myDevices - INFO - Memory usage : 64 size: 21716
2017-08-09 12:25:53 - myDevices - INFO - Resouce usage info: resource.struct_rusage(ru_utime=81.96, ru_stime=11.87, ru_maxrss=21716, ru_ixrss=0, ru_idrss=0, ru_isrss=0, ru_minflt=507730, ru_majflt=3, ru_nswap=0, ru_inblock=2744, ru_oublock=6304, ru_msgsnd=0, ru_msgrcv=0, ru_nsignals=0, ru_nvcsw=40788, ru_nivcsw=7598)
2017-08-09 12:25:53 - myDevices - INFO - PacketTypes.PT_SYSTEM_INFO
2017-08-09 12:25:54 - myDevices - INFO - PacketTypes.PT_UTILIZATION

ps axu | grep python

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Aug 9 11:43:27 2017

SSH is enabled and the default password for the ‘pi’ user has not been changed.
This is a security risk - please login as the ‘pi’ user and type ‘passwd’ to set a new password.

pi@raspberrypi:~ $ sudo configif
sudo: configif: command not found
pi@raspberrypi:~ $ sudo ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:af:00:19
inet6 addr: fe80::afda:3ae2:843:7abc/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1326 errors:0 dropped:0 overruns:0 frame:0
TX packets:1326 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:112593 (109.9 KiB) TX bytes:112593 (109.9 KiB)

wlan0 Link encap:Ethernet HWaddr b8:27:eb:fa:55:4c
inet addr:192.168.1.4 Bcast:192.168.3.255 Mask:255.255.252.0
inet6 addr: fe80::5dc1:d33b:6cbe:de6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8020 errors:0 dropped:2 overruns:0 frame:0
TX packets:2739 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1897692 (1.8 MiB) TX bytes:362672 (354.1 KiB)

pi@raspberrypi:~ $ ping www.bbc.co.uk
PING www.bbc.net.uk (212.58.244.26) 56(84) bytes of data.
64 bytes from bbc-vip145.telhc.bbc.co.uk (212.58.244.26): icmp_seq=1 ttl=53 time=17.0 ms
64 bytes from bbc-vip145.telhc.bbc.co.uk (212.58.244.26): icmp_seq=2 ttl=53 time=19.6 ms
64 bytes from bbc-vip145.telhc.bbc.co.uk (212.58.244.26): icmp_seq=3 ttl=53 time=22.7 ms
c64 bytes from bbc-vip145.telhc.bbc.co.uk (212.58.244.26): icmp_seq=4 ttl=53 time=19.8 ms
64 bytes from bbc-vip145.telhc.bbc.co.uk (212.58.244.26): icmp_seq=5 ttl=53 time=22.7 ms
64 bytes from bbc-vip145.telhc.bbc.co.uk (212.58.244.26): icmp_seq=6 ttl=53 time=20.0 ms
64 bytes from bbc-vip145.telhc.bbc.co.uk (212.58.244.26): icmp_seq=7 ttl=53 time=19.4 ms
64 bytes from bbc-vip145.telhc.bbc.co.uk (212.58.244.26): icmp_seq=8 ttl=53 time=20.3 ms
64 bytes from bbc-vip145.telhc.bbc.co.uk (212.58.244.26): icmp_seq=9 ttl=53 time=19.6 ms
^C
www.bbc.net.uk ping statistics —
9 packets transmitted, 9 received, 0% packet loss, time 8012ms
rtt min/avg/max/mdev = 17.094/20.170/22.759/1.628 ms
pi@raspberrypi:~ $
pi@raspberrypi:~ $ sudo service myDevices status
● myDevices.service - myDevices service
Loaded: loaded (/etc/systemd/system/myDevices.service; enabled)
Active: active (running) since Wed 2017-08-09 11:54:18 UTC; 3min 3s ago
Main PID: 2835 (python3)
CGroup: /system.slice/myDevices.service
‣ 2835 /usr/bin/python3 -m myDevices -P /var/run/myDevices.pid

Aug 09 11:54:18 raspberrypi systemd[1]: Started myDevices service.
Aug 09 11:54:18 raspberrypi systemd[2835]: pam_exec(login:session): conversation failed
Aug 09 11:54:18 raspberrypi systemd[2835]: pam_unix(login:session): session opened for user root by (uid=0)
pi@raspberrypi:~ $ tightvnc
-bash: tightvnc: command not found
pi@raspberrypi:~ $ sudo apt-get update
Get:1 http://archive.raspberrypi.org jessie InRelease [22.9 kB]
Get:2 http://mirrordirector.raspbian.org jessie InRelease [14.9 kB]
Get:3 http://archive.raspberrypi.org jessie/main armhf Packages [170 kB]
Get:4 http://mirrordirector.raspbian.org jessie/main armhf Packages [9,535 kB]
Get:5 http://archive.raspberrypi.org jessie/ui armhf Packages [58.9 kB]
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Get:6 http://mirrordirector.raspbian.org jessie/contrib armhf Packages [43.3 kB]
Get:7 http://mirrordirector.raspbian.org jessie/non-free armhf Packages [84.2 kB]
Get:8 http://mirrordirector.raspbian.org jessie/rpi armhf Packages [1,356 B]
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Fetched 9,930 kB in 15s (661 kB/s)
Reading package lists… Done
pi@raspberrypi:~ $ vncserver:1
-bash: vncserver:1: command not found
pi@raspberrypi:~ $ sudo apt-get install realvnc-vnc-server real-vnc-viewer
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package real-vnc-viewer
pi@raspberrypi:~ $ sudo apt-get install reavncl-vnc-viewer
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package reavncl-vnc-viewer
pi@raspberrypi:~ $ sudo raspi-config
pi@raspberrypi:~ $ ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:af:00:19
inet6 addr: fe80::afda:3ae2:843:7abc/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:11693 errors:0 dropped:0 overruns:0 frame:0
TX packets:11693 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:996521 (973.1 KiB) TX bytes:996521 (973.1 KiB)

wlan0 Link encap:Ethernet HWaddr b8:27:eb:fa:55:4c
inet addr:192.168.1.4 Bcast:192.168.3.255 Mask:255.255.252.0
inet6 addr: fe80::5dc1:d33b:6cbe:de6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20403 errors:0 dropped:4 overruns:0 frame:0
TX packets:7879 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:13307955 (12.6 MiB) TX bytes:1473168 (1.4 MiB)

pi@raspberrypi:~ $ sudo raspi-config
pi@raspberrypi:~ $ sudo service myDevices status
● myDevices.service - myDevices service
Loaded: loaded (/etc/systemd/system/myDevices.service; enabled)
Active: active (running) since Wed 2017-08-09 11:54:18 UTC; 19min ago
Main PID: 2835 (python3)
CGroup: /system.slice/myDevices.service
‣ 2835 /usr/bin/python3 -m myDevices -P /var/run/myDevices.pid

Aug 09 11:54:18 raspberrypi systemd[1]: Started myDevices service.
Aug 09 11:54:18 raspberrypi systemd[2835]: pam_exec(login:session): conversation failed
Aug 09 11:54:18 raspberrypi systemd[2835]: pam_unix(login:session): session opened for user root by (uid=0)
pi@raspberrypi:~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 15G 3.9G 10G 28% /
devtmpfs 458M 0 458M 0% /dev
tmpfs 462M 0 462M 0% /dev/shm
tmpfs 462M 6.4M 456M 2% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 462M 0 462M 0% /sys/fs/cgroup
/dev/mmcblk0p1 41M 21M 21M 52% /boot
tmpfs 93M 0 93M 0% /run/user/1000
tmpfs 93M 0 93M 0% /run/user/0
pi@raspberrypi:~ $ sudo service webopi status
● webopi.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
pi@raspberrypi:~ $ sudo netstat -natp | grep -i established
Active Internet connections (servers and established)
tcp 0 0 127.0.0.1:51190 127.0.0.1:40205 ESTABLISHED 587/vncserver-x11-c
tcp 0 0 127.0.0.1:58666 127.0.0.1:8000 ESTABLISHED 2835/python3
tcp 0 0 192.168.1.4:22 192.168.1.14:52906 ESTABLISHED 2093/sshd: pi [priv
tcp 0 0 192.168.1.4:50940 54.173.248.213:8181 ESTABLISHED 2835/python3
tcp 0 0 192.168.1.4:5900 192.168.1.14:53370 ESTABLISHED 587/vncserver-x11-c
tcp 0 0 127.0.0.1:40205 127.0.0.1:51190 ESTABLISHED 1062/vncserverui
tcp6 0 0 127.0.0.1:8000 127.0.0.1:58666 ESTABLISHED -
pi@raspberrypi:~ $ tail -f /var/log/myDevices.log
2017-08-09 12:24:53 - myDevices - INFO - Resouce usage info: resource.struct_rusage(ru_utime=79.49, ru_stime=11.39, ru_maxrss=21712, ru_ixrss=0, ru_idrss=0, ru_isrss=0, ru_minflt=491807, ru_majflt=3, ru_nswap=0, ru_inblock=2744, ru_oublock=6152, ru_msgsnd=0, ru_msgrcv=0, ru_nsignals=0, ru_nvcsw=39631, ru_nivcsw=7442)
2017-08-09 12:24:53 - myDevices - INFO - PacketTypes.PT_SYSTEM_INFO
2017-08-09 12:24:54 - myDevices - INFO - PacketTypes.PT_UTILIZATION
2017-08-09 12:25:23 - myDevices - INFO - History CalculateAverages increment: 50
2017-08-09 12:25:23 - myDevices - INFO - Calculate sensor info averages: {‘SensorsInfo’: {‘b4a57012e70a76baa631f7c1c49f672a24569653’: 50}}
2017-08-09 12:25:23 - myDevices - INFO - Save History Averages
2017-08-09 12:25:23 - myDevices - INFO - Memory usage : 63 size: 21712
2017-08-09 12:25:23 - myDevices - INFO - Resouce usage info: resource.struct_rusage(ru_utime=80.79, ru_stime=11.58, ru_maxrss=21712, ru_ixrss=0, ru_idrss=0, ru_isrss=0, ru_minflt=498939, ru_majflt=3, ru_nswap=0, ru_inblock=2744, ru_oublock=6232, ru_msgsnd=0, ru_msgrcv=0, ru_nsignals=0, ru_nvcsw=40202, ru_nivcsw=7505)
2017-08-09 12:25:23 - myDevices - INFO - PacketTypes.PT_SYSTEM_INFO
2017-08-09 12:25:24 - myDevices - INFO - PacketTypes.PT_UTILIZATION
2017-08-09 12:25:45 - myDevices - INFO - SendHistoryData previously SendFailed items:
2017-08-09 12:25:53 - myDevices - INFO - History CalculateAverages increment: 51
2017-08-09 12:25:53 - myDevices - INFO - Calculate sensor info averages: {‘SensorsInfo’: {‘b4a57012e70a76baa631f7c1c49f672a24569653’: 51}}
2017-08-09 12:25:53 - myDevices - INFO - Save History Averages
2017-08-09 12:25:53 - myDevices - INFO - Memory usage : 64 size: 21716
2017-08-09 12:25:53 - myDevices - INFO - Resouce usage info: resource.struct_rusage(ru_utime=81.96, ru_stime=11.87, ru_maxrss=21716, ru_ixrss=0, ru_idrss=0, ru_isrss=0, ru_minflt=507730, ru_majflt=3, ru_nswap=0, ru_inblock=2744, ru_oublock=6304, ru_msgsnd=0, ru_msgrcv=0, ru_nsignals=0, ru_nvcsw=40788, ru_nivcsw=7598)
2017-08-09 12:25:53 - myDevices - INFO - PacketTypes.PT_SYSTEM_INFO
2017-08-09 12:25:54 - myDevices - INFO - PacketTypes.PT_UTILIZATION
^C
pi@raspberrypi:~ $ ps axu | grep python
root 554 1.0 1.4 36140 13640 ? Sl 11:43 0:27 /usr/bin/python3 -m webiopi -l /var/log/webiopi -c /etc/webiopi/config
root 2835 4.9 2.2 138180 21716 ? Ssl 11:54 1:36 /usr/bin/python3 -m myDevices -P /var/run/myDevices.pid
pi 7745 0.0 0.1 4280 1848 pts/0 S+ 12:26 0:00 grep --color=auto python

Firewall has no reason to be closed on the cayenne port. I’ve actually had previous connections working and for some unknown reason a DS18B20 which is connected to the pi is showing up on the iOS dashboard

Hi @woz,

Thank you for the detailed logs. The first thing that jumps out to me here is that our webiopi server isn’t present on the machine. It should have been installed during our installation, but perhaps something failed there.

Could you uninstall with:

sudo /etc/myDevices/uninstall/./uninstall.sh

and run the install from the command line ‘Option 2’ option (where it gives you two terminal commands to install), and share the output from the installer, the whole way from those two commands through when it automatically reboots the Pi? (presuming it makes it that far)

I’d also be interested in your output from:
uname -a
and
telnet cloud.mydevices.com 8181