Własny serwer na raspberry

Awatar użytkownika
fracz
Posty: 2256
Rejestracja: pt paź 28, 2016 10:56 pm
Lokalizacja: Kraków

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

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.
Awatar użytkownika
pzygmunt
Posty: 18284
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

-L zamień na -Lk
cino111
Posty: 714
Rejestracja: pn maja 07, 2018 8:00 pm

pzygmunt pisze: pt maja 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
Ostatnio zmieniony pt maja 11, 2018 5:18 pm przez cino111, łącznie zmieniany 1 raz.
Awatar użytkownika
pzygmunt
Posty: 18284
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

odpal wcześniej

Kod: Zaznacz cały

sudo apt-get update && apt-get upgrade
cino111
Posty: 714
Rejestracja: pn maja 07, 2018 8:00 pm

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.
Awatar użytkownika
byniom
Posty: 640
Rejestracja: sob sty 07, 2017 1:17 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'
Awatar użytkownika
pzygmunt
Posty: 18284
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

byniom pisze: pt maja 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
Awatar użytkownika
byniom
Posty: 640
Rejestracja: sob sty 07, 2017 1:17 pm

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.
Awatar użytkownika
fracz
Posty: 2256
Rejestracja: pt paź 28, 2016 10:56 pm
Lokalizacja: Kraków

Spróbuj zacząć od

Kod: Zaznacz cały

apt-get update
ODPOWIEDZ

Wróć do „Pomoc”