[gelöst] Fhem startet nich unter root

Begonnen von Future, 02 Februar 2014, 12:01:11

Vorheriges Thema - Nächstes Thema

Future

Hallo,
wie schon geschieben, fhem startet auf meiner 7390 nicht unter root. startfhem sieht so aus:
#!/bin/sh

home=/var/InternerSpeicher/fhem

cd $home

trap "" SIGHUP
modprobe cdc_acm
modprobe ftdi_sio
sleep 2

ln -sf $home/FHEM/fhemcmd.sh /var/fhemcmd

PATH=$home:$PATH
export PATH

export LD_LIBRARY_PATH=$home/lib
export PERL5LIB=$home/lib/perl5/site_perl/5.12.2/mips-linux:$home/lib/perl5/site_perl/5.12.2:$home/lib/perl5/5.12.2/mips-linux:$home/lib/perl5/5.12.2

# add user fhem with uid of boxusr80/boxusr99 (== ftpuser)
# Comment/delete everything between START and END to run FHEM as root

perl fhem.pl fhem.cfg


nach unzähligen reboots immernoch das selbe :

2027 fhem     12476 S    perl fhem.pl fhem.cfg

Firmware is aktuell (FritzOS6.01), allerdings mit freetz gebaut, was aber noch nie ein problem war :-\
FHEM 5.6 auf Brix
1xCUL433, 12x Elro AB440SC
Onkyo TX-NR515, Coolstream NEO, Samsung UE46F6500, HMLAN, 3x HM-PB-2-WM55-2, 2x HM-PB-6-WM55, 4x HM-CC-RT-DN, 3x HM-TC-IT-WM-W-EU, 1x HM-RC-4-2, 3x HM-LC-Sw1PBU-FM,1x HM-WDS10-TH-O

Puschel74

Hallo,

wie schon geschrieben - was steht im FHEM-Logfile?
Was sagt Telnet?

Grüße
Zotac BI323 als Server mit DBLog
CUNO für FHT80B, 3 HM-Lan per vCCU, RasPi mit CUL433 für Somfy-Rollo (F2F), RasPi mit I2C(LM75) (F2F), RasPi für Panstamp+Vegetronix +SONOS(F2F)
Ich beantworte keine Supportanfragen per PM! Bitte im Forum suchen oder einen Beitrag erstellen.

Mani007

Hattest du vorher die fhem version von avm drauf wenn ja dann den benutzer fhem aus der passwd löschen . Modsave flash nicht vergessen sonst ist beim neustart alles wieder wie vorher.
FHEM 5.5 auf Raspberry Pi B+

FB7390 Fritz!OS6.23
CUL 868  V1.61 / 1 x HM-SCI-3-FM / 1 x HM-SEC-SC / 3 x HM-LC-DIM1T-FM / 1 x HM-LC-DIM1TBU-FM /     
4 x HM-CC-RT-DN / 3 x HM-LC-SW1-FM / 2 x HM-WDS30-T-O / 2 x FRITZ!DECT 200 / Openvpn /VU + DUO

Future

FHEM log sagt erstmal nichts, außer das er unter user fhem läuft  :-[
2014.02.02 14:21:40 1: Including fhem.cfg
2014.02.02 14:21:47 3: telnetPort: port 7072 opened
2014.02.02 14:21:54 3: WEB: port 8083 opened
2014.02.02 14:21:54 3: WEBphone: port 8084 opened
2014.02.02 14:21:54 3: WEBtablet: port 8085 opened
2014.02.02 14:21:56 2: eventTypes: loaded 13 events from ./log/eventTypes.txt
2014.02.02 14:22:00 1: Including ./log/fhem.save
2014.02.02 14:22:00 1: usb create starting
2014.02.02 14:22:02 1: usb create end
2014.02.02 14:22:02 2: SecurityCheck:  WEB,WEBphone,WEBtablet has no basicAuth attribute. telnetPort has no password/globalpassword attribute.  Restart fhem for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2014.02.02 14:22:02 0: Server started with 10 defined entities (version $Id: fhem.pl 4769 2014-01-29 08:14:58Z rudolfkoenig $, os linux, user fhem, pid 2013)


auch das löschen des user fhem in der passwd und anschließendem modsave flash brachte nichts  :'(

und was soll telnet sagen ?  ;)
3496 root      1276 S    dropbear -p 22 -0
3497 root      1264 S    -sh
3691 fhem     12872 S    perl fhem.pl fhem.cfg
3698 root      1240 R    {busybox} ps
root@fritz:/var/media/ftp/fhem# kill 3691
root@fritz:/var/media/ftp/fhem# ./startfhem
root@fritz:/var/media/ftp/fhem# ps
3705 fhem     11988 S    perl fhem.pl fhem.cfg
3708 root      1240 R    {busybox} ps
root@fritz:/var/media/ftp/fhem#


oder meinst was anderes ?
FHEM 5.6 auf Brix
1xCUL433, 12x Elro AB440SC
Onkyo TX-NR515, Coolstream NEO, Samsung UE46F6500, HMLAN, 3x HM-PB-2-WM55-2, 2x HM-PB-6-WM55, 4x HM-CC-RT-DN, 3x HM-TC-IT-WM-W-EU, 1x HM-RC-4-2, 3x HM-LC-Sw1PBU-FM,1x HM-WDS10-TH-O

Puschel74

Hallo,

Zitatunter user fhem läuft
Der User fhem hat root-Rechte?

Mit telnet habe ich gemeint das sich dort beim FHEM-Start auch Fehlermeldungen zeigen die Rückschlüsse bieten können.

Hast du die AVM-Labor installiert?

Grüße
Zotac BI323 als Server mit DBLog
CUNO für FHT80B, 3 HM-Lan per vCCU, RasPi mit CUL433 für Somfy-Rollo (F2F), RasPi mit I2C(LM75) (F2F), RasPi für Panstamp+Vegetronix +SONOS(F2F)
Ich beantworte keine Supportanfragen per PM! Bitte im Forum suchen oder einen Beitrag erstellen.

Future

die "gefreetzte" Firmware ist keine Labor. Es ist die orginal 6.01 mit freetz ( callmonitor, dropbear etc ).
Meine reihenfolge bei instalieren: Recovery image - Freetz-Image - FEHM-Pseudo image.
hatte damit noch nie probleme.

user fhem hat glaub keine root rechte  ???
root:x:0:0:root:/mod/root:/bin/sh
nobody:x:100:1000:nobody:/home/nobody:/bin/false
nobody:x:100:1000:nobody:/home/nobody:/bin/false
fhem:any:1080:0:fhem:/home-not-used:/bin/sh
nobody:x:100:1000:nobody:/home/nobody:/bin/false
nobody:x:100:1000:nobody:/home/nobody:/bin/false
nobody:x:100:1000:nobody:/home/nobody:/bin/false
nobody:x:100:1000:nobody:/home/nobody:/bin/false

FHEM 5.6 auf Brix
1xCUL433, 12x Elro AB440SC
Onkyo TX-NR515, Coolstream NEO, Samsung UE46F6500, HMLAN, 3x HM-PB-2-WM55-2, 2x HM-PB-6-WM55, 4x HM-CC-RT-DN, 3x HM-TC-IT-WM-W-EU, 1x HM-RC-4-2, 3x HM-LC-Sw1PBU-FM,1x HM-WDS10-TH-O

Puschel74

Hallo,

Zitatdie "gefreetzte" Firmware ist keine Labor.
Das weiß ich danke.
Ich hatte selbst lange Zeit freetz im Einsatz.

ZitatFEHM-Pseudo image.
Welches?
Von AVM oder von fhem.de? (Wobei wir wieder bei der urspünglichen Frage nach der Laborversion wären).

Zitatuser fhem hat glaub keine root rechte
Na dann kann FHEM ja nicht als root starten - behaupte ich jetzt mal so.

Grüße
Zotac BI323 als Server mit DBLog
CUNO für FHT80B, 3 HM-Lan per vCCU, RasPi mit CUL433 für Somfy-Rollo (F2F), RasPi mit I2C(LM75) (F2F), RasPi für Panstamp+Vegetronix +SONOS(F2F)
Ich beantworte keine Supportanfragen per PM! Bitte im Forum suchen oder einen Beitrag erstellen.

Future

fhem image ist von fhem.de  ;)

egal..... keine Lust mehr. für heute is schluß mit fhem. werde die fritte nochmal neu flashen bzw image neu bauen und dann mal sehen was passiert evt lag es daran.  :'( :-X :-[

aber erstmal danke für eure hilfe  ;) :)

FHEM 5.6 auf Brix
1xCUL433, 12x Elro AB440SC
Onkyo TX-NR515, Coolstream NEO, Samsung UE46F6500, HMLAN, 3x HM-PB-2-WM55-2, 2x HM-PB-6-WM55, 4x HM-CC-RT-DN, 3x HM-TC-IT-WM-W-EU, 1x HM-RC-4-2, 3x HM-LC-Sw1PBU-FM,1x HM-WDS10-TH-O

Future

So..... problem gelöst  ;D
fhem läuft jetzt auf der Raspberry 8)

Danke für die Hilfe auch wenns nichts gebracht hat  ;)
FHEM 5.6 auf Brix
1xCUL433, 12x Elro AB440SC
Onkyo TX-NR515, Coolstream NEO, Samsung UE46F6500, HMLAN, 3x HM-PB-2-WM55-2, 2x HM-PB-6-WM55, 4x HM-CC-RT-DN, 3x HM-TC-IT-WM-W-EU, 1x HM-RC-4-2, 3x HM-LC-Sw1PBU-FM,1x HM-WDS10-TH-O

Wernieman

Was war es denn jetzt?

P.S. Bitte im ersten Beitrag den Titel um "[gelöst]" ergänzen
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

Future

null Plan was war oder ist  :-[
Ich habe fhem jetzt auf der Raspberry laufen, deshalb brauch ich es nicht mehr auf der FritzBox  ;)
FHEM 5.6 auf Brix
1xCUL433, 12x Elro AB440SC
Onkyo TX-NR515, Coolstream NEO, Samsung UE46F6500, HMLAN, 3x HM-PB-2-WM55-2, 2x HM-PB-6-WM55, 4x HM-CC-RT-DN, 3x HM-TC-IT-WM-W-EU, 1x HM-RC-4-2, 3x HM-LC-Sw1PBU-FM,1x HM-WDS10-TH-O

Wernieman

Ach so .. gelöst durch andere Plattform  8)
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

Puschel74

Zotac BI323 als Server mit DBLog
CUNO für FHT80B, 3 HM-Lan per vCCU, RasPi mit CUL433 für Somfy-Rollo (F2F), RasPi mit I2C(LM75) (F2F), RasPi für Panstamp+Vegetronix +SONOS(F2F)
Ich beantworte keine Supportanfragen per PM! Bitte im Forum suchen oder einen Beitrag erstellen.

Future

also nach dem Sicherheitsupdate von AVM war mein fhem weg  ???
fhem neu instaliert und siehe da, fhem läuft jetzt unter root  8) ....... nur mein gefreetztes image is nun nicht mehr zu gebrauchen  :-\
FHEM 5.6 auf Brix
1xCUL433, 12x Elro AB440SC
Onkyo TX-NR515, Coolstream NEO, Samsung UE46F6500, HMLAN, 3x HM-PB-2-WM55-2, 2x HM-PB-6-WM55, 4x HM-CC-RT-DN, 3x HM-TC-IT-WM-W-EU, 1x HM-RC-4-2, 3x HM-LC-Sw1PBU-FM,1x HM-WDS10-TH-O