bsdci / libioc

A Python library to manage jails with ioc{age,ell}
https://bsd.ci/libioc
Other
38 stars 11 forks source link

ioc pkg no longer works #730

Closed igalic closed 5 years ago

igalic commented 5 years ago
Debug: Executing: '/usr/local/bin/ioc pkg webirc sqlite3 npm-node8 python27'
[+] PackageFetch@global: OK [13.834s]
[+] PackageConfiguration@webirc: OK [0.002s]
  [-] PackageInstall@webirc: FAILED [4.576s]
Error: /Stage[main]/Profile::Iocage/Jail[webirc]/ensure: change from 'absent' to 'present' failed: Execution of '/usr/local/bin/ioc pkg webirc sqlite3 npm-node8 python27' ret
[+] PackageFetch@global: OK [13.834s]
[+] PackageConfiguration@webirc: OK [0.002s]
  [-] PackageInstall@webirc: FAILED [4.576s]

on a second attempt:

# /usr/local/bin/ioc pkg webirc sqlite3 npm-node8 python27
[+] PackageFetch@global: OK [11.652s]
[+] PackageConfiguration@webirc: OK [0.002s]
[-] PackageInstall@webirc: FAILED [0.016s]
Jail 'webirc_pkg' is already running
root@webserver ~# 

# jls
   JID  IP Address      Hostname                      Path
    20                  webirc_pkg                    /iocage/jails/webirc/root

running with debug

Executing (interactive): /usr/sbin/jexec 23 /bin/sh -c export ASSUME_ALWAYS_YES=yes
/usr/sbin/pkg add /.ioc-pkg/pkgconf-1.6.1,1.txz
/usr/sbin/pkg update --force --repository libioc
/usr/sbin/pkg install --yes --repository libioc sqlite3 npm-node8 python27 pkg
  pkg: failed to extract pkg-static: (null)
  Bootstrapping pkg from file:///.ioc-pkg, please wait...
  pkg: Error fetching file:///.ioc-pkg/Latest/pkg.txz: No such file or directory
  A pre-built version of pkg could not be found for your system.
  Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.
  Bootstrapping pkg from file:///.ioc-pkg, please wait...
  pkg: Error fetching file:///.ioc-pkg/Latest/pkg.txz: No such file or directory
  A pre-built version of pkg could not be found for your system.
  Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.
Jail webirc_pkg hook command failed

we find out that something about the pkg package has changed in Latest

igalic commented 5 years ago

i am a little confused about this line here:

/usr/sbin/pkg add /.ioc-pkg/pkgconf-1.6.1,1.txz

nevermind, it's required by node8.


but it's still confusing, because there's a bunch of other runtime deps that aren't added.

igalic commented 5 years ago

729 addresses this issue, and, as i rightly guessed, that pkgconf is added, is significant.