FHEM Forum

FHEM - Hardware => FRITZ!Box => Thema gestartet von: birdstreet am 26 Februar 2016, 14:57:11

Titel: Fritz!Box fb_mail not working after the FHEM update. PLS Help.
Beitrag von: birdstreet am 26 Februar 2016, 14:57:11
Hello  people!
I need help! fb_mail not working properly after the Fhem update

my data
Fritz!Box 7390 OS 6.03
Fhem 5.7
fb_mail configured as it described in the fhem WIKI

error message from the fhem.log is:
2016.02.26 03:15:00 3: weathermail return value: -1
sh: can't create /var/tmp/fhem_nachricht.txt: Permission denied
rm: can't remove '/var/tmp/fhem_nachricht.txt': No such file or directory

So the mail message could be sent, but Events parsing to the subject of the msg is not possible as the fb_mail not write a thing to the msg body.

Thank you. Birdstreet
Titel: Antw:Fritz!Box fb_mail not working after the FHEM update. PLS Help.
Beitrag von: Wernieman am 27 Februar 2016, 18:18:10
You install fhem on the fritzbox?

Could you check the permission of the directory /var/tmp?
ls -lhad /var/tmp
Titel: Antw:Fritz!Box fb_mail not working after the FHEM update. PLS Help.
Beitrag von: birdstreet am 27 Februar 2016, 22:33:23
Hello thanks for reply!
Fhem was installed on Fritz!Box for many years and that E-mail problem had happen after the update.

I checked CHMOD with help of your code and it is not looking good:
drwxr-x--- 
What code do I have to use to change the permission and to fix the problem.
Thank You

Titel: Antw:Fritz!Box fb_mail not working after the FHEM update. PLS Help.
Beitrag von: Wernieman am 28 Februar 2016, 18:24:03
Wich user?

And please, give us the output:
ls -lhad /var/tmp
Titel: Antw:Fritz!Box fb_mail not working after the FHEM update. PLS Help.
Beitrag von: birdstreet am 29 Februar 2016, 20:18:21


the outpoot is:
drwxr-x---    5 root     root        1.8K Feb 29 20:30 /var/tmp

Sorry but i did not understand you question: "Which user?"
Titel: Antw:Fritz!Box fb_mail not working after the FHEM update. PLS Help.
Beitrag von: Wernieman am 01 März 2016, 08:14:49
The user is root, see your output. The User fhem can not write in this direktory.

But ... I don't know, wich Processes write in this Direktory.

So you can change the Owner of the directory, or the permission. I think, the permission is the best:
chmod 777 /var/tmp

Sorry, my english is not so ... good
[/code]
Titel: Antw:Fritz!Box fb_mail not working after the FHEM update. PLS Help.
Beitrag von: birdstreet am 01 März 2016, 21:10:16
Thank you very much! I got the fb_mail working.

Problem was in the permissions and wrong syntax in the EVENT definition.

You english is Ok, my knowledge of the codes and programming slang ........ is poor.

Have a nice Day.