I have great problem with raspberry and domoticz and mysensors gateway !
-
Continuous writes to a SD card, will make it fail at some point in time, it's just a question of time!.. And thus it will make the rpi fail.
Another thing can also be powering issues. (and even combined with a failing SD Card..)thank you dear @tbowmo
so this (fail cpu or rpi board) can related to write in cd card ? because i am confused .i can not found why suddenly... . i tested power and didn't have problem(if power of my house have problem so first power supply of raspberry should to fail). my rpi was working for 7-8 month without any access people to it and i dont any install new app or program. just power on rpi and put on my table !
in rpi was just domoticz and mysensors gateway. i used this just for smart home.
now i want just found reason of problem and solve this :(
do you think this problem (rpi fail) can related to sd card ? (According to the above description)
if yes , so for resolve , what is your suggest ? use a usb memory ? or read only (i want use rpi just for domoticz and mysensors gateway and devices)?with read only i can not see any report in domoticz log ?
thank you -
thank you dear @tbowmo
so this (fail cpu or rpi board) can related to write in cd card ? because i am confused .i can not found why suddenly... . i tested power and didn't have problem(if power of my house have problem so first power supply of raspberry should to fail). my rpi was working for 7-8 month without any access people to it and i dont any install new app or program. just power on rpi and put on my table !
in rpi was just domoticz and mysensors gateway. i used this just for smart home.
now i want just found reason of problem and solve this :(
do you think this problem (rpi fail) can related to sd card ? (According to the above description)
if yes , so for resolve , what is your suggest ? use a usb memory ? or read only (i want use rpi just for domoticz and mysensors gateway and devices)?with read only i can not see any report in domoticz log ?
thank youIn it's default setup, domoticz writes log files and other data to the SD card all the time, and this can (over time) wear the SD card down, and eventually make it fail!
F.ex. everytime my domoticz instance receives a message from the MySensors gateway, it writes a log entry, describing which node it received the data from. (I have my log file stored on a ram disk though, so not writing directly to the SD card)
-
In it's default setup, domoticz writes log files and other data to the SD card all the time, and this can (over time) wear the SD card down, and eventually make it fail!
F.ex. everytime my domoticz instance receives a message from the MySensors gateway, it writes a log entry, describing which node it received the data from. (I have my log file stored on a ram disk though, so not writing directly to the SD card)
-
No, I do not use external memory.. I have a ram disk (I take some of the RAM memory of the RPI and converts it into a "disk")
See this link for more info http://bfy.tw/Dlkf
-
It will not totally prevent these things of happening, but it might help reduce the risk of it happening again..
-
No, I do not use external memory.. I have a ram disk (I take some of the RAM memory of the RPI and converts it into a "disk")
See this link for more info http://bfy.tw/Dlkf
-
63Mb. The sd card was made for my old 512Mb RPI B, now it runs on my 1024Mb RPI2, and have been working fine for more than a year.
@tbowmo do you know how i can stop domoticz.sh (after i compile source domoticz) for change log...
i see this topic. (https://www.domoticz.com/wiki/Moving_Log_and_Temporary_Files_To_a_RAM_Drive)
but this is for standard install. i use source and i can not how stop and change and start again.... -
I think you can find information here http://bfy.tw/Dn2q
@tbowmo i search about this and i test this code before:
Start Domoticz
sudo service domoticz.sh startStop Domoticz
sudo service domoticz.sh stopCheck if Domoticz is running
sudo service domoticz.sh statusbut this is dont work for domoticz that compile from source.
this is result:pi@raspberrypi:~ $ sudo service domoticz.sh stop Failed to stop domoticz.service: Unit domoticz.service not loaded. pi@raspberrypi:~ $ sudo service domoticz.sh status ● domoticz.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead) pi@raspberrypi:~ $for this i had to question from you :(
-
@tbowmo i search about this and i test this code before:
Start Domoticz
sudo service domoticz.sh startStop Domoticz
sudo service domoticz.sh stopCheck if Domoticz is running
sudo service domoticz.sh statusbut this is dont work for domoticz that compile from source.
this is result:pi@raspberrypi:~ $ sudo service domoticz.sh stop Failed to stop domoticz.service: Unit domoticz.service not loaded. pi@raspberrypi:~ $ sudo service domoticz.sh status ● domoticz.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead) pi@raspberrypi:~ $for this i had to question from you :(
@Reza you can run ps to see current services running. Maybe its named something else when compiled from source - or its not just running? Did you try to start it before stopping it?
-
@tbowmo i search about this and i test this code before:
Start Domoticz
sudo service domoticz.sh startStop Domoticz
sudo service domoticz.sh stopCheck if Domoticz is running
sudo service domoticz.sh statusbut this is dont work for domoticz that compile from source.
this is result:pi@raspberrypi:~ $ sudo service domoticz.sh stop Failed to stop domoticz.service: Unit domoticz.service not loaded. pi@raspberrypi:~ $ sudo service domoticz.sh status ● domoticz.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead) pi@raspberrypi:~ $for this i had to question from you :(
-
@Reza you can run ps to see current services running. Maybe its named something else when compiled from source - or its not just running? Did you try to start it before stopping it?
@sundberg84
thank you friend. domoticz now is working for me.but when run ps i dont see domoticz:pi@raspberrypi:~ $ ps PID TTY TIME CMD 1000 pts/0 00:00:00 bash 1026 pts/0 00:00:00 Xtightvnc 1031 pts/0 00:00:00 xstartup 1034 pts/0 00:00:00 lxsession 1066 pts/0 00:00:00 dbus-launch 1084 pts/0 00:00:00 openbox 1086 pts/0 00:00:00 lxpolkit 1088 pts/0 00:00:00 lxpanel 1090 pts/0 00:00:01 pcmanfm 1134 pts/0 00:00:00 start-pulseaudi 1135 pts/0 00:00:00 xprop 1585 pts/0 00:00:01 Xtightvnc 1589 pts/0 00:00:00 xstartup 1592 pts/0 00:00:00 lxsession 1624 pts/0 00:00:00 dbus-launch 1643 pts/0 00:00:00 openbox 1645 pts/0 00:00:00 lxpolkit 1647 pts/0 00:00:00 lxpanel 1649 pts/0 00:00:02 pcmanfm 1693 pts/0 00:00:00 start-pulseaudi 1694 pts/0 00:00:00 xprop 2546 pts/0 00:00:00 psthis is files after compile . and i put "/home/pi/rayan/domoticz" to "rc.local" for up after startup.

-
Once again, try this link http://bfy.tw/DnCc
(Hint.. try looking for answers by using google!)
-
Once again, try this link http://bfy.tw/DnCc
(Hint.. try looking for answers by using google!)
@tbowmo thanks for all guide. i could do it. thank you
My friend just one question . i want know if i choose for example 20mb for ram driver (tmpfs). after full this memory (if i dont clear this), so what happen ? raspberry will be crash ? or not happen and I dont have any new log and report ? or again write on ago log ? thank you for all help