tdnf could not install rkt inside photon container
After building micro and full version of the docker image, running photon:full I can get docker to run, but not rkt.
sudo docker run --privileged -it photon:full
root [ / ]# docker ps
FATA[0000] Get http:///var/run/docker.sock/v1.17/containers/json: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?
root [ / ]# docker -d &
[1] 11
root [ / ]# INFO[0000] +job serveapi(unix:///var/run/docker.sock)
INFO[0000] +job init_networkdriver()
INFO[0000] Listening for HTTP on unix (/var/run/docker.sock)
INFO[0000] -job init_networkdriver() = OK (0)
INFO[0000] WARNING: mountpoint for memory not found
INFO[0000] Loading containers: start.
INFO[0000] Loading containers: done.
INFO[0000] docker daemon: 1.5.0 a8a31ef; execdriver: native-0.2; graphdriver: aufs
INFO[0000] +job acceptconnections()
INFO[0000] -job acceptconnections() = OK (0)
root [ / ]# docker ps
INFO[0008] GET /v1.17/containers/json
INFO[0008] +job containers()
INFO[0008] -job containers() = OK (0)
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
root [ / ]#
Rocket
root [ / ]# tdnf install rocket
Error: Failed to synchronize cache for repo 'VMWare Photon Linux 1.0(x86_64)' from 'file:///media/cdrom/usr/src/photon/RPMS'
Disabling Repo: 'VMWare Photon Linux 1.0(x86_64)'
Installing:
rocket x86_64 v0.5.1-1
Is this ok [y/N]:y
Error during download: 19: Cannot download x86_64/rocket-v0.5.1-1.x86_64.rpm: All mirrors were tried
Error(1622) : Invalid argument
root [ / ]#
Thanks for letting us know. We fixed that, and now you should be able to install rocket using tdnf, please confirm this issue is fixed and close it.
@mbassiouny rebuilt with git pull and sudo make all then sudo ./make-docker-image.sh ~/photon/ full and am seeing the below:
root [ /var/cache/tdnf ]# tdnf install rocket
Error: Failed to synchronize cache for repo 'VMware Photon Linux 1.0(x86_64)' from 'https://dl.bintray.com/vmware/photon_release_1.0_x86_64'
Disabling Repo: 'VMware Photon Linux 1.0(x86_64)'
Error: Failed to synchronize cache for repo 'VMWare Photon Linux 1.0(x86_64)' from 'file:///media/cdrom/usr/src/photon/RPMS'
Disabling Repo: 'VMWare Photon Linux 1.0(x86_64)'
Error(905) : Nothing to do
Is there any debug options for tdnf that would tell me what Error: Failed to synchronize cache for repo actually means?
It seems that the repodata is not created for this repository. Investigating with bintray - will update asap.
@wallnerryan: This issue is resolved. Could you please try now? Thanks for your patience.
@ppadmavilasom thanks for your help, confirmed I can install rkt now in below example. Will close.
~/photon/photon$ sudo docker run --privileged -it photon:full
root [ / ]# tdnf install rocket
Error: Failed to synchronize cache for repo 'VMWare Photon Linux 1.0(x86_64)' from 'file:///media/cdrom/usr/src/photon/RPMS'
Disabling Repo: 'VMWare Photon Linux 1.0(x86_64)'
Installing:
rocket x86_64 v0.5.1-1
Is this ok [y/N]:y
Downloading 17959462.00 of 17959462.00
Testing transaction
Running transaction
root [ / ]# rkt
NAME:
rkt - rocket, the application container runner
USAGE:
rkt [global options] <command> [command options] [arguments...]
VERSION:
0.5.1
COMMANDS:
enter Enter the namespaces of an app within a rkt container
fetch Fetch image(s) and store them in the local cache
gc Garbage-collect rkt containers no longer in use
help Show a list of commands or help for one command
install Set up Rocket data directories with correct permissions
list List containers
metadata-service Run metadata service
prepare Prepare to run image(s) in an application container in rocket
run Run image(s) in an application container in rocket
run-prepared Run a prepared application container in rocket
status Check the status of a rkt container
trust Trust a key for image verification
version Print the version and exit
GLOBAL OPTIONS:
--debug=false Print out more debug information to stderr
--dir=/var/lib/rkt rocket data directory
--help=false Print usage information and exit
--insecure-skip-verify=false skip image or key verification
Run "rkt help <command>" for more details on a specific command.
root [ / ]#
I get the same error for now. How I can see more verbose output?
$ tdnf help
Error: Failed to synchronize cache for repo 'VMWare Photon Linux 1.0(x86_64)' from 'file:///media/cdrom/usr/src/photon/RPMS'
Disabling Repo: 'VMWare Photon Linux 1.0(x86_64)'
Error: Failed to synchronize cache for repo 'VMware Photon Linux 1.0(x86_64)' from 'https://dl.bintray.com/vmware/photon_release_1.0_TP1_x86_64'
Disabling Repo: 'VMware Photon Linux 1.0(x86_64)'
Error: Failed to synchronize cache for repo 'VMware Photon Linux 1.0(x86_64)Updates' from 'https://dl.bintray.com/vmware/photon_updates_1.0_TP1_x86_64'
Disabling Repo: 'VMware Photon Linux 1.0(x86_64)Updates'
@flecno: Can you ping dl.bintray.com from your machine? Looks like a connectivity issue. Let me know if you still have an issue.
I can get the repo with curl without any problemns. I changed the repo URL to http://dl.bintray.com/vmware/photon_release_1.0_TP1_x86_64/ to avoid redirects (added trailing slash) and TLS verification errors. It feels like a connection issue because tdnf exits immediately.
Any ideas?
@flecno: If still an issue, could you please try removing any .solv files from /var/cache/tdnf and do a
tdnf makecache?
@ppadmavilasom It's still an issue and there is no directory named /var/cache/tdnf. Because I have not build a cache for now? It's a clean vagrant box which runs ailispaw/photon-mini
@flecno: that is unusual - i am not sure how the toplevel cache directory got removed. It usually gets created with the tdnf install which happens with os default packages. could you try after manually creating /var/cache/tdnf ?
I've removed /var/cache/tdnf and its contents on creating the photon-mini box to reduce the size of the box.
Thank you @ppadmavilasom,
As you suggested, it works fine after I create the directory /var/cache/tdnf manually.
@flecno,
I will release the next version of the box with the /var/cache/tdnf.
@flecno, One more thing, to avoid the error with 'file:///media/cdrom/usr/src/photon/RPMS', you need to download the iso https://dl.bintray.com/vmware/photon/iso/1.0TP1/x86_64/photon-1.0TP1.iso and mount it as below.
Vagrant.configure(2) do |config|
config.vm.box = "ailispaw/photon-mini"
config.vm.provider :virtualbox do |v|
v.customize [
"storageattach", :id,
"--storagectl", "IDE Controller",
"--port", "0",
"--device", "1",
"--type", "dvddrive",
"--medium", "photon-1.0TP1.iso",
]
end
config.vm.provision :shell do |sh|
sh.inline = "mount /dev/cdrom /media/cdrom"
end
end
$ curl -OL https://dl.bintray.com/vmware/photon/iso/1.0TP1/x86_64/photon-1.0TP1.iso
$ vagrant up
$ vagrant ssh
vagrant [ ~ ]$ sudo tdnf help
@ailispaw: You can set the enabled flag to 0 in photon-iso.repo so you dont have to download the iso file. This is set to 0 in the master branch and will be reflected in the next release.
Thanks for your help. The new release works fine!
@ppadmavilasom Thank you for the information. It's good to know.