Advertisement
Guest User

Untitled

a guest
Mar 30th, 2016
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.25 KB | None | 0 0
  1. root@192.168.100.201's password:
  2. == Welcome at FFP version 0.7/arm, running on NSA310_ZyXEL nsa310, firmware V4.70(AFK.2) ==
  3. root@nsa310:~# cd /ffp/start
  4. root@nsa310:/ffp/start# sh -x NZBautomator.sh
  5. + . /ffp/start/config.cfg
  6. ++ SABnzbd=1
  7. ++ Nzbget=1
  8. ++ CouchPotato=1
  9. ++ SickBeard=1
  10. ++ Headphones=0
  11. ++ Mylar=0
  12. ++ NzbtoMedia=1
  13. ++ bindmount=0
  14. ++ useradmin=/i-data/md0/admin
  15. ++ sabconfig=/i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
  16. ++ sabbackup=/tmp/sabbackup
  17. ++ couchconfig=/i-data/md0/admin/configuration/couchpotato
  18. ++ sickconfig=/i-data/md0/admin/configuration/sickbeard
  19. ++ headconfig=/i-data/md0/admin/configuration/headphones
  20. ++ mylarconfig=/i-data/md0/admin/configuration/mylar
  21. ++ nzbtomedia=/i-data/md0/admin/configuration/nzbToMedia
  22. ++ python='/usr/bin/env python2'
  23. ++ sabdata=/ffp/bin/sabnzbd
  24. ++ couchdata=/ffp/bin/couchpotato
  25. ++ sickdata=/ffp/bin/sickbeard
  26. ++ headdata=/ffp/bin/headphones
  27. ++ mylardata=/ffp/bin/mylar
  28. ++ CPKG_NAME=couchpotato
  29. ++ CPKG_DIR=/ffp/bin/couchpotato
  30. ++ CCONFIG_DIR=/i-data/md0/admin/configuration/couchpotato
  31. ++ CPID_FILE=/i-data/md0/admin/configuration/couchpotato/couchpotato.pid
  32. ++ SPKG_NAME=SickRage
  33. ++ SPKG_DIR=/ffp/bin/sickbeard
  34. ++ SCONFIG_DIR=/i-data/md0/admin/configuration/sickbeard
  35. ++ SPID_FILE=/i-data/md0/admin/configuration/sickbeard/SickRage.pid
  36. +++ grep -m 1 api_key /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
  37. +++ sed 's/""//'
  38. +++ cut -d ' ' -f 3
  39. ++ sab_api=b147235cc4489e3d0afedf6718f00947
  40. +++ grep -w -m 1 password /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
  41. +++ cut -d ' ' -f 3
  42. +++ sed 's/""//'
  43. ++ sab_pass=limpsite
  44. +++ grep -m 1 username /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
  45. +++ cut -d ' ' -f 3
  46. +++ sed 's/""//'
  47. ++ sab_user=admin
  48. +++ grep -w -m 1 https_port /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
  49. +++ cut -d ' ' -f 3
  50. +++ sed 's/""//'
  51. ++ sab_sslport=9090
  52. +++ grep -w -m 1 port /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
  53. +++ sed 's/""//'
  54. +++ cut -d ' ' -f 3
  55. ++ sab_port=8085
  56. +++ grep -m 1 api_key /i-data/md0/admin/configuration/couchpotato/settings.conf
  57. +++ cut -d ' ' -f 3
  58. +++ sed 's/""//'
  59. ++ couch_api=f6645b3d9d5b4263ba11a2b79e708b5d
  60. +++ cut -d ' ' -f 3
  61. +++ sed 's/""//'
  62. +++ grep -m 1 port /i-data/md0/admin/configuration/couchpotato/settings.conf
  63. ++ couch_port=5050
  64. +++ grep -m 1 web_port /i-data/md0/admin/configuration/sickbeard/config.ini
  65. +++ cut -d ' ' -f 3
  66. +++ sed 's/""//'
  67. ++ sb_port=8081
  68. +++ grep -m 1 api_key /i-data/md0/admin/configuration/sickbeard/config.ini
  69. +++ cut -d ' ' -f 3
  70. +++ sed 's/""//'
  71. ++ sb_api=6a9135736d3d7203249fdb52053f3237
  72. +++ grep -m 1 api_key /i-data/md0/admin/configuration/headphones/config.ini
  73. grep: /i-data/md0/admin/configuration/headphones/config.ini: No such file or directory
  74. +++ sed 's/""//'
  75. +++ cut -d ' ' -f 3
  76. ++ head_api=
  77. +++ grep -m 1 http_port /i-data/md0/admin/configuration/headphones/config.ini
  78. +++ cut -d ' ' -f 3
  79. +++ sed 's/""//'
  80. grep: /i-data/md0/admin/configuration/headphones/config.ini: No such file or directory
  81. ++ head_port=
  82. +++ grep -m 1 api_key /i-data/md0/admin/configuration/mylar/config.ini
  83. grep: /i-data/md0/admin/configuration/mylar/config.ini: No such file or directory
  84. +++ sed 's/""//'
  85. +++ cut -d ' ' -f 3
  86. ++ mylar_api=
  87. +++ grep -m 1 port /i-data/md0/admin/configuration/mylar/config.ini
  88. +++ cut -d ' ' -f 3
  89. +++ sed 's/""//'
  90. grep: /i-data/md0/admin/configuration/mylar/config.ini: No such file or directory
  91. ++ mylar_port=
  92. + '[' 1 == 1 ']'
  93. ++ wget http://sabnzbd.org/download/ -O -
  94. --23:11:39-- http://sabnzbd.org/download/
  95. => `-'
  96. ++ grep Linux
  97. ++ awk -F/download '{print $1}'
  98. ++ awk '-F"' '{print $2}'
  99. Resolving sabnzbd.org... 104.18.41.215, 104.18.40.215
  100. Connecting to sabnzbd.org[104.18.41.215]:80... connected.
  101. HTTP request sent, awaiting response... 200 OK
  102. Length: unspecified [text/html]
  103.  
  104. [ <=> ] 12,849 --.--K/s
  105.  
  106. 23:11:40 (205.99 KB/s) - `-' saved [12849]
  107.  
  108. + sabpkg=https://github.com/sabnzbd/sabnzbd/releases
  109. ++ echo https://github.com/sabnzbd/sabnzbd/releases
  110. ++ sed 's/.*\(SAB.*\.gz\).*/\1/'
  111. + sablcl=https://github.com/sabnzbd/sabnzbd/releases
  112. ++ printf SABnzbd
  113. ++ echo https://github.com/sabnzbd/sabnzbd/releases
  114. ++ sed 's/.*SABnzbd\(.*\)-.*/\1/'
  115. + sabtmpdir=SABnzbdhttps://github.com/sabnzbd/sabnzbd/releases
  116. + cd /i-data/md0/admin
  117. + '[' '!' -d /ffp/bin/sabnzbd ']'
  118. ++ grep -w -m 1 enable_https /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
  119. ++ cut -d ' ' -f 3
  120. + '[' 0 == 1 ']'
  121. ++ grep -w -m 1 port /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
  122. ++ cut -d ' ' -f 3
  123. ++ sed 's/""//'
  124. + sab_port=8085
  125. + '[' '!' -f /ffp/etc/ssl/certs/cacert.pem ']'
  126. + '[' 1 == 1 ']'
  127. + '[' '!' -d /tmp/sabbackup ']'
  128. + cd /tmp/sabbackup
  129. + '[' https://github.com/sabnzbd/sabnzbd/releases '!=' '*.gz' ']'
  130. + rm -f '/tmp/sabbackup/*'
  131. + wget https://github.com/sabnzbd/sabnzbd/releases -O https://github.com/sabnzbd/sabnzbd/releases
  132. https://github.com/sabnzbd/sabnzbd/releases: No such file or directory
  133. + tar xvzf https://github.com/sabnzbd/sabnzbd/releases
  134. tar: Cannot connect to https: resolve failed
  135.  
  136. gzip: stdin: unexpected end of file
  137. tar: Child returned status 128
  138. tar: Error is not recoverable: exiting now
  139. + cp -ru 'SABnzbdhttps://github.com/sabnzbd/sabnzbd/releases/*' /ffp/bin/sabnzbd
  140. cp: cannot stat `SABnzbdhttps://github.com/sabnzbd/sabnzbd/releases/*': No such file or directory
  141. + rm -r SABnzbdhttps://github.com/sabnzbd/sabnzbd/releases
  142. rm: cannot remove `SABnzbdhttps://github.com/sabnzbd/sabnzbd/releases': No such file or directory
  143. + '[' 1 == 1 ']'
  144. + '[' -d /ffp/bin/couchpotato ']'
  145. + cd /ffp/bin/couchpotato
  146. + git pull https://github.com/RuudBurger/CouchPotatoServer
  147. From https://github.com/RuudBurger/CouchPotatoServer
  148. * branch HEAD -> FETCH_HEAD
  149. Already up-to-date.
  150. + '[' 1 == 1 ']'
  151. + '[' -d /ffp/bin/sickbeard ']'
  152. + git clone https://github.com/SiCKRAGETV/SiCKRAGE /ffp/bin/sickbeard
  153. Cloning into '/ffp/bin/sickbeard'...
  154. remote: Counting objects: 50250, done.
  155. remote: Total 50250 (delta 0), reused 0 (delta 0), pack-reused 50250
  156. Receiving objects: 100% (50250/50250), 43.62 MiB | 1.84 MiB/s, done.
  157. Resolving deltas: 100% (31800/31800), done.
  158. Checking connectivity... done.
  159. + mkdir -p -m 777 /i-data/md0/admin/configuration/sickbeard
  160. + sleep 2
  161. + '[' 0 == 1 ']'
  162. + '[' 0 == 1 ']'
  163. + '[' 1 == 1 ']'
  164. + '[' -d /i-data/md0/admin/configuration/nzbToMedia ']'
  165. + cd /i-data/md0/admin/configuration/nzbToMedia
  166. + git pull https://github.com/clinton-hall/nzbToMedia.git
  167. From https://github.com/clinton-hall/nzbToMedia
  168. * branch HEAD -> FETCH_HEAD
  169. Already up-to-date.
  170. + '[' 1 == 1 ']'
  171. + pgrep -f SABnzbd.py
  172. + '[' -f /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini ']'
  173. + PYTHON_EGG_CACHE=/tmp
  174. + /usr/bin/env python2 /ffp/bin/sabnzbd/SABnzbd.py -b 0 -d -f /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
  175. + '[' 1 == 1 ']'
  176. + '[' -f /i-data/md0/admin/configuration/couchpotato/couchpotato.pid ']'
  177. ++ /bin/cat /i-data/md0/admin/configuration/couchpotato/couchpotato.pid
  178. + Pid=5871
  179. + i=0
  180. + kill 5871
  181. + echo -n ' Waiting for couchpotato to shut down: '
  182. Waiting for couchpotato to shut down: + '[' -d /proc/5871 ']'
  183. + sleep 1
  184. + let i+=1
  185. + /bin/echo -n '1, '
  186. 1, + '[' 1 = 45 ']'
  187. + '[' -d /proc/5871 ']'
  188. + rm -f /i-data/md0/admin/configuration/couchpotato/couchpotato.pid
  189. + sleep 2
  190. + echo -n 'Starting couchpotato'
  191. Starting couchpotato+ /usr/bin/env python2 /ffp/bin/couchpotato/CouchPotato.py --daemon --data_dir /i-data/md0/admin/configuration/couchpotato --config /i-data/md0/admin/configuration/couchpotato/settings.conf --pid_file /i-data/md0/admin/configuration/couchpotato/couchpotato.pid
  192. + sleep 5
  193. + '[' 1 == 1 ']'
  194. + '[' -f /i-data/md0/admin/configuration/sickbeard/SickRage.pid ']'
  195. + sleep 2
  196. + echo -n 'Starting SickRage'
  197. Starting SickRage+ /usr/bin/env python2 /ffp/bin/sickbeard/SickBeard.py --datadir /i-data/md0/admin/configuration/sickbeard --config /i-data/md0/admin/configuration/sickbeard/config.ini -d --pidfile /i-data/md0/admin/configuration/sickbeard/SickRage.pid
  198. + sleep 5
  199. + '[' 0 == 1 ']'
  200. + echo 'Headphones not Installed'
  201. Headphones not Installed
  202. + '[' 0 == 1 ']'
  203. + echo 'Mylar not Installed'
  204. Mylar not Installed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement