Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push simple python application #248

Closed
agherzan opened this issue Aug 17, 2016 · 5 comments
Closed

Push simple python application #248

agherzan opened this issue Aug 17, 2016 · 5 comments

Comments

@agherzan
Copy link
Contributor

agherzan commented Aug 17, 2016

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

@jnv
Copy link

jnv commented Sep 4, 2016

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 Sep 5, 2016

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 Sep 5, 2016

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

@petrosagg
Copy link
Contributor

SGTM

@agherzan
Copy link
Contributor Author

agherzan commented Feb 6, 2018

This issue was moved to balena-os/balena-qemu#82

@agherzan agherzan closed this as completed Feb 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants