Advertisement
Guest User

Untitled

a guest
Sep 15th, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 15.73 KB | None | 0 0
  1. Linux raspberrypi 4.1.4-v7+ #808 SMP PREEMPT Thu Aug 6 16:59:39 BST 2015 armv7l
  2.  
  3. The programs included with the Debian GNU/Linux system are free software;
  4. the exact distribution terms for each program are described in the
  5. individual files in /usr/share/doc/*/copyright.
  6.  
  7. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
  8. permitted by applicable law.
  9. Last login: Tue Sep 15 18:14:13 2015 from 37.165.68.133
  10. pi@raspberrypi ~ $ cd /opt/HttpUploadComponent/
  11. pi@raspberrypi /opt/HttpUploadComponent $ sudo pip install -r requirements.txt
  12. Requirement already satisfied (use --upgrade to upgrade): coverage==3.7.1 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 1))
  13. Requirement already satisfied (use --upgrade to upgrade): mock==1.3.0 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 2))
  14. Requirement already satisfied (use --upgrade to upgrade): pbr==1.7.0 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 3))
  15. Requirement already satisfied (use --upgrade to upgrade): pluggy==0.3.0 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 4))
  16. Requirement already satisfied (use --upgrade to upgrade): py==1.4.30 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 5))
  17. Requirement already satisfied (use --upgrade to upgrade): pytest==2.7.2 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 6))
  18. Requirement already satisfied (use --upgrade to upgrade): PyYAML==3.11 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 7))
  19. Requirement already satisfied (use --upgrade to upgrade): six==1.9.0 in /usr/local/lib/python2.7/dist-packages/six-1.9.0-py2.7.egg (from -r requirements.txt (line 8))
  20. Requirement already satisfied (use --upgrade to upgrade): sleekxmpp==1.3.1 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 9))
  21. Requirement already satisfied (use --upgrade to upgrade): tox==2.1.1 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 10))
  22. Requirement already satisfied (use --upgrade to upgrade): virtualenv==13.1.2 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 11))
  23. Requirement already satisfied (use --upgrade to upgrade): wheel==0.24.0 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 12))
  24. Cleaning up...
  25. pi@raspberrypi /opt/HttpUploadComponent $ ls
  26. 7216659e792f194283ce588f57c3c36905a87609  httpupload               plugins           setup.py
  27. cf3cc2747fd816ab588e8508a2c3dfeb30845b2a  httpuploadcomponent.pid  README.md         tests
  28. config.example.yml                        LICENSE                  requirements.txt  tox.ini
  29. config.yml                                Makefile                 server.py
  30. contrib                                   MANIFEST.in              setup.cfg
  31. pi@raspberrypi /opt/HttpUploadComponent $ rm server.py
  32. rm: remove write-protected regular file `server.py'? yes
  33. rm: cannot remove `server.py': Permission denied
  34. pi@raspberrypi /opt/HttpUploadComponent $ sudo rm server.py
  35. pi@raspberrypi /opt/HttpUploadComponent $ cd httpupload/
  36. pi@raspberrypi /opt/HttpUploadComponent/httpupload $ ls
  37. config.yml  __init__.py  plugins  server.py
  38. pi@raspberrypi /opt/HttpUploadComponent/httpupload $ python3 server.py
  39. 2015-09-15 18:28:22,211  DEBUG    Expire run finished in 0.001112s
  40. 2015-09-15 18:28:22,250  DEBUG    setting jid to conferenceemevth.no-ip.biz
  41. 2015-09-15 18:28:22,264  DEBUG    Loaded Plugin (XEP-0030) Service Discovery
  42. 2015-09-15 18:28:22,271  DEBUG    Loaded Plugin (XEP-0999) upload files via http
  43. 2015-09-15 18:28:22,272  DEBUG    Connecting to localhost:8081
  44. 2015-09-15 18:28:22,273  DEBUG    Connecting to localhost:8081
  45. 2015-09-15 18:28:22,275  DEBUG     ==== TRANSITION disconnected -> connected
  46. 2015-09-15 18:28:22,278  DEBUG    Starting HANDLER THREAD
  47. 2015-09-15 18:28:22,280  DEBUG    Loading event runner
  48. connected
  49. 2015-09-15 18:28:22,284  DEBUG    SEND (IMMED): <stream:stream xmlns="jabber:component:accept" xmlns:stream="http://etherx.jabber.org/streams" to='conferenceemevth.no-ip.biz'>
  50. 2015-09-15 18:28:22,289  DEBUG    SEND (IMMED): <handshake xmlns="jabber:component:accept">b937e6c7aa9800090e1a86fc16779ed06eeff15c</handshake>
  51. 2015-09-15 18:28:22,293  DEBUG    RECV: <handshake />
  52. 2015-09-15 18:29:52,613  DEBUG    RECV: <iq to="conferenceemevth.no-ip.biz" type="get" from="thorsten@emevth.no-ip.biz/mobile" xml:lang="en" id="mu0flmtevg"><query xmlns="http://jabber.org/protocol/disco#info" /></iq>
  53. 2015-09-15 18:29:52,620  DEBUG    Received disco info query from <thorsten@emevth.no-ip.biz/mobile> to <conferenceemevth.no-ip.biz>.
  54. 2015-09-15 18:29:52,625  DEBUG    SEND: <iq id="mu0flmtevg" to="thorsten@emevth.no-ip.biz/mobile" type="result" xml:lang="en" from="conferenceemevth.no-ip.biz"><query xmlns="http://jabber.org/protocol/disco#info"><feature var="urn:xmpp:http:upload" /><identity category="store" type="file" name="HTTP File Upload" /></query></iq>
  55. ^X^Cpi@raspberrypi /opt/HttpUploadComponent/httpupload $ sudo service ejabberd force-reload
  56. Stopping ejabberd...
  57. done.
  58. Starting ejabberd...
  59. done.
  60. pi@raspberrypi /opt/HttpUploadComponent/httpupload $ sudo crontab -e
  61. No modification made
  62. pi@raspberrypi /opt/HttpUploadComponent/httpupload $ cd /etc/init.d/
  63. pi@raspberrypi /etc/init.d $ ls
  64. alsa-utils              fake-hwclock         mountall-bootclean.sh  raspi-config    skeleton
  65. apache2                 halt                 mountall.sh            rc              ssh
  66. avahi-daemon            hdparm               mountdevsubfs.sh       rc.local        sudo
  67. bootlogs                hostname.sh          mountkernfs.sh         rcS             triggerhappy
  68. bootmisc.sh             httpuploadcomponent  mountnfs-bootclean.sh  README          udev
  69. cgroup-bin              hwclock.sh           mountnfs.sh            reboot          udev-mtab
  70. checkfs.sh              ifplugd              mtab.sh                rmnologin       umountfs
  71. checkroot-bootclean.sh  kbd                  mysql                  rpcbind         umountnfs.sh
  72. checkroot.sh            keyboard-setup       networking             rsync           umountroot
  73. console-setup           killprocs            nfs-common             rsyslog         urandom
  74. cron                    kmod                 ntp                    screen-cleanup  x11-common
  75. dbus                    kodi                 php5-fpm               sendsigs
  76. dhcpcd                  LCDd                 plymouth               shit
  77. dphys-swapfile          lightdm              plymouth-log           shitservice
  78. ejabberd                motd                 procps                 single
  79. pi@raspberrypi /etc/init.d $ nano httpuploadcomponent
  80. pi@raspberrypi /etc/init.d $ cd /opt/HttpUploadComponent/
  81. pi@raspberrypi /opt/HttpUploadComponent $ ls
  82. 7216659e792f194283ce588f57c3c36905a87609  httpupload               plugins           tests
  83. cf3cc2747fd816ab588e8508a2c3dfeb30845b2a  httpuploadcomponent.pid  README.md         tox.ini
  84. config.example.yml                        LICENSE                  requirements.txt
  85. config.yml                                Makefile                 setup.cfg
  86. contrib                                   MANIFEST.in              setup.py
  87. pi@raspberrypi /opt/HttpUploadComponent $ cd httpupload/
  88. pi@raspberrypi /opt/HttpUploadComponent/httpupload $ ls
  89. config.yml  __init__.py  plugins  server.py
  90. pi@raspberrypi /opt/HttpUploadComponent/httpupload $ nano config.yml
  91. pi@raspberrypi /opt/HttpUploadComponent/httpupload $ cd ..
  92. pi@raspberrypi /opt/HttpUploadComponent $ nano config.yml
  93. pi@raspberrypi /opt/HttpUploadComponent $ sudo mc
  94.  
  95. pi@raspberrypi /opt/HttpUploadComponent $ ls
  96. 7216659e792f194283ce588f57c3c36905a87609  httpupload               MANIFEST.in       setup.cfg
  97. cf3cc2747fd816ab588e8508a2c3dfeb30845b2a  httpuploadcomponent.pid  plugins           setup.py
  98. config.example.yml                        __init__.py              README.md         tests
  99. config.yml                                LICENSE                  requirements.txt  tox.ini
  100. contrib                                   Makefile                 server.py
  101. pi@raspberrypi /opt/HttpUploadComponent $ sudo nano server.py
  102. pi@raspberrypi /opt/HttpUploadComponent $ python server.py
  103. Traceback (most recent call last):
  104.   File "server.py", line 15, in <module>
  105.     import urllib.parse
  106. ImportError: No module named parse
  107. pi@raspberrypi /opt/HttpUploadComponent $ python3 server.py
  108. 2015-09-15 18:44:03,080  DEBUG    Expire run finished in 0.056770s
  109. 2015-09-15 18:44:03,119  DEBUG    setting jid to conferenceemevth.no-ip.biz
  110. 2015-09-15 18:44:03,133  DEBUG    Loaded Plugin (XEP-0030) Service Discovery
  111. 2015-09-15 18:44:03,140  DEBUG    Loaded Plugin (XEP-0999) upload files via http
  112. 2015-09-15 18:44:03,141  DEBUG    Connecting to localhost:8081
  113. 2015-09-15 18:44:03,143  DEBUG    Connecting to localhost:8081
  114. 2015-09-15 18:44:03,145  DEBUG     ==== TRANSITION disconnected -> connected
  115. 2015-09-15 18:44:03,148  DEBUG    Starting HANDLER THREAD
  116. 2015-09-15 18:44:03,150  DEBUG    Loading event runner
  117. 2015-09-15 18:44:03,154  DEBUG    SEND (IMMED): <stream:stream xmlns="jabber:component:accept" xmlns:stream="http://etherx.jabber.org/streams" to='conferenceemevth.no-ip.biz'>
  118. connected
  119. 2015-09-15 18:44:03,162  DEBUG    SEND (IMMED): <handshake xmlns="jabber:component:accept">1b2db3f3652e427d3e36c46a018473a491159705</handshake>
  120. 2015-09-15 18:44:03,165  DEBUG    RECV: <handshake />
  121. 2015-09-15 18:45:40,666  DEBUG    RECV: <iq to="conferenceemevth.no-ip.biz" type="get" from="thorsten@emevth.no-ip.biz/mobile" xml:lang="en" id="rls29da8jk"><query xmlns="http://jabber.org/protocol/disco#info" /></iq>
  122. 2015-09-15 18:45:40,671  DEBUG    Received disco info query from <thorsten@emevth.no-ip.biz/mobile> to <conferenceemevth.no-ip.biz>.
  123. 2015-09-15 18:45:40,674  DEBUG    SEND: <iq id="rls29da8jk" to="thorsten@emevth.no-ip.biz/mobile" type="result" xml:lang="en" from="conferenceemevth.no-ip.biz"><query xmlns="http://jabber.org/protocol/disco#info"><feature var="urn:xmpp:http:upload" /><identity category="store" type="file" name="HTTP File Upload" /></query></iq>
  124. 2015-09-15 18:49:03,612  DEBUG    RECV: <presence to="technical@conferenceemevth.no-ip.biz/emilie" from="emilie@emevth.no-ip.biz/mobile" type="unavailable" />
  125. 2015-09-15 18:49:03,616  DEBUG    emilie@emevth.no-ip.biz mobile got offline
  126. 2015-09-15 18:49:08,655  ERROR    Error reading from XML stream.
  127. 2015-09-15 18:49:08,657  DEBUG    Ending read XML loop
  128. 2015-09-15 18:49:08,658  DEBUG    reconnecting...
  129. 2015-09-15 18:49:08,659  DEBUG    SEND (IMMED): </stream:stream>
  130. 2015-09-15 18:49:12,661  DEBUG     ==== TRANSITION connected -> disconnected
  131. 2015-09-15 18:49:12,662  DEBUG    connecting...
  132. 2015-09-15 18:49:12,663  DEBUG    Waiting 2.143507893759172 seconds before connecting.
  133. 2015-09-15 18:49:14,809  DEBUG    Connecting to localhost:8081
  134. 2015-09-15 18:49:14,813  ERROR    Could not connect to localhost:8081. Socket Error #111: Connection refused
  135. 2015-09-15 18:49:14,815  DEBUG    SEND (IMMED): <stream:stream xmlns="jabber:component:accept" xmlns:stream="http://etherx.jabber.org/streams" to='conferenceemevth.no-ip.biz'>
  136. 2015-09-15 18:49:14,817  WARNING  Failed to send <stream:stream xmlns="jabber:component:accept" xmlns:stream="http://etherx.jabber.org/streams" to='conferenceemevth.no-ip.biz'>
  137. 2015-09-15 18:49:14,819  DEBUG    State was not ready
  138. 2015-09-15 18:49:14,821  ERROR    Connection error.
  139. Traceback (most recent call last):
  140.   File "/usr/lib/python3/dist-packages/sleekxmpp/xmlstream/xmlstream.py", line 808, in _process
  141.     while not self.stop.isSet() and self.__read_xml():
  142.   File "/usr/lib/python3/dist-packages/sleekxmpp/xmlstream/xmlstream.py", line 842, in __read_xml
  143.     (b'end', b'start')):
  144.   File "<string>", line 100, in __next__
  145.   File "/usr/lib/python3.2/socket.py", line 281, in readinto
  146.     self._checkClosed()
  147. ValueError: I/O operation on closed file.
  148. 2015-09-15 18:49:14,842  DEBUG    reconnecting...
  149. 2015-09-15 18:49:16,844  DEBUG    State was not ready
  150. 2015-09-15 18:49:16,845  DEBUG    connecting...
  151. 2015-09-15 18:49:16,846  DEBUG    Waiting 3.381540090401584 seconds before connecting.
  152. 2015-09-15 18:49:20,230  DEBUG    Connecting to localhost:8081
  153. 2015-09-15 18:49:20,233  ERROR    Could not connect to localhost:8081. Socket Error #111: Connection refused
  154. 2015-09-15 18:49:20,235  DEBUG    SEND (IMMED): <stream:stream xmlns="jabber:component:accept" xmlns:stream="http://etherx.jabber.org/streams" to='conferenceemevth.no-ip.biz'>
  155. 2015-09-15 18:49:20,236  WARNING  Failed to send <stream:stream xmlns="jabber:component:accept" xmlns:stream="http://etherx.jabber.org/streams" to='conferenceemevth.no-ip.biz'>
  156. 2015-09-15 18:49:20,238  DEBUG    State was not ready
  157. 2015-09-15 18:49:20,239  ERROR    Connection error.
  158. Traceback (most recent call last):
  159.   File "/usr/lib/python3/dist-packages/sleekxmpp/xmlstream/xmlstream.py", line 808, in _process
  160.     while not self.stop.isSet() and self.__read_xml():
  161.   File "/usr/lib/python3/dist-packages/sleekxmpp/xmlstream/xmlstream.py", line 842, in __read_xml
  162.     (b'end', b'start')):
  163.   File "<string>", line 100, in __next__
  164.   File "/usr/lib/python3.2/socket.py", line 281, in readinto
  165.     self._checkClosed()
  166. ValueError: I/O operation on closed file.
  167. 2015-09-15 18:49:20,242  DEBUG    reconnecting...
  168. 2015-09-15 18:49:22,247  DEBUG    State was not ready
  169. 2015-09-15 18:49:22,247  DEBUG    connecting...
  170. 2015-09-15 18:49:22,249  DEBUG    Waiting 7.359369688173125 seconds before connecting.
  171. 2015-09-15 18:49:29,609  DEBUG    Connecting to localhost:8081
  172. 2015-09-15 18:49:29,613  DEBUG     ==== TRANSITION disconnected -> connected
  173. 2015-09-15 18:49:29,615  DEBUG    SEND (IMMED): <stream:stream xmlns="jabber:component:accept" xmlns:stream="http://etherx.jabber.org/streams" to='conferenceemevth.no-ip.biz'>
  174. 2015-09-15 18:49:29,668  DEBUG    SEND (IMMED): <handshake xmlns="jabber:component:accept">de65504e731c4bc060aa4659745cd90e4d66a510</handshake>
  175. 2015-09-15 18:49:29,672  DEBUG    RECV: <handshake />
  176. 2015-09-15 18:49:41,346  DEBUG    RECV: <presence to="technical@conferenceemevth.no-ip.biz/emilie" from="emilie@emevth.no-ip.biz/mobile" xml:lang="en"><x xmlns="http://jabber.org/protocol/muc"><history since="2015-09-08T05:01:47Z" /></x></presence>
  177. 2015-09-15 18:49:41,351  DEBUG    STATUS: emilie@emevth.no-ip.biz/mobile[available]:
  178. 2015-09-15 18:49:41,352  DEBUG    RECV: <iq to="technical@conferenceemevth.no-ip.biz" type="get" from="emilie@emevth.no-ip.biz/mobile" xml:lang="en" id="7h6aov742k"><query xmlns="http://jabber.org/protocol/disco#info" /></iq>
  179. 2015-09-15 18:49:41,361  DEBUG    Received disco info query from <emilie@emevth.no-ip.biz/mobile> to <technical@conferenceemevth.no-ip.biz>.
  180. 2015-09-15 18:49:41,367  DEBUG    No identity found for this entity.Using default component identity.
  181. 2015-09-15 18:49:41,368  DEBUG    No features found for this entity.Using default disco#info feature.
  182. 2015-09-15 18:49:41,374  DEBUG    SEND: <iq id="7h6aov742k" to="emilie@emevth.no-ip.biz/mobile" type="result" xml:lang="en" from="technical@conferenceemevth.no-ip.biz"><query xmlns="http://jabber.org/protocol/disco#info"><identity category="component" type="generic" /><feature var="http://jabber.org/protocol/disco#info" /></query></iq>
  183. 2015-09-15 18:49:42,188  DEBUG    RECV: <iq to="conferenceemevth.no-ip.biz" type="get" from="emilie@emevth.no-ip.biz/mobile" xml:lang="en" id="3brjujjt1b"><query xmlns="http://jabber.org/protocol/disco#info" /></iq>
  184. 2015-09-15 18:49:42,194  DEBUG    Received disco info query from <emilie@emevth.no-ip.biz/mobile> to <conferenceemevth.no-ip.biz>.
  185. 2015-09-15 18:49:42,198  DEBUG    SEND: <iq id="3brjujjt1b" to="emilie@emevth.no-ip.biz/mobile" type="result" xml:lang="en" from="conferenceemevth.no-ip.biz"><query xmlns="http://jabber.org/protocol/disco#info"><feature var="urn:xmpp:http:upload" /><identity category="store" type="file" name="HTTP File Upload" /></query></iq>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement