Page 1 sur 2

Résolu Acces par le nagigateur web en intranet

Publié : 18 juil. 2016, 21:51
par mochel
Bonjour,

Je viens d'installer Domoticz sur une distribution Raspbian sur un Raspberry Pi 3.

J'ai compilé tout l'ensemble et installé les librairies nécessaire.

Ce qui est étrange c'est que je n'ai pas acces à Domoticz via mon navigateur , alors que visiblement le serveur tourne bien cf les info ci dessous

Copie from my terminal :
pi@raspberrypi:~/domoticz $ sudo service domoticz.sh start
pi@raspberrypi:~/domoticz $ sudo service domoticz.sh status
● domoticz.service - LSB: Home Automation System

Loaded: loaded (/etc/init.d/domoticz.sh)
Active: active (exited) since lun. 2016-07-18 12:06:03 UTC; 32min ago
Process: 559 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)

juil. 18 12:06:03 raspberrypi systemd[1]: Starting LSB: Home Auto...
juil. 18 12:06:03 raspberrypi systemd[1]: Started LSB: Home Autom...
juil. 18 12:38:15 raspberrypi systemd[1]: Started LSB: Home Autom...
Hint: Some lines were ellipsized, use -l to show in full.

Qui pourrait m'aider ?


Merci d'avance

Re: Acces par le nagigateur web en intranet

Publié : 19 juil. 2016, 07:02
par rimram31
Bonjour,

Tu ne dis pas ce que te réponds un navigateur quand tu tapes l'url de domotiz sur ton réseau -> http://<ip interne de ton raspberry>:8080 (si tu n'as rien changé).

Tu peux: bien vérifier l'ip locale de ton pi (ifconfig), utiliser un netcat -apn pour voir si domoticz tourne bien avec un port pour l'interface web (si 8080 faire un sudo netstat -apn | grep 8080). Si tout est ok, a moins que tu n'ai tout verrouillé chez toi avec un firewall, il n'y a pas de raison que dz ne réponde pas.

Re: Acces par le nagigateur web en intranet

Publié : 19 juil. 2016, 17:00
par mochel
merci pour tes conseils

voila le retour :
si je tape ifconfig voila le retour :
pi@raspberrypi:~ $ ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:cf:4e:39
inet adr:192.168.1.29 Bcast:192.168.1.255 Masque:255.255.255.0
adr inet6: fe80::3ac4:f444:9304:928d/64 Scope:Lien
adr inet6: 2a01:cb11:1a6:b00:b1d:da4f:8c8f:61e1/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6738 errors:0 dropped:180 overruns:0 frame:0
TX packets:5977 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:364296 (355.7 KiB) TX bytes:313314 (305.9 KiB)

lo Link encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:Hôte
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:200 errors:0 dropped:0 overruns:0 frame:0
TX packets:200 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1
RX bytes:16656 (16.2 KiB) TX bytes:16656 (16.2 KiB)

wlan0 Link encap:Ethernet HWaddr b8:27:eb:9a:1b:6c
inet adr:192.168.1.30 Bcast:192.168.1.255 Masque:255.255.255.0
adr inet6: 2a01:cb11:1a6:b00:a59f:56ad:4aaa:211b/64 Scope:Global
adr inet6: fe80::3624:3559:14c4:268c/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6871 errors:0 dropped:510 overruns:0 frame:0
TX packets:5776 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:341612 (333.6 KiB) TX bytes:388470 (379.3 KiB)

et la commande netstat -apn donne cela :

pi@raspberrypi:~ $ sudo netstat -apn
Connexions Internet actives (serveurs et établies)
Proto Recv-Q Send-Q Adresse locale Adresse distante Etat PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 552/sshd
tcp 0 144 192.168.1.29:22 192.168.1.28:49543 ESTABLISHED 1628/sshd: pi [priv
tcp6 0 0 :::22 :::* LISTEN 552/sshd
udp 0 0 0.0.0.0:68 0.0.0.0:* 464/dhcpcd
udp 0 0 0.0.0.0:36932 0.0.0.0:* 441/avahi-daemon: r
udp 0 0 192.168.1.29:123 0.0.0.0:* 634/ntpd
udp 0 0 192.168.1.30:123 0.0.0.0:* 634/ntpd
udp 0 0 127.0.0.1:123 0.0.0.0:* 634/ntpd
udp 0 0 0.0.0.0:123 0.0.0.0:* 634/ntpd
udp 0 0 0.0.0.0:5353 0.0.0.0:* 441/avahi-daemon: r
udp6 0 0 fe80::3624:3559:14c:123 :::* 634/ntpd
udp6 0 0 2a01:cb11:1a6:b00:b:123 :::* 634/ntpd
udp6 0 0 fe80::3ac4:f444:930:123 :::* 634/ntpd
udp6 0 0 2a01:cb11:1a6:b00:a:123 :::* 634/ntpd
udp6 0 0 ::1:123 :::* 634/ntpd
udp6 0 0 :::123 :::* 634/ntpd
udp6 0 0 :::5353 :::* 441/avahi-daemon: r
udp6 0 0 :::46903 :::* 441/avahi-daemon: r
udp6 0 0 :::546 :::* 464/dhcpcd
raw6 0 0 :::58 :::* 7 464/dhcpcd
Sockets du domaine UNIX actives(serveurs et établies)
Proto RefCnt Flags Type State I-Node PID/Program name Chemin
unix 2 [ ACC ] STREAM LISTENING 4863 1/init /run/systemd/private
unix 2 [ ] DGRAM 4876 1/init /run/systemd/shutdownd
unix 17 [ ] DGRAM 4881 1/init /run/systemd/journal/dev-log
unix 2 [ ACC ] STREAM LISTENING 7443 1/init /var/run/avahi-daemon/socket
unix 2 [ ACC ] SEQPACKET LISTENING 4885 1/init /run/udev/control
unix 2 [ ACC ] STREAM LISTENING 7446 1/init /var/run/dbus/system_bus_socket
unix 2 [ ACC ] STREAM LISTENING 4889 1/init /run/systemd/journal/stdout
unix 6 [ ] DGRAM 4891 1/init /run/systemd/journal/socket
unix 4 [ ] DGRAM 7452 426/wpa_supplicant /var/run/wpa_supplicant/wlan0
unix 2 [ ] DGRAM 10115 1070/lxpanel /tmp/libdhcpcd-wpa-1070.1
unix 2 [ ACC ] STREAM LISTENING 6924 642/X @/tmp/.X11-unix/X0
unix 2 [ ] DGRAM 9528 468/thd /var/run/thd.socket
unix 2 [ ACC ] STREAM LISTENING 9735 776/dbus-daemon @/tmp/dbus-TLARkHgZ6L
unix 2 [ ACC ] STREAM LISTENING 10575 464/dhcpcd /var/run/dhcpcd.sock
unix 2 [ ACC ] STREAM LISTENING 10577 464/dhcpcd /var/run/dhcpcd.unpriv.sock
unix 2 [ ] DGRAM 6225 1/init /run/systemd/journal/syslog
unix 2 [ ACC ] STREAM LISTENING 6925 642/X /tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 11410 1079/ssh-agent /tmp/ssh-sMZKpaMO2A93/agent.1077
unix 2 [ ACC ] STREAM LISTENING 11202 1071/pcmanfm /tmp/.pcmanfm-socket--0-pi
unix 2 [ ACC ] STREAM LISTENING 7000 772/ssh-agent /tmp/ssh-SFTFTRrS0psJ/agent.669
unix 2 [ ] DGRAM 10114 1070/lxpanel /tmp/libdhcpcd-wpa-1070.0
unix 2 [ ] DGRAM 9712 663/systemd /run/user/1000/systemd/notify
unix 2 [ ACC ] STREAM LISTENING 8051 1149/menu-cached /tmp/.menu-cached-:0-pi
unix 2 [ ACC ] STREAM LISTENING 9714 663/systemd /run/user/1000/systemd/private
unix 2 [ ] DGRAM 4861 1/init /run/systemd/notify
unix 3 [ ] STREAM CONNECTE 12313 1071/pcmanfm
unix 3 [ ] STREAM CONNECTE 11471 1121/gvfs-mtp-volum
unix 3 [ ] STREAM CONNECTE 6890 568/lightdm
unix 3 [ ] STREAM CONNECTE 6661 443/dbus-daemon /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTE 7988 642/X @/tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTE 14394 134/systemd-journal /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTE 11255 1130/gvfs-gphoto2-v
unix 3 [ ] STREAM CONNECTE 13402 1636/0
unix 3 [ ] STREAM CONNECTE 8052 776/dbus-daemon @/tmp/dbus-TLARkHgZ6L
unix 2 [ ] STREAM CONNECTE 11511 1141/gvfsd-trash @/dbus-vfs-daemon/socket-pvXbHPox
unix 3 [ ] STREAM CONNECTE 10922 783/gvfsd
unix 3 [ ] STREAM CONNECTE 8038 134/systemd-journal /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTE 9682 443/dbus-daemon /var/run/dbus/system_bus_socket
unix 2 [ ] DGRAM 11454 1105/udisksd
unix 3 [ ] STREAM CONNECTE 10933 776/dbus-daemon @/tmp/dbus-TLARkHgZ6L
unix 3 [ ] STREAM CONNECTE 11219 1100/gvfs-udisks2-v
unix 3 [ ] STREAM CONNECTE 10731 552/sshd
unix 3 [ ] STREAM CONNECTE 9952 776/dbus-daemon @/tmp/dbus-TLARkHgZ6L
unix 3 [ ] STREAM CONNECTE 12407 443/dbus-daemon /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTE 6627 1/init
unix 3 [ ] STREAM CONNECTE 13480 443/dbus-daemon /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTE 11429 1065/openbox
unix 3 [ ] STREAM CONNECTE 10572 134/systemd-journal /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTE 11232 443/dbus-daemon /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTE 7979 642/X @/tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTE 7885 802/gvfsd-fuse
unix 3 [ ] STREAM CONNECTE 9997 134/systemd-journal /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTE 7838 642/X @/tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTE 9566 134/systemd-journal /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTE 11480 1126/gvfs-goa-volum
unix 3 [ ] STREAM CONNECTE 8059 443/dbus-daemon /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTE 10107 464/dhcpcd /var/run/dhcpcd.unpriv.sock
unix 3 [ ] STREAM CONNECTE 10918 669/lxsession
unix 3 [ ] STREAM CONNECTE 8037 134/systemd-journal /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTE 7898 443/dbus-daemon /var/run/dbus/system_bus_socket
unix 2 [ ] DGRAM 12521 1926/sudo
unix 2 [ ] DGRAM 10579 464/dhcpcd
unix 2 [ ] DGRAM 9701 663/systemd
unix 3 [ ] STREAM CONNECTE 7853 783/gvfsd
unix 3 [ ] STREAM CONNECTE 11239 1116/gvfs-afc-volum
unix 3 [ ] STREAM CONNECTE 10915 775/dbus-launch
unix 2 [ ] DGRAM 6944 655/lightdm
unix 3 [ ] DGRAM 5448 138/systemd-udevd
unix 3 [ ] STREAM CONNECTE 11152 1068/lxpolkit
unix 3 [ ] STREAM CONNECTE 9687 443/dbus-daemon /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTE 11482 776/dbus-daemon @/tmp/dbus-TLARkHgZ6L
unix 2 [ ] DGRAM 10942 796/bluetoothd
unix 3 [ ] STREAM CONNECTE 10104 1070/lxpanel
unix 2 [ ] DGRAM 10804 634/ntpd
unix 3 [ ] STREAM CONNECTE 11518 1070/lxpanel
unix 3 [ ] STREAM CONNECTE 11470 1121/gvfs-mtp-volum
unix 3 [ ] STREAM CONNECTE 6984 663/systemd
unix 3 [ ] STREAM CONNECTE 13403 1628/sshd: pi [priv
unix 3 [ ] STREAM CONNECTE 7987 1070/lxpanel
unix 3 [ ] STREAM CONNECTE 10091 1130/gvfs-gphoto2-v
unix 2 [ ] DGRAM 7608 441/avahi-daemon: r
unix 3 [ ] STREAM CONNECTE 7845 134/systemd-journal /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTE 9536 441/avahi-daemon: r
unix 3 [ ] STREAM CONNECTE 9998 134/systemd-journal /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTE 8055 1071/pcmanfm
unix 3 [ ] STREAM CONNECTE 7002 776/dbus-daemon
unix 2 [ ] DGRAM 6990 666/(sd-pam)
unix 3 [ ] STREAM CONNECTE 11479 1126/gvfs-goa-volum
unix 3 [ ] STREAM CONNECTE 7131 134/systemd-journal /run/systemd/journal/stdout
unix 2 [ ] DGRAM 5444 138/systemd-udevd
unix 3 [ ] STREAM CONNECTE 7990 642/X @/tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTE 10917 669/lxsession
unix 3 [ ] STREAM CONNECTE 9520 443/dbus-daemon
unix 3 [ ] STREAM CONNECTE 11241 776/dbus-daemon @/tmp/dbus-TLARkHgZ6L
unix 3 [ ] STREAM CONNECTE 6586 134/systemd-journal /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTE 12314 1141/gvfsd-trash @/dbus-vfs-daemon/socket-90IP8a8W
unix 3 [ ] STREAM CONNECTE 7003 776/dbus-daemon @/tmp/dbus-TLARkHgZ6L
unix 3 [ ] STREAM CONNECTE 9953 776/dbus-daemon @/tmp/dbus-TLARkHgZ6L
unix 3 [ ] STREAM CONNECTE 7992 642/X @/tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTE 6658 443/dbus-daemon
unix 3 [ ] STREAM CONNECTE 11240 1116/gvfs-afc-volum
unix 3 [ ] STREAM CONNECTE 9790 796/bluetoothd
unix 3 [ ] STREAM CONNECTE 6660 443/dbus-daemon /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTE 8033 1116/gvfs-afc-volum
unix 3 [ ] STREAM CONNECTE 7532 435/systemd-logind
unix 3 [ ] STREAM CONNECTE 11155 443/dbus-daemon /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTE 6657 443/dbus-daemon
unix 3 [ ] STREAM CONNECTE 11224 443/dbus-daemon /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTE 8035 134/systemd-journal /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTE 11719 1820/packagekitd
unix 3 [ ] STREAM CONNECTE 13389 1628/sshd: pi [priv
unix 2 [ ] DGRAM 7424 426/wpa_supplicant
unix 3 [ ] STREAM CONNECTE 11519 1141/gvfsd-trash @/dbus-vfs-daemon/socket-ofdUuA7i
unix 3 [ ] STREAM CONNECTE 10105 464/dhcpcd /var/run/dhcpcd.unpriv.sock
unix 3 [ ] STREAM CONNECTE 8040 134/systemd-journal /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTE 11472 1121/gvfs-mtp-volum
unix 3 [ ] STREAM CONNECTE 7974 642/X @/tmp/.X11-unix/X0
unix 2 [ ] DGRAM 9803 443/dbus-daemon
unix 3 [ ] STREAM CONNECTE 8039 1126/gvfs-goa-volum
unix 3 [ ] STREAM CONNECTE 9537 475/avahi-daemon: c
unix 3 [ ] STREAM CONNECTE 10077 1105/udisksd
unix 3 [ ] STREAM CONNECTE 11220 1100/gvfs-udisks2-v
unix 3 [ ] STREAM CONNECTE 9660 568/lightdm
unix 3 [ ] STREAM CONNECTE 8041 134/systemd-journal /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTE 10923 783/gvfsd
unix 3 [ ] DGRAM 8004 1/init
unix 3 [ ] STREAM CONNECTE 11192 1076/polkitd
unix 3 [ ] STREAM CONNECTE 6939 655/lightdm
unix 2 [ ] DGRAM 11306 633/login
unix 3 [ ] STREAM CONNECTE 8050 776/dbus-daemon @/tmp/dbus-TLARkHgZ6L
unix 3 [ ] STREAM CONNECTE 10530 134/systemd-journal /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTE 7582 441/avahi-daemon: r
unix 3 [ ] STREAM CONNECTE 11211 1071/pcmanfm
unix 3 [ ] STREAM CONNECTE 7136 443/dbus-daemon /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTE 6659 443/dbus-daemon /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTE 7583 134/systemd-journal /run/systemd/journal/stdout
unix 2 [ ] DGRAM 6229 1/init
unix 2 [ ] STREAM CONNECTE 12518 1926/sudo
unix 3 [ ] STREAM CONNECTE 11235 776/dbus-daemon @/tmp/dbus-TLARkHgZ6L
unix 3 [ ] STREAM CONNECTE 10587 435/systemd-logind
unix 3 [ ] DGRAM 8003 1/init
unix 3 [ ] STREAM CONNECTE 11254 1130/gvfs-gphoto2-v
unix 3 [ ] STREAM CONNECTE 8026 134/systemd-journal /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTE 10776 568/lightdm
unix 3 [ ] STREAM CONNECTE 11443 1100/gvfs-udisks2-v
unix 2 [ ] DGRAM 10581 435/systemd-logind
unix 2 [ ] DGRAM 11433 1076/polkitd
unix 3 [ ] STREAM CONNECTE 7001 776/dbus-daemon
unix 3 [ ] STREAM CONNECTE 12310 1141/gvfsd-trash
unix 2 [ ] DGRAM 13388 1628/sshd: pi [priv
unix 3 [ ] STREAM CONNECTE 10099 1149/menu-cached
unix 3 [ ] STREAM CONNECTE 11154 1068/lxpolkit
unix 3 [ ] STREAM CONNECTE 7802 134/systemd-journal /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTE 11461 1100/gvfs-udisks2-v
unix 3 [ ] STREAM CONNECTE 8034 134/systemd-journal /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTE 13479 1820/packagekitd
unix 3 [ ] STREAM CONNECTE 7795 642/X @/tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTE 8025 134/systemd-journal /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTE 9541 441/avahi-daemon: r
unix 3 [ ] STREAM CONNECTE 10809 443/dbus-daemon /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTE 8047 1138/xprop
unix 3 [ ] STREAM CONNECTE 11262 776/dbus-daemon @/tmp/dbus-TLARkHgZ6L
unix 3 [ ] STREAM CONNECTE 10944 796/bluetoothd
unix 3 [ ] STREAM CONNECTE 11473 776/dbus-daemon @/tmp/dbus-TLARkHgZ6L
unix 3 [ ] STREAM CONNECTE 10098 1149/menu-cached /tmp/.menu-cached-:0-pi
unix 3 [ ] STREAM CONNECTE 6945 655/lightdm
unix 3 [ ] STREAM CONNECTE 9999 134/systemd-journal /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTE 7846 134/systemd-journal /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTE 9951 1070/lxpanel
unix 3 [ ] STREAM CONNECTE 11193 443/dbus-daemon /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTE 7844 642/X @/tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTE 9996 1096/rtkit-daemon
unix 3 [ ] STREAM CONNECTE 9811 776/dbus-daemon @/tmp/dbus-TLARkHgZ6L
unix 3 [ ] STREAM CONNECTE 8058 1070/lxpanel
unix 3 [ ] STREAM CONNECTE 11307 633/login
unix 3 [ ] STREAM CONNECTE 10529 430/cron
unix 3 [ ] STREAM CONNECTE 11195 1071/pcmanfm
unix 3 [ ] DGRAM 5447 138/systemd-udevd
unix 3 [ ] STREAM CONNECTE 10106 1070/lxpanel
unix 3 [ ] STREAM CONNECTE 10909 775/dbus-launch
unix 3 [ ] STREAM CONNECTE 11495 642/X @/tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTE 9880 669/lxsession
unix 3 [ ] STREAM CONNECTE 7835 642/X @/tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTE 7706 134/systemd-journal /run/systemd/journal/stdout
unix 2 [ ] DGRAM 13478 1820/packagekitd
pi@raspberrypi:~ $

et la commande sudo netstat -apn | grep 8080
ne donne rien , donc pas de serveur qui tourne ...

voila mon fichier de configuration domoticz.sh

pi@raspberrypi:/etc/init.d $ more domoticz.sh
#! /bin/sh
### BEGIN INIT INFO
# Provides: domoticz
# Required-Start: $network $remote_fs $syslog
# Required-Stop: $network $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Home Automation System
# Description: This daemon will start the Domoticz Home Automation System
### END INIT INFO

# Do NOT "set -e"

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
DESC="Domoticz Home Automation System"
NAME=domoticz
USERNAME=pi
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME

DAEMON=/home/$USERNAME/domoticz/$NAME
DAEMON_ARGS="-daemon -www 8080"
#DAEMON_ARGS="$DAEMON_ARGS -daemonname $NAME -pidfile $PIDFILE"
DAEMON_ARGS="$DAEMON_ARGS -www 8080"
DAEMON_ARGS="$DAEMON_ARGS -sslwww 443"
#DAEMON_ARGS="$DAEMON_ARGS -log /tmp/domoticz.txt"
#DAEMON_ARGS="$DAEMON_ARGS -syslog"

# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0

# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh

# Define LSB log_* functions.
# Depend on lsb-base (>= 3.2-14) to ensure that this file is present
# and status_of_proc is working.
. /lib/lsb/init-functions


qui peut m'aider ?

merci

Re: Acces par le nagigateur web en intranet

Publié : 19 juil. 2016, 20:53
par rimram31
Oops ... ok donc domoticz ne tourne pas ou n'a pas pu ouvrir le port du service web (pour savoir si domoticz tourne ou pas tu peux lancer un ps -ef | grep domoticz)

Dans domoticz.sh, decommente la ligne avec -log:

Code : Tout sélectionner

DAEMON_ARGS="$DAEMON_ARGS -log /tmp/domoticz.txt"
Puis au lancement de domoticz tu jettes un oeil au fichier /tmp/domoticz.txt pour voir si il t'aide a comprendre ce qui ne marche pas (l'option -log peut-être ensuite supprimée si tout est ok).

Accessoirement les deux lignes avec -www (l'une avec daemon l'autre sans) sont redondantes, c'est l'une ou l'autre elles sont données pour exemple je suppose pour lancer en mode daemon ou pas (commenter/décommenter les lignes correspondantes) et la ligne avec -sslwww 443 n'est nécessaire que pour activer le mode https, peut-être pas utile pour tests dans un premier temps.

Re: Acces par le nagigateur web en intranet

Publié : 19 juil. 2016, 21:39
par mochel
voila j'ai fait les modifs mais ca donne rien dans le fichier de log

pi@raspberrypi:/etc/init.d $ cd /tmp
pi@raspberrypi:/tmp $ ls
libdhcpcd-wpa-1099.0
libdhcpcd-wpa-1099.1
pulse-PKdhtXMmr18n
ssh-7ljijHVYhp3X
ssh-DFIJkgrtd1wi
systemd-private-3edcb6b337d749969f214f100c42f570-rtkit-daemon.service-3Opxx9
pi@raspberrypi:/tmp $ sudo service domoticz.sh status
● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh)
Active: active (exited) since mar. 2016-07-19 19:35:47 UTC; 33s ago
Process: 1344 ExecStop=/etc/init.d/domoticz.sh stop (code=exited, status=0/SUCCESS)
Process: 1372 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)

juil. 19 19:35:47 raspberrypi systemd[1]: Started LSB: Home Automation System.
pi@raspberrypi:/tmp $ ^C
pi@raspberrypi:/tmp $

Voila l'extrait de mon fichier domoticz.sh

# Provides: domoticz
# Required-Start: $network $remote_fs $syslog
# Required-Stop: $network $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Home Automation System
# Description: This daemon will start the Domoticz Home Automation System
### END INIT INFO

# Do NOT "set -e"

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
DESC="Domoticz Home Automation System"
NAME=domoticz
USERNAME=pi
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME

DAEMON=/home/$USERNAME/domoticz/$NAME
DAEMON_ARGS="-daemon -www 8080"
#DAEMON_ARGS="$DAEMON_ARGS -daemonname $NAME -pidfile $PIDFILE"
#DAEMON_ARGS="$DAEMON_ARGS -www 8080"
#DAEMON_ARGS="$DAEMON_ARGS -sslwww 443"
DAEMON_ARGS="$DAEMON_ARGS -log /tmp/domoticz.txt"
#DAEMON_ARGS="$DAEMON_ARGS -syslog"

et le status de domoticz.sh donne cela

pi@raspberrypi:/etc/init.d $ sudo service domoticz.sh status
● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh)
Active: active (exited) since mar. 2016-07-19 19:35:47 UTC; 3min 18s ago
Process: 1344 ExecStop=/etc/init.d/domoticz.sh stop (code=exited, status=0/SUCCESS)
Process: 1372 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)

juil. 19 19:35:47 raspberrypi systemd[1]: Started LSB: Home Automation System.
pi@raspberrypi:/etc/init.d $ ^C
pi@raspberrypi:/etc/init.d $

Re: Acces par le nagigateur web en intranet

Publié : 19 juil. 2016, 23:20
par rimram31
Franchement, je sèche pas de fichier de log voudrait dire que domoticz ne doit même pas démarrer.

Tu peux essayer de le lancer a la main en ligne de commande peut-être sudo /home/pi/domoticz/domoticz -www 8080 et voir ce qu'il dit. Si ça marche c'est qu'il y a souci dans le script sh (et/ou des modifications sur les distribs raspberry 3 ?)

Re: Acces par le nagigateur web en intranet

Publié : 20 juil. 2016, 06:31
par sylvainsjc
Salut,
Ton fichier domoticz.sh a deux lignes "DAEMON_ARGS" redondantes

DAEMON_ARGS="-daemon -www 8080"
DAEMON_ARGS="$DAEMON_ARGS -www 8080"
DAEMON_ARGS="$DAEMON_ARGS -sslwww 443"

Voici mon fichier sur mon RPI2 et Raspbian :

Code : Tout sélectionner

#! /bin/sh
### BEGIN INIT INFO
# Provides:          domoticz
# Required-Start:    $network $remote_fs $syslog
# Required-Stop:     $network $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Home Automation System
# Description:       This daemon will start the Domoticz Home Automation System
### END INIT INFO

# Do NOT "set -e"

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
DESC="Domoticz Home Automation System"
NAME=domoticz
USERNAME=pi
DAEMON=/home/$USERNAME/domoticz/$NAME
DAEMON_ARGS="-daemon -www 8080 -sslwww 443"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME

Re: Acces par le nagigateur web en intranet

Publié : 20 juil. 2016, 07:56
par mochel
voila j'ai modifié mon fichier domoticz.sh

#! /bin/sh
### BEGIN INIT INFO
# Provides: domoticz
# Required-Start: $network $remote_fs $syslog
# Required-Stop: $network $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Home Automation System
# Description: This daemon will start the Domoticz Home Automation System
### END INIT INFO

# Do NOT "set -e"

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
DESC="Domoticz Home Automation System"
NAME=domoticz
USERNAME=pi
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME

DAEMON=/home/$USERNAME/domoticz/$NAME
#DAEMON_ARGS="-daemon -www 8080"
#DAEMON_ARGS="$DAEMON_ARGS -daemonname $NAME -pidfile $PIDFILE"
DAEMON_ARGS="$DAEMON_ARGS -www 8080 -sslwww 443"
DAEMON_ARGS="$DAEMON_ARGS -log /tmp/domoticz.txt"
DAEMON_ARGS="$DAEMON_ARGS -syslog"

# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0

# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh

# Define LSB log_* functions.
# Depend on lsb-base (>= 3.2-14) to ensure that this file is present
# and status_of_proc is working.
. /lib/lsb/init-functions

#

mais le service ne tourne toujours pas , dans le navigateur ca donne ca :

Firefox ne peut établir de connexion avec le serveur à l’adresse 192.168.1.29:8080.

Le site est peut-être temporairement indisponible ou surchargé. Réessayez plus tard ;
Si vous n’arrivez à naviguer sur aucun site, vérifiez la connexion au réseau de votre ordinateur ;
Si votre ordinateur ou votre réseau est protégé par un pare-feu ou un proxy, assurez-vous que Firefox est autorisé à accéder au Web.

et pourtant le status à l'air ok ?

pi@raspberrypi:/tmp $ sudo service domoticz.sh status
● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh)
Active: active (exited) since mer. 2016-07-20 05:49:49 UTC; 3min 11s ago
Process: 1719 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)

juil. 20 05:49:49 raspberrypi systemd[1]: Started LSB: Home Automation System.
pi@raspberrypi:/tmp $


Une piste a essayer ?
merci

Re: Acces par le nagigateur web en intranet

Publié : 20 juil. 2016, 09:39
par sylvainsjc
Oui ce n'est encore pas bon comme tu as fait...
Met un # devant toutes les lignes avec DAEMON_ARGS
Et ajoute celle-ci :

Code : Tout sélectionner

DAEMON_ARGS="-daemon -www 8080 -sslwww 443 -log /tmp/domoticz.txt"
Ensuite si c'est toujours pas bon, donne le retour de

Code : Tout sélectionner

sudo grep -i "domoticz" /var/log/syslog

Re: Acces par le nagigateur web en intranet

Publié : 20 juil. 2016, 16:29
par mochel
voila le retour de la commande grep

pi@raspberrypi:/etc/init.d $ sudo grep -i "domoticz" /var/log/syslog
Jul 17 19:02:11 raspberrypi domoticz.sh[1995]: start-stop-daemon: unable to start /home/pi/domoticz (Permission denied)
Jul 17 19:02:29 raspberrypi domoti.