I have great problem with raspberry and domoticz and mysensors gateway !



  • hi guys.
    i have a great problem and i cannot found that reason!
    i use a raspberrypi 3
    domoticz v3.5877 ( i dont need to upgrade because i use special theme and icon )
    and use a mysensors gateway for raspberry pi .
    this is happen after 7 -8 month for me (twice) so twice my pi is failure.
    in hardware i use a 2.5A power for raspberry and use a LF33CV with a 100u capacitor for NRF+ radio (connect to 5v pinout on raspberry). and wiring is similar to mysensors guide.
    also use espeasy for relay modules....
    this is happen for second time . after 7-8 month that i use domoticz and mysensors and espeasy ... so i see some relay dont work or very bad work . so after reboot raspberry or turn off/on i see just red LED is on ( in raspberry) and LED in network cable is off, after some off/on/off/on/off/on power green LED is blink and start domoticz but relay again dont work... with reboot again just red led on......
    i think my PI is failure ( i have similar expramance 9 month ago) and i think the reason is just about domoticz or mysensors gateway or hardware about gateway... because i dont have any other apps or devices on RPI...


  • Hardware Contributor

    @Reza - so its not just a corrupt sd-card which is quite common if you have something writing alot.


  • Mod

    I had the same issue with my raspberry pi and OpenHAB.
    After a couple of weeks it would crash and ultimately corrupt my sd card.

    I solved that issue by:

    1. Reinstall Raspbian;
    2. Reinstall OpenHAB and pay very careful attention for both the application and Raspbian;
    3. Reboot the Raspberry Pi each saturday night at 12:00 (but you can use any day/time ;))

    #3 is a medicine obviously and not the cure.
    I am not even sure it is necessary but it give me confidence...

    Maybe the same procedure helps your case.



  • @sundberg84 said in I have great problem with raspberry and domoticz and mysensors gateway !:

    so its not just a corrupt sd-card which is quite common if you have something writing alot.

    thank you for answer . so you think this is related to sd card ?because i format sd card and again setup all levels. also i change sd card 7 month ago (and change Rpi). but ....
    i thing there is a problem in RPi hardeware !
    i setup domoticz and mysensors gateway. i use 5 multi sensors for mysensors and use 10 relay module with espeasy. and there is not any app or program on RPi...



  • @marceltrapman said in I have great problem with raspberry and domoticz and mysensors gateway !:

    I had the same issue with my raspberry pi and OpenHAB.
    After a couple of weeks it would crash and ultimately corrupt my sd card.
    I solved that issue by:

    Reinstall Raspbian;
    Reinstall OpenHAB and pay very careful attention for both the application and Raspbian;
    Reboot the Raspberry Pi each saturday night at 12:00 (but you can use any day/time )

    #3 is a medicine obviously and not the cure.
    I am not even sure it is necessary but it give me confidence...
    Maybe the same procedure helps your case.

    thank you for answer . i want found problem ! so this is related to 24-hour every day RPI is on?



  • @sundberg84 my friend if a sensor send many report to domoticz, so this is a "quite common if you have something writing alot." ?


  • Hardware Contributor

    You need to use a class 10 sd-card from a known manufacturer.
    Another idea is to disable logging so it does not use up the write cycles so quick.



  • @sundberg84 said in I have great problem with raspberry and domoticz and mysensors gateway !:

    You need to use a class 10 sd-card from a known manufacturer.
    Another idea is to disable logging so it does not use up the write cycles so quick.

    so you think this is related just sd card ? this is my sd card
    0_1504527788188_photo_2017-09-04_16-51-49.jpg

    "Another idea is to disable logging so it does not use up the write cycles so quick."
    how can i disable this ?
    thank you for help


  • Hardware Contributor

    @Reza - there are different ways to do this, and Im no expert.
    Please have a look and continue from there...

    https://domoticz.com/forum/viewtopic.php?f=28&t=8788



  • @sundberg84 said in I have great problem with raspberry and domoticz and mysensors gateway !:

    @Reza - there are different ways to do this, and Im no expert.
    Please have a look and continue from there...
    https://domoticz.com/forum/viewtopic.php?f=28&t=8788

    Make system read only http://blog.pi3g.com/2014/04/make-raspb ... read-only/
    Run system from external HD http://raspberrypihobbyist.blogspot.nl/ ... drive.html
    Boot from USB http://jonathanmh.com/boot-raspberry-pi ... usb-stick/

    thank you very much


  • Mod

    @Reza sai

    thank you for answer . i want found problem ! so this is related to 24-hour every day RPI is on?

    I don't think that is what I said, I wrote down how I solved it.
    Not saying that it will work for you but it could be worth the try.



  • @marceltrapman said in I have great problem with raspberry and domoticz and mysensors gateway !:

    I don't think that is what I said, I wrote down how I solved it.
    Not saying that it will work for you but it could be worth the try.

    thank you my friend



  • @sundberg84
    i buy a new sd card and write again os and domoticz and gateway...
    now LED is ok and i have a ip for raspberry. but i think my raspberry's hardware is failure because now my commands send with a lot delay or can not send. or save and send all commands together suddenly . Do you know why?

    but about read only. thank you . i read this. but i have question. with this work after power off/on my sd card will not fail , is this true ? but when i do to read only , there is not any problem in Performance domoticz and my sensors and gateway? for send and receive commands ?after setup domoticz and my sensors gate way i can change to read only ? thank you


  • Hardware Contributor

    @Reza -I dont use read only because I wish to log. Instead I backup my database every day... preparing for a SD-card failure.

    I have bought a class 10 8gb SanDisk and this has lasted me 2 years now with standard settings. First one was about 6-8 months with another brand.



  • Use Berryboot AND fast USB drive to solve most of the problems related to corruption on SD card due power failures and number of write cycles. I have been using it for 2+ yrs now...



  • @sundberg84 my new sd card is sandisk. setup again domoticz and mysensors gateway...
    now os is ok even with power off/on. but i think my raspberry is fail . i think cpu is fail. before i compile domoticz with -j4 without any problem . but now with -j4 after 10-20% rpi is freeze. even when i compile with just make, when i want use domoticz for send command for relay , this have a a lot delay , or command can not send , or save command and after 1 min send all command. i think cpu can not work correct and have a hardware problem ! but i dont know why happen this ! after 7 month rpi was on the table and power was ok and i dont install any new software on the rpi ! suddenly happen...



  • @vikasjee thank you . but my main problem is not sd card . after 8 month my Rpi is fail suddenly :( i want found why...


  • Admin

    @Reza

    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


  • Admin

    @Reza

    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)


Log in to reply
 

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.