I am running CentOS 6.1 -
# lsb_release -d
Description: CentOS release 6.10 (Final)
release ver is 6 -
# python -c 'import yum, pprint; yb = yum.YumBase(); pprint.pprint(yb.conf.yumvar, width=1)'
Loaded plugins: fastestmirror
{'arch': 'ia32e',
'basearch': 'x86_64',
'infra': 'stock',
'releasever': '6',
'uuid': 'af2ec701-1921-42b0-95b1-4ec3ba0f92b7'}
relository -
# cat /etc/yum.repos.d/mongodb-org-4.0.repo
[mongodb-org-4.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc
Run update
yum update
Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
* base: ftp.cvut.cz
* epel: mirrors.nic.cz
* extras: ftp.cvut.cz
* updates: ftp.cvut.cz
No Packages marked for Update
From https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/ I run -
# yum install -y mongodb-org
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.karneval.cz
* epel: mirrors.nic.cz
* extras: mirror.karneval.cz
* updates: mirror.karneval.cz
No package mongodb-org available.
Error: Nothing to do
https://repo.mongodb.org/yum/redhat/6/mongodb-org/4.0/x86_64/ exists
So why does it fail ?
Thanks
Related
I want to install devmode-engine-rust on Sawtooth 1.0.5 running on Ubuntu 16.04. Standard installation using apt-get gives:
sawtooth-devmode-engine-rust :
Depends: libstdc++6 (>= 8.3.0) but 5.4.0-6ubuntu1~16.04.11 is to be installed
Depends: libnorm1 (>= 1.5r6+dfsg1) but it is not installable
Depends: libzmq5 (>= 4.2.5) but 4.1.4-7ubuntu0.1 is to be installed
Depends: libssl1.1 (>= 1.1.1) but it is not installable
Depends: libsodium23 (>= 1.0.16) but it is not installable
Depends: libc6 (>= 2.27) but 2.23-0ubuntu11 is to be installed
Depends: libgcc1 (>= 1:8.3.0) but 1:6.0.1-0ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages
Could not correct this one, so tried to compile from sources. Looks like compilation went OK. Now the question: what are correct directories where to copy compiled binaries and supporting files? Tried the simplest one - put devmode-engine-rust on the path, but that doesn't work.
Alternatively, if anybody knows how to solve the problem with
sudo apt-get install sawtooth-devmode-engine-rust
that would be great, too. Any suggestions on installing sawtooth-devmode-engine-rust are very welcome.
Thank you!
(I did find several stackoverflow articles on that, i.e. adding another depository and doing apt-get update, etc. None of them worked)
P.S. Here is what happens when I start different parts of sawtooth:
Window 1 - Validator:
$ sudo -u sawtooth sawtooth-validator -vv --scheduler parallel
[sudo] password for ahg2009:
[2019-08-04 11:41:31.052 INFO path] Loading path information from config: /etc/sawtooth/path.toml
[2019-08-04 11:41:31.058 INFO validator] Loading validator information from config: /etc/sawtooth/validator.toml
[2019-08-04 11:41:31.076 INFO path] Loading path information from config: /etc/sawtooth/path.toml
[2019-08-04 11:41:31.082 INFO keys] Loading signing key: /etc/sawtooth/keys/validator.priv
[2019-08-04 11:41:31.109 INFO cli] sawtooth-validator (Hyperledger Sawtooth) version 1.0.5
[2019-08-04 11:41:31.110 INFO cli] config [path]: config_dir = "/etc/sawtooth"; config [path]: key_dir = "/etc/sawtooth/keys"; config [path]: data_dir = "/var/lib/sawtooth"; config [path]: log_dir = "/var/log/sawtooth"; config [path]: policy_dir = "/etc/sawtooth/policy" .....etc. long output
Window 2
$ sudo -u sawtooth settings-tp -v
[sudo] password for ahg2009:
[2019-08-04 11:42:06.578 INFO core] register attempt: OK
Window 3.
$ sudo -u sawtooth /home/ahg2009/sawtooth-devmode-master/target/release/devmode-engine-rust -vvv --connect tcp://localhost:5050
TRACE | sawtooth_sdk::messag | Sending 37 bytes
{{After a while...}}
ERROR | devmode_engine_rust: | ReceiveError: TimeoutError
```
If I understand correctly, you are trying to run the consensus engine and connect to the validator. Use Sawtooth version >= 1.1. The 1.0.5 version has the consensus module running inside the validator, so you can't connect it from outside as a separate process. It will be running dev mode consensus by default.
I have followed the docs https://docs.scylladb.com/upgrade/upgrade-opensource/upgrade-guide-from-2.2-to-2.3/upgrade-guide-from-2.2-to-2.3-rpm/#upgrade-procedure and my version has remained the same. It has not upgraded to 2.3. Is there anything I can do or check?
I have followed the following https://docs.scylladb.com/upgrade/upgrade-opensource/upgrade-guide-from-2.2-to-2.3/upgrade-guide-from-2.2-to-2.3-rpm/
But I am still on version 2.2
[centos#ip-192-168-4-204 ~]$ sudo systemctl stop scylla-server
[centos#ip-192-168-4-204 ~]$ scylla --version
2.2.1-0.20181021.7f24b5319
[centos#ip-192-168-4-204 ~]$ sudo yum install epel-release
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.advancedhosters.com
* elrepo: reflector.westga.edu
* epel: d2lzkl7pfhq30w.cloudfront.net
* extras: mirrors.advancedhosters.com
* updates: mirrors.advancedhosters.com
Package epel-release-7-11.noarch already installed and latest version
Nothing to do
[centos#ip-192-168-4-204 ~]$ sudo yum update scylla\* -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.advancedhosters.com
* elrepo: reflector.westga.edu
* epel: d2lzkl7pfhq30w.cloudfront.net
* extras: mirrors.advancedhosters.com
* updates: mirrors.advancedhosters.com
No packages marked for update
[centos#ip-192-168-4-204 ~]$ sudo systemctl start scylla-server
[centos#ip-192-168-4-204 ~]$ scylla --version
2.2.1-0.20181021.7f24b5319
Looks like you made a mistake updating the repository file, Terri again and watch carefully for errors.
You probably have the wrong repository. Double check it with:
cat /etc/yum.repos.d/scylla.repo
There is a good chance you missed step 1 here:
https://docs.scylladb.com/upgrade/upgrade-opensource/upgrade-guide-from-2.2-to-2.3/upgrade-guide-from-2.2-to-2.3-rpm/#download-and-install-the-new-release
You need to put version details here cat /etc/yum.repos.d/scylla.repo. It will take the correct version while upgrading.
I have problem the serve side of api-platform. I'm building a API which worked fine until I had to restart my computer. Then when I tried to restart the server with docker-compose up -d some containers are crashing (see docker-composer ps n°1 below).
I've reinstall api-platform and put all the old code in it and it work well until a new restart of my computer.
When I do docker-composer restart the 2 container which is crashing are "api-platform-230_copie1_cache-proxy_1" and "api-platform-230_copie1_php_1" (see docker-compose ps n°2)
The docker logs for cache_proxy_1 is :
mathieu:api-platform-2.3.0_copie1 Mathieu$ docker logs api-platform-230_copie1_cache-proxy_1
+ varnishd -a :80 -f /etc/varnish/default.vcl -s malloc,256m
Error:
Message from VCC-compiler:
Backend host '"api"' could not be resolved to an IP address:
Name does not resolve
(Sorry if that error message is gibberish.)
('/etc/varnish/default.vcl' Line 6 Pos 11)
.host = "api";
----------#####-
Running VCC-compiler failed, exited with 2
VCL compilation failed
+ varnishd -a :80 -f /etc/varnish/default.vcl -s malloc,256m
Error:
Message from VCC-compiler:
DNS lookup(php): Name does not resolve
('/etc/varnish/default.vcl' Line 21 Pos 3)
"php";
--#####-
Running VCC-compiler failed, exited with 2
VCL compilation failed
+ varnishd -a :80 -f /etc/varnish/default.vcl -s malloc,256m
Error:
Message from VCC-compiler:
DNS lookup(php): Name does not resolve
('/etc/varnish/default.vcl' Line 21 Pos 3)
"php";
--#####-
Running VCC-compiler failed, exited with 2
VCL compilation failed
+ varnishd -a :80 -f /etc/varnish/default.vcl -s malloc,256m
Debug: Platform: Linux,4.9.93-linuxkit-aufs,x86_64,-junix,-smalloc,-smalloc,-hcritbit
Debug: Child (19) Started
+ varnishlog
+ varnishd -a :80 -f /etc/varnish/default.vcl -s malloc,256m
Error:
Message from VCC-compiler:
DNS lookup(php): Name does not resolve
('/etc/varnish/default.vcl' Line 21 Pos 3)
"php";
--#####-
Running VCC-compiler failed, exited with 2
VCL compilation failed
The docker logs for php_1 is :
mathieu:api-platform-2.3.0_copie1 Mathieu$ docker logs api-platform-230_copie1_php_1
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- phpoffice/phpspreadsheet 1.4.0 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- phpoffice/phpspreadsheet 1.4.0 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- Installation request for phpoffice/phpspreadsheet 1.4.0 -> satisfiable by phpoffice/phpspreadsheet[1.4.0].
To enable extensions, verify that they are enabled in your .ini files:
- /usr/local/etc/php/php.ini
- /usr/local/etc/php/conf.d/05-opcache.ini
- /usr/local/etc/php/conf.d/20-apcu.ini
- /usr/local/etc/php/conf.d/docker-php-ext-intl.ini
- /usr/local/etc/php/conf.d/docker-php-ext-pdo_pgsql.ini
- /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
- /usr/local/etc/php/conf.d/docker-php-ext-zip.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- phpoffice/phpspreadsheet 1.4.0 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- phpoffice/phpspreadsheet 1.4.0 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- Installation request for phpoffice/phpspreadsheet 1.4.0 -> satisfiable by phpoffice/phpspreadsheet[1.4.0].
To enable extensions, verify that they are enabled in your .ini files:
- /usr/local/etc/php/php.ini
- /usr/local/etc/php/conf.d/05-opcache.ini
- /usr/local/etc/php/conf.d/20-apcu.ini
- /usr/local/etc/php/conf.d/docker-php-ext-intl.ini
- /usr/local/etc/php/conf.d/docker-php-ext-pdo_pgsql.ini
- /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
- /usr/local/etc/php/conf.d/docker-php-ext-zip.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- phpoffice/phpspreadsheet 1.4.0 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- phpoffice/phpspreadsheet 1.4.0 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- Installation request for phpoffice/phpspreadsheet 1.4.0 -> satisfiable by phpoffice/phpspreadsheet[1.4.0].
To enable extensions, verify that they are enabled in your .ini files:
- /usr/local/etc/php/php.ini
- /usr/local/etc/php/conf.d/05-opcache.ini
- /usr/local/etc/php/conf.d/20-apcu.ini
- /usr/local/etc/php/conf.d/docker-php-ext-intl.ini
- /usr/local/etc/php/conf.d/docker-php-ext-pdo_pgsql.ini
- /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
- /usr/local/etc/php/conf.d/docker-php-ext-zip.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- phpoffice/phpspreadsheet 1.4.0 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- phpoffice/phpspreadsheet 1.4.0 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- Installation request for phpoffice/phpspreadsheet 1.4.0 -> satisfiable by phpoffice/phpspreadsheet[1.4.0].
To enable extensions, verify that they are enabled in your .ini files:
- /usr/local/etc/php/php.ini
- /usr/local/etc/php/conf.d/05-opcache.ini
- /usr/local/etc/php/conf.d/20-apcu.ini
- /usr/local/etc/php/conf.d/docker-php-ext-intl.ini
- /usr/local/etc/php/conf.d/docker-php-ext-pdo_pgsql.ini
- /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
- /usr/local/etc/php/conf.d/docker-php-ext-zip.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- phpoffice/phpspreadsheet 1.4.0 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- phpoffice/phpspreadsheet 1.4.0 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- Installation request for phpoffice/phpspreadsheet 1.4.0 -> satisfiable by phpoffice/phpspreadsheet[1.4.0].
To enable extensions, verify that they are enabled in your .ini files:
- /usr/local/etc/php/php.ini
- /usr/local/etc/php/conf.d/05-opcache.ini
- /usr/local/etc/php/conf.d/20-apcu.ini
- /usr/local/etc/php/conf.d/docker-php-ext-intl.ini
- /usr/local/etc/php/conf.d/docker-php-ext-pdo_pgsql.ini
- /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
- /usr/local/etc/php/conf.d/docker-php-ext-zip.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Do you have an idea of the problem?
I'm not really a developer, I'm cardiologist so please be indulgent
I'm in localhost. I'm using mac and the last version of api-platform (2.3.0)
Last thing, I don't know how to install bundle properly with docker and api platform so I do it with composer.phar directly in the api directory. Can it be the source of the problem?
Thanks
docker-compose ps n°1
docker-compose ps n°2
I think that the problem came from the installation of "yectep/phpspreadsheet-bundle". I reinstall api-platform, install composer.phar, updated "symfony/flex" installed "symfony/dotenv" and everything was ok until I've installed "yectep/phpspreadsheet-bundle".
My problem is know how to transfer data (more than 100000 entries) from an excel to my database without this bundle, but it is another question !
I'm trying to deploy hyperledger fabric on a raspberry pi, but it doesn't work. I'm searching for some tutorial but i didn't found it, there are someone that just did it?
Last time I've tried to run Hyperledger Fabric on RPi I've prepared following instructions:
Install latest RASPBIAN on SD card, you can download image from:
https://www.raspberrypi.org/downloads/raspbian/
Update and upgrade latest by running:
sudo apt-get update && sudo apt-get upgrade -y
Install required dependencies:
sudo apt-get install git curl gcc libc6-dev libltdl3-dev python-setuptools -y
Upgrade python pip installer:
sudo -H pip install pip --upgrade
Install docker and docker compose:
curl -sSL get.docker.com | shsudo usermod -aG docker pisudo pip install docker-compose
Logout/Login terminal session, so changes will take effect.
Install golang, by following instructions from: https://golang.org/doc/install
Create golang directory:
mkdir -p /home/pi/golang && mkdir -p /home/pi/golang/src/github/hyperledger/
Define environment variable
export GOPATH=/home/pi/golang
Make sure go binaries are in the path, e.g.:
export PATH=/usr/local/go/bin:$PATH
Clone fabric-baseimage repository into /home/pi/golang/src/github/hyperledger/
git clone https://github.com/hyperledger/fabric-baseimage.git
Clone client fabric repository into /home/pi/golang/src/github/hyperledger/
git clone https://github.com/hyperledger/fabric.git
Build based docker images
cd ~/golang/src/github/hyperledger/fabric-baseimage && make docker-local
Apply following patch to fabric code base:
--- a/peer/core.yaml
+++ b/peer/core.yaml
## -68,7 +68,6 ## peer:
# Gossip related configuration
gossip:
- bootstrap: 127.0.0.1:7051
# Use automatically chosen peer (high avalibility) to distribute blocks in channel or static one
# Setting this true and orgLeader true cause panic exit
useLeaderElection: false
## -280,7 +279,7 ## vm:
Config:
max-size: "50m"
max-file: "5"
- Memory: 2147483648
+ Memory: 16777216
AND
--- a/core/container/util/dockerutil.go
+++ b/core/container/util/dockerutil.go
## -45,6 +45,7 ## func NewDockerClient() (client *docker.Client, err error) {
// and GOARCH here.
var archRemap = map[string]string{
"amd64": "x86_64",
+ "arm": "armv7l",
}
func getArch() string {
Build Hyperledger peer and
cd ~/golang/src/github/hyperledger/fabric && make clean peer peer-docker
Peer executable binary will appear in:
~/golang/src/github/hyperledger/fabric/build/bin/
I am trying to install eJabberd on my CentOS using ssh (putty).
I am following this article.
[root#server ~]# yum repolist
Loaded plugins: fastestmirror, tsflags, universal-hooks
Loading mirror speeds from cached hostfile
* EA4: 208.100.0.204
* base: centos.mirror.lstn.net
* epel: mirror.steadfast.net
* extras: mirror.cs.uwp.edu
* updates: mirror.cs.uwp.edu
repo id repo name status
EA4 EA4 ( EasyApache 4 ) 23614
base CentOS-6 - Base 6634+62
epel Extra Packages for Enterprise Linux 6 - x86_64 11484+746
extras CentOS-6 - Extras 63
updates CentOS-6 - Updates 741+67
repolist: 42536
[root#server ~]#
I had enabled EPEL. Then I am trying to install ejabberd. so below output comes
[root#server ~]# yum install ejabberd
Loaded plugins: fastestmirror, tsflags, universal-hooks
Setting up Install Process
Loading mirror speeds from cached hostfile
* EA4: 208.100.0.204
* base: centos.mirror.lstn.net
* epel: mirror.steadfast.net
* extras: mirror.cs.uwp.edu
* updates: mirror.cs.uwp.edu
No package ejabberd available.
Error: Nothing to do
[root#server ~]#
please help me. What should I do?
You can use another approach (the ejabberd package seems not to be on the EPEL; at least I can't find it on my CentOS 6.x linux box).
Login as root on the WHM server via SSH. Then do this:
wget -c https://www.process-one.net/downloads/ejabberd/17.01/ejabberd-17.01-0.x86_64.rpm
rpm -Uhv ejabberd-17.01-0.x86_64.rpm
Of course if your OS is 32bit then you have to download the 32bit version of the .rpm package