Re: Re: fhem-2011-01.log not getting updated (debian) (FIXED)

Begonnen von Guest, 24 Januar 2011, 17:35:30

Vorheriges Thema - Nächstes Thema

Guest

Originally posted by: <email address deleted>

Nope i did not play with fhem.cfg directly and as for as i know i didnt
change anything regarding to global logging

########################
fhem> list global
Internals:
   DEF        
   NAME       global
   NR         1
   STATE      
   TYPE       _internal_
Attributes:
   autoload_undefined_devices 1
   configfile /etc/fhem.cfg
   logfile    -
   modpath    /usr/share/fhem
   port       7072
   statefile  /var/log/fhem/fhem.save
   verbose    3
   version    5.0 from 2010-08-15 ($Id: fhem.pl,v 1.111 2010-09-30 13:12:27
rudolfkoenig Exp $)
##########################

This states that there is no global logfile
I've modified it and the logfile is now working! super

After that i rebooted but FHEM was still locking up the console.

I modified /bin/false into /bin/bash and that did the trick for me. It's
working now without locking up the system.

Martin..... Kudo's for you ;-)



On Mon, Jan 24, 2011 at 4:21 PM, Martin Haas wrote:

> Did you play with the /etc/fhem.cfg? There should be something like
> attr global logfile /var/log/fhem/fhem-%Y-%m.log
> attr global verbose 3
>
> If fhem.pl is running make a "telnet localhost 7072" After that "list
> global" ==> you should see the currentlogfile
>
> Last test: change as root in the /etc/passwd the shell from fhem from
> "/bin/false" to "/bin/bash"
> Stop fhem and be sure that it is not running "ps -ef | grep fhem"
> >> su fhem
> >> id
> ==> uid=999(fhem)
> >> /usr/bin/perl /usr/bin/fhem.pl /etc/fhem.cfg
> fhem must start with the settings of the /etc/fhem.cfg
>
> Retry the telnet session above.
>
> No more ideas...
> Martin
>
> On 24 Jan., 14:40, Ernst Cozijnsen wrote:
> > Hi Martin,
> >
> > [shame mode]
> > How you can overlook the simpelest issues :-(
> > [/shame mode]
> >
> > Well i changed the owner to fhem but without any luck. I tried both with
> and
> > without the & in the start script but without any luck.
> >
> > The file still doesn't get updated
> >
> > 2011/1/24 Martin Haas
> >
> > > That is the reason:
> >
> > > > root@guruplug:~# ls -latr /var/log/fhem
> > > > total 444
> > > > -rw-r--r--  1 root root   2858 Jan 21 13:40 fhem-2011-01.log
> >
> > > fhem.pl is running as user fhem and has not the rights to write into
> > > the fhem-2011-01.log
> >
> > > Give the file the correct rights with "chown fhem.root
> > > fhem-2011-01.log ". Restart fhem and it should run :-)
> >
> > > Have fun,
> > > Martin
> >
> > > --
> > > Sie haben diese Nachricht erhalten, da Sie der Google Groups-Gruppe
> FHEM
> > > users beigetreten sind.
> > > Wenn Sie Nachrichten in dieser Gruppe posten möchten, senden Sie eine
> > > E-Mail an fhem-users@googlegroups.com.
> > > Wenn Sie aus dieser Gruppe austreten möchten, senden Sie eine E-Mail an
> > > fhem-users+unsubscribe@googlegroups.com
>
> >
> > > .
> > > Besuchen Sie die Gruppe unter
> > >http://groups.google.com/group/fhem-users?hl=de, um weitere Optionen zu
> > > erhalten.
>
> --
> Sie haben diese Nachricht erhalten, da Sie der Google Groups-Gruppe FHEM
> users beigetreten sind.
> Wenn Sie Nachrichten in dieser Gruppe posten möchten, senden Sie eine
> E-Mail an fhem-users@googlegroups.com.
> Wenn Sie aus dieser Gruppe austreten möchten, senden Sie eine E-Mail an
> fhem-users+unsubscribe@googlegroups.com
> .
> Besuchen Sie die Gruppe unter
> http://groups.google.com/group/fhem-users?hl=de, um weitere Optionen zu
> erhalten.
>
>

--
Sie haben diese Nachricht erhalten, da Sie der Google Groups-Gruppe FHEM users beigetreten sind.
Wenn Sie Nachrichten in dieser Gruppe posten möchten, senden Sie eine E-Mail an fhem-users@googlegroups.com.
Wenn Sie aus dieser Gruppe austreten möchten, senden Sie eine E-Mail an fhem-users+unsubscribe@googlegroups.com.
Besuchen Sie die Gruppe unter http://groups.google.com/group/fhem-users?hl=de, um weitere Optionen zu erhalten.