Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin crash #5

Open
tikismoke opened this issue Jan 26, 2016 · 9 comments
Open

Plugin crash #5

tikismoke opened this issue Jan 26, 2016 · 9 comments

Comments

@tikismoke
Copy link
Contributor

Got amail alert at 9h41:
Here is the log:
2016-01-26 09:40:22,875 domogik-onewired DEBUG Send client status : alive
2016-01-26 09:40:22,875 domogik-onewired DEBUG => 'Chambre parents' : wait for 60.0 seconds
2016-01-26 09:40:37,875 domogik-onewired DEBUG Send client status : alive
2016-01-26 09:40:51,992 domogik-onewired INFO ==> Reading sensor '/28.D4152C030000/temperature'
2016-01-26 09:40:55,800 domogik-onewired DEBUG Send client status : alive
2016-01-26 09:40:55,800 domogik-onewired DEBUG ==> Send 0MQ message '{177: '20.7'}' for device id 51 (Chambre )
2016-01-26 09:40:55,813 domogik-onewired DEBUG Delete the file /var/run/domogik//onewired_return_code_5214
2016-01-26 09:40:55,813 domogik-onewired DEBUG the stack is :
2016-01-26 09:40:56,390 domogik-onewired DEBUG (<frame object at 0x292a8b0>, '/home/domogik/src/domogik/common/baseplugin.py', 291, 'clean_return_code_file', [' for elt in inspect.stack():\n'], 0)
2016-01-26 09:40:56,390 domogik-onewired DEBUG (<frame object at 0x292a1b0>, '/home/domogik/src/domogik/common/plugin.py', 1054, 'watch', [' self._client.clean_return_code_file()\n'], 0)
2016-01-26 09:40:56,390 domogik-onewired DEBUG (<frame object at 0x2936ea0>, '/home/domogik/src/domogik/common/plugin.py', 1032, 'init', [' self.watch()\n'], 0)
2016-01-26 09:40:56,390 domogik-onewired DEBUG (<frame object at 0x22a0430>, '/home/domogik/src/domogik/common/plugin.py', 120, 'init', [' Watcher(self)\n'], 0)
2016-01-26 09:40:56,391 domogik-onewired DEBUG (<frame object at 0x291f5f0>, '/var/lib/domogik//domogik_packages/plugin_onewired/bin/onewired.py', 56, 'init', [" Plugin.init(self, name='onewired')\n"], 0)
2016-01-26 09:40:56,391 domogik-onewired DEBUG (<frame object at 0x2289710>, '/var/lib/domogik//domogik_packages/plugin_onewired/bin/onewired.py', 170, '', [' OnewireNetManager()\n'], 0)
2016-01-26 09:40:56,391 domogik-onewired DEBUG del Single client
2016-01-26 09:40:56,391 domogik-onewired DEBUG the stack is :
2016-01-26 09:40:56,391 domogik-onewired DEBUG (<frame object at 0x29229c0>, '/home/domogik/src/domogik/common/plugin.py', 922, 'del', [' for elt in inspect.stack():\n'], 0)
2016-01-26 09:40:56,392 domogik-onewired DEBUG force_leave called
2016-01-26 09:40:56,392 domogik-onewired DEBUG the stack is :
2016-01-26 09:40:56,392 domogik-onewired DEBUG (<frame object at 0x2287730>, '/home/domogik/src/domogik/common/plugin.py', 936, 'force_leave', [' for elt in inspect.stack():\n'], 0)
2016-01-26 09:40:56,392 domogik-onewired DEBUG (<frame object at 0x29229c0>, '/home/domogik/src/domogik/common/plugin.py', 925, 'del', [' self.force_leave()\n'], 0)
2016-01-26 09:40:56,401 domogik-onewired DEBUG del Single client
2016-01-26 09:40:56,401 domogik-onewired DEBUG the stack is :
2016-01-26 09:40:56,402 domogik-onewired DEBUG (<frame object at 0x2927e00>, '/home/domogik/src/domogik/common/plugin.py', 922, 'del', [' for elt in inspect.stack():\n'], 0)
2016-01-26 09:40:56,402 domogik-onewired DEBUG force_leave called
2016-01-26 09:40:56,402 domogik-onewired DEBUG the stack is :
2016-01-26 09:40:56,402 domogik-onewired DEBUG (<frame object at 0x2287730>, '/home/domogik/src/domogik/common/plugin.py', 936, 'force_leave', [' for elt in inspect.stack():\n'], 0)
2016-01-26 09:40:56,402 domogik-onewired DEBUG (<frame object at 0x2927e00>, '/home/domogik/src/domogik/common/plugin.py', 925, 'del', [' self.force_leave()\n'], 0)

After restarting all is ok, got the right number of device and value.

@tikismoke tikismoke changed the title plugin crash Plugin crash Jan 26, 2016
@vdomos
Copy link
Owner

