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

Push simple python application #82

Open
agherzan opened this issue Feb 6, 2018 · 4 comments
Open

Push simple python application #82

agherzan opened this issue Feb 6, 2018 · 4 comments

Comments

@agherzan
Copy link
Contributor

agherzan commented Feb 6, 2018

From @agherzan on August 17, 2016 8:45

Description

Push an a simple python application to the device

Steps to reproduce issue

git clone https://github.com/alexandrosm/hello-python
cd hello-python
git remote add resin YYY (copy the link from the application's dashboard)
git push resin master

Expected result

In the device's logs you should see: "hello python!"

Actual result

Can't download application. In the logs:

17.08.16 16:39:40 [+0800] Downloading application 'registry.resinstaging.io/qemu1/fd6c30d376a865a76b2ce8af9fb085b842ba55f1'
17.08.16 16:45:00 [+0800] Failed to download application 'registry.resinstaging.io/qemu1/fd6c30d376a865a76b2ce8af9fb085b842ba55f1' due to 'Error pulling image (latest) from registry.resinstaging.io/qemu1/fd6c30d376a865a76b2ce8af9fb085b842ba55f1, failed to register layer: ApplyLayer exit status 1 stdout: stderr: write /usr/lib/gcc/i586-linux-gnu/4.9/cc1plus: no space left on device'

and repeatedly try to download.

Started with the default command recommended from the dashboard: qemu-system-i386 -drive file=resin.img,media=disk,cache=none,format=raw -net nic,model=virtio -net user -m 512 -machine type=pc,accel=kvm -smp 4 -cpu host

Other information

Reported by: Gergely Imreh

Test configuration: QEMU X86 32bit

Test case number: TC06

Test run: https://resinio.testlodge.com/projects/16238/runs/221686?tab=2&run_section_id=231829&executed_case_id=10347326#executed_case_10347326

Copied from original issue: balena-os/meta-balena#248

@agherzan
Copy link
Contributor Author

agherzan commented Feb 6, 2018

From @jnv on September 4, 2016 20:24

As a workaround, you can resize the image using qemu-img and Resin automatically resizes the partition, e.g.:

qemu-img resize -f raw resin-image-qemux86-64.img +4G

#249 is duplicate.

@agherzan
Copy link
Contributor Author

agherzan commented Feb 6, 2018

CC @lifeeth i think we should have this instruction in qemu machines. Cause my default docker disk is only 1G which might be insufficient for some apps.

@agherzan
Copy link
Contributor Author

agherzan commented Feb 6, 2018

Or... I would actually vote to start shipping qemu images with 4G of docker disk (most of the boards we have use that disk size). CC @petrosagg

@agherzan
Copy link
Contributor Author

agherzan commented Feb 6, 2018

From @petrosagg on September 5, 2016 12:10

SGTM

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

1 participant