Skip to content

Instantly share code, notes, and snippets.

fritz@darkstar:~$ cd ssh 192.168.1.50
bash: cd: ssh: Aucun fichier ou dossier de ce type
fritz@darkstar:~$ ssh 192.168.1.50
Linux ambre 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2 x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
root@darkstar:/media/stock/domotique/git/domogik# sh inno.sh
Domogik configuration file found. reading configuration...
Checking if some tables need to be converted to InnoDB...
- server : 127.0.0.1:3306
- databse : dmg03
- credentials : domogik/****
All your tables are InnoDB. There is nothing to do
---------------------------------
DOMOGIK-mQ
[ Create domogik-mq user ]
As what user should domogik-mq run? [domogik]: fritz
==> Correctly created domogik-mq user
Install MQ as master (lib+daemon) or client (lib only) ? [M/s]:
[ Copy files ]
==> Directory /etc/domogik already exists
==> Copyed file examples/config/domogik-mq.cfg.sample
==> Directory /var/log/domogik already exists
@fritz-smh
fritz-smh / null to 0.4
Created September 24, 2015 11:25
0.3 to 0.4
DROP TABLE IF EXISTS `core_xplstat_param`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_xplstat_param` (
`xplstat_id` int(11) NOT NULL,
`key` varchar(32) NOT NULL,
`value` varchar(255) DEFAULT NULL,
`static` tinyint(1) NOT NULL,
`sensor_id` int(11) NOT NULL, <
2015-09-24 10:15:24,093 domogik-dbmgr DEBUG ['device.create.result', '{"status": false, "reason": "An error occured whil
e adding the device in database. Please check the file dbmgr.log for more informations"}']
2015-09-24 10:15:24,094 domogik-dbmgr ERROR Error while processing request. Message is : <MQMessage(action=device.create
, data='{u'data': {u'xpl_stats': {u'get_total_space': [], u'get_free_space': [], u'get_used_space': [], u'get_percent_us
ed': []}, u'name': u'test_device_diskfree', u'reference': u'reference', u'xpl': [{u'value': u'/home', u'type': u'string'
, u'description': u'The path to look at.', u'key': u'device'}], u'xpl_commands': {}, u'global': [{u'value': 1, u'type':
u'integer', u'description': u'The time in minutes between each check.', u'key': u'interval'}], u'device_type': u'diskfre
e.disk_usage', u'client_id': u'plugin-diskfree.darkstar', u'description': u'description'}}')>. Error is : Traceback (mos
t recent call last):
2015-09-24 09:33:04,910 domogik-dbmgr ERROR Error while processing request. Message is : <MQMessage(action=device.create
, data='{u'data': {u'xpl_stats': {u'get_total_space': [], u'get_free_space': [], u'get_used_space': [], u'get_percent_us
ed': []}, u'name': u'test_device_diskfree', u'reference': u'reference', u'xpl': [{u'value': u'/home', u'type': u'string'
, u'description': u'The path to look at.', u'key': u'device'}], u'xpl_commands': {}, u'global': [{u'value': 1, u'type':
u'integer', u'description': u'The time in minutes between each check.', u'key': u'interval'}], u'device_type': u'diskfre
e.disk_usage', u'client_id': u'plugin-diskfree.darkstar', u'description': u'description'}}')>. Error is : Traceback (mos
t recent call last):
File "/media/stock/domotique/git/domogik/src/domogik/bin/dbmgr.py", line 138, in on_mdp_request
self._mdp_reply_sensor_history(msg)
FAILED (failures=1)
<unittest.runner.TextTestResult run=4 errors=0 failures=1>
False
call force_leave()
set return code to 2
force_leave : the return code is 2
2014-02-17 15:32:05,998 domogik-test DEBUG force_leave called
2014-02-17 15:32:05,999 domogik-test DEBUG Send plugin status : stopped
in force_leave : 1
2014-02-17 15:32:05,999 domogik-test DEBUG normal send
k$ patch -p0 < ~/git-manager-1.diff
can't find file to patch at input line 17
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From 72b1dedff940e8412fc2c16652c90f7560440bbe Mon Sep 17 00:00:00 2001
|From: fritz-smh <fritz.smh@domogik.org>
|Date: Tue, 11 Jun 2013 15:29:01 +0200
|Subject: New manager : continue work on it
|
2013-06-11 15:23:47,203 domogik-plugin_pub DEBUG Publishing on address : tcp://192.168.1.10:40411
Traceback (most recent call last):
File "bin/diskfree.py", line 135, in <module>
DiskManager()
File "bin/diskfree.py", line 62, in __init__
"event" : "starting"})
File "/media/stock/domotique/git/domogik/src/domogik/mq/pubsub/publisher.py", line 33, in send_event
self.s_send.send(content)
File "socket.pyx", line 499, in zmq.core.socket.Socket.send (zmq/core/socket.c:5381)
File "socket.pyx", line 546, in zmq.core.socket.Socket.send (zmq/core/socket.c:5143)
<!DOCTYPE html>
<html lang="en" manifest="/manifest.appcache">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />