[Question] localisation des logs sur installation raspian

Posez ici vos questions d'utilisation, de configuration de DomoticZ, de bugs, de conseils sur le logiciel lui même dans son utilisation et son paramétrage.
Des forums spécifiques sont ouverts ci-dessous pour regrouper les différents sujets.
pierre38
Messages : 1
Inscription : 06 oct. 2019, 14:44

[Question] localisation des logs sur installation raspian

Message par pierre38 »

Bonjour,
je suis débutant sur Domoticz.
J'ai finalisé une installation sur Raspian de domoticz.
Ca a bien maché pendant 3 semaines puis le serveur web(8080) est devenu injoignable.
Mon problème : je ne sais pas par ou commencer pour le diagnostic.
Mes recherches sur le forum sur logs et diagnostic ne me revoient rien de satisfaisant.
Auriez-vous un tutoriel à m'indiquer pour apprendre à troubleshooter ou auriez vous 2 / 3 indications me permettant de démarrer? (genre chemin des logs domotics). Pour l'instant je n'ai pu lire que le log dans /pi/domoticz :
------------------------------------------------------------
cat domoticz_crash.log
[New LWP 501]
[New LWP 502]
[New LWP 503]
[New LWP 504]
[New LWP 505]
[New LWP 506]
[New LWP 507]
[New LWP 508]
[New LWP 509]
[New LWP 510]
[New LWP 511]
[New LWP 512]
[New LWP 570]
[New LWP 571]
[New LWP 574]
[New LWP 575]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
__GI___nanosleep (remaining=0x7ea2f9d8, requested_time=0x7ea2f9d8) at ../sysdeps/unix/sysv/linux/nanosleep.c:28
28 ../sysdeps/unix/sysv/linux/nanosleep.c: Aucun fichier ou dossier de ce type.
Id Target Id Frame
* 1 Thread 0x76f40fb0 (LWP 500) "domoticz" __GI___nanosleep (remaining=0x7ea2f9d8, requested_time=0x7ea2f9d8) at ../sysdeps/unix/sysv/linux/nanosleep.c:28
2 Thread 0x75d56220 (LWP 501) "Watchdog" __waitpid (options=0, stat_loc=0x75d55378, pid=995) at ../sysdeps/unix/sysv/linux/waitpid.c:30
3 Thread 0x75555220 (LWP 502) "SQLHelper" __GI___poll (timeout=1000, nfds=1, fds=0x755542f4) at ../sysdeps/unix/sysv/linux/poll.c:29
4 Thread 0x74d54220 (LWP 503) "PluginMgr" syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
5 Thread 0x73f21220 (LWP 504) "InfluxPush" syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
6 Thread 0x73720220 (LWP 505) "Webem_ssncleane" 0x76c869d0 in epoll_wait (epfd=<optimized out>, events=0x7371f358, maxevents=128, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
7 Thread 0x72f1f220 (LWP 506) "WebServer_8080" 0x76c869d0 in epoll_wait (epfd=<optimized out>, events=0x72f1e348, maxevents=128, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
8 Thread 0x725ff220 (LWP 507) "Webem_ssncleane" 0x76c869d0 in epoll_wait (epfd=<optimized out>, events=0x725fe358, maxevents=128, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
9 Thread 0x71dfe220 (LWP 508) "WebServer_443" 0x76c869d0 in epoll_wait (epfd=<optimized out>, events=0x71dfd348, maxevents=128, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
10 Thread 0x713ff220 (LWP 509) "Scheduler" syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
11 Thread 0x70bfe220 (LWP 510) "TCPServer" 0x76c869d0 in epoll_wait (epfd=<optimized out>, events=0x70bfd388, maxevents=128, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
12 Thread 0x701ff220 (LWP 511) "MainWorker" syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
13 Thread 0x6f9fe220 (LWP 512) "MainWorkerRxMsg" futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x6f9fdbb8, expected=0, futex_word=0xb9ce48 <m_mainworker+3760>) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
14 Thread 0x6edff220 (LWP 570) "RFXCOM" syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
15 Thread 0x6e3ff220 (LWP 571) "PluginMgr_IO" futex_wait_cancelable (private=0, expected=0, futex_word=0x231aef8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
16 Thread 0x6dbfe220 (LWP 574) "EventSystem" syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
17 Thread 0x6d3fd220 (LWP 575) "EventSystemQueu" futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x6d3fcafc, expected=0, futex_word=0xb9c0e4 <m_mainworker+332>) at ../sysdeps/unix/sysv/linux/futex-internal.h:205

Thread 17 (Thread 0x6d3fd220 (LWP 575)):
#0 futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x6d3fcafc, expected=0, futex_word=0xb9c0e4 <m_mainworker+332>) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
#1 __pthread_cond_wait_common (abstime=0x6d3fcafc, mutex=0x0, cond=0xb9c0b8 <m_mainworker+288>) at pthread_cond_wait.c:539
#2 __pthread_cond_timedwait (cond=0xb9c0b8 <m_mainworker+288>, mutex=0x0, abstime=0x6d3fcafc) at pthread_cond_wait.c:667
#3 0x00267e1c in CEventSystem::EventQueueThread() ()
#4 0x009f18fc in execute_native_thread_routine ()
#5 0x76e45494 in start_thread (arg=0x6d3fd220) at pthread_create.c:486
#6 0x76c86578 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 16 (Thread 0x6dbfe220 (LWP 574)):
#0 syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
#1 0x009ced5c in std::__atomic_futex_unsigned_base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::duration<long long, std::ratio<1ll, 1ll> >, std::chrono::duration<long long, std::ratio<1ll, 1000000000ll> >) ()
#2 0x0025e40c in CEventSystem::Do_Work() ()
#3 0x009f18fc in execute_native_thread_routine ()
#4 0x76e45494 in start_thread (arg=0x6dbfe220) at pthread_create.c:486
#5 0x76c86578 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 15 (Thread 0x6e3ff220 (LWP 571)):
#0 futex_wait_cancelable (private=0, expected=0, futex_word=0x231aef8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1 __pthread_cond_wait_common (abstime=0x0, mutex=0x0, cond=0x231aed0) at pthread_cond_wait.c:502
#2 __pthread_cond_wait (cond=0x231aed0, mutex=0x0) at pthread_cond_wait.c:655
#3 0x003f338c in boost::asio::detail::scheduler::run(boost::system::error_code&) ()
#4 0x003f4180 in boost::asio::io_context::run() ()
#5 0x008a3c5c in thread_proxy ()
#6 0x76e45494 in start_thread (arg=0x6e3ff220) at pthread_create.c:486
#7 0x76c86578 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 14 (Thread 0x6edff220 (LWP 570)):
#0 syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
#1 0x009ced5c in std::__atomic_futex_unsigned_base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::duration<long long, std::ratio<1ll, 1ll> >, std::chrono::duration<long long, std::ratio<1ll, 1000000000ll> >) ()
#2 0x0057e1b4 in RFXComSerial::Do_Work() ()
#3 0x009f18fc in execute_native_thread_routine ()
#4 0x76e45494 in start_thread (arg=0x6edff220) at pthread_create.c:486
#5 0x76c86578 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 13 (Thread 0x6f9fe220 (LWP 512)):
#0 futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x6f9fdbb8, expected=0, futex_word=0xb9ce48 <m_mainworker+3760>) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
#1 __pthread_cond_wait_common (abstime=0x6f9fdbb8, mutex=0x0, cond=0xb9ce20 <m_mainworker+3720>) at pthread_cond_wait.c:539
#2 __pthread_cond_timedwait (cond=0xb9ce20 <m_mainworker+3720>, mutex=0x0, abstime=0x6f9fdbb8) at pthread_cond_wait.c:667
#3 0x002af548 in MainWorker::Do_Work_On_Rx_Messages() ()
#4 0x009f18fc in execute_native_thread_routine ()
#5 0x76e45494 in start_thread (arg=0x6f9fe220) at pthread_create.c:486
#6 0x76c86578 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 12 (Thread 0x701ff220 (LWP 511)):
#0 syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
#1 0x009ced5c in std::__atomic_futex_unsigned_base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::duration<long long, std::ratio<1ll, 1ll> >, std::chrono::duration<long long, std::ratio<1ll, 1000000000ll> >) ()
#2 0x002abf5c in MainWorker::Do_Work() ()
#3 0x009f18fc in execute_native_thread_routine ()
#4 0x76e45494 in start_thread (arg=0x701ff220) at pthread_create.c:486
#5 0x76c86578 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 11 (Thread 0x70bfe220 (LWP 510)):
#0 0x76c869d0 in epoll_wait (epfd=<optimized out>, events=0x70bfd388, maxevents=128, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
#1 0x003f1f64 in boost::asio::detail::epoll_reactor::run(long, boost::asio::detail::op_queue<boost::asio::detail::scheduler_operation>&) ()
#2 0x003f3218 in boost::asio::detail::scheduler::run(boost::system::error_code&) ()
#3 0x0065db80 in tcp::server::CTCPServer::Do_Work() ()
#4 0x009f18fc in execute_native_thread_routine ()
#5 0x76e45494 in start_thread (arg=0x70bfe220) at pthread_create.c:486
#6 0x76c86578 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 10 (Thread 0x713ff220 (LWP 509)):
#0 syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
#1 0x009ced5c in std::__atomic_futex_unsigned_base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::duration<long long, std::ratio<1ll, 1ll> >, std::chrono::duration<long long, std::ratio<1ll, 1000000000ll> >) ()
#2 0x002cf0b0 in CScheduler::Do_Work() ()
#3 0x009f18fc in execute_native_thread_routine ()
#4 0x76e45494 in start_thread (arg=0x713ff220) at pthread_create.c:486
#5 0x76c86578 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 9 (Thread 0x71dfe220 (LWP 508)):
#0 0x76c869d0 in epoll_wait (epfd=<optimized out>, events=0x71dfd348, maxevents=128, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
#1 0x003f1f64 in boost::asio::detail::epoll_reactor::run(long, boost::asio::detail::op_queue<boost::asio::detail::scheduler_operation>&) ()
#2 0x003f3218 in boost::asio::detail::scheduler::run(boost::system::error_code&) ()
#3 0x00698a4c in http::server::server_base::run() ()
#4 0x0031a848 in http::server::CWebServer::Do_Work() ()
#5 0x009f18fc in execute_native_thread_routine ()
#6 0x76e45494 in start_thread (arg=0x71dfe220) at pthread_create.c:486
#7 0x76c86578 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 8 (Thread 0x725ff220 (LWP 507)):
#0 0x76c869d0 in epoll_wait (epfd=<optimized out>, events=0x725fe358, maxevents=128, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
#1 0x003f1f64 in boost::asio::detail::epoll_reactor::run(long, boost::asio::detail::op_queue<boost::asio::detail::scheduler_operation>&) ()
#2 0x003f3218 in boost::asio::detail::scheduler::run(boost::system::error_code&) ()
#3 0x003f4180 in boost::asio::io_context::run() ()
#4 0x009f18fc in execute_native_thread_routine ()
#5 0x76e45494 in start_thread (arg=0x725ff220) at pthread_create.c:486
#6 0x76c86578 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 7 (Thread 0x72f1f220 (LWP 506)):
#0 0x76c869d0 in epoll_wait (epfd=<optimized out>, events=0x72f1e348, maxevents=128, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
#1 0x003f1f64 in boost::asio::detail::epoll_reactor::run(long, boost::asio::detail::op_queue<boost::asio::detail::scheduler_operation>&) ()
#2 0x003f3218 in boost::asio::detail::scheduler::run(boost::system::error_code&) ()
#3 0x00698a4c in http::server::server_base::run() ()
#4 0x0031a848 in http::server::CWebServer::Do_Work() ()
#5 0x009f18fc in execute_native_thread_routine ()
#6 0x76e45494 in start_thread (arg=0x72f1f220) at pthread_create.c:486
#7 0x76c86578 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 6 (Thread 0x73720220 (LWP 505)):
#0 0x76c869d0 in epoll_wait (epfd=<optimized out>, events=0x7371f358, maxevents=128, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
#1 0x003f1f64 in boost::asio::detail::epoll_reactor::run(long, boost::asio::detail::op_queue<boost::asio::detail::scheduler_operation>&) ()
#2 0x003f3218 in boost::asio::detail::scheduler::run(boost::system::error_code&) ()
#3 0x003f4180 in boost::asio::io_context::run() ()
#4 0x009f18fc in execute_native_thread_routine ()
#5 0x76e45494 in start_thread (arg=0x73720220) at pthread_create.c:486
#6 0x76c86578 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 5 (Thread 0x73f21220 (LWP 504)):
#0 syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
#1 0x009ced5c in std::__atomic_futex_unsigned_base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::duration<long long, std::ratio<1ll, 1ll> >, std::chrono::duration<long long, std::ratio<1ll, 1000000000ll> >) ()
#2 0x003c1574 in CInfluxPush::Do_Work() ()
#3 0x009f18fc in execute_native_thread_routine ()
#4 0x76e45494 in start_thread (arg=0x73f21220) at pthread_create.c:486
#5 0x76c86578 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 4 (Thread 0x74d54220 (LWP 503)):
#0 syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
#1 0x009ced5c in std::__atomic_futex_unsigned_base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::duration<long long, std::ratio<1ll, 1ll> >, std::chrono::duration<long long, std::ratio<1ll, 1000000000ll> >) ()
#2 0x0060f1c4 in Plugins::CPluginSystem::Do_Work() ()
#3 0x009f18fc in execute_native_thread_routine ()
#4 0x76e45494 in start_thread (arg=0x74d54220) at pthread_create.c:486
Backtrace stopped: Cannot access memory at address 0x2f32312c

Thread 3 (Thread 0x75555220 (LWP 502)):
#0 __GI___poll (timeout=1000, nfds=1, fds=0x755542f4) at ../sysdeps/unix/sysv/linux/poll.c:29
#1 __GI___poll (fds=0x755542f4, nfds=1, timeout=1000) at ../sysdeps/unix/sysv/linux/poll.c:26
#2 0x76dc5d70 in ?? () from /usr/lib/arm-linux-gnueabihf/libcurl-gnutls.so.4
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 2 (Thread 0x75d56220 (LWP 501)):
#0 __waitpid (options=0, stat_loc=0x75d55378, pid=995) at ../sysdeps/unix/sysv/linux/waitpid.c:30
#1 __waitpid (pid=995, stat_loc=0x75d55378, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:25
#2 0x002d8840 in dumpstack_gdb(bool) ()
#3 0x002d8d64 in signal_handler(int, siginfo_t*, void*) ()
#4 <signal handler called>
#5 raise (sig=10) at ../sysdeps/unix/sysv/linux/raise.c:50
#6 0x002d9028 in Do_Watchdog_Work() ()
#7 0x009f18fc in execute_native_thread_routine ()
#8 0x76e45494 in start_thread (arg=0x75d56220) at pthread_create.c:486
#9 0x76c86578 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 1 (Thread 0x76f40fb0 (LWP 500)):
#0 __GI___nanosleep (remaining=0x7ea2f9d8, requested_time=0x7ea2f9d8) at ../sysdeps/unix/sysv/linux/nanosleep.c:28
#1 __GI___nanosleep (requested_time=0x7ea2f9d8, remaining=0x7ea2f9d8) at ../sysdeps/unix/sysv/linux/nanosleep.c:25
#2 0x00278548 in sleep_seconds(long) ()
#3 0x001f6620 in main ()

Main thread:
#0 __GI___nanosleep (remaining=0x7ea2f9d8, requested_time=0x7ea2f9d8) at ../sysdeps/unix/sysv/linux/nanosleep.c:28
#1 __GI___nanosleep (requested_time=0x7ea2f9d8, remaining=0x7ea2f9d8) at ../sysdeps/unix/sysv/linux/nanosleep.c:25
#2 0x00278548 in sleep_seconds(long) ()
#3 0x001f6620 in main ()
[Inferior 1 (process 500) detached]
----------------------------------
Merci d'avance pour votre soutien :-)


Configuration PI 3 B+ / Raspian / RFXCOM433 USB
denis_brasseur
Messages : 898
Inscription : 24 déc. 2018, 17:05
Localisation : (26)

Re: [Question] localisation des logs sur installation raspian

Message par denis_brasseur »

pierre38 a écrit : 06 oct. 2019, 14:54
Auriez-vous un tutoriel à m'indiquer pour apprendre à troubleshooter ou auriez vous 2 / 3 indications me permettant de démarrer? (genre chemin des logs domotics). Pour l'instant je n'ai pu lire que le log dans /pi/domoticz :
Le chemin des logs domoticz est défini depuis le fichier /etc/init.d/domoticz.sh depuis la ligne ci dessous :

Code : Tout sélectionner

sudo nano /etc/init.d/domoticz.sh
DAEMON_ARGS="$DAEMON_ARGS -log /var/log/domoticz.log"
Si les droits sur le fichier ne te permettent pas de l'ouvrir depuis notepad++ par exemple, tu peux l'éditer avec

Code : Tout sélectionner

sudo nano /var/log/domoticz.log
Peux être pourras tu comprendre ce qui cloche, si c'est dût à domoticz..
Pi3 + DD PiDrive - RFXtrx433 - AEON Labs ZW090
Répondre