Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

HCServer[1442]: segfault at c ip b6f4a1d3 sp a902a0e8 error 4 in libstdc++.so.6.0.21[b6eca000+111000]


Question

Posted

Hello, yesterday I have noticed a strange behaviour of my HC2 (4.600):

- can't login to HTTP interface (no response after clicking login button)

- fibaro API returns: HTTP/1.1 503 Service Temporarily Unavailable

 

In /var/log/messages I found this entry

 

Please login or register to see this code.

 

Anyone has seen this before?

Maybe some memory (RAM) error? 

  • Like 1

5 answers to this question

Recommended Posts

  • 0
  • Inquirer
  • Posted

    Another case today:

     

    Please login or register to see this code.

     

    I have made a further investigation:

     

    Please login or register to see this code.

     

    So the HCserver deamon seems to die after the segfault.

     

    After starting it up with: "/etc/init.d/fibaro/HCServer start" everything back to normal.

     

    I think some watchdog script in crontab would be useful here...

    • Like 1
    • 0
  • Inquirer
  • Posted

    No, this is not a problem with RAM...

    MemTest86 v9.0

     

    Please login or register to see this attachment.

    • 0
  • Inquirer
  • Posted (edited)

    For further investigate I decided to enable core dumps in my HC2.

     

    The core dumps are disabled for default as you see:

    Please login or register to see this code.

     

    To change this I just added this line ("ulimit -c unlimited") at the end of /etc/profile:
     

    Please login or register to see this code.

     

    Remember to restart the Fibaro HC2 (so the HCserver deamon could start with new settings).

     

    The problem is that root filesystem (/) is mounted with ro flag - so core files can't be stored their.

    To change this just set this kernel parameter:

     

    Please login or register to see this code.

     

    To make this change persistent create file: /etc/sysctl.conf and put there a line:

     

    Please login or register to see this code.

     

    and after that run:

     

    Please login or register to see this code.

     

     

    Now let's wait for another crash of HCserver... :)

    Edited by midi
    • 0
  • Inquirer
  • Posted

    I created a watchdog script to those who need a simple workaround.

     

    vi /opt/fibaro/scripts/HCServerWatchdog.sh

     

    Please login or register to see this code.

     

    chmod 755 /opt/fibaro/scripts/HCServerWatchdog.sh

     

    Then at the and of crontab just add this line:

     

    crontab -e

     

    Please login or register to see this code.

     

    After that the HCServer will be automatically started in less than one minute after any crash.

    You still need to observe the logs just to be sure that HCServer is not in some death loop (restart over and over again).

    • 0
  • Inquirer
  • Posted

    The problem has been reported in Fibaro Support (by me) with ticket: #45142

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...