Ankündigung

Einklappen
Keine Ankündigung bisher.

SmarthomeNG 1.6.1 Image für Raspberry Pi

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Neck
    antwortet
    The ipv6 folder is missing.

    code
    [smarthome@SmartHomeNG ~]$ sysctl net.ipv6.conf.all.disable_ipv6=0
    sysctl: cannot stat /proc/sys/net/ipv6/conf/all/disable_ipv6: Datei oder Verzeichnis nicht gefunden
    [smarthome@SmartHomeNG ~]$ cd /proc/sys/net/ipv6/conf/all/
    -bash: cd: /proc/sys/net/ipv6/conf/all/: Datei oder Verzeichnis nicht gefunden
    [smarthome@SmartHomeNG ~]$ cd /proc/
    [smarthome@SmartHomeNG /proc]$ cd /proc/sys/net/ipv6/conf
    -bash: cd: /proc/sys/net/ipv6/conf: Datei oder Verzeichnis nicht gefunden
    [smarthome@SmartHomeNG /proc]$ cd /proc/sys/net/
    [smarthome@SmartHomeNG /proc/sys/net]$ ls
    insgesamt 0
    dr-xr-xr-x 1 root root 0 Jun 29 10:43 core/
    dr-xr-xr-x 1 root root 0 Jun 28 21:55 ipv4/
    dr-xr-xr-x 1 root root 0 Jun 29 10:43 netfilter/
    dr-xr-xr-x 1 root root 0 Jun 29 10:43 unix/

    Einen Kommentar schreiben:


  • Onkelandy
    antwortet
    I can't find anything related to ipv6 in my image setup. Can you enable it explicitly and then try again to make sure it's not your network(card)?
    https://www.techgeeks.org/blog/2015/.../#.XRZyuC2Q2_I

    Einen Kommentar schreiben:


  • Neck
    antwortet
    Hi guys,
    I've the same issue with a clean install of the latest image. IPv6 seems to be disabled per default (see shell below)

    there's also an issue with the "netfilter persistent configuration", but probably we need to move on step by step.



    code:
    [smarthome@SmartHomeNG ~]$ ping4 heise.com
    PING heise.com (67.204.73.67) 56(84) bytes of data.
    64 bytes from 67.204.73.67 (67.204.73.67): icmp_seq=1 ttl=110 time=163 ms
    64 bytes from 67.204.73.67 (67.204.73.67): icmp_seq=2 ttl=110 time=162 ms
    ^C
    --- heise.com ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 1000ms
    rtt min/avg/max/mdev = 162.748/163.259/163.770/0.511 ms
    [smarthome@SmartHomeNG ~]$ ping6 heise.com
    ping: socket: Die Adressfamilie wird von der Protokollfamilie nicht unterstützt
    [smarthome@SmartHomeNG ~]$ sudo nginx -t
    nginx: [emerg] BIO_new_file("/etc/letsencrypt/live/shng.sh.tld/fullchain.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/shng.sh.tld/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
    nginx: configuration file /etc/nginx/nginx.conf test failed
    [smarthome@SmartHomeNG ~]$ sudo systemctl status nginx
    ● nginx.service - A high performance web server and a reverse proxy server
    Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
    Active: failed (Result: exit-code) since Fri 2019-06-28 21:18:00 CEST; 1min 42s ago
    Docs: man:nginx(8)
    Process: 2224 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)

    Jun 28 21:17:59 SmartHomeNG systemd[1]: Starting A high performance web server and a reverse proxy server...
    Jun 28 21:18:00 SmartHomeNG nginx[2224]: nginx: [emerg] BIO_new_file("/etc/letsencrypt/live/shng.sh.tld/fullchain.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/shng.sh.tld/f
    Jun 28 21:18:00 SmartHomeNG nginx[2224]: nginx: configuration file /etc/nginx/nginx.conf test failed
    Jun 28 21:18:00 SmartHomeNG systemd[1]: nginx.service: Control process exited, code=exited status=1
    Jun 28 21:18:00 SmartHomeNG systemd[1]: Failed to start A high performance web server and a reverse proxy server.
    Jun 28 21:18:00 SmartHomeNG systemd[1]: nginx.service: Unit entered failed state.
    Jun 28 21:18:00 SmartHomeNG systemd[1]: nginx.service: Failed with result 'exit-code'.

    Einen Kommentar schreiben:


  • Onkelandy
    antwortet
    Speaking of Ubiquit. Maybe you want to test this new plugin? https://github.com/smarthomeNG/plugins/pull/245

    Einen Kommentar schreiben:


  • badhabit64
    antwortet
    Yeah, might be the reason... I'm running a 100% Ubiquti network and i think IPv6 is default disabled...

    Einen Kommentar schreiben:


  • Onkelandy
    antwortet
    Can it have anything to do with your network config/router/modem? Can you ping6 from other devices in the same network?

    Einen Kommentar schreiben:


  • badhabit64
    antwortet
    I have not disabled/changed anything...i just booted the image, ran setup_all(i don't think i changed anything, mostly justed skipped or selected the same as default) and tried to access the url's...

    But i think this is it... something is wrong with ipv6:
    Code:
     [smarthome@SmartHomeNG ~]$ ping6 google.com
    ping: socket: Address family not supported by protocol
    I've updated the two configuration-files and now it works... thanks!

    ​​​​​​​/Thomas

    Einen Kommentar schreiben:


  • Onkelandy
    antwortet
    Nginx is configured in a way that you can directly access admin and backend without the port number. That's important for reverse proxy access. You will get problems with web interfaces of plugins for now, but otherwise it should work.

    Einen Kommentar schreiben:


  • Onkelandy
    antwortet
    Have you disabled ipv6!? It should be enabled by default..
    What happens when you ping6 google.com?

    So you should either (re)enable ipv6 or comment this line in the file
    /etc/nginx/sites-available/default:
    Code:
      
     listen [::]:80 default_server;
    Additionally in the file
    /etc/nginx/conf.d/https.conf
    Code:
     
     listen [::]:443 ssl http2;
    Zuletzt geändert von Onkelandy; 08.06.2019, 21:25.

    Einen Kommentar schreiben:


  • badhabit64
    antwortet
    After some digging in the configuration files for nginx i stumpled upon the port 8383... if i add that to the URL's they work... so maybe there is something wrong in the image or the documentation should be updated to tell that the port 8383 should be used?

    Does not work:
    http://192.168.0.165/backend

    Works:
    http://192.168.0.165:8383/backend

    Einen Kommentar schreiben:


  • badhabit64
    antwortet
    That was fast response! :-)

    It seems like it doesn't like IPv6?
    Code:
    [smarthome@SmartHomeNG ~]$ sudo nginx -t
    nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
    nginx: [emerg] socket() [::]:443 failed (97: Address family not supported by protocol)
    nginx: configuration file /etc/nginx/nginx.conf test failed
     [smarthome@SmartHomeNG ~]$ sudo systemctl status nginx
    ● nginx.service - A high performance web server and a reverse proxy server
       Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
       Active: failed (Result: exit-code) since Sat 2019-06-08 21:46:43 CEST; 20min ago
         Docs: man:nginx(8)
      Process: 522 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
    
    Jun 08 21:46:40 SmartHomeNG systemd[1]: Starting A high performance web server and a reverse proxy server...
    Jun 08 21:46:43 SmartHomeNG nginx[522]: nginx: [emerg] socket() [::]:443 failed (97: Address family not supported by protocol)
    Jun 08 21:46:43 SmartHomeNG nginx[522]: nginx: configuration file /etc/nginx/nginx.conf test failed
    Jun 08 21:46:43 SmartHomeNG systemd[1]: nginx.service: Control process exited, code=exited status=1
    Jun 08 21:46:43 SmartHomeNG systemd[1]: Failed to start A high performance web server and a reverse proxy server.
    Jun 08 21:46:43 SmartHomeNG systemd[1]: nginx.service: Unit entered failed state.
    Jun 08 21:46:43 SmartHomeNG systemd[1]: nginx.service: Failed with result 'exit-code'.
     [smarthome@SmartHomeNG ~]$

    Einen Kommentar schreiben:


  • Onkelandy
    antwortet
    Indeed there should be a connection (though wget will be forbidden). Try the following:
    Code:
    nginx -t
    systemctl status nginx

    Einen Kommentar schreiben:


  • badhabit64
    antwortet
    Hi,

    I've tried the new image on my 3B+, but it seems like the webserver does not start? No URL's are working... are there something special that i have to do for it to work? I can connect to it via SSH, but http just times out... i've also tried it from within the RPI:
    smarthome.JPG

    I'm a bit rusty in the whole Raspberry/Linux arena, so i'm unsure what to try next...any help appreciated:-)

    Thanks...

    Einen Kommentar schreiben:


  • Onkelandy
    antwortet
    Gerne.

    Hat schon wer die Backup/Restore Funktion getestet?

    Einen Kommentar schreiben:


  • Haiphong
    antwortet
    Hallo Andy,

    wollte nur mal Danke sagen für das Image....

    Einen Kommentar schreiben:

Lädt...
X