Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

AGL storage issue #64

Closed
m-lenz opened this issue May 28, 2019 · 5 comments
Closed

AGL storage issue #64

m-lenz opened this issue May 28, 2019 · 5 comments
Milestone

Comments

@m-lenz
Copy link

m-lenz commented May 28, 2019

When working with AGL the whole OS takes up ~5GB of the SD-cards 16GB

raspberrypi3:~# du -hs / 
=> 2.4G	/

raspberrypi3:~# df -h /
=> Filesystem      Size  Used Avail Use% Mounted on
=> /dev/root       2.5G  2.3G  1.4M 100% /

raspberrypi3:/usr/bin/kuksa-hawkbit# du -hs /tmp/        
=> 152K	/tmp/

raspberrypi3:/usr/bin/kuksa-hawkbit# df -h /tmp/         
=> Filesystem      Size  Used Avail Use% Mounted on
=> tmpfs           438M  152K  438M   1% /tmp

Even though there is enough space inside the /tmp/-directory, the app-manager` is unable to download apps:

[Errno 28] No space left on device

I tried it with small (33MB), medium (70MB) and large(350MB) apps and non of them can be loaded.

When using the foreverChecker and Hawkbit however, there is no issue downloading multiple images and saving them inside the /tmp/ directory.

Until this is fixed we won't be able to test the app-manager any further.

@SebastianSchildt
Copy link
Contributor

@rai20 What is different in our setup of appmanager on the dongle? We are using appmanager, and downloading also the fat 80MiB traccar docker without problem. And the emmc variant has only 4 GiB... Can you show df -hand mountof our setup and clarify where we are downloading to?

@m-lenz
Copy link
Author

m-lenz commented Jun 3, 2019

df -h shows empty space in /tmp (Apps are downloaded to the /tmp-directory):
df-output.png
at the moment /tmp yields ~500mb of free space, but the appmanager will need 350 of those and won't allow further downloads. When the SD-card is mounted ion another it shows 16GB in size, while df and du suggest a maximum usage of 6-7GB.

and this is the output of mount:
mount-output.png

@m-lenz
Copy link
Author

m-lenz commented Jun 4, 2019

Since everyone in the call hadn't had this issue, please tell me how you deviated from the original build-instructions to achieve this.

@rai20
Copy link
Contributor

rai20 commented Jun 5, 2019

I don't think this is an issue with the way you build the Image. So here are the steps I follow to flash the SD card.

  1. Use gparted to delete the existing partition (if any) on the SD card.
  2. Create a new partition occupying all the available memory on the card and format it as ext4.
  3. Now use Etcher to flash the card.

Another question would be, how have you deployed the appmanager? native or as docker container?

I use the appmanager in a docker container and have faced no space related issues.
I have not tested the native deployment.

@m-lenz
Copy link
Author

m-lenz commented Jun 5, 2019

@rai20 Since this issue is still a thing, so we deploy the app-manager using docker.
Edit2: I heard the new AGL ships with the app-manager inside the kuksa-layers, but we have no way of testing it for now.

Edit: Apparently the SD card was flashed on a Macintosh so we gonna look into that as soon, as the new image is done building. I will close this issue, until these things happen again on the new image

@m-lenz m-lenz closed this as completed Jun 5, 2019
@m-lenz m-lenz reopened this Jun 6, 2019
@m-lenz m-lenz closed this as completed Jun 6, 2019
@rohoet rohoet added this to the 0.1 milestone Jun 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants