enigmagroup / enigmasuite

The software suite that powers the Enigmabox
GNU General Public License v3.0
12 stars 5 forks source link

Weboberfläche reagiert nicht #1

Closed RockInBlack closed 10 years ago

RockInBlack commented 10 years ago

Hallo Enigmas,

leider funktioniert die Weboberfläche derzeit nicht korrekt. D.h. wenn die Änderungen übernommen werden, dann reagiert die Seite nicht mehr.

Ich erhalte zusätzlich folgende Ausgabe von "puppet-apply":

\ dry run ** running puppet and applying manifest... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 47625 0 47625 0 0 71159 0 --:--:-- --:--:-- --:--:-- 71294 Could not parse for environment production: Syntax error at '<' at /var/local/enigmasuite/puppet/manifests/site.pp:2 on node box

enigmagroup commented 10 years ago

Sind die Kabel an den richtigen Ports eingesteckt?

enigmabox-back

RockInBlack commented 10 years ago

Der Router ist nicht das Problem. Die Box bekommt eine IP zugewiesen und kann auch selbst ins Internet.

Die Verkabelung ist auch richtig:

enigmagroup commented 10 years ago

Dann müsste das DHCP-Lämpchen aber auch grün leuchten. Was zeigt das setup-cjdns-networking Skript an?

RockInBlack commented 10 years ago

No internet via cjdns. Checking for regular internet connection...

dhcp request eth0 waiting 10 seconds for dhcp address... waiting 9 seconds for dhcp address... waiting 8 seconds for dhcp address... waiting 7 seconds for dhcp address... waiting 6 seconds for dhcp address... waiting 5 seconds for dhcp address... waiting 4 seconds for dhcp address... waiting 3 seconds for dhcp address... waiting 2 seconds for dhcp address... waiting 1 seconds for dhcp address... internet detected

sync time 7 Feb 18:46:00 ntpdate[3761]: adjust time server 208.75.88.4 offset 0.192821 se c

switching to an alternative server trying fr (151.236.21.177)...

running puppet and applying manifest... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2305 0 2305 0 0 1689 0 --:--:-- 0:00:01 --:--:-- 1698 notice: Finished catalog run in 10.11 seconds

restarting cjdns 1391795201 INFO cjdroute2.c:488 Checking for running instance... 1391795201 DEBUG AdminClient.c:264 Connecting to [127.0.0.1:11234] 1391795201 DEBUG UDPAddrInterface.c:291 Bound to address [0.0.0.0:37287] 1391795201 INFO cjdroute2.c:514 Forking angel to background. 1391795201 DEBUG Pipe.c:134 Buffering a message 1391795201 INFO RandomSeed.c:67 Attempting to seed random number generator 1391795201 INFO RandomSeed.c:81 Trying random seed [RtlGenRandom() (Windows)] Fa iled 1391795201 INFO RandomSeed.c:81 Trying random seed [sysctl(KERN_ARND) (BSD)] Fai led 1391795201 INFO RandomSeed.c:75 Trying random seed [/dev/urandom] Success 1391795201 INFO RandomSeed.c:81 Trying random seed [sysctl(RANDOM_UUID) (Linux)] Failed 1391795201 INFO RandomSeed.c:75 Trying random seed [/proc/sys/kernel/random/uuid (Linux)] Success 1391795201 INFO RandomSeed.c:89 Seeding random number generator succeeded with [ 2] sources 1391795201 DEBUG Pipe.c:238 Pipe [/tmp/cjdns_pipe_client-angel-132zjbqs49vj6gumx p3rqu8px6uc3k] established connection 1391795201 DEBUG Pipe.c:259 Sending buffered message 1391795201 DEBUG AngelInit.c:184 Getting pre-configuration from client 1391795201 DEBUG Pipe.c:238 Pipe [/tmp/cjdns_pipe_client-angel-132zjbqs49vj6gumx p3rqu8px6uc3k] established connection 1391795201 DEBUG AngelInit.c:188 Finished getting pre-configuration from client 1391795201 INFO AngelInit.c:219 Initializing core [/usr/sbin/cjdroute] 1391795201 DEBUG AngelInit.c:223 Sending pre-configuration to core. 1391795201 DEBUG Pipe.c:134 Buffering a message 1391795201 INFO RandomSeed.c:67 Attempting to seed random number generator 1391795201 INFO RandomSeed.c:81 Trying random seed [RtlGenRandom() (Windows)] Fa iled 1391795201 INFO RandomSeed.c:81 Trying random seed [sysctl(KERN_ARND) (BSD)] Fai led 1391795201 INFO RandomSeed.c:75 Trying random seed [/dev/urandom] Success 1391795201 INFO RandomSeed.c:81 Trying random seed [sysctl(RANDOM_UUID) (Linux)] Failed 1391795201 INFO RandomSeed.c:75 Trying random seed [/proc/sys/kernel/random/uuid (Linux)] Success 1391795201 INFO RandomSeed.c:89 Seeding random number generator succeeded with [ 2] sources 1391795201 INFO LibuvEntropyProvider.c:59 Taking clock samples every [1000]ms fo r random generator 1391795201 DEBUG Pipe.c:238 Pipe [/tmp/cjdns_pipe_v3zknpyz1366humg98hsz1f183mw8k ] established connection 1391795201 DEBUG Pipe.c:259 Sending buffered message 1391795201 DEBUG Pipe.c:238 Pipe [/tmp/cjdns_pipe_v3zknpyz1366humg98hsz1f183mw8k ] established connection 1391795201 DEBUG UDPAddrInterface.c:248 Binding to address [127.0.0.1:11234] 1391795201 DEBUG UDPAddrInterface.c:291 Bound to address [127.0.0.1:11234] 1391795201 DEBUG Hermes.c:179 Sending [64] bytes to angel [d5:error4:none5:admin d4:bind15:127.0.0.1:11234e4:txid8:00000000e]. 1391795201 DEBUG AdminClient.c:264 Connecting to [127.0.0.1:11234] 1391795201 DEBUG UDPAddrInterface.c:291 Bound to address [0.0.0.0:37909] 1391795201 DEBUG Configurator.c:237 Initiating IpTunnel connection to [mu6v1stfx qrfyb9kp99t6xl6skt60k36g71v8t63kf0wu61vg0n0.k] 1391795201 INFO Pipe.c:184 Pipe closed with EOF [/tmp/cjdns_pipe_client-angel-13 2zjbqs49vj6gumxp3rqu8px6uc3k] Cjdns has started up in the background waiting 60 seconds for gateway to come up... waiting 59 seconds for gateway to come up... waiting 58 seconds for gateway to come up... waiting 57 seconds for gateway to come up... waiting 56 seconds for gateway to come up... waiting 55 seconds for gateway to come up... waiting 54 seconds for gateway to come up... waiting 53 seconds for gateway to come up... waiting 52 seconds for gateway to come up... waiting 51 seconds for gateway to come up... 1391795211 INFO Angel.c:81 Got request to set IP waiting 50 seconds for gateway to come up... waiting 49 seconds for gateway to come up... waiting 48 seconds for gateway to come up... waiting 47 seconds for gateway to come up... waiting 46 seconds for gateway to come up... waiting 45 seconds for gateway to come up... waiting 44 seconds for gateway to come up... waiting 43 seconds for gateway to come up... waiting 42 seconds for gateway to come up... waiting 41 seconds for gateway to come up... waiting 40 seconds for gateway to come up... waiting 39 seconds for gateway to come up... waiting 38 seconds for gateway to come up... waiting 37 seconds for gateway to come up... waiting 36 seconds for gateway to come up... waiting 35 seconds for gateway to come up... waiting 34 seconds for gateway to come up... waiting 33 seconds for gateway to come up... waiting 32 seconds for gateway to come up... waiting 31 seconds for gateway to come up... waiting 30 seconds for gateway to come up... waiting 29 seconds for gateway to come up... waiting 28 seconds for gateway to come up... waiting 27 seconds for gateway to come up... waiting 26 seconds for gateway to come up... waiting 25 seconds for gateway to come up... waiting 24 seconds for gateway to come up... waiting 23 seconds for gateway to come up... waiting 22 seconds for gateway to come up... waiting 21 seconds for gateway to come up... waiting 20 seconds for gateway to come up... waiting 19 seconds for gateway to come up... waiting 18 seconds for gateway to come up... waiting 17 seconds for gateway to come up... waiting 16 seconds for gateway to come up... waiting 15 seconds for gateway to come up... waiting 14 seconds for gateway to come up... waiting 13 seconds for gateway to come up... waiting 12 seconds for gateway to come up... waiting 11 seconds for gateway to come up... waiting 10 seconds for gateway to come up... waiting 9 seconds for gateway to come up... waiting 8 seconds for gateway to come up... waiting 7 seconds for gateway to come up... waiting 6 seconds for gateway to come up... waiting 5 seconds for gateway to come up... waiting 4 seconds for gateway to come up... waiting 3 seconds for gateway to come up... waiting 2 seconds for gateway to come up... waiting 1 seconds for gateway to come up...

enigmagroup commented 10 years ago

1391795211 INFO Angel.c:81 Got request to set IP --> da kriegt er eine IP vom Server. Soweit von beiden Seiten her alles gut konfiguriert. Seltsam nur, dass das Skript nicht erkennt, dass es eine IP bekommen hat :/

Die entsprechende Stelle wäre hier: https://github.com/enigmagroup/enigmasuite/blob/master/files/puppet/modules/cjdns/templates/setup-cjdns-networking.erb#L263

Während das Skript läuft und der Countdown runterzählt - kannst du mal gucken, was ifconfig tun0 zurückliefert? Also sobald "Got request to set IP" erschienen ist, ab dann...

RockInBlack commented 10 years ago

Erhalte folgendes während der Countdown läuft:

tun0 Link encap:UNSPEC Hardware Adresse

00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet6-Adresse: fc33:a698:def:cc81:1896:2252:6a7e:6da/8 Gültigkeitsbereich:Global UP PUNKTZUPUNKT RUNNING NOARP MULTICAST MTU:1312 Metrik:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 Kollisionen:0 Sendewarteschlangenlänge:500 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)


Folgendes nachdem das Script durchgelaufen ist:

tun0 Link encap:UNSPEC Hardware Adresse 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet Adresse:10.23.4.218 P-z-P:10.23.4.218 Maske:255.255.255.255 inet6-Adresse: fc33:a698:def:cc81:1896:2252:6a7e:6da/8 Gültigkeitsbereich:Global UP PUNKTZUPUNKT RUNNING NOARP MULTICAST MTU:1312 Metrik:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 Kollisionen:0 Sendewarteschlangenlänge:500 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

enigmagroup commented 10 years ago

Oje. Ich weiss wo das Problem liegt: Dein System ist auf Deutsch eingestellt. Mein Skript erwartet und parst aber englische Ausgaben.

Jetzt gibt's zwei Varianten: a) du stellst auf Englisch um ;-) b) du fügst im Skript, welches du unter /usr/local/sbin/setup-cjdns-networking findest, folgende Zeile unterhalb von ". /etc/profile" ein: export LC_ALL=en_US.UTF-8

Also etwa so:

!/usr/bin/env bash

. /etc/profile export LC_ALL=en_US.UTF-8

vars

...

Probier mal, ob es dann geht... Falls ja, übernehm ich diese Variable gleich mit ins Skript hier auf GitHub. Hab drum nur ein englischsprachiges System und kann nicht testen, ob das so funktioniert.

RockInBlack commented 10 years ago

Habe es mit Variante 2 versucht & bekomme nun:

checking internet connectivity over cjdns We have internet. Good.


Denke diese Änderung kann übernommen werden.

Bloß komme ich weiterhin nicht ins Internet. Das Webinterface zeigt auch erneut kein DHCP an..

enigmagroup commented 10 years ago

Das Skript sagt aber, dass es Internet hat.

ping 8.8.8.8 geht? ping google.ch geht?

(von der Box aus)

RockInBlack commented 10 years ago

Geht beides, ja.


Jetzt zeigt mir die Box plötzlich nur noch Internet grün an:

unbenannt3

enigmagroup commented 10 years ago

Da gibt's einen Cronjob, der minütlich das Setup-cjdns...Skript aufruft. Der kommt einem manuellen Aufruf evtl. in die Quere und bringt die Anzeigen durcheinander. Vielleicht den Cronjob abstellen, falls du das Skript manuell ausführt.

RockInBlack commented 10 years ago

Ok, scheint wirklich daran zu liegen.

Meine aktuelle Ausgabe von setup-cjdns-networking:

No internet via cjdns. Checking for regular internet connection...

dhcp request eth0 waiting 10 seconds for dhcp address... waiting 9 seconds for dhcp address... waiting 8 seconds for dhcp address... waiting 7 seconds for dhcp address... waiting 6 seconds for dhcp address... waiting 5 seconds for dhcp address... waiting 4 seconds for dhcp address... waiting 3 seconds for dhcp address... waiting 2 seconds for dhcp address... waiting 1 seconds for dhcp address... internet detected

sync time 7 Feb 23:12:20 ntpdate[3834]: adjust time server 129.250.35.251 offset 0.085926 sec

restarting cjdns 1391811140 INFO cjdroute2.c:488 Checking for running instance... 1391811140 DEBUG AdminClient.c:264 Connecting to [127.0.0.1:11234] 1391811140 DEBUG UDPAddrInterface.c:291 Bound to address [0.0.0.0:48941] 1391811140 INFO cjdroute2.c:514 Forking angel to background. 1391811140 DEBUG Pipe.c:134 Buffering a message 1391811140 INFO RandomSeed.c:67 Attempting to seed random number generator 1391811140 INFO RandomSeed.c:81 Trying random seed [RtlGenRandom() (Windows)] Failed 1391811140 INFO RandomSeed.c:81 Trying random seed [sysctl(KERN_ARND) (BSD)] Failed 1391811140 INFO RandomSeed.c:75 Trying random seed [/dev/urandom] Success 1391811140 INFO RandomSeed.c:81 Trying random seed [sysctl(RANDOM_UUID) (Linux)] Failed 1391811140 INFO RandomSeed.c:75 Trying random seed [/proc/sys/kernel/random/uuid (Linux)] Success 1391811140 INFO RandomSeed.c:89 Seeding random number generator succeeded with [2] sources 1391811140 DEBUG Pipe.c:238 Pipe [/tmp/cjdns_pipe_client-angel-h3272c1f22vcrqghfwhgcny1v103sd] established connection 1391811140 DEBUG Pipe.c:259 Sending buffered message 1391811140 DEBUG AngelInit.c:184 Getting pre-configuration from client 1391811140 DEBUG Pipe.c:238 Pipe [/tmp/cjdns_pipe_client-angel-h3272c1f22vcrqghfwhgcny1v103sd] established connection 1391811140 DEBUG AngelInit.c:188 Finished getting pre-configuration from client 1391811140 INFO AngelInit.c:219 Initializing core [/usr/sbin/cjdroute] 1391811140 DEBUG AngelInit.c:223 Sending pre-configuration to core. 1391811140 DEBUG Pipe.c:134 Buffering a message 1391811140 INFO RandomSeed.c:67 Attempting to seed random number generator 1391811140 INFO RandomSeed.c:81 Trying random seed [RtlGenRandom() (Windows)] Failed 1391811140 INFO RandomSeed.c:81 Trying random seed [sysctl(KERN_ARND) (BSD)] Failed 1391811140 INFO RandomSeed.c:75 Trying random seed [/dev/urandom] Success 1391811140 INFO RandomSeed.c:81 Trying random seed [sysctl(RANDOM_UUID) (Linux)] Failed 1391811140 INFO RandomSeed.c:75 Trying random seed [/proc/sys/kernel/random/uuid (Linux)] Success 1391811140 INFO RandomSeed.c:89 Seeding random number generator succeeded with [2] sources 1391811140 INFO LibuvEntropyProvider.c:59 Taking clock samples every [1000]ms for random generator 1391811140 DEBUG Pipe.c:238 Pipe [/tmp/cjdns_pipe_jthqsy0nflssftclyn54wsb1k6t6s3] established connection 1391811140 DEBUG Pipe.c:259 Sending buffered message 1391811140 DEBUG Pipe.c:238 Pipe [/tmp/cjdns_pipe_jthqsy0nflssftclyn54wsb1k6t6s3] established connection 1391811140 DEBUG UDPAddrInterface.c:248 Binding to address [127.0.0.1:11234] 1391811140 DEBUG UDPAddrInterface.c:291 Bound to address [127.0.0.1:11234] 1391811140 DEBUG Hermes.c:179 Sending [64] bytes to angel [d5:error4:none5:admind4:bind15:127.0.0.1:11234e4:txid8:00000000e]. 1391811140 DEBUG AdminClient.c:264 Connecting to [127.0.0.1:11234] 1391811140 DEBUG UDPAddrInterface.c:291 Bound to address [0.0.0.0:47246] 1391811140 DEBUG Configurator.c:237 Initiating IpTunnel connection to [mu6v1stfxqrfyb9kp99t6xl6skt60k36g71v8t63kf0wu61vg0n0.k] 1391811140 INFO Pipe.c:184 Pipe closed with EOF [/tmp/cjdns_pipe_client-angel-h3272c1f22vcrqghfwhgcny1v103sd] Cjdns has started up in the background waiting 60 seconds for gateway to come up... waiting 59 seconds for gateway to come up... waiting 58 seconds for gateway to come up... waiting 57 seconds for gateway to come up... waiting 56 seconds for gateway to come up... waiting 55 seconds for gateway to come up... waiting 54 seconds for gateway to come up... waiting 53 seconds for gateway to come up... waiting 52 seconds for gateway to come up... waiting 51 seconds for gateway to come up... 1391811150 INFO Angel.c:81 Got request to set IP waiting 50 seconds for gateway to come up... waiting 49 seconds for gateway to come up... waiting 48 seconds for gateway to come up... waiting 47 seconds for gateway to come up... waiting 46 seconds for gateway to come up... waiting 45 seconds for gateway to come up... waiting 44 seconds for gateway to come up... waiting 43 seconds for gateway to come up... waiting 42 seconds for gateway to come up... waiting 41 seconds for gateway to come up... waiting 40 seconds for gateway to come up... waiting 39 seconds for gateway to come up... waiting 38 seconds for gateway to come up... waiting 37 seconds for gateway to come up... waiting 36 seconds for gateway to come up... waiting 35 seconds for gateway to come up... waiting 34 seconds for gateway to come up... waiting 33 seconds for gateway to come up... waiting 32 seconds for gateway to come up... waiting 31 seconds for gateway to come up... waiting 30 seconds for gateway to come up... waiting 29 seconds for gateway to come up... waiting 28 seconds for gateway to come up... waiting 27 seconds for gateway to come up... waiting 26 seconds for gateway to come up... waiting 25 seconds for gateway to come up... waiting 24 seconds for gateway to come up... waiting 23 seconds for gateway to come up... waiting 22 seconds for gateway to come up... waiting 21 seconds for gateway to come up... waiting 20 seconds for gateway to come up... waiting 19 seconds for gateway to come up... waiting 18 seconds for gateway to come up... waiting 17 seconds for gateway to come up... waiting 16 seconds for gateway to come up... waiting 15 seconds for gateway to come up... waiting 14 seconds for gateway to come up... waiting 13 seconds for gateway to come up... waiting 12 seconds for gateway to come up... waiting 11 seconds for gateway to come up... waiting 10 seconds for gateway to come up... waiting 9 seconds for gateway to come up... waiting 8 seconds for gateway to come up... waiting 7 seconds for gateway to come up... waiting 6 seconds for gateway to come up... waiting 5 seconds for gateway to come up... waiting 4 seconds for gateway to come up... waiting 3 seconds for gateway to come up... waiting 2 seconds for gateway to come up... waiting 1 seconds for gateway to come up...

RockInBlack commented 10 years ago

Langsam sehe ich einfach kein Ende mehr.. Ist es nicht irgendwie möglich, dass ihr mir einfach ein vorkonfiguriertes Debian schicken könntet?

enigmagroup commented 10 years ago

Natürlich.

Wir beginnen grad mit der Evaluation von OpenWRT. Falls alles dort läuft, können wir das zukünftig nutzen, und der Selbstbau wird dann einfacher, und vor allem wird er funktionieren.

RockInBlack commented 10 years ago

Ich hoffe doch, dass dies baldigst der Fall sein wird..