Własny serwer na raspberry

User avatar
fracz
Posts: 2342
Joined: Fri Oct 28, 2016 10:56 pm
Location: Kraków
Has thanked: 4 times
Been thanked: 6 times

Post

Może przeszkadzać (głównie zajęte porty). Radziłbym od czystego obrazu ;-)
cino111
Posts: 714
Joined: Mon May 07, 2018 8:00 pm

Post

Wchodząc na link z polecenia:
curl -L https://github.com/docker/compose/relea ... ose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
nie wyswietla strony. Chyba nie ma tego pliku?
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (60) SSL certificate problem: certificate is not yet valid
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

-L zamień na -Lk
SUPLA.... Nareszcie w domu.
cino111
Posts: 714
Joined: Mon May 07, 2018 8:00 pm

Post

pzygmunt wrote: Fri May 11, 2018 4:59 pm -L zamień na -Lk
Poszło, ale mam
pose
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9 0 9 0 0 13 0 --:--:-- --:--:-- --:--:-- 13
root@raspberrypi:/home/pi# chmod +x /usr/local/bin/docker-compose
root@raspberrypi:/home/pi# apt-get -y install python-pip && pip install docker-compose
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności
Odczyt informacji o stanie... Gotowe
python-pip jest już w najnowszej wersji.
0 aktualizowanych, 0 nowo instalowanych, 0 usuwanych i 0 nieaktualizowanych.
Downloading/unpacking docker-compose
Cleaning up...
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 290, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1178, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 194, in find_requirement
page = self._get_page(main_index_url, req)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 568, in _get_page
session=self.session,
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 694, in get_page
req, link, "connection error: %s" % exc, url,
TypeError: __str__ returned non-string (type Error)

Storing debug log for failure in /root/.pip/pip.log


dodatkowo przy klonowaniu repozytorium kolejny bład:
Cloning into 'supla-docker'...
fatal: unable to access 'https://github.com/SUPLA/supla-docker.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Last edited by cino111 on Fri May 11, 2018 5:18 pm, edited 1 time in total.
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

odpal wcześniej

Code: Select all

sudo apt-get update && apt-get upgrade
SUPLA.... Nareszcie w domu.
cino111
Posts: 714
Joined: Mon May 07, 2018 8:00 pm

Post

Poszło, ale przy klonowaniu repozytorium kolejny bład:
Cloning into 'supla-docker'...
fatal: unable to access 'https://github.com/SUPLA/supla-docker.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

Szukałem na Google, ale nie mogę sobie poradzić z dodaniem certyfikatu.
User avatar
byniom
Posts: 695
Joined: Sat Jan 07, 2017 1:17 pm
Been thanked: 1 time

Post

taki błąd mi wyskakuje przy instalacji dockera
curl: (6) Couldn't resolve host 'sSL'
curl: (6) Couldn't resolve host 'git.docker.com'
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

byniom wrote: Fri May 25, 2018 1:08 pm taki błąd mi wyskakuje przy instalacji dockera
curl: (6) Couldn't resolve host 'sSL'
curl: (6) Couldn't resolve host 'git.docker.com'
Gdzieś robisz literówkę, albo nie masz sieci, albo dns leży
SUPLA.... Nareszcie w domu.
User avatar
byniom
Posts: 695
Joined: Sat Jan 07, 2017 1:17 pm
Been thanked: 1 time

Post

chciałem zainstalowac dockera i suple ale na starcie od razu mam problem :) Sieć działa
robię tak jak jest opisane tutaj https://github.com/SUPLA/supla-docker#installation i pokazuje mi tak :
root@orangepi:~# apt-get -y install python-pip && pip install docker-compose
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-pip is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 233 not upgraded.
Downloading/unpacking docker-compose
Cannot fetch index base URL http://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement docker-compose
No distributions at all found for docker-compose
Storing complete log in /root/.pip/pip.log
root@orangepi:~# git clone https://github.com/SUPLA/supla-docker.git
fatal: destination path 'supla-docker' already exists and is not an empty directory.
User avatar
fracz
Posts: 2342
Joined: Fri Oct 28, 2016 10:56 pm
Location: Kraków
Has thanked: 4 times
Been thanked: 6 times

Post

Spróbuj zacząć od

Code: Select all

apt-get update

Return to “Pomoc”