Troubleshooting/en

De Goffiwiki
Aller à : navigation, rechercher


At launch time

Bridge can't be initialised

At launch time, sat fails with the return code 1 or, if you have launched it in debug mode, you get the following error messages:

 2015-11-05 16:40:37+0300 [-] Bridge initialization
 2015-11-05 16:40:37+0300 [-] Init DBus...
 2015-11-05 16:40:37+0300 [-] /!\ Bridge can't be initialised, can't start SàT core

This is probably that you are on a terminal environment without X11 (e.g. on a server). You have to launch DBus manually, for example as a daemon with this command:

 eval `dbus-launch --sh-syntax`

This will set some environment variables and you have to re-use them if you start a new session. To do that automatically, you can use the following script:

 --- /usr/local/bin/dbus-launch.sh ---
 #!/bin/sh
 
 DBUS_PATH="/tmp/.dbus.`whoami`"
 
 if [ ! -e $DBUS_PATH ]; then
     dbus-launch --sh-syntax > $DBUS_PATH
     chmod 400 $DBUS_PATH
 fi
 
 cat $DBUS_PATH
 --- end of /usr/local/bin/dbus-launch.sh ---

And put this line at the end of your .zshrc (or whatever shell you're using):

 eval `/usr/local/bin/dbus-launch.sh`

Trying to connect

Twisted stops DNSDatagramProtocol and will retry in X seconds

 2015-07-21 11:03:53+0200 [-] [twisted {}] Starting factory <twisted.words.protocols.jabber.xmlstream.XmlStreamFactory object at 0x7f61f1879d10>
 2015-07-21 11:03:53+0200 [-] [twisted {}] /etc/resolv.conf changed, reparsing
 2015-07-21 11:03:53+0200 [-] [twisted {}] Resolver added ('127.0.0.1', 53) to server list
 2015-07-21 11:03:53+0200 [-] [twisted {}] Resolver added ('192.168.2.1', 53) to server list
 2015-07-21 11:03:53+0200 [-] [twisted {}] DNSDatagramProtocol starting on 21354
 2015-07-21 11:03:53+0200 [-] [twisted {}] Starting protocol <twisted.names.dns.DNSDatagramProtocol object at 0x7f61f0fd1d50>
 2015-07-21 11:03:54+0200 [-] [twisted {}] DNSDatagramProtocol starting on 64744
 2015-07-21 11:03:54+0200 [-] [twisted {}] Starting protocol <twisted.names.dns.DNSDatagramProtocol object at 0x7f61f1879850>
 2015-07-21 11:03:54+0200 [-] [twisted {}] (UDP Port 21354 Closed)
 2015-07-21 11:03:54+0200 [-] [twisted {}] Stopping protocol <twisted.names.dns.DNSDatagramProtocol object at 0x7f61f0fd1d50>
 2015-07-21 11:03:54+0200 [-] [twisted {}] (UDP Port 64744 Closed)
 2015-07-21 11:03:54+0200 [-] [twisted {}] Stopping protocol <twisted.names.dns.DNSDatagramProtocol object at 0x7f61f1879850>
 2015-07-21 11:03:54+0200 [Uninitialized] [twisted {}] <wokkel.client.XMPPClientConnector instance at 0x7f61f18aff38> will retry in 2 seconds
 2015-07-21 11:03:54+0200 [Uninitialized] [twisted {}] Stopping factory <twisted.words.protocols.jabber.xmlstream.XmlStreamFactory object at 0x7f61f1879d10>

Hint: did you set some DNS SRV records and did you forget to (re)start your DNS?

 /etc/init.d/bind9 restart

Wokkel says "No available authentication method found"

 /usr/local/lib/python2.7/dist-packages/wokkel-0.7.1-py2.7.egg/wokkel/client.py(43)initialize()
      42         else:
 ---> 43             raise Exception("No available authentication method found")

Hint: install PyOpenSSL

 pip install PyOpenSSL

or:

 apt-get install python-openssl