Server stürzt Ab

  • Server stürzt Ab

    bei mir wird die Fehlermeldung nicht richtig angezeigt, ich denke beim erstellen ist die Meldung in "Tags" gerutscht und nicht als "code" eingefügt worden.
    Gruß

    Matthias
    1x RasPi b, 3x RasPi b+, 1x RasPi 2, 2x RasPi 3, 2x RasPi Zero, 1x RadPi 4 (4GB) 1x BananaPi M1, 1x BananaPi R1, 1x BananaPi M3, 2x OrangePi Zero, 1x OrangePi One

    BTC: 1AJgWX9SXzH6wpoQ9d5HpkLcct6kAuatvJ
    NMC: N9fF4858aVWpY3Zu5xSxBV4XLvZ73D8eKV
  • so jetzt

    Source Code

    1. //////////////////////////////////////////////////////////////////////////////////////////////////
    2. // System Exception
    3. //////////////////////////////////////////////////////////////////////////////////////////////////
    4. Datei: lib/database/nosql/redis.class.php
    5. Zeile: 123
    6. Meldung: Connection lost
    7. Fehler Nummer: 0
    8. Zeit: 18.02.2016 19:06:24
    9. Klasse: RedisException
    10. //Trace///////////////////////////////////////////////////////////////////////////////////////////
    11. #0 lib/database/nosql/redis.class.php @ Line: 123 Redis->hGetAll('shc:switchables')
    12. #1 /var/www/shc/shc/lib/switchable/switchableeditor.class.php @ Line: 222 RWF\Database\NoSQL\Redis->hGetAllArray('shc:switchables')
    13. #2 /var/www/shc/shc/data/commands/all/roomsync.class.php @ Line: 87 SHC\Switchable\SwitchableEditor->loadData()
    14. #3 lib/request/commands/synccommand.class.php @ Line: 47 SHC\Command\All\RoomSync->processData()
    15. #4 lib/request/abstractcommand.class.php @ Line: 77 RWF\Request\Commands\SyncCommand->executeCommand()
    16. #5 lib/request/requesthandler.class.php @ Line: 184 RWF\Request\AbstractCommand->execute(RWF\Request\HttpRequest, RWF\Request\SSEResponse)
    17. #6 lib/request/requesthandler.class.php @ Line: 133 RWF\Request\RequestHandler->handleWebRequest('sync', 'room')
    18. #7 lib/request/requesthandler.class.php @ Line: 103 RWF\Request\RequestHandler->__construct('sync', 'room')
    19. #8 /var/www/shc/index.php @ Line: 25 RWF\Request\RequestHandler::handleRequest()
    20. #9 {main}
    21. //////////////////////////////////////////////////////////////////////////////////////////////////
    22. // System Exception
    23. //////////////////////////////////////////////////////////////////////////////////////////////////
    24. Datei: lib/database/nosql/redis.class.php
    25. Zeile: 45
    26. Meldung: Verbindung zur Datenbank fehlgeschlagen
    27. Fehler Nummer: 1200
    28. Zeit: 18.02.2016 19:06:24
    29. Klasse: Exception
    30. //Trace///////////////////////////////////////////////////////////////////////////////////////////
    31. #0 /var/www/shc/shc/lib/core/shc.class.php @ Line: 121 RWF\Database\NoSQL\Redis->connect()
    32. #1 lib/core/rwf.class.php @ Line: 117 SHC\Core\SHC->initDatabase()
    33. #2 /var/www/shc/shc/lib/core/shc.class.php @ Line: 66 RWF\Core\RWF->__construct()
    34. #3 /var/www/shc/index.php @ Line: 22 SHC\Core\SHC->__construct()
    35. #4 {main}
    36. //////////////////////////////////////////////////////////////////////////////////////////////////
    37. // System Exception
    38. //////////////////////////////////////////////////////////////////////////////////////////////////
    39. Datei: lib/database/nosql/redis.class.php
    40. Zeile: 123
    41. Meldung: Connection lost
    42. Fehler Nummer: 0
    43. Zeit: 18.02.2016 19:06:24
    44. Klasse: RedisException
    45. //Trace///////////////////////////////////////////////////////////////////////////////////////////
    46. #0 lib/database/nosql/redis.class.php @ Line: 123 Redis->hGetAll('shc:switchables')
    47. #1 /var/www/shc/shc/lib/switchable/switchableeditor.class.php @ Line: 222 RWF\Database\NoSQL\Redis->hGetAllArray('shc:switchables')
    48. #2 /var/www/shc/shc/data/commands/all/roomsync.class.php @ Line: 87 SHC\Switchable\SwitchableEditor->loadData()
    49. #3 lib/request/commands/synccommand.class.php @ Line: 47 SHC\Command\All\RoomSync->processData()
    50. #4 lib/request/abstractcommand.class.php @ Line: 77 RWF\Request\Commands\SyncCommand->executeCommand()
    51. #5 lib/request/requesthandler.class.php @ Line: 184 RWF\Request\AbstractCommand->execute(RWF\Request\HttpRequest, RWF\Request\SSEResponse)
    52. #6 lib/request/requesthandler.class.php @ Line: 133 RWF\Request\RequestHandler->handleWebRequest('sync', 'room')
    53. #7 lib/request/requesthandler.class.php @ Line: 103 RWF\Request\RequestHandler->__construct('sync', 'room')
    54. #8 /var/www/shc/index.php @ Line: 25 RWF\Request\RequestHandler::handleRequest()
    55. #9 {main}
    56. //////////////////////////////////////////////////////////////////////////////////////////////////
    57. // System Exception
    58. //////////////////////////////////////////////////////////////////////////////////////////////////
    59. Datei: lib/database/nosql/redis.class.php
    60. Zeile: 123
    61. Meldung: Connection lost
    62. Fehler Nummer: 0
    63. Zeit: 18.02.2016 19:06:24
    64. Klasse: RedisException
    65. //Trace///////////////////////////////////////////////////////////////////////////////////////////
    66. #0 lib/database/nosql/redis.class.php @ Line: 123 Redis->hGetAll('shc:switchables')
    67. #1 /var/www/shc/shc/lib/switchable/switchableeditor.class.php @ Line: 222 RWF\Database\NoSQL\Redis->hGetAllArray('shc:switchables')
    68. #2 /var/www/shc/shc/data/commands/all/roomsync.class.php @ Line: 87 SHC\Switchable\SwitchableEditor->loadData()
    69. #3 lib/request/commands/synccommand.class.php @ Line: 47 SHC\Command\All\RoomSync->processData()
    70. #4 lib/request/abstractcommand.class.php @ Line: 77 RWF\Request\Commands\SyncCommand->executeCommand()
    71. #5 lib/request/requesthandler.class.php @ Line: 184 RWF\Request\AbstractCommand->execute(RWF\Request\HttpRequest, RWF\Request\SSEResponse)
    72. #6 lib/request/requesthandler.class.php @ Line: 133 RWF\Request\RequestHandler->handleWebRequest('sync', 'room')
    73. #7 lib/request/requesthandler.class.php @ Line: 103 RWF\Request\RequestHandler->__construct('sync', 'room')
    74. #8 /var/www/shc/index.php @ Line: 25 RWF\Request\RequestHandler::handleRequest()
    75. #9 {main}
    76. //////////////////////////////////////////////////////////////////////////////////////////////////
    77. // System Exception
    78. //////////////////////////////////////////////////////////////////////////////////////////////////
    79. Datei: lib/database/nosql/redis.class.php
    80. Zeile: 123
    81. Meldung: Connection lost
    82. Fehler Nummer: 0
    83. Zeit: 18.02.2016 19:06:24
    84. Klasse: RedisException
    85. //Trace///////////////////////////////////////////////////////////////////////////////////////////
    86. #0 lib/database/nosql/redis.class.php @ Line: 123 Redis->hGetAll('shc:switchables')
    87. #1 /var/www/shc/shc/lib/switchable/switchableeditor.class.php @ Line: 222 RWF\Database\NoSQL\Redis->hGetAllArray('shc:switchables')
    88. #2 /var/www/shc/shc/data/commands/all/roomsync.class.php @ Line: 87 SHC\Switchable\SwitchableEditor->loadData()
    89. #3 lib/request/commands/synccommand.class.php @ Line: 47 SHC\Command\All\RoomSync->processData()
    90. #4 lib/request/abstractcommand.class.php @ Line: 77 RWF\Request\Commands\SyncCommand->executeCommand()
    91. #5 lib/request/requesthandler.class.php @ Line: 184 RWF\Request\AbstractCommand->execute(RWF\Request\HttpRequest, RWF\Request\SSEResponse)
    92. #6 lib/request/requesthandler.class.php @ Line: 133 RWF\Request\RequestHandler->handleWebRequest('sync', 'room')
    93. #7 lib/request/requesthandler.class.php @ Line: 103 RWF\Request\RequestHandler->__construct('sync', 'room')
    94. #8 /var/www/shc/index.php @ Line: 25 RWF\Request\RequestHandler::handleRequest()
    95. #9 {main}
    96. //////////////////////////////////////////////////////////////////////////////////////////////////
    97. // System Exception
    98. //////////////////////////////////////////////////////////////////////////////////////////////////
    99. Datei: lib/database/nosql/redis.class.php
    100. Zeile: 111
    101. Meldung: Connection lost
    102. Fehler Nummer: 0
    103. Zeit: 18.02.2016 19:06:25
    104. Klasse: RedisException
    105. //Trace///////////////////////////////////////////////////////////////////////////////////////////
    106. #0 lib/database/nosql/redis.class.php @ Line: 111 Redis->hGet('shc:switchables', '34')
    107. #1 /var/www/shc/shc/lib/switchable/switchableeditor.class.php @ Line: 626 RWF\Database\NoSQL\Redis->hGetArray('shc:switchables', 34)
    108. #2 /var/www/shc/shc/lib/sheduler/tasks/inputupdatetask.class.php @ Line: 75 SHC\Switchable\SwitchableEditor->updateState()
    109. #3 /var/www/shc/shc/lib/sheduler/abstracttask.class.php @ Line: 62 SHC\Sheduler\Tasks\InputUpdateTask->executeTask()
    110. #4 /var/www/shc/shc/lib/sheduler/sheduler.class.php @ Line: 158 SHC\Sheduler\AbstractTask->execute()
    111. #5 /var/www/shc/shc/data/commands/cli/shedulerdeamoncli.class.php @ Line: 247 SHC\Sheduler\Sheduler->executeTasks()
    112. #6 lib/request/commands/clicommand.class.php @ Line: 74 SHC\Command\CLI\ShedulerDeamonCli->executeCliCommand()
    113. #7 lib/request/abstractcommand.class.php @ Line: 77 RWF\Request\Commands\CliCommand->executeCommand()
    114. #8 lib/request/requesthandler.class.php @ Line: 216 RWF\Request\AbstractCommand->execute(RWF\Request\CliRequest, RWF\Request\CliResponse)
    115. #9 lib/request/requesthandler.class.php @ Line: 129 RWF\Request\RequestHandler->handleCliRequest()
    116. #10 lib/request/requesthandler.class.php @ Line: 111 RWF\Request\RequestHandler->__construct('cli', '')
    117. #11 /var/www/shc/index.php @ Line: 25 RWF\Request\RequestHandler::handleRequest()
    118. #12 {main}
    Display All
  • scheint ein problem mit der redis Datenbank zu sein.

    versuch mal redis neu zu starten ( sudo /etc/init.d/redis-server restart )
    Gruß

    Matthias
    1x RasPi b, 3x RasPi b+, 1x RasPi 2, 2x RasPi 3, 2x RasPi Zero, 1x RadPi 4 (4GB) 1x BananaPi M1, 1x BananaPi R1, 1x BananaPi M3, 2x OrangePi Zero, 1x OrangePi One

    BTC: 1AJgWX9SXzH6wpoQ9d5HpkLcct6kAuatvJ
    NMC: N9fF4858aVWpY3Zu5xSxBV4XLvZ73D8eKV
  • Das geht kommt keine fehlermeldung

    nach einen neu start des pi,s

    ist das im log wieder drin

    Aber er tut

    Source Code

    1. //////////////////////////////////////////////////////////////////////////////////////////////////
    2. // System Exception
    3. //////////////////////////////////////////////////////////////////////////////////////////////////
    4. Datei: lib/database/nosql/redis.class.php
    5. Zeile: 123
    6. Meldung: Connection lost
    7. Fehler Nummer: 0
    8. Zeit: 18.02.2016 19:35:40
    9. Klasse: RedisException
    10. //Trace///////////////////////////////////////////////////////////////////////////////////////////
    11. #0 lib/database/nosql/redis.class.php @ Line: 123 Redis->hGetAll('shc:switchables')
    12. #1 /var/www/shc/shc/lib/switchable/switchableeditor.class.php @ Line: 222 RWF\Database\NoSQL\Redis->hGetAllArray('shc:switchables')
    13. #2 /var/www/shc/shc/data/commands/all/roomsync.class.php @ Line: 87 SHC\Switchable\SwitchableEditor->loadData()
    14. #3 lib/request/commands/synccommand.class.php @ Line: 47 SHC\Command\All\RoomSync->processData()
    15. #4 lib/request/abstractcommand.class.php @ Line: 77 RWF\Request\Commands\SyncCommand->executeCommand()
    16. #5 lib/request/requesthandler.class.php @ Line: 184 RWF\Request\AbstractCommand->execute(RWF\Request\HttpRequest, RWF\Request\SSEResponse)
    17. #6 lib/request/requesthandler.class.php @ Line: 133 RWF\Request\RequestHandler->handleWebRequest('sync', 'room')
    18. #7 lib/request/requesthandler.class.php @ Line: 103 RWF\Request\RequestHandler->__construct('sync', 'room')
    19. #8 /var/www/shc/index.php @ Line: 25 RWF\Request\RequestHandler::handleRequest()
    20. #9 {main}
    21. //////////////////////////////////////////////////////////////////////////////////////////////////
    22. // System Exception
    23. //////////////////////////////////////////////////////////////////////////////////////////////////
    24. Datei: lib/database/nosql/redis.class.php
    25. Zeile: 123
    26. Meldung: Connection lost
    27. Fehler Nummer: 0
    28. Zeit: 18.02.2016 19:37:37
    29. Klasse: RedisException
    30. //Trace///////////////////////////////////////////////////////////////////////////////////////////
    31. #0 lib/database/nosql/redis.class.php @ Line: 123 Redis->hGetAll('shc:switchables')
    32. #1 /var/www/shc/shc/lib/switchable/switchableeditor.class.php @ Line: 222 RWF\Database\NoSQL\Redis->hGetAllArray('shc:switchables')
    33. #2 /var/www/shc/shc/lib/sheduler/tasks/timertask.class.php @ Line: 70 SHC\Switchable\SwitchableEditor->loadData()
    34. #3 /var/www/shc/shc/lib/sheduler/abstracttask.class.php @ Line: 62 SHC\Sheduler\Tasks\TimerTask->executeTask()
    35. #4 /var/www/shc/shc/lib/sheduler/sheduler.class.php @ Line: 158 SHC\Sheduler\AbstractTask->execute()
    36. #5 /var/www/shc/shc/data/commands/cli/shedulerdeamoncli.class.php @ Line: 247 SHC\Sheduler\Sheduler->executeTasks()
    37. #6 lib/request/commands/clicommand.class.php @ Line: 74 SHC\Command\CLI\ShedulerDeamonCli->executeCliCommand()
    38. #7 lib/request/abstractcommand.class.php @ Line: 77 RWF\Request\Commands\CliCommand->executeCommand()
    39. #8 lib/request/requesthandler.class.php @ Line: 216 RWF\Request\AbstractCommand->execute(RWF\Request\CliRequest, RWF\Request\CliResponse)
    40. #9 lib/request/requesthandler.class.php @ Line: 129 RWF\Request\RequestHandler->handleCliRequest()
    41. #10 lib/request/requesthandler.class.php @ Line: 111 RWF\Request\RequestHandler->__construct('cli', '')
    42. #11 /var/www/shc/index.php @ Line: 25 RWF\Request\RequestHandler::handleRequest()
    43. #12 {main}
    Display All
  • hi

    Habe ne ssd dran

    Dateisystem 1K-Bl▒cke Benutzt Verf▒gbar Verw% Eingeh▒ngt auf
    /dev/root 30643136 3140380 25923136 11% /
    devtmpfs 469748 0 469748 0% /dev
    tmpfs 94812 268 94544 1% /run
    tmpfs 5120 0 5120 0% /run/lock
    tmpfs 189620 0 189620 0% /run/shm
    /dev/mmcblk0p1 57288 20320 36968 36% /boot
    tmpfs 5120 32 5088 1% /var/www/shc/rwf/data/cache
  • ich würde da nicht gleich mit dem Vorschlaghammer dran gehen. wenn das problem weg ist nach dem redis neu gestartet wurde ist doch gut.

    wenn das problem erneut vorhanden ist wenn der gesamte pi neu gestartet wurde tippe ich mal auf jessie als system. das hatten wir schon mal hier besprochen. durch die Umstellung auf systemd gibt es scheinbar teilweise Probleme beim starten. es gibt die Möglichkeit systemd aus zu tauschen, aber das ist wahrscheinlich, besonders im Hinblick auf nächste Versionen, oder wenn man das problem kennt eine eigene Lösung finden. in meinem fall gibt es 3 befehle die nach den neustart ausgeführt werden (kommt sehr selten vor das neu gestartet werden muss).

    sudo /etc/init.d/redis-server restart
    sudo /etc/init.d/pilight restart
    sudo /etc/init.d/shcd restart

    und alles läuft.
    Gruß

    Matthias
    1x RasPi b, 3x RasPi b+, 1x RasPi 2, 2x RasPi 3, 2x RasPi Zero, 1x RadPi 4 (4GB) 1x BananaPi M1, 1x BananaPi R1, 1x BananaPi M3, 2x OrangePi Zero, 1x OrangePi One

    BTC: 1AJgWX9SXzH6wpoQ9d5HpkLcct6kAuatvJ
    NMC: N9fF4858aVWpY3Zu5xSxBV4XLvZ73D8eKV
  • ich habe noch nie einen Rester machen müssen, aber wenn ich richtig informiert bin (bitte verbessern wenn das nicht stimmt) muss auf dem neuen pi shc normal von Github geladen werden und die backup Datei von dem einen pi auf den andern kopiert werden.

    danach sollte es funktionieren:

    cd /var/www/
    sudo git clone GitHub - agent4788/SHC_Framework: Raspberry Pi Smart Home Anwendung
    sudo mv SHC_Framework/ shc/cd shc/sudo chmod 0777 -R shc/
    sudo mv shcd.sh /etc/init.d/shcd
    sudo update-rc.d shed defaults
    Bevor hier weiter gemacht wird muss die backup Datei von dem Alten auf den Neuen pi kopiert werden.
    php backup_restore.php
    sudo service shcd start
    Gruß

    Matthias
    1x RasPi b, 3x RasPi b+, 1x RasPi 2, 2x RasPi 3, 2x RasPi Zero, 1x RadPi 4 (4GB) 1x BananaPi M1, 1x BananaPi R1, 1x BananaPi M3, 2x OrangePi Zero, 1x OrangePi One

    BTC: 1AJgWX9SXzH6wpoQ9d5HpkLcct6kAuatvJ
    NMC: N9fF4858aVWpY3Zu5xSxBV4XLvZ73D8eKV

    The post was edited 1 time, last by adm1n: Backup Datei kopieren ().