Yes, correct. Sorry but I don’t have right now a working SD card, just 2 with problems, tried with the “less bad” one but got fatal errors while installing.
Adding on to this thread, I used a new pi zero and a fresh SD card - installed via web - now I have one Raspberry Pi entry on iOS app and 2 greyed out pending installations - do I just delete the latter?
@shovelheadman can you share a screenshot?
you can delete the devices which are showing pending below the device name. the second device you marked does not have a pending, so is the device online?
Yes, that one is online
There is, however, a Raspberry Pi created as well as a Raspberry Pi MQTT - both online but the CPU temps showing different value by about 8 degrees, RAM and storage also different between the 2 views - not the same data being sent? Why the difference?
which OS are you using on pi ? have you added any widgets to your pi agent? if not can you delete all the pi related devices and do a new installation with new fresh raspbian installed and see if this bug is repeated again.
No more ideas to try solve this?
Hi @aicraga …Please try this one more time from web dashboard only. (do not use mobile app).
1 - Connect your Pi
2 - Using your desktop browser log in to Cayenne
3 - go to this link https://cayenne.mydevices.com/cayenne/dashboard/agent-upgrade
4- Click on add Raspberry Pi
5 - On next page, select RPi option 2 (which will give you a new invite code)
6 - Using the Pi terminal, enter the commands as directed.
7 - Wait about more or less 10 minutes until scripts are run and device is connected
8 - Restart the Pi, refresh browser. (not really necessary, but just to make sure).
If you get another error during this process, please provide us with your /var/log/myDevices/cayenne.log file
If everything goes well, at the end of the process, you may see a working Pi device (highlighted) on the left side bar, and maybe some grey out Pi’s which you can remove.
Thanks for your attention!
This is the same I already did a few times, but lets try again…
The only difference I see is on item 7, because after install it reboots automatically,
but I waited for 15 minutes, rebooted again, but no answer at all, installation is
yet suspended, no changes on install page.
Weird thing: there’s no cayenne.log file, only myDevices.log, but none from today.
-rw-r–r-- 1 cayenne cayenne 193973 jun 3 00:00 myDevices.log.2018-06-02.bz2
Looking at /var/log/myDevicesSetup I see some errors:
- mv ‘/var/log/myDevices.log*’ /var/log/myDevices/
mv: não foi possível obter estado de ‘/var/log/myDevices.log*’: Arquivo ou diretório não encontrado
- mv ‘/var/log/myDevices.update*’ /var/log/myDevices/
mv: não foi possível obter estado de ‘/var/log/myDevices.update*’: Arquivo ou diretório não encontrado
Its “File or directory not found”
Any ideas?
Sorry but I’ve saw only the collapsed text you posted about “apt-get update/upgrade before Cayenne install,”, but now I see that expanded it is “And not even run apt-get update/upgrade before Cayenne install,”, so I think my problem is this because my RPi install is updated.
What is the newest version of Python that Cayenne works under?
Any other way to go around this problem?
Do a fresh install with latest raspbian stretch . Next run sudo apt-get update and upgrade. After this do the usual cayenne command from the dashboard.
Thanks for your answer, Samir, but as I said before,
fresh install is a “no” for me because I have many others things working smoothly in this Rpi.
@aicraga It’s strange, the myDevices.log file instead of the cayenne.log file suggests that the old agent is still running somehow. I suggest manually cleaning old agent traces and then re-running an install of the new agent. You can do that with the following commands:
sudo /etc/myDevices/uninstall/uninstall.sh
sudo /etc/webiopi/uninstall/uninstall.sh
sudo rm -rf /etc/myDevices
sudo rm -rf /etc/webiopi
sudo rm /var/log/myDevices.log
If the uninstall.sh scripts are missing let me know and I can get you a copy.
After that try reinstalling the new agent via the dashboard. If you are still seeing issues please provide the /var/log/myDevices.log
or the /var/log/myDevices/cayenne.log
file if they exist, or at least any error messages you see in them.
Thank you, but no success yet!
Weird: no myDevices.log at /var/log and folder /var/log/myDevices is totally empty.
There is only a myDevicesSetup that I would like to send in private, how do it?
Results of commands:
:~ $ sudo /etc/myDevices/uninstall/uninstall.sh
Removed /etc/systemd/system/multi-user.target.wants/myDevices.service.
userdel: cayenne spool de mail (/var/mail/cayenne) não foi encontrado
groupdel: grupo ‘cayenne’ não existe
:~ $ sudo /etc/webiopi/uninstall/uninstall.sh
webiopi.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable webiopi
cat: /installed_components: Arquivo ou diretório não encontrado
:~ $ sudo rm -rf /etc/myDevices
:~ $
:~ $ sudo rm -rf /etc/webiopi
:~ $
:~ $ sudo rm /var/log/myDevices.log
rm: não foi possível remover ‘/var/log/myDevices.log’: Arquivo ou diretório não encontrado
At some points on “/var/log/myDevicesSetup”:
-
grep -q -i ‘InviteCode.*=.*mohr05xpe3’ /etc/myDevices/AppSettings.ini
grep: /etc/myDevices/AppSettings.ini: Arquivo ou diretório não encontrado -
sudo nohup curl --data ‘invitecode=mohr05xpe3&progress=50&step=2’ https://cayenne.mydevices.com/cayenne/api/install
-
pgrep systemd
-
systemctl disable myDevices
Failed to disable unit: No such file or directory -
rm -rf /etc/systemd/system/myDevices.service
-
normalEcho ‘Installing systemd service’
-
chmod 0755 /etc/myDevices/Network.ini
-
cp -rf ca.crt /etc/myDevices/ca.crt
cp: não foi possível obter estado de ‘ca.crt’: Arquivo ou diretório não encontrado -
chmod 0755 /etc/myDevices/ca.crt
chmod: não foi possível acessar ‘/etc/myDevices/ca.crt’: Arquivo ou diretório não encontrado -
cp -rf uninstall.sh /etc/myDevices/uninstall/uninstall.sh
-
mv ‘/var/log/myDevices.log*’ /var/log/myDevices/
mv: não foi possível obter estado de ‘/var/log/myDevices.log*’: Arquivo ou diretório não encontrado -
mv ‘/var/log/myDevices.update*’ /var/log/myDevices/
mv: não foi possível obter estado de ‘/var/log/myDevices.update*’: Arquivo ou diretório não encontrado
At final we see (hope that is not a problem because my Pi is headless):
qui jun 7 21:32:22 -03 2018 Configuring os and agent
startx is not installed
@aicraga Can you send me the myDevicesSetup log file in a private message?
After some debugging it turned out there were a few issues where aicraga’s system had gotten into a weird state. Specifically it seemed to be an problem with an older version of the Cayenne python package for some reason not being overwritten with the new install.
If this is happening for anyone else you can manually remove the old install using the command sudo rm -rf /usr/local/lib/python3.5/dist-packages/myDevices*
, then run a new install. You may need to specify a different python path if you have a different version of python than 3.5.
Another issue with aicraga’s system was the /home/cayenne
folder permissions had gotten messed up somehow. If you run into permissions errors with that folder you can manually set the owner using sudo chown cayenne:cayenne /home/cayenne
and then restart the agent.