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

ERROR: unable to select packages: s6-ipcserver #29

Closed
martinwk opened this issue Aug 26, 2021 · 4 comments
Closed

ERROR: unable to select packages: s6-ipcserver #29

martinwk opened this issue Aug 26, 2021 · 4 comments
Labels
invalid This doesn't seem right question Further information is requested

Comments

@martinwk
Copy link

martinwk commented Aug 26, 2021

I was running homeassistant using the script of this repo and it was working fine. But yesterday I have updated the homeassistant image but now homeassistant is not starting up. This is my docker compose file:

version: '2'
services:
  homeassistant:
    container_name: home-assistant
    image: homeassistant/raspberrypi4-homeassistant:stable
    ports:
      - "8123:8123"
    volumes:
      - /media/appdata/home_assistant/config:/config
      - /media/appdata/home_assistant/config/docker/run:/etc/services.d/home-assistant/run
      - /etc/localtime:/etc/localtime:ro
    environment:
      - TZ=Europe/Amsterdam
      # PUID, PGID and PACKAGES are required to run homeassistant without root see:
      #   https://github.com/tribut/homeassistant-docker-venv#home-assistant-using-venv-in-docker
      - PUID=1000
      - PGID=1000
      - PACKAGES=iputils
    restart: always
    network_mode: host
    # user: "1000:1000" # since version home assistant needs to run as root...
    depends_on:
      - mariadb
      - mosquitto

and this is the log of the homeassistant container

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] udev.sh: executing... 
[cont-init.d] udev.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[22:52:24] INFO: Creating user homeassistant with 1000:1000
[08:24:08] INFO: Installing package: s6-ipcserver
3069719440:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330:
3069719440:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330:
3069719440:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330:
3069719440:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330:
3069719440:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1913:
  s6-ipcserver (no such package):
3069719440:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330:
3069719440:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330:
3069719440:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330:
3069719440:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330:
3069719440:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1913:
ERROR: unable to select packages:
    required by: world[s6-ipcserver]
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] udev.sh: executing... 
[cont-init.d] udev.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[15:01:12] INFO: Creating user homeassistant with 1000:1000
[20:01:44] INFO: Installing package: s6-ipcserver
3070137232:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330:
3070137232:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330:
3070137232:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330:
3070137232:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330:
3070137232:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1913:
ERROR: unable to select packages:
  s6-ipcserver (no such package):
    required by: world[s6-ipcserver]
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

Any idea what I am doing wrong?

@tribut
Copy link
Owner

tribut commented Aug 26, 2021

Hey :)

This seems unrelated to this script. A quick google search leads me to believe that you are most likely running Raspbian with an older version of libseccomp, which is incompatible with newer versions of alpine: Bug report, explanation from alpine wiki.

The easiest fix seems to be to install libseccomp from buster, as recommended here: alpinelinux/docker-alpine#135 (comment)

If this is not the case, please let me know which version of Home Assistant you are running, which version of my script and what version of docker and libseccomp are installed. Thanks!

@tribut tribut added the question Further information is requested label Aug 26, 2021
@martinwk
Copy link
Author

Hey tribut thanks for your reply! thanks for your links, although it is a little too much info for me to swallow. But what I grasp from it is that I indeed am running Buster. I thought I had a quite recent version of Raspbian but apparently I dont have it (anymore, (time flies ...))

I don't think I could have figured this out myself (certainly not as fast as you did this!). So thanks a lot for helping out although it wasn't even an issue with your script.

Now I need to force myself to make time to update my pi's OS :)

@tribut tribut added the invalid This doesn't seem right label Aug 26, 2021
@tribut
Copy link
Owner

tribut commented Aug 26, 2021

No worries, glad I could be of help. Did the workaround of installing the newer libseccomp2 help?

For now, I'm closing the issue because its unrelated to the script.

@tribut tribut closed this as completed Aug 26, 2021
@martinwk
Copy link
Author

Yep,the update of the libseccomp2 was all that was required

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants