I'm trying to do an install of Ipyvolume with Conda with the command line
conda install -c conda-forge ipyvolume
But Conda fails with the crucial message:
CondaHTTPError: HTTP 000 CONNECTION FAILED for URL
<http://localhost:3141/root/pypi/ numpy/osx-64/repodata.json>
Any help would be appreciated.
Related
Im building an docker container in remote host with CentOS in it. When its time for PIP to install packages from requirements.txt i get following warning and error.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f989f889978>: Failed to establish a new connection: [Errno -3] Try again',)': /simple/pip/
and after all retries i get this error
ERROR: Could not find a version that satisfies the requirement connexion[swagger-ui] (from -r /tmp/requirements.txt (line 1)) (from versions: none) ERROR: No matching distribution found for connexion[swagger-ui] (from -r /tmp/requirements.txt (line 1)) ERROR: Service 'api' failed to build: The command '/bin/sh -c pip install -U pip && pip install -r /tmp/requirements.txt' returned a non-zero code: 1 make: *** [compose-build-nocache] Error 1
Things i have tried.
I used docker build commnd with --network=host flag and it executes fine.
and after this build if i use ping inside container to any site it failes.
i build image locally and then load in remote host it works but i cannot curl to localhost where the application throws output.
I am trying to use packer with GCP in gitlab-ci but every time I get to the packer build it will fail with the following error:
starting remote command: chmod +x /tmp/script_5147.sh; DEBIAN_FRONTEND='noninteractive' PACKER_BUILDER_TYPE='googlecompute' PACKER_BUILD_NAME='my_vm' /tmp/script_5147.sh
==> googlecompute.my_vm: /tmp/script_5147.sh: line 1: {message:401 Unauthorized}: command not found
2022/11/13 13:26:05 [INFO] 0 bytes written for 'stdout'
2022/11/13 13:26:05 packer-plugin-googlecompute_v1.0.16_x5.0_linux_amd64 plugin: 2022/11/13 13:26:05 [ERROR] Remote command exited with '127': chmod +x /tmp/script_5147.sh; DEBIAN_FRONTEND='noninteractive' PACKER_BUILDER_TYPE='googlecompute' PACKER_BUILD_NAME='my_vm' /tmp/script_5147.sh
2022/11/13 13:26:05 packer-plugin-googlecompute_v1.0.16_x5.0_linux_amd64 plugin: 2022/11/13 13:26:05 [INFO] RPC endpoint: Communicator ended with: 127
The script
#!/bin/bash
set -e
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
apt update
apt install -y curl
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
apt upgrade -y iptables
# The iptables-persistent must be installed in order to create the /etc/iptables/rules.v4 file
apt install -y nginx libzmq3-dev nodejs ipset iptables-persistent net-tools libre2-dev
npm install -g yarn
rm /etc/nginx/sites-enabled/default
The packer is working locally (also with the image) and I created a VM in GCP all of them are working, only in gitlab it fails.
I created a custom image of packer and it still failed for me on gitlab.
I will try to move it to my own runner but it will take a few days for me.
Would love if someone could help me figure it out.
Ok, I figured out the problem.
I curled some files and the token was not good so when it got to packer it failed because the files were not as expected.
I printing the 401 of the curl.
I am trying to build a docker file and I am getting this error
------
=> ERROR [internal] load metadata for docker.io/bitnami/minideb:stretch 2.5s
=> [auth] bitnami/minideb:pull token for registry-1.docker.io 0.0s
[internal] load metadata for docker.io/bitnami/minideb:stretch:
failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to authorize: rpc error: code = Unknown desc = failed to fetch oauth token: Get "https://auth.docker.io/token?scope=repository%3Abitnami%2Fminideb%3Apull&service=registry.docker.io": x509: certificate signed by unknown authority`
I just downloaded this file from git repo and tried to build it, but I am getting this above mentioned error.
I have tried so far:
docker login and docker pull hello-world/docker pull docker.io/bitnami/minideb:stretch works for me.
Tried restarting docker desktop, I am on a mac
Tried resetting to factory settings, and then restarting docker desktop, still no luck.
This is how I am building it:
docker build -f Dockerfile .
This is what is there in the docker file
FROM bitnami/minideb:stretch
RUN apt-get –no-install-recommends update
&& apt-get –no-install-recommends install -y openssh-client openssl libexpat1
&& sh /tmp/nso --system-install --non-interactive
the docker file is a really big one, so I cannot post the entire file here.
You have a few mistakes in your Dockerfile formatting.
You need to have a backslash at the end of each line before starting a new line with commands.
Please check the Dockerfile below:
FROM bitnami/minideb:stretch
RUN apt-get --no-install-recommends update \
&& apt-get install --no-install-recommends -y openssh-client \
openssl libexpat1 \
Note: I removed the last line of your Dockerfile because I don't understand what you want to do with it.
I'm trying to install jenkins on Ubuntu14.04 following this site.
After executing the last step, the terminal shows this error:
Err https://pkg.jenkins.io/debian-stable/ binary/ jenkins 2.235.5
gnutls_handshake() failed: Handshake failed
E: Failed to fetch https://pkg.jenkins.io/debian-stable/binary/jenkins_2.235.5_all.deb gnutls_handshake() failed: Handshake failed
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
I tried to run sudo apt-get update --fix-missing (no errow shown after running this cmd) but it doesn't help.
I also tried to install by downloading jenkins.war but the jenkins service isn't enabled after installing.
Please show me how to fix this issue.
The issue seems to be upstream (I have hit the same snag this morning trying to update one of my jenkins installls).
You could use wget and dpkg to fetch and install the deb package:
wget https://pkg.jenkins.io/debian-stable/binary/jenkins_2.235.5_all.deb && sudo dpkg -i jenkins_2.235.5_all.deb
Which will get you Jenkins installed.
I installed openstack magnum (ocata release) on docker in my controller node because I have installed newton on my host machines and newton binaries did not install correctly but now when I try to run magnum-service list command the output is:
ERROR: Unable to establish connection to http://controller:9511/v1/mservices
then I checked both magnum-api and magnum-conductor logs and there was an error:
ERROR magnum ImportError: No module named profiler
then I tried:
su -s /bin/sh -c "/var/lib/magnum/env/bin/pip install profiler" magnum
but even after installing profiler the error was the same.
Can anyone help?
Tnx to #eandersson now both services are running successfully but I faced another problem and that is when I try to run:
magnum service-list
The result is:
ERROR: 'errors'
So I tried:
magnum --debug service-list
And the result was:
ERROR: 'NoneType' object has no attribute 'replace' (HTTP 500) (Request-ID: req-cbe3a389-1cea-49f6-8472-3275696a67e3)
You are probably missing osprofiler, not profiler
profiler = importutils.try_import("osprofiler.profiler")
profiler_initializer = importutils.try_import("osprofiler.initializer")
profiler_web = importutils.try_import("osprofiler.web")
Try installing it instead.
su -s /bin/sh -c "/var/lib/magnum/env/bin/pip install osprofiler" magnum
By the way, when pip installing something for OpenStack you should be applying the requirements constrains.
-c https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/ocata
So ideally your command would look like this.
su -s /bin/sh -c "/var/lib/magnum/env/bin/pip install -c https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/ocata osprofiler" magnum