Unable to install on raspberry pi 3

Hi, I’ve a raspberry pi 3 and i’ve always an error: Setup requires at least 200Mb for install

This is my df:

File system 1K-blocchi Usati Disponib. Uso% Montato su
udev 10240 0 10240 0% /dev
tmpfs 176556 5036 171520 3% /run
/dev/sda1 103081248 6957620 90864364 8% /
tmpfs 441384 105024 336360 24% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 441384 0 441384 0% /sys/fs/cgroup
/dev/mmcblk0p1 64456 27776 36680 44% /boot
/dev/sdb1 720944296 625481260 58818072 92% /media/pi/FilmHDD
/dev/sda2 137020684 228124 129809180 1% /media/pi/Dati
tmpfs 88280 0 88280 0% /run/user/1000
/dev/mmcblk0p2 14760004 3817616 10288172 28% /media/pi/2f840c69-cecb-4b10-87e4-01b9d28c231c

Can you help me to install on Rpi3?

Looks like you have plenty of space on the Pi, so that’s odd. I’m guessing it is the mobile app that displayed this error?

Since you already seem comfortable on the command line, let’s try a command line install. To do this:

  1. Log into your web dashboard and click the Raspberry Pi tile.

  2. Follow the on screen instructions until you get to ‘step 3: Connect your Raspberry Pi’, then scroll to Option 2 where it will give you commands to install which are customized to your account.

  3. Run both commands via SSH (or directly typing/pasting them into the Pi’s command prompt)

That’s it. If the install finishes OK, it will reboot your Pi at the end of installation and then you’ll see it appear on your Cayenne Dashboard.

Let me know if you have questions or get stuck along the way!

I’ve followed your instruction and this is the result:

pi@raspberrypi:~ $ sudo bash rpi_0cab6q7ly7.sh -v
rpi_0cab6q7ly7.sh
continuing as new install…
–2017-03-17 00:01:47-- http://updates.mydevices.com/raspberry/myDevices-1.0.tar.gz
Risoluzione di updates.mydevices.com (updates.mydevices.com)… 54.148.225.117
Connessione a updates.mydevices.com (updates.mydevices.com)|54.148.225.117|:80… connesso.
Richiesta HTTP inviata, in attesa di risposta… 200 OK
Lunghezza: 9234417 (8,8M) [application/x-gzip]
Salvataggio in: “/home/pi/myDevices-1.0.tar.gz”

/home/pi/myDevices-1.0 100%[=============================>] 8,81M 2,53MB/s in 3,5s

2017-03-17 00:01:51 (2,53 MB/s) - “/home/pi/myDevices-1.0.tar.gz” salvato [9234417/9234417]

