Własny CLOUD

darius
Posty: 31
Rejestracja: pn paź 24, 2016 7:35 pm

pn paź 31, 2016 1:57 pm

Cześć Wam
Jestem tu nowy więc wypada się przywitać i pogratulować autorom dobrej roboty.
Pierwsze odczucia co do systemu są bardzo pozytywne i widzę SUPLĘ w swoim domu :)
Swoją przygodę zaczynam od postawienia własnego CLOUD, dzięki informacjom z forum i od pzygmunta prawie się udało.

Największe boje toczę z wysyłką maili, na początku wogóle maile aktywacyjnie nie działały.
Udało się to uruchomić, pczyczynę błędu znalazłem w logu aplikacji dostępnym w katalogu
/app/logs/prod.log, jak coś nie działa polecam zacząć właśnie od sprawdzenia loga.

Powód błachy a jednak napsuł krwi, jeżeli korzystacie z zewnętrznych serwerów poczty do wysyłki maili jak np (wp.pl) to pola mailer_user i mailer_from w pliku parameters.yml powinny mieć jednakową wartość inaczej serwer pocztowy odrzuci wiadomość z błędem: 553 SMTP Relaying Denied - może komuś się przyda
Po ustawieniu właściwych wartości w parameters.yml linki aktywacyjne przychodzą, co dziwne nie dostaję za to maili z formularza resetowania hasła.
Log aplikacji jest przy tym pusty czyli niby wszystko gra a maila nie ma i nie mam na to pomysłu :(

Drugi problem jaki mam to dostęp do cloud z Aplikacji Android. Po podaniu prawidłowych parametrów apka wisi na ekranie Łączenie ...
Od strony serwera jest nasłuch na porcie 2016

root>netstat -anp | grep 2016
tcp 0 0 0.0.0.0:2016 0.0.0.0:* LISTEN 17142/supla-server
root>ps -ef | grep 17142
root 10052 8959 0 14:58 pts/0 00:00:00 grep 17142
supla 17142 1 0 12:12 ? 00:00:00 /usr/sbin/supla-server -d -p /tmp/supla-server.pid

Czy to powinno działać z marszu czy coś jeszcze trzeba skonfigurować?
Będę wdzięczny za wszelkie wskazówki, sam też chętnie służę pomocą.
Awatar użytkownika
pzygmunt
Posty: 7434
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontaktowanie:

pn paź 31, 2016 2:30 pm

Co do "relay deny". To jest kwestia konfiguracji serwera SMTP. Najwyraźniej użyłeś adresu nadawcy, który był niedozwolony dla użytkownika, którym się autoryzowałeś.

Skąd brałeś supla-server ?
Kompilowałeś sam ?
Kompilowałeś samodzielnie SSL-a ?
darius
Posty: 31
Rejestracja: pn paź 24, 2016 7:35 pm

pn paź 31, 2016 2:59 pm

Z tymi mailami to najlepiej zainstalować i skonfigurować postfix i taki mam plan. Będę wtedy niezależy od innych.
Co do supla-server źródła z https://github.com/SUPLA/supla-core
kompilacja zakończona sukcesem z jednym warninigiem niestety nie pamiętam jakim :(

Co do SSL to rozumiem że trzeba pobrać źródła z
https://www.openssl.org/source/old/1.0. ... .1t.tar.gz
skompilować i pliki so umieścić w /usr/lib/supla-server/

Wydaje się że to robiłem ale sprawdzę/zrobię to raz jeszcze.
Awatar użytkownika
pzygmunt
Posty: 7434
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontaktowanie:

pn paź 31, 2016 3:00 pm

darius
Posty: 31
Rejestracja: pn paź 24, 2016 7:35 pm

pn paź 31, 2016 8:32 pm

Zrobiłem zgodnie z instrukcją, wszystko poszło bez błędów.
Niestety próba połączenia z aplikacji android dalej nieudana.
Założyłem więc konto na cloud.supla.org i też nie mogę się połączyć z telefonu.
Czy telefon musi spełniać jakieś specjalne warunki software/hardware?

w netstat dla swojego serwera mam mam
/home/sokker/public_html/supla-core/supla-server/Release>netstat -anp | grep 2016
tcp 0 0 0.0.0.0:2016 0.0.0.0:* LISTEN 12200/supla-server
tcp 0 0 5.39.91.:2016 94.254.128.135:27372 SYN_RECV -
Awatar użytkownika
pzygmunt
Posty: 7434
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontaktowanie:

wt lis 01, 2016 10:51 am

Co wpisujesz w aplikacji ? Jaki smartfon ? Jaki OS ?
darius
Posty: 31
Rejestracja: pn paź 24, 2016 7:35 pm

śr lis 02, 2016 7:34 am

Samsung Galaxy A3
Android 5.1
lub
Samsung Galaxy Trend Plus
Android 4.4.2
Supla instalowana z Google Play

w aplikacji wpisuję svr3.supla.org jako adres serwera
a później ID i hasło zgodne z wygenerowanym identyfikatorem dostępu.
Czasem przy włączeniu aplikacji mam biały ekran i po dłuższym czasie komunikat aplikacja nie reaguje
Czasem znów wisi na ekranie z komunikatem
supla
YOUR HOME CONNECTED

najczęściej jednak mam komunikat Łączenie
Awatar użytkownika
pzygmunt
Posty: 7434
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontaktowanie:

śr lis 02, 2016 8:40 am

Wygląda tak jakby coś blokowało komunikację z TCP 2016
darius
Posty: 31
Rejestracja: pn paź 24, 2016 7:35 pm

śr lis 02, 2016 1:20 pm

Jeśli chodzi o połączenie do serwerów cloud.supla.org
Od strony smartfona widzę próbę połączenia na porcie 2016 do 5.196.27.90

niestety docelowy host nie odpowiada:

Badanie supla.org [5.196.27.90] z 32 bajtami danych:
Upłynął limit czasu żądania.
Upłynął limit czasu żądania.
Upłynął limit czasu żądania.
Upłynął limit czasu żądania.

nie dziwię się że nie można się połączyć

Jeśli chodzi o mój cloud to network log w android pokazuje że zaczynają gadać tylko nic z tego nie wynika:

Timestamp,"AppName","AppPackage","AppUid","In interface","Out interface","Source","Source Port","Destination","Destination Port","Length"
2016-11-02 13:59:34.882,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57605","5.39.91.37","2016","60"
2016-11-02 13:59:34.883,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57605","60"
2016-11-02 13:59:34.884,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57605","5.39.91.37","2016","52"
2016-11-02 13:59:34.885,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57605","5.39.91.37","2016","176"
2016-11-02 13:59:35.886,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57605","52"
2016-11-02 13:59:35.887,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57605","52"
2016-11-02 13:59:37.040,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57606","5.39.91.37","2016","60"
2016-11-02 13:59:38.041,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57606","60"
2016-11-02 13:59:38.042,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57606","5.39.91.37","2016","52"
2016-11-02 13:59:38.043,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57606","5.39.91.37","2016","176"
2016-11-02 13:59:38.111,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57606","5.39.91.37","2016","176"
2016-11-02 13:59:38.112,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57606","52"
2016-11-02 13:59:38.113,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57606","52"
2016-11-02 13:59:39.614,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57606","40"
2016-11-02 13:59:41.116,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57607","5.39.91.37","2016","60"
2016-11-02 13:59:41.116,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57607","60"
2016-11-02 13:59:41.117,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57607","5.39.91.37","2016","52"
2016-11-02 13:59:41.118,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57607","5.39.91.37","2016","176"
2016-11-02 13:59:42.120,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57607","52"
2016-11-02 13:59:42.120,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57607","52"
2016-11-02 13:59:42.121,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57607","40"
2016-11-02 13:59:44.123,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57608","5.39.91.37","2016","60"
2016-11-02 13:59:44.124,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57608","60"
2016-11-02 13:59:44.124,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57608","5.39.91.37","2016","52"
2016-11-02 13:59:44.125,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57608","5.39.91.37","2016","176"
2016-11-02 13:59:44.126,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57608","52"
2016-11-02 13:59:44.126,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57608","52"
2016-11-02 13:59:44.127,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57608","52"
2016-11-02 13:59:45.196,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57609","5.39.91.37","2016","60"
2016-11-02 13:59:46.197,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57609","60"
2016-11-02 13:59:46.198,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57609","5.39.91.37","2016","52"
2016-11-02 13:59:46.199,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57609","5.39.91.37","2016","176"
2016-11-02 13:59:46.199,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57609","52"
2016-11-02 13:59:46.201,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57609","52"
2016-11-02 13:59:47.821,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57610","5.39.91.37","2016","60"
2016-11-02 13:59:47.822,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57610","60"
2016-11-02 13:59:47.823,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57610","5.39.91.37","2016","52"
2016-11-02 13:59:47.824,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57610","5.39.91.37","2016","176"
2016-11-02 13:59:47.825,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57610","52"
2016-11-02 13:59:47.826,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57610","52"
2016-11-02 13:59:50.678,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57611","5.39.91.37","2016","60"
2016-11-02 13:59:50.750,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57611","60"
2016-11-02 13:59:50.751,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57611","5.39.91.37","2016","52"
2016-11-02 13:59:50.752,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57611","5.39.91.37","2016","176"
2016-11-02 13:59:52.253,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57611","60"
2016-11-02 13:59:52.254,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57611","5.39.91.37","2016","52"
2016-11-02 13:59:52.255,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57611","52"
2016-11-02 13:59:52.256,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57611","52"
2016-11-02 13:59:52.256,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57611","40"
2016-11-02 13:59:53.757,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57611","40"
2016-11-02 13:59:53.758,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57612","5.39.91.37","2016","60"
2016-11-02 13:59:53.759,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57612","60"
2016-11-02 13:59:53.760,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57612","5.39.91.37","2016","52"
2016-11-02 13:59:53.760,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57612","5.39.91.37","2016","176"
2016-11-02 13:59:55.262,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57612","52"
2016-11-02 13:59:55.263,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57612","52"
2016-11-02 13:59:57.265,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57613","5.39.91.37","2016","60"
2016-11-02 13:59:57.266,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57613","60"
2016-11-02 13:59:57.266,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57613","5.39.91.37","2016","52"
2016-11-02 13:59:57.267,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57613","5.39.91.37","2016","176"
2016-11-02 13:59:58.769,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57613","52"
2016-11-02 13:59:58.770,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57613","52"
2016-11-02 13:59:58.770,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57613","40"
2016-11-02 14:00:00.772,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57614","5.39.91.37","2016","60"
2016-11-02 14:00:00.774,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57614","60"
2016-11-02 14:00:00.776,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57614","5.39.91.37","2016","52"
2016-11-02 14:00:00.776,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57614","5.39.91.37","2016","176"
2016-11-02 14:00:01.848,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57614","52"
2016-11-02 14:00:01.849,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57614","52"
2016-11-02 14:00:21.036,"SUPLA","org.supla.android","10109","","ccemni1","10.144.163.238","57615","5.39.91.37","2016","60"
2016-11-02 14:00:21.038,"SUPLA","org.supla.android","10109","ccemni1","","5.39.91.37","2016","10.144.163.238","57615","60"
Awatar użytkownika
pzygmunt
Posty: 7434
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontaktowanie:

śr lis 02, 2016 1:33 pm

Może Twój dostawca blokuje ruch ?

Monitoring usług dla wszystkich serwerów wskazuje 100% uptime i nie widzę problemów z połaczeniem
ODPOWIEDZ