Originally posted by: <email address deleted>
After i had to start FHEM with an & in the /etc/init.d/fhem startup
script i see that the fhem-2011-01.log logfile in /var/log/fhem is not
updated anymore.
If i check the config file all should be fine.
If i remove the & from the startup script it locks up at boot time
any ideas?
--
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.
Originally posted by: <email address deleted>
The "&" should work but is not required in an init script.
Go to your logfile directory like /var/tmp and type "lsof *" to see
the current used logfiles of fhem.pl. If your logfile is listed then
it should be updated by fhem.pl
Martin
On 23 Jan., 18:22, Ernst Cozijnsen wrote:
> After i had to start FHEM with an & in the /etc/init.d/fhem startup
> script i see that the fhem-2011-01.log logfile in /var/log/fhem is not
> updated anymore.
>
> If i check the config file all should be fine.
>
> If i remove the & from the startup script it locks up at boot time
>
> any ideas?
--
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.
Originally posted by: <email address deleted>
Hi Martin,
I did as requested and this is what i see
fhem.pl 683 fhem 9w REG 8,18 147518 252476
/var/log/fhem/Thermostaat_Huiskamer.log
fhem.pl 683 fhem 10w REG 8,18 115985 252652
/var/log/fhem/Thermostaat_Steffi.log
fhem.pl 683 fhem 11w REG 8,18 117281 252218
/var/log/fhem/Thermostaat_Ernst.log
fhem.pl 683 fhem 12w REG 8,18 1210 252615
/var/log/fhem/Salon_Tafel-2011.log
fhem.pl 683 fhem 13w REG 8,18 648 252626
/var/log/fhem/LEDStrip_Bank-2011.log
fhem.pl 683 fhem 14w REG 8,18 1716 252641
/var/log/fhem/Koof-2011.log
fhem.pl 683 fhem 15w REG 8,18 1471 252682
/var/log/fhem/Kleine_Staande_Lamp-2011.log
So the fhem-2011-01.log logfile in /var/log/fhem is not updated.
The problem is that i cannot test it without the & in the startscript
because my console locks up and ssh is not started yet.
I moved fhem at a later point in ther /etc/c2.d so it would start after ssh
but without any luck it stil starts before ssh and i cannot login
Would you have anothe sugestion?
On Sun, Jan 23, 2011 at 10:55 PM, Martin Haas wrote:
> The "&" should work but is not required in an init script.
>
> Go to your logfile directory like /var/tmp and type "lsof *" to see
> the current used logfiles of fhem.pl. If your logfile is listed then
> it should be updated by fhem.pl
>
> Martin
>
> On 23 Jan., 18:22, Ernst Cozijnsen wrote:
> > After i had to start FHEM with an & in the /etc/init.d/fhem startup
> > script i see that the fhem-2011-01.log logfile in /var/log/fhem is not
> > updated anymore.
> >
> > If i check the config file all should be fine.
> >
> > If i remove the & from the startup script it locks up at boot time
> >
> > any ideas?
>
> --
> 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.
Originally posted by: <email address deleted>
Do you use Debian or Ubuntu until 10.04?
Do you use the Start/Stop-Script of the current fhem-5.0.deb? There is
no need for the "&". I recommend this .deb (if possible).
You are using fhem.pl as the user fhem, this is great and sounds like
the deb-package.
Is the owner of fhem-2011-01.log the user fhem (not root)? Please make
a "ls -al /var/log/fhem/".
And make a "lsof | grep fhem" to get an overview about the open files.
Martin
On 24 Jan., 12:55, Ernst Cozijnsen wrote:
> Hi Martin,
> I did as requested and this is what i see
>
> fhem.pl 683 fhem 9w REG 8,18 147518 252476
> /var/log/fhem/Thermostaat_Huiskamer.log
> fhem.pl 683 fhem 10w REG 8,18 115985 252652
> /var/log/fhem/Thermostaat_Steffi.log
> fhem.pl 683 fhem 11w REG 8,18 117281 252218
> /var/log/fhem/Thermostaat_Ernst.log
> fhem.pl 683 fhem 12w REG 8,18 1210 252615
> /var/log/fhem/Salon_Tafel-2011.log
> fhem.pl 683 fhem 13w REG 8,18 648 252626
> /var/log/fhem/LEDStrip_Bank-2011.log
> fhem.pl 683 fhem 14w REG 8,18 1716 252641
> /var/log/fhem/Koof-2011.log
> fhem.pl 683 fhem 15w REG 8,18 1471 252682
> /var/log/fhem/Kleine_Staande_Lamp-2011.log
>
> So the fhem-2011-01.log logfile in /var/log/fhem is not updated.
>
> The problem is that i cannot test it without the & in the startscript
> because my console locks up and ssh is not started yet.
>
> I moved fhem at a later point in ther /etc/c2.d so it would start after ssh
> but without any luck it stil starts before ssh and i cannot login
>
> Would you have anothe sugestion?
>
> On Sun, Jan 23, 2011 at 10:55 PM, Martin Haas wrote:
> > The "&" should work but is not required in an init script.
>
> > Go to your logfile directory like /var/tmp and type "lsof *" to see
> > the current used logfiles of fhem.pl. If your logfile is listed then
> > it should be updated by fhem.pl
>
> > Martin
>
> > On 23 Jan., 18:22, Ernst Cozijnsen wrote:
> > > After i had to start FHEM with an & in the /etc/init.d/fhem startup
> > > script i see that the fhem-2011-01.log logfile in /var/log/fhem is not
> > > updated anymore.
>
> > > If i check the config file all should be fine.
>
> > > If i remove the & from the startup script it locks up at boot time
>
> > > any ideas?
>
> > --
> > 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.
Originally posted by: <email address deleted>
Hi Martin,
I use the standard .deb package from the website if i do not put the & in
the start script my console looks like the picture included and will not go
any further.
see picture included
[image: Selection_025.png]
My system data:
root@guruplug:~# uname -a
Linux guruplug 2.6.32-5-kirkwood #1 Wed Jan 12 15:27:07 UTC 2011 armv5tel
GNU/Linux
root@guruplug:~# cat /etc/issue
Debian GNU/Linux 6.0 \n \l
root@guruplug:~# ls -latr /var/log/fhem
total 444
-rw-r--r-- 1 root root 2858 Jan 21 13:40 fhem-2011-01.log
drwxr-xr-x 2 fhem root 4096 Jan 23 17:31 .
-rw-r--r-- 1 fhem root 648 Jan 23 20:34 LEDStrip_Bank-2011.log
-rw-r--r-- 1 fhem root 1210 Jan 23 20:34 Salon_Tafel-2011.log
-rw-r--r-- 1 fhem root 1471 Jan 23 20:34 Kleine_Staande_Lamp-2011.log
-rw-r--r-- 1 fhem root 1716 Jan 24 11:42 Koof-2011.log
-rw-r--r-- 1 fhem root 5836 Jan 24 13:47 fhem.save
drwxr-xr-x 11 root root 4096 Jan 24 13:47 ..
-rw-r--r-- 1 fhem root 120008 Jan 24 14:04 Thermostaat_Ernst.log
-rw-r--r-- 1 fhem root 150458 Jan 24 14:05 Thermostaat_Huiskamer.log
-rw-r--r-- 1 fhem root 118874 Jan 24 14:05 Thermostaat_Steffi.log
root@guruplug:~#
root@guruplug:~#
root@guruplug:~#
root@guruplug:~# lsof | grep fhem
fhem.pl 682 fhem cwd DIR 8,18 4096 2 /
fhem.pl 682 fhem rtd DIR 8,18 4096 2 /
fhem.pl 682 fhem txt REG 8,18 5176 9737
/usr/bin/perl
fhem.pl 682 fhem mem REG 8,18 122340 107760
/lib/ld-2.11.2.so
fhem.pl 682 fhem mem REG 8,18 1251432 9742
/usr/lib/libperl.so.5.10.1
fhem.pl 682 fhem mem REG 8,18 9808 107755
/lib/libdl-2.11.2.so
fhem.pl 682 fhem mem REG 8,18 652912 107771
/lib/libm-2.11.2.so
fhem.pl 682 fhem mem REG 8,18 120505 107761
/lib/libpthread-2.11.2.so
fhem.pl 682 fhem mem REG 8,18 1205684 107758
/lib/libc-2.11.2.so
fhem.pl 682 fhem mem REG 8,18 34376 107757
/lib/libcrypt-2.11.2.so
fhem.pl 682 fhem mem REG 8,18 47212 105497
/lib/libgcc_s.so.1
fhem.pl 682 fhem mem REG 8,18 15932 16953
/usr/lib/perl/5.10.1/auto/IO/IO.so
fhem.pl 682 fhem mem REG 8,18 19972 16955
/usr/lib/perl/5.10.1/auto/Socket/Socket.so
fhem.pl 682 fhem mem REG 8,18 25748 42125
/usr/lib/perl/5.10.1/auto/Time/HiRes/HiRes.so
fhem.pl 682 fhem mem REG 8,18 26632 107756
/lib/librt-2.11.2.so
fhem.pl 682 fhem mem REG 8,18 11736 16960
/usr/lib/perl/5.10.1/auto/Fcntl/Fcntl.so
fhem.pl 682 fhem mem REG 8,18 102824 16946
/usr/lib/perl/5.10.1/auto/POSIX/POSIX.so
fhem.pl 682 fhem mem REG 8,18 34796 16968
/usr/lib/perl/5.10.1/auto/List/Util/Util.so
fhem.pl 682 fhem mem REG 8,18 42680 107773
/lib/libnss_files-2.11.2.so
fhem.pl 682 fhem mem REG 8,18 26480 107759
/lib/libnss_compat-2.11.2.so
fhem.pl 682 fhem mem REG 8,18 75732 107763
/lib/libnsl-2.11.2.so
fhem.pl 682 fhem mem REG 8,18 38608 107764
/lib/libnss_nis-2.11.2.so
fhem.pl 682 fhem 0r CHR 1,3 0t0 456
/dev/null
fhem.pl 682 fhem 1u CHR 136,2 0t0 5
/dev/pts/2
fhem.pl 682 fhem 2u CHR 136,2 0t0 5
/dev/pts/2
fhem.pl 682 fhem 3u CHR 136,2 0t0 5
/dev/pts/2
fhem.pl 682 fhem 5u IPv4 2658 0t0 TCP
localhost:7072 (LISTEN)
fhem.pl 682 fhem 6u IPv4 2678 0t0 TCP
*:8083 (LISTEN)
fhem.pl 682 fhem 7u IPv4 2679 0t0 TCP
*:8084 (LISTEN)
fhem.pl 682 fhem 8u IPv4 2705 0t0 TCP
192.168.10.111:35696->192.168.10.2:2323 (ESTABLISHED)
fhem.pl 682 fhem 9w REG 8,18 150458 252476
/var/log/fhem/Thermostaat_Huiskamer.log
fhem.pl 682 fhem 10w REG 8,18 118874 252652
/var/log/fhem/Thermostaat_Steffi.log
fhem.pl 682 fhem 11w REG 8,18 120008 252218
/var/log/fhem/Thermostaat_Ernst.log
fhem.pl 682 fhem 12w REG 8,18 1210 252615
/var/log/fhem/Salon_Tafel-2011.log
fhem.pl 682 fhem 13w REG 8,18 648 252626
/var/log/fhem/LEDStrip_Bank-2011.log
fhem.pl 682 fhem 14w REG 8,18 1716 252641
/var/log/fhem/Koof-2011.log
fhem.pl 682 fhem 15w REG 8,18 1471 252682
/var/log/fhem/Kleine_Staande_Lamp-2011.log
root@guruplug:~#
On Mon, Jan 24, 2011 at 1:48 PM, Martin Haas wrote:
> Do you use Debian or Ubuntu until 10.04?
> Do you use the Start/Stop-Script of the current fhem-5.0.deb? There is
> no need for the "&". I recommend this .deb (if possible).
>
> You are using fhem.pl as the user fhem, this is great and sounds like
> the deb-package.
> Is the owner of fhem-2011-01.log the user fhem (not root)? Please make
> a "ls -al /var/log/fhem/".
>
> And make a "lsof | grep fhem" to get an overview about the open files.
>
> Martin
>
> On 24 Jan., 12:55, Ernst Cozijnsen wrote:
> > Hi Martin,
> > I did as requested and this is what i see
> >
> > fhem.pl 683 fhem 9w REG 8,18 147518 252476
> > /var/log/fhem/Thermostaat_Huiskamer.log
> > fhem.pl 683 fhem 10w REG 8,18 115985 252652
> > /var/log/fhem/Thermostaat_Steffi.log
> > fhem.pl 683 fhem 11w REG 8,18 117281 252218
> > /var/log/fhem/Thermostaat_Ernst.log
> > fhem.pl 683 fhem 12w REG 8,18 1210 252615
> > /var/log/fhem/Salon_Tafel-2011.log
> > fhem.pl 683 fhem 13w REG 8,18 648 252626
> > /var/log/fhem/LEDStrip_Bank-2011.log
> > fhem.pl 683 fhem 14w REG 8,18 1716 252641
> > /var/log/fhem/Koof-2011.log
> > fhem.pl 683 fhem 15w REG 8,18 1471 252682
> > /var/log/fhem/Kleine_Staande_Lamp-2011.log
> >
> > So the fhem-2011-01.log logfile in /var/log/fhem is not updated.
> >
> > The problem is that i cannot test it without the & in the startscript
> > because my console locks up and ssh is not started yet.
> >
> > I moved fhem at a later point in ther /etc/c2.d so it would start after
> ssh
> > but without any luck it stil starts before ssh and i cannot login
> >
> > Would you have anothe sugestion?
> >
> > On Sun, Jan 23, 2011 at 10:55 PM, Martin Haas
> wrote:
> > > The "&" should work but is not required in an init script.
> >
> > > Go to your logfile directory like /var/tmp and type "lsof *" to see
> > > the current used logfiles of fhem.pl. If your logfile is listed then
> > > it should be updated by fhem.pl
> >
> > > Martin
> >
> > > On 23 Jan., 18:22, Ernst Cozijnsen wrote:
> > > > After i had to start FHEM with an & in the /etc/init.d/fhem startup
> > > > script i see that the fhem-2011-01.log logfile in /var/log/fhem is
> not
> > > > updated anymore.
> >
> > > > If i check the config file all should be fine.
> >
> > > > If i remove the & from the startup script it locks up at boot time
> >
> > > > any ideas?
> >
> > > --
> > > 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.
Originally posted by: <email address deleted>
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.
Originally posted by: <email address deleted>
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.
Originally posted by: <email address deleted>
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.