./myDevices-1.0/
./myDevices-1.0/._.DS_Store
./myDevices-1.0/.DS_Store
./myDevices-1.0/3rd_party/
./myDevices-1.0/addCron.sh
./myDevices-1.0/ca.crt
./myDevices-1.0/crontab.sh
./myDevices-1.0/deb/
./myDevices-1.0/dev_network.ini
./myDevices-1.0/libs/
./myDevices-1.0/live_network.ini
./myDevices-1.0/package
./myDevices-1.0/preprod_network.ini
./myDevices-1.0/python/
./myDevices-1.0/qa1_network.ini
./myDevices-1.0/qa2_network.ini
./myDevices-1.0/reboot_install.sh
./myDevices-1.0/scripts/
./myDevices-1.0/setup.sh
./myDevices-1.0/stg_network.ini
./myDevices-1.0/uninstall.sh
./myDevices-1.0/scripts/config.sh
./myDevices-1.0/scripts/tightvncsetup.sh
./myDevices-1.0/scripts/webiopisetup.sh
./myDevices-1.0/python/myDevices/
./myDevices-1.0/python/myDevices.init.sh
./myDevices-1.0/python/myDevices.service
./myDevices-1.0/python/myDevices.sh
./myDevices-1.0/python/setup.py
./myDevices-1.0/python/myDevices/init.py
./myDevices-1.0/python/myDevices/main.py
./myDevices-1.0/python/myDevices/cloud/
./myDevices-1.0/python/myDevices/ipgetter/
./myDevices-1.0/python/myDevices/os/
./myDevices-1.0/python/myDevices/remoteaccess/
./myDevices-1.0/python/myDevices/requests_futures/
./myDevices-1.0/python/myDevices/schedule/
./myDevices-1.0/python/myDevices/sensors/
./myDevices-1.0/python/myDevices/test/
./myDevices-1.0/python/myDevices/utils/
./myDevices-1.0/python/myDevices/wifi/
./myDevices-1.0/python/myDevices/wifi/init.py
./myDevices-1.0/python/myDevices/wifi/WifiManager.py
./myDevices-1.0/python/myDevices/wifi/wifisetup.py
./myDevices-1.0/python/myDevices/wifi/WirelessLib.py
./myDevices-1.0/python/myDevices/utils/init.py
./myDevices-1.0/python/myDevices/utils/config.py
./myDevices-1.0/python/myDevices/utils/crypto.py
./myDevices-1.0/python/myDevices/utils/history.py
./myDevices-1.0/python/myDevices/utils/logger.py
./myDevices-1.0/python/myDevices/utils/mutex.py
./myDevices-1.0/python/myDevices/utils/singleton.py
./myDevices-1.0/python/myDevices/test/all_tests.py
./myDevices-1.0/python/myDevices/test/cloud_test.py
./myDevices-1.0/python/myDevices/test/config_test.py
./myDevices-1.0/python/myDevices/test/history_test.py
./myDevices-1.0/python/myDevices/test/scheduler_test.py
./myDevices-1.0/python/myDevices/test/sensors_test.py
./myDevices-1.0/python/myDevices/test/updater_test.py
./myDevices-1.0/python/myDevices/sensors/init.py
./myDevices-1.0/python/myDevices/sensors/client.py
./myDevices-1.0/python/myDevices/sensors/sensors.py
./myDevices-1.0/python/myDevices/schedule/init.py
./myDevices-1.0/python/myDevices/requests_futures/init.py
./myDevices-1.0/python/myDevices/requests_futures/sessions.py
./myDevices-1.0/python/myDevices/remoteaccess/init.py
./myDevices-1.0/python/myDevices/os/init.py
./myDevices-1.0/python/myDevices/os/cpu.py
./myDevices-1.0/python/myDevices/os/daemon.py
./myDevices-1.0/python/myDevices/os/getsysteminfo.py
./myDevices-1.0/python/myDevices/os/raspiconfig.py
./myDevices-1.0/python/myDevices/os/services.py
./myDevices-1.0/python/myDevices/os/systeminfo.py
./myDevices-1.0/python/myDevices/os/threadpool.py
./myDevices-1.0/python/myDevices/ipgetter/init.py
./myDevices-1.0/python/myDevices/cloud/init.py
./myDevices-1.0/python/myDevices/cloud/actions.py
./myDevices-1.0/python/myDevices/cloud/cayenneclient.py
./myDevices-1.0/python/myDevices/cloud/client.py
./myDevices-1.0/python/myDevices/cloud/dbmanager.py
./myDevices-1.0/python/myDevices/cloud/download_speed.py
./myDevices-1.0/python/myDevices/cloud/installer.py
./myDevices-1.0/python/myDevices/cloud/scheduler.py
./myDevices-1.0/python/myDevices/cloud/trigger.py
./myDevices-1.0/python/myDevices/cloud/updater.py
./myDevices-1.0/python/myDevices/cloud/vcom_id.py
./myDevices-1.0/libs/libSystemInformation.so
./myDevices-1.0/deb/debian_dependencies.txt
./myDevices-1.0/deb/download.sh
./myDevices-1.0/deb/install
./myDevices-1.0/deb/install_packages.sh
./myDevices-1.0/deb/libiw-dev/
./myDevices-1.0/deb/package
./myDevices-1.0/deb/python3-setuptools/
./myDevices-1.0/deb/tightvncserver/
./myDevices-1.0/deb/tightvncserver/expect_5.45-2_armhf.deb
./myDevices-1.0/deb/tightvncserver/install
./myDevices-1.0/deb/tightvncserver/libjpeg62-turbo_1.4.1-2_armhf.deb
./myDevices-1.0/deb/tightvncserver/tightvncserver_1.3.9-6.6_armhf.deb
./myDevices-1.0/deb/tightvncserver/xfonts-base_1.0.4+nmu1_all.deb
./myDevices-1.0/deb/python3-setuptools/install
./myDevices-1.0/deb/python3-setuptools/python3-pkg-resources_0.6.24-1_all.deb
./myDevices-1.0/deb/python3-setuptools/python3-setuptools_0.6.24-1_all.deb
./myDevices-1.0/deb/libiw-dev/install
./myDevices-1.0/deb/libiw-dev/libiw-dev_30~pre9-8_armhf.deb
./myDevices-1.0/3rd_party/enum34-1.0.4.tar.gz
./myDevices-1.0/3rd_party/install
./myDevices-1.0/3rd_party/install_packages.sh
./myDevices-1.0/3rd_party/iwlib-1.5.tar.gz
./myDevices-1.0/3rd_party/jsonpickle-0.9.2.tar.gz
./myDevices-1.0/3rd_party/netifaces-0.10.4.tar.gz
./myDevices-1.0/3rd_party/package
./myDevices-1.0/3rd_party/psutil-0.5.0.tar.gz
./myDevices-1.0/3rd_party/requests.tar.gz
./myDevices-1.0/3rd_party/suds-jurko-0.6.tar.gz

  • set -x
  • exec
    (0%)
    ven 17 mar 2017, 00.01.51, CET Installing myDevices agent
    0
    (-1%)
    ven 17 mar 2017, 00.01.52, CET Installing myDevices agent
    Setup requires at least 200Mb for install