vdomos commented Jan 27, 2016

Etrange, le plugin s'arrete d'un coup sans message d'erreur.

2016-01-26 09:40:55,800 domogik-onewired DEBUG ==> Send 0MQ message '{177: '20.7'}' for device id 51 (Chambre )
2016-01-26 09:40:55,813 domogik-onewired DEBUG Delete the file /var/run/domogik//onewired_return_code_5214

Il faudrait le relancer avec start -f si cela recommence pour voir si d'autres messages apparaissent.

Pas d'autres souci en parrallèle avec les autres plugins ?

@tikismoke
Copy link
Contributor Author

Nop pas eu d'autres souci.

Au contraire j'ai bien moins de décrochage qu'avec le onewire officiel où des fois je n'avais plus de mesures du tout.

Le 27 janvier 2016 01:02:56 GMT+01:00, vdomos [email protected] a écrit :

Etrange, le plugin s'arrete d'un coup sans message d'erreur.

2016-01-26 09:40:55,800 domogik-onewired DEBUG ==> Send 0MQ message
'{177: '20.7'}' for device id 51 (Chambre )
2016-01-26 09:40:55,813 domogik-onewired DEBUG Delete the file
/var/run/domogik//onewired_return_code_5214

Il faudrait le relancer avec start -f si cela recommence pour voir si
d'autres messages apparaissent.

Pas d'autres souci en parrallèle avec les autres plugins ?


Reply to this email directly or view it on GitHub:
#5 (comment)

Envoyé de mon appareil Android avec K-9 Mail. Veuillez excuser ma brièveté.

@tikismoke
Copy link
Contributor Author

Idem ce matin:

2016-02-01 08:31:39,500 domogik-onewired DEBUG ==> Send 0MQ message '{180: '20.9'}' for device id 54 (Bureau)
2016-02-01 08:31:39,502 domogik-onewired DEBUG => 'Chambre 3' : wait for 60.0 seconds
2016-02-01 08:31:39,503 domogik-onewired DEBUG => 'Couloir deuxieme étage' : wait for 60.0 seconds
2016-02-01 08:31:39,503 domogik-onewired DEBUG => 'Chambre 2' : wait for 60.0 seconds
2016-02-01 08:31:39,503 domogik-onewired DEBUG => 'Chambre 1' : wait for 60.0 seconds
2016-02-01 08:31:39,513 domogik-onewired DEBUG Delete the file /var/run/domogik//onewired_return_code_25547
2016-02-01 08:31:39,514 domogik-onewired DEBUG the stack is :
2016-02-01 08:31:39,536 domogik-onewired DEBUG (<frame object at 0x1c4c600>, '/home/domogik/src/domogik/common/baseplugin.py', 291, 'clean_return_code_file', [' for elt in inspect.stack():\n'], 0)
2016-02-01 08:31:39,536 domogik-onewired DEBUG (<frame object at 0x1c4bf00>, '/home/domogik/src/domogik/common/plugin.py', 1054, 'watch', [' self._client.clean_return_code_file()\n'], 0)
2016-02-01 08:31:39,537 domogik-onewired DEBUG (<frame object at 0x1c58c50>, '/home/domogik/src/domogik/common/plugin.py', 1032, 'init', [' self.watch()\n'], 0)
2016-02-01 08:31:39,537 domogik-onewired DEBUG (<frame object at 0x15c91d0>, '/home/domogik/src/domogik/common/plugin.py', 120, 'init', [' Watcher(self)\n'], 0)
2016-02-01 08:31:39,537 domogik-onewired DEBUG (<frame object at 0x15c8f40>, '/var/lib/domogik//domogik_packages/plugin_onewired/bin/onewired.py', 56, 'init', [" Plugin.init(self, name='onewired')\n"], 0)
2016-02-01 08:31:39,537 domogik-onewired DEBUG (<frame object at 0x15ac710>, '/var/lib/domogik//domogik_packages/plugin_onewired/bin/onewired.py', 170, '', [' OnewireNetManager()\n'], 0)
2016-02-01 08:31:39,537 domogik-onewired DEBUG del Single client
2016-02-01 08:31:39,537 domogik-onewired DEBUG the stack is :
2016-02-01 08:31:39,538 domogik-onewired DEBUG (<frame object at 0x1c44a30>, '/home/domogik/src/domogik/common/plugin.py', 922, 'del', [' for elt in inspect.stack():\n'], 0)
2016-02-01 08:31:39,538 domogik-onewired DEBUG force_leave called
2016-02-01 08:31:39,538 domogik-onewired DEBUG the stack is :
2016-02-01 08:31:39,538 domogik-onewired DEBUG (<frame object at 0x15aa8f0>, '/home/domogik/src/domogik/common/plugin.py', 936, 'force_leave', [' for elt in inspect.stack():\n'], 0)
2016-02-01 08:31:39,538 domogik-onewired DEBUG (<frame object at 0x1c44a30>, '/home/domogik/src/domogik/common/plugin.py', 925, 'del', [' self.force_leave()\n'], 0)
2016-02-01 08:31:39,547 domogik-onewired DEBUG del Single client
2016-02-01 08:31:39,547 domogik-onewired DEBUG the stack is :
2016-02-01 08:31:39,547 domogik-onewired DEBUG (<frame object at 0x15abc30>, '/home/domogik/src/domogik/common/plugin.py', 922, 'del', [' for elt in inspect.stack():\n'], 0)
2016-02-01 08:31:39,547 domogik-onewired DEBUG force_leave called
2016-02-01 08:31:39,548 domogik-onewired DEBUG the stack is :
2016-02-01 08:31:39,548 domogik-onewired DEBUG (<frame object at 0x15aa8f0>, '/home/domogik/src/domogik/common/plugin.py', 936, 'force_leave', [' for elt in inspect.stack():\n'], 0)
2016-02-01 08:31:39,548 domogik-onewired DEBUG (<frame object at 0x15abc30>, '/home/domogik/src/domogik/common/plugin.py', 925, 'del', [' self.force_leave()\n'], 0)
2016-02-01 17:29:44,286 domogik-onewired INFO Looking for launched instances of 'onewired'
2016-02-01 17:29:44,301 domogik-onewired INFO No existing process.
2016-02-01 17:29:44,306 domogik-onewired INFO Starting the plugin in background...

@tikismoke
Copy link
Contributor Author

usb avec owfs dans un conteneur lxc
Dans DMESG

[lun. févr. 1 08:31:39 2016] python[9930] general protection ip:7f780bcafca5 sp:7f7805e9f138 error:0 in libc-2.13.so[7f780bb8f000+181000]

@vdomos
Copy link
Owner

vdomos commented Feb 1, 2016

Si ce message est lié au process onewied, cela va pas être simple.

Autre piste, voir si pas lié au bug de l'admin et les "too many openfile", surtout si cela reviens aprés un délai constant.
Sur ma VM, je suis monté à ~900000 of dont plus de 800000 lié à admin.
Sur un conteneur lxc, il n'y aurai pas des limits de déclaré ? sur le user domogik aussi ?

En lancant avec start.sh si il y a un messge sur la sortie standard pour nous aider.

@tikismoke
Copy link
Contributor Author

Je vais le lancer avec start.sh mais faut que je redirige la sortie dans un fichier sinon je vais louper l'erreur c'est sur ;)

Le 1 février 2016 20:06:36 GMT+01:00, vdomos [email protected] a écrit :

Si ce message est lié au process onewied, cela va pas être simple.

Autre piste, voir si pas lié au bug de l'admin et les "too many
openfile", surtout si cela reviens aprés un délai constant.
Sur ma VM, je suis monté à ~900000 of dont plus de 800000 lié à admin.
Sur un conteneur lxc, il n'y aurai pas des limits de déclaré ? sur le
user domogik aussi ?

En lancant avec start.sh si il y a un messge sur la sortie standard
pour nous aider.


Reply to this email directly or view it on GitHub:
#5 (comment)

Envoyé de mon appareil Android avec K-9 Mail. Veuillez excuser ma brièveté.

@vdomos
Copy link
Owner

vdomos commented Mar 6, 2016

Hello Tiki

As tu toujours ce probleme avec le plugin ?

Je ne l'ai jamais eu sur ma VM mais depuis j'ai tout confguré à l'identique sur un raspberry-pi2 et j'ai le même symptome du plugin qui s'arrète sans message d'erreur même en le lançant avec le start.sh. Juste un "force_leave called".

J'ai aussi un autre symptome avec le rpi2, c'est que je perds le manager au bout d'un moement.
La log me donne un "force_leave called" sans autre explication aussi.

Me demande si ce serait pas un paramètre système un peu juste coté rpi, il ne semble pas surchargé pourtant.

@tikismoke
Copy link
Contributor Author

Oui ça arrive des fois de manière complètement aléatoire. Je pense pas que ce soit un pb de surcharge système (mon serveur s'ennui quand même 70% du temps). Plutôt un pb matériel je pense.

@vdomos
Copy link
Owner

vdomos commented Mar 7, 2016

J'ai lancé le manager avec l'option '-f' et j'ai eu cette erreur juste
avant l'arret.

Assertion failed: refs_ >= 0 (msg.cpp:272)

Semble lié à MQ.

J'ai fait un 'pull' des dernière maj, j'attends de voir si cela se
reproduit.

Le 7 mars 2016 à 06:51, tikismoke [email protected] a écrit :

Oui ça arrive des fois de manière complètement aléatoire. Je pense pas que
ce soit un pb de surcharge système (mon serveur s'ennui quand même 70% du
temps). Plutôt un pb matériel je pense.


Reply to this email directly or view it on GitHub
#5 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants