tailhook / vagga

Vagga is a containerization tool without daemons
http://vagga.readthedocs.org
MIT License
1.86k stars 96 forks source link

alpine certificate issue while building container #580

Closed NeerajUsadadiya closed 1 year ago

NeerajUsadadiya commented 1 year ago

✗ > vagga bash (1/1) Installing alpine-keys (2.4-r1) OK: 0 MiB in 1 packages fetch http://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 6874648:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1914: ERROR: http://nl.alpinelinux.org/alpine/v3.15/main: Permission denied WARNING: Ignoring http://nl.alpinelinux.org/alpine/v3.15/main: No such file or directory ERROR: unable to select packages: ca-certificates (no such package): required by: world[ca-certificates] wget (no such package): required by: world[wget] ERROR 2023-03-30T08:15:05Z: vagga::builder: Error building container "ubuntu": step Ubuntu("xenial") failed: Error running <Command "/vagga/bin/apk" "--update-cache" "add" "wget" "ca-certificates"; environ[3]>: exited with code 2 ERROR 2023-03-30T08:15:05Z: vagga::wrapper: Error executing _build: Builder exited with code 1 Command <Command "/proc/self/exe" "__wrapper__" "_build" "ubuntu"; environ[3]; uid_map=[UidMap { inside_uid: 0, outside_uid: 1000, count: 1 }, UidMap { inside_uid: 1, outside_uid: 100000, count: 65535 }]; gid_map=[GidMap { inside_gid: 0, outside_gid: 1000, count: 1 }, GidMap { inside_gid: 1, outside_gid: 100000, count: 65535 }]> exited with code 124

I am getting above error and not able to build any of the container. Even simple ubuntu or alpine container build is failing. Sample vagga.yaml for which I got the above error is as below:

containers:
  ubuntu:
    setup:
    - !Ubuntu xenial
    - !Install [python, bash]

commands:
  bash: !Command
    container: ubuntu
    volumes:
      /root: !Snapshot
        size: 2000Mi
    environ:
      color_prompt: yes
      QT_X11_NO_MITSHM: 1
      QT_XCB_NO_MITSHM: 1
    # work-dir: /work/.
    run: [ bash ]
tailhook commented 1 year ago

You're probably using stable version of vagga? You should use from testing. I'm currently failing to update stable as aften as needed.

NeerajUsadadiya commented 1 year ago

You're probably using stable version of vagga? You should use from testing. I'm currently failing to update stable as aften as needed.

Thanks for the reply. I'm not able to find the test version here. Can you please suggest me where can I get it?

NeerajUsadadiya commented 1 year ago

Building from current master worked for me. It also pushed me to change busybox version in binaries as the version specified in fetch_binaries.sh is no longer available in alpine repo. Thank you for the suggestion.