These are the line:

availableSize=df -k | head -2 | tail -1 | awk '{print $4}'
if [ $availableSize -lt 200000 ]; then

With my df, availableSize is 10240 :frowning:

Can you post your output from df -h /home/pi ? I wonder if that directory is on some partition that really doesn’t have any disk space

pi@raspberrypi:~/myDevices-1.0 $ df -h /home/pi
File system Dim. Usati Dispon. Uso% Montato su
/dev/sdb1 99G 6,7G 87G 8% /

I’m sorry, I guess while that is where you downloaded the installer, we’re actually installing to /etc I believe. Can we see the stats on that? df -h /etc

pi@raspberrypi:/etc $ df -h /etc
File system Dim. Usati Dispon. Uso% Montato su
/dev/sdb1 99G 6,7G 87G 8% /

Ok, I think you had it above. I’m guessing if you run that command once more for dev, you’ll get a very small amount of space remaining?

I’m not familiar with the parition scheme here… what also is the output from cat/etc/os-release ?

actually I don’t think /dev matters, sorry. But I am still interested in cat/etc/os-release. Is this a custom install of Raspbian? The partitioning seems much different than the Pis I’m used to.

pi@raspberrypi:/etc $ cat /etc/os-release
PRETTY_NAME=“Raspbian GNU/Linux 8 (jessie)”
NAME=“Raspbian GNU/Linux”
VERSION_ID=“8”
VERSION=“8 (jessie)”
ID=raspbian
ID_LIKE=debian
HOME_URL=“http://www.raspbian.org/
SUPPORT_URL=“RaspbianForums - Raspbian
BUG_REPORT_URL=“RaspbianBugs - Raspbian

The boot start from HDD and not from SD card.

Ok, I think I’ve figured this out, and have a solution.

Our script is blindly grabbing the 2nd line of the df -k output to check for disk space. This works on a default Pi with no additional drives, but falls on its face here. Needs improvment! :slight_smile:

To fix it, let’s make the script check /dev/sda1 instead:

In the folder where you found setup.sh, run
sudo nano setup.sh
to edit it. Locate the line which you showed me:

availableSize=df -k | head -2 | tail -1 | awk '{print $4}'

and change the 2 to a 4. This will make it read the 4th (and correct) line of your df output. Save your changes.

Next, to run the script that we edited, we need your Pi invite code. You can find this as the part after the underscore on your downloaded install script. So if you have file rpi_q6k588d6wb.sh then your invite code is q6k588d6wb

Finally, browse back to the folder that contained setup.sh that we edited. Run it again with the following command: sudo ./setup.sh -code YOURINVITECODE -v where you replace YOURINVITECODE with your actual invite code.

That should kick off the rest of the install which should work automatically. Apologies for the trouble, we need to update this install script to be more robust for multiple drive cases like yours!

1 Like

hi

you just change the line:

availableSize=df -k | head -2 | tail -1 | awk ‘{print $4}’,

in

availableSize=df -k / | head -2 | tail -1 | awk ‘{print $4}’,

Ok now it’s ok. Thanks so much

Awesome job, @rob!

Cheers,

Craig

Hah thanks, I sure had to fumble through it with a lot of unnecessary questions :slight_smile:

Glad to hear its working @gattulli! you know where to find us if you have another question.