Not able to run testNetwork of hyperledger issue in docker-compose - docker-compose

I am following the instructions of https://hyperledger-fabric.readthedocs.io/en/release-2.2/test_network.html to run my first fabric network.
as per instructions, have downloaded docker images from
curl -sSL https: bit.ly/2ysbOFE | bash -s
below is screenshot of images downloaded
ashish#ashish-Aspire-E1-570:~/myown/fabric-samples/test-network$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
busybox latest 62aedd01bd85 9 days ago 1.24MB
hyperledger/fabric-ca 1.5 b2aed5002b3d 2 months ago 68.1MB
hyperledger/fabric-ca 1.5.3 b2aed5002b3d 2 months ago 68.1MB
hyperledger/fabric-ca latest b2aed5002b3d 2 months ago 68.1MB
hyperledger/fabric-tools 2.4 625237d887db 3 months ago 473MB
hyperledger/fabric-tools 2.4.3 625237d887db 3 months ago 473MB
hyperledger/fabric-tools latest 625237d887db 3 months ago 473MB
hyperledger/fabric-peer 2.4 ee643d889779 3 months ago 62.3MB
hyperledger/fabric-peer 2.4.3 ee643d889779 3 months ago 62.3MB
hyperledger/fabric-peer latest ee643d889779 3 months ago 62.3MB
hyperledger/fabric-orderer 2.4 df64446ac2df 3 months ago 37.3MB
hyperledger/fabric-orderer 2.4.3 df64446ac2df 3 months ago 37.3MB
hyperledger/fabric-orderer latest df64446ac2df 3 months ago 37.3MB
hyperledger/fabric-ccenv 2.4 da4f00cb576a 3 months ago 517MB
hyperledger/fabric-ccenv 2.4.3 da4f00cb576a 3 months ago 517MB
hyperledger/fabric-ccenv latest da4f00cb576a 3 months ago 517MB
hyperledger/fabric-baseos 2.4 0287ebf8aaf3 3 months ago 6.94MB
hyperledger/fabric-baseos 2.4.3 0287ebf8aaf3 3 months ago 6.94MB
hyperledger/fabric-baseos latest 0287ebf8aaf3 3 months ago 6.94MB
Docker and docker-compose versions are as below
ashish#ashish-Aspire-E1-570:~/myown/fabric-samples/test-network$ docker-compose --version
docker-compose version 1.20.0, build ca8d3c6
ashish#ashish-Aspire-E1-570:~/myown/fabric-samples/test-network$ docker --version
Docker version 20.10.17, build 100c701
ashish#ashish-Aspire-E1-570:~/myown/fabric-samples/test-network$
when I run ./network.sh up command, getting below issue
ashish#ashish-Aspire-E1-570:~/myown/fabric-samples/test-network$ ./network.sh up
Using docker and docker-compose
Starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb'
LOCAL_VERSION=2.4.3
DOCKER_IMAGE_VERSION=2.4.3
ERROR: Version in "./compose/compose-test-net.yaml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ashish#ashish-Aspire-E1-570:~/myown/fabric-samples/test-network$
I tried to search this issue and came across,
Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version
As per the suggestions in it, have been trying to install latest docker-compose but not able to find right link.
i mean in examples found on internet, they have shown link to download as
sudo curl -L https://github.com/docker/compose/releases/download/1.20.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
but my observation is latest versions like v2.5.0 are not reachable if i just change the version in above link which I tried as well.
Pls help me understand how I can proceed with this !

I was able to download 2.6.0 as follows
sudo curl -L https://github.com/docker/compose/releases/download/v2.6.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

Related

upgrading postgres 11 to 13 fails in consistency check

when i try to upgrade Postgres from version 11 to version 13 using this command:
/usr/lib/postgresql/13/bin//pg_upgrade
-b /postgresql/11/bin/
-B /postgresql/13/bin/
-d /data/service/postgres.1061/nanny/data/postgres
-D /large_files/postgres/nanny/tmp.xrEaY5IPYM
-U postgres -v -o '-c unix_socket_directories=/tmp/tmp.rfhIJiiAK3/socket'
it fails with the error
Old cluster data and binary directories are from different major versions during consistency checks.
The problem is that the cluster in /data/service/postgres.1061/nanny/data/postgres is not version 11 (or that the binaries in /postgresql/11/bin/ are not version 11).

Web server startup failed: Current version is too old. Please upgrade to Long Term Support version firstly

CentOS 7
Docker 20.10.5
java version "1.8.0_162"
PostgreSQL 9.6.2
I try to start SonarQube 7.6.9 in Docker like this:
sudo docker run --name sonarqube -p 9000:9000 --add-host host.docker.internal:host-gateway -e SONARQUBE_JDBC_USERNAME=sonar -e SONARQUBE_JDBC_PASSWORD=sonar -e SONARQUBE_JDBC_URL=jdbc:postgresql://host.docker.internal:5432/sonar sonarqube:7.6.9
But I get error:
ERROR web[][o.s.s.p.PlatformImpl] Web server startup failed: Current version is too old. Please upgrade to Long Term Support version firstly.
P.S.
If I start without connect to PostgreSQL then SonarQube 7.6.9 is success run
sudo docker run --name sonarqube -p 9000:9000 sonarqube:7.6.9
I was getting this error when trying to upgrade from Sonar 6.7.5 to Sonar 8.9.2
Searching in the web i found that this happens because migration route is needed between versions.
In my case it was not possible to jump directly from version 6.7.5 to version 8.9.2. First I had to jump to version 7.9.6 and then to version 8.9.2 (
you can read more about Migration path in: https://docs.sonarqube.org/latest/setup/before-you-upgrade/).
I hope this can serve you.

How to sign up for the first time in appwrite mbaas?

After installing appwrite for docker on my windows machine i am unable to sign up on the registration page , all i get is an error registration failed try again later, all the docker containers are running , in the mariadb container there is the following line
2020-06-09 23:34:28 8 [Warning] Aborted connection 8 to db: 'unconnected' user: 'unauthenticated' host: '172.20.0.8' (This connection closed normally without authentication)
Installation was not complete had to wait 40 min for installation for complete mariadb setup
Make sure you have the latest Appwrite version installed. This issue is usually related to running MariaDB docker container on Windows setups. If this still happens on the latest Appwrite version, restarting the MariaDB container might help.

CentOS 8 - yum/dnf error: Failed to download metadata for repo [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
On my CentOS 8 server, many dnf and yum commands fail with this error:
Failed to download metadata for repo
This seems to apply only to repositories involving https connections, e.g.:
/etc/yum.repos.d $ cat epel-modular.repo
[epel-modular]
name=Extra Packages for Enterprise Linux Modular $releasever - $basearch/pub/epel/$releasever/Modular/$basearch
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-modular-$releasever&arch=$basearch&infra=$infra&content=$contentdir
...
I have used wget to test connectivity to these sites and it is successful, e.g. wget https://mirrors.fedoraproject.org succeeds.
However, various dnf or yum commands fail:
$ dnf provides /bin/ls
Extra Packages for Enterprise Linux Modular 8 - x86_64 0.0 B/s | 0 B 00:00
Failed to download metadata for repo 'epel-modular'
Error: Failed to download metadata for repo 'epel-modular'
# dnf update --refresh
CentOS-8 - AppStream 20 kB/s | 4.3 kB 00:00
CentOS-8 - Base 19 kB/s | 3.8 kB 00:00
CentOS-8 - Extras 7.4 kB/s | 1.5 kB 00:00
CentOS-8 - PowerTools 20 kB/s | 4.3 kB 00:00
Remi's Modular repository for Enterprise Linux 8 - x86_64 4.1 kB/s | 3.5 kB 00:00
Safe Remi's RPM repository for Enterprise Linux 8 - x86_64 3.6 kB/s | 3.0 kB 00:00
Wazuh repository 0.0 B/s | 0 B 00:00
Failed to download metadata for repo 'wazuh_repo'
Error: Failed to download metadata for repo 'wazuh_repo'
How do I resolve this problem?
In my case
sudo rm -r /var/cache/dnf
solved my problem.
Source: https://access.redhat.com/discussions/4222851
I was getting the same error with the Centos8 build inside of a docker container. Fixed by running the below:
# Do on build
RUN dnf clean all && rm -r /var/cache/dnf && dnf upgrade -y && dnf update -y
Error before (i was running yum update and not dnf):
Step 4/5 : RUN yum clean all && yum update -y && echo hostname -a
---> Running in 10d319da361d
0 files removed
CentOS-8 - AppStream 0.0 B/s | 0 B 00:05
Failed to download metadata for repo 'AppStream'
Error: Failed to download metadata for repo 'AppStream'
Success after:
---> 0b96049ee5eb
Step 4/5 : RUN dnf clean all && rm -r /var/cache/dnf && dnf upgrade -y && dnf update -y & echo hostname
---> Running in f928c6da6cb0
hostname
Removing intermediate
I just faced this problem so I thought I'd add what fixed it for me since the resolution was pretty simple. For me, I was overlooking the fact that whenever I changed my hostname, it was wiping out everything in /etc/resolv.conf so I:
nano -w /etc/resolv.conf **
added the following lines:
nameserver 8.8.8.8
nameserver 8.8.4.4
Test it (e.g. yum update -y)
**note: I used nano in example, simply swap the nano portion for your own text editor of choice
If it does not work, check your Internet connection. This error appeared on my CentOS 8 installation, and the problem was that the Internet connection wasn't correctly configured.
Just add the following (DNS server) to /etc/resolv.conf file:
nameserver 9.9.9.9
Will fix the issue :)
I was facing this issue when I tried to run
yum update -y
from a docker container. I changed the version from centos:8 to centos:7 and it solved the issue for me.
You may not realize it, but yum and dnf require SSL certificates when communicating via secure HTTP (aka HTTPS). Have you checked the certificates under /etc/pki/tls/certs? There should be at least two, for example:
/etc/pki/tls/certs# ls -l
total 4
lrwxrwxrwx 1 root root 49 Jan 30 12:48 ca-bundle.crt -> /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
lrwxrwxrwx 1 root root 55 Dec 11 13:19 ca-bundle.trust.crt -> /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt
If these links are missing you may be able to simply restore them. Otherwise, the files are part of the ca-certificates package. You can obtain them from another server running your operating system via yumdownloader then restore your certificates from the resulting RPM file using yum --nogpgcheck localinstall <RPM file>.
I had the same error after I was messing around with SD adapter to microSD card. Edit /etc/fstab to remove SD line solved the issue for me.
I will confirm I recently had this issue and what fixed it for me was a change in the DNS servers. I had a static IP set but DNS was automatic, I had to reconfigure DNS to use my gateway and dc. This is working now.
My issue was that the interface wasn't up after a fresh vm install.
Ran ifconfig to find my interface name and then ifup eXXX to get a dhcp ip address.
Also don't forget to change ONBOOT=no to ONBOOT=yes in /etc/sysconfig/network-scripts/ifcfg-eXXX so it comes up during next boot.

Set up Postgresql-93 on Centos 7

I followed this Almost idiot's guide to install postgresql and postgis on Centos 7 and got stuck starting the database itself with the following command:
[root#localhost cmaps]# service postgresql-9.3 initdb
The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
If I install the postgresql package from Centos repository (version 9.2) the command works, but then I they don't have postgis, and there is no official posgresql-92 repository for Centos 7.
Any idea on what's happening?
Thank you!
I had the same problem and solve it by changing the path
/usr/pgsql-9.3/bin/postgresql93-setup initdb
Note that the path is different
CentOS 7 is based on systemd. PostgreSQL packages use a different command for initdb there:
/usr/lib/pgsql-9.3/bin/postgresql93-setup initdb
On older versions, call the initscript directly.
/etc/init.d/postgresql-9.3 initdb
For Centos 7.3 installed on MS Azure platform the script is located at
/usr/bin/postgresql-setup initdb
the version number is absent from the name of these as well:
db data & config location: /var/lib/pgsql/data/
service name /sbin/service postgresql status or systemctl status postgresql.service