balena-io-library / resin-rpi-raspbian

Apache License 2.0
74 stars 27 forks source link

jessie/wheezy: Permission errors in entry.sh, older builds OK #30

Closed jc776 closed 8 years ago

jc776 commented 8 years ago

When I run the most recent images (jessie or wheezy), it gets stuck in 'entry.sh' with several permission errors about directory mounting. When I use an older build, it starts correctly.

I'm on a Raspberry Pi 3 with HypriotOS 0.8.0. I'm running these commands over ssh, without docker-machine.

HypriotOS/armv7: pirate@black-pearl in ~
$ docker images
REPOSITORY                         TAG                 IMAGE ID            CREATED             SIZE
resin/rpi-raspbian                 jessie              359d9d3e0e57        3 days ago          117.2 MB
resin/rpi-raspbian                 latest              359d9d3e0e57        3 days ago          117.2 MB
resin/rpi-raspbian                 wheezy              8978e6a5853b        3 days ago          84.45 MB
container4armhf/armhf-alpine       3.4                 b70904e50147        4 days ago          5.999 MB
ctarwater/armhf-alpine-rpi-java8   latest              cfa87a37c6d2        3 weeks ago         206 MB
resin/rpi-raspbian                 wheezy-20160525     8d39da3b9752        7 weeks ago         51.33 MB
hypriot/rpi-busybox-httpd          latest              fbd9685c5ffc        13 months ago       2.156 MB
HypriotOS/armv7: pirate@black-pearl in ~
$ docker run -it resin/rpi-raspbian:wheezy
hostname: the specified hostname is invalid
mount: permission denied
mount: permission denied
mount: permission denied
mount: permission denied
mount: mount point /tmp/console is not a directory
umount: /dev: must be superuser to umount
mount: permission denied
mount: permission denied
udevd[20]: error: runtime directory '/run/udev' not writable, for now falling back to '/dev/.udev'
root@b4caa34d3a99:/# exit
HypriotOS/armv7: pirate@black-pearl in ~
$ docker run -it resin/rpi-raspbian:jessie
hostname: the specified hostname is invalid
mount: permission denied
mount: permission denied
mount: permission denied
mount: permission denied
mount: mount point /tmp/console is not a directory
umount: /dev: must be superuser to unmount
mount: permission denied
root@b081121757a4:/# exit
HypriotOS/armv7: pirate@black-pearl in ~
$ docker run -it resin/rpi-raspbian:wheezy-20160525
root@58814a81c44f:/# exit
HypriotOS/armv7: pirate@black-pearl in ~
$ docker ps -a
CONTAINER ID        IMAGE                                COMMAND                  CREATED             STATUS                      PORTS               NAMES
58814a81c44f        resin/rpi-raspbian:wheezy-20160525   "/bin/bash"              20 seconds ago      Exited (0) 16 seconds ago                       sleepy_wright
b081121757a4        resin/rpi-raspbian:jessie            "/usr/bin/entry.sh /b"   31 seconds ago      Exited (0) 28 seconds ago                       modest_bardeen
b4caa34d3a99        resin/rpi-raspbian:wheezy            "/usr/bin/entry.sh /b"   42 seconds ago      Exited (0) 38 seconds ago                       angry_jepsen
HypriotOS/armv7: pirate@black-pearl in ~
$
nghiant2710 commented 8 years ago

hey @jc776, we integrated our systemd base image into this image (entry.sh) last week and this script assumed to be running in a resin device so you will see some issues with mounting. We will fix this soon and thank you for your report.

romilly commented 8 years ago

Looks like you've fixed the problem here, will you be pushing the fixed image to docker hub?

nghiant2710 commented 8 years ago

@romilly, new images with the fix pushed to docker hub :)

romilly commented 8 years ago

Thanks :)

On 26 July 2016 at 03:06, Trong Nghia Nguyen notifications@github.com wrote:

@romilly https://github.com/romilly, new images with the fix pushed to docker hub :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/resin-io-library/resin-rpi-raspbian/issues/30#issuecomment-235142113, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJHPmQRLPW5asvqBWEzhIiwDXH-8-PUks5qZWuwgaJpZM4JONOC .

personal:@romillyc work:@rareblog skype:romilly.cocking web: http://blog.rareschool.com/