Advertisement
Guest User

Untitled

a guest
Jul 1st, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 72.44 KB | None | 0 0
  1. args:
  2. app: shsd
  3. args: domain=DOMAIN&path=%2Fshsd&language=en
  4. force: false
  5. label: Self-Hosting Security Dashboard
  6. no_remove_on_failure: false
  7. ended_at: 2019-07-01 07:54:49.298331
  8. env:
  9. YNH_APP_ARG_DOMAIN: DOMAIN
  10. YNH_APP_ARG_LANGUAGE: en
  11. YNH_APP_ARG_PATH: /shsd
  12. YNH_APP_ID: shsd
  13. YNH_APP_INSTANCE_NAME: shsd
  14. YNH_APP_INSTANCE_NUMBER: '1'
  15. YNH_CWD: /var/cache/yunohost/from_file/shsd_ynh-6902a4e56df7ce7610dfc22b46bd0a821f003c39/scripts
  16. YNH_STDINFO: /tmp/tmptQKwXO/stdinfo
  17. YNH_STDRETURN: /tmp/tmpL3bxOT/stdreturn
  18. error: Ein unerwarteter Fehler ist aufgetreten
  19. operation: app_install
  20. related_to:
  21. - - app
  22. - shsd
  23. started_at: 2019-07-01 07:53:42.413076
  24. success: false
  25.  
  26. ============
  27.  
  28. 2019-07-01 09:53:42,420: INFO - Installing application shsd…
  29. 2019-07-01 09:53:42,643: DEBUG - Führe den Behfehl 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ARG_LANGUAGE=en YNH_STDINFO=/tmp/tmptQKwXO/stdinfo YNH_CWD=/var/cache/yunohost/from_file/shsd_ynh-6902a4e56df7ce7610dfc22b46bd0a821f003c39/scripts YNH_APP_INSTANCE_NAME=shsd YNH_STDRETURN=/tmp/tmpL3bxOT/stdreturn YNH_APP_ID=shsd YNH_APP_ARG_PATH=/shsd YNH_APP_ARG_DOMAIN=DOMAIN BASH_XTRACEFD=7 /bin/bash -x "./install" DOMAIN /shsd en shsd 7>&1' aus...
  30. 2019-07-01 09:53:42,644: DEBUG - About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ARG_LANGUAGE=en YNH_STDINFO=/tmp/tmptQKwXO/stdinfo YNH_CWD=/var/cache/yunohost/from_file/shsd_ynh-6902a4e56df7ce7610dfc22b46bd0a821f003c39/scripts YNH_APP_INSTANCE_NAME=shsd YNH_STDRETURN=/tmp/tmpL3bxOT/stdreturn YNH_APP_ID=shsd YNH_APP_ARG_PATH=/shsd YNH_APP_ARG_DOMAIN=DOMAIN BASH_XTRACEFD=7 /bin/bash -x "./install" DOMAIN /shsd en shsd 7>&1']'
  31. 2019-07-01 09:53:42,679: DEBUG - + source /usr/share/yunohost/helpers
  32. 2019-07-01 09:53:42,681: DEBUG - +++ run-parts --list /usr/share/yunohost/helpers.d
  33. 2019-07-01 09:53:42,681: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  34. 2019-07-01 09:53:42,682: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
  35. 2019-07-01 09:53:42,682: DEBUG - ++ . /usr/share/yunohost/helpers.d/backend
  36. 2019-07-01 09:53:42,682: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  37. 2019-07-01 09:53:42,683: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/debug ']'
  38. 2019-07-01 09:53:42,683: DEBUG - ++ . /usr/share/yunohost/helpers.d/debug
  39. 2019-07-01 09:53:42,683: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  40. 2019-07-01 09:53:42,684: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
  41. 2019-07-01 09:53:42,684: DEBUG - ++ . /usr/share/yunohost/helpers.d/filesystem
  42. 2019-07-01 09:53:42,684: DEBUG - +++ source /usr/share/yunohost/helpers.d/getopts
  43. 2019-07-01 09:53:42,685: DEBUG - +++ CAN_BIND=1
  44. 2019-07-01 09:53:42,685: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  45. 2019-07-01 09:53:42,685: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
  46. 2019-07-01 09:53:42,686: DEBUG - ++ . /usr/share/yunohost/helpers.d/getopts
  47. 2019-07-01 09:53:42,686: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  48. 2019-07-01 09:53:42,686: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
  49. 2019-07-01 09:53:42,686: DEBUG - ++ . /usr/share/yunohost/helpers.d/ip
  50. 2019-07-01 09:53:42,687: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  51. 2019-07-01 09:53:42,687: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
  52. 2019-07-01 09:53:42,687: DEBUG - ++ . /usr/share/yunohost/helpers.d/mysql
  53. 2019-07-01 09:53:42,688: DEBUG - +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
  54. 2019-07-01 09:53:42,788: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  55. 2019-07-01 09:53:42,789: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
  56. 2019-07-01 09:53:42,789: DEBUG - ++ . /usr/share/yunohost/helpers.d/network
  57. 2019-07-01 09:53:42,790: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  58. 2019-07-01 09:53:42,790: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
  59. 2019-07-01 09:53:42,790: DEBUG - ++ . /usr/share/yunohost/helpers.d/nodejs
  60. 2019-07-01 09:53:42,791: DEBUG - +++ n_install_dir=/opt/node_n
  61. 2019-07-01 09:53:42,791: DEBUG - +++ node_version_path=/opt/node_n/n/versions/node
  62. 2019-07-01 09:53:42,791: DEBUG - +++ export N_PREFIX=/opt/node_n
  63. 2019-07-01 09:53:42,792: DEBUG - +++ N_PREFIX=/opt/node_n
  64. 2019-07-01 09:53:42,792: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  65. 2019-07-01 09:53:42,792: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/package ']'
  66. 2019-07-01 09:53:42,793: DEBUG - ++ . /usr/share/yunohost/helpers.d/package
  67. 2019-07-01 09:53:42,793: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  68. 2019-07-01 09:53:42,793: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/print ']'
  69. 2019-07-01 09:53:42,793: DEBUG - ++ . /usr/share/yunohost/helpers.d/print
  70. 2019-07-01 09:53:42,794: DEBUG - +++ increment_progression=0
  71. 2019-07-01 09:53:42,794: DEBUG - +++ previous_weight=0
  72. 2019-07-01 09:53:42,794: DEBUG - ++++ date +%s
  73. 2019-07-01 09:53:42,795: DEBUG - +++ base_time=1561967622
  74. 2019-07-01 09:53:42,795: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  75. 2019-07-01 09:53:42,795: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/psql ']'
  76. 2019-07-01 09:53:42,796: DEBUG - ++ . /usr/share/yunohost/helpers.d/psql
  77. 2019-07-01 09:53:42,796: DEBUG - +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql
  78. 2019-07-01 09:53:42,796: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  79. 2019-07-01 09:53:42,797: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
  80. 2019-07-01 09:53:42,797: DEBUG - ++ . /usr/share/yunohost/helpers.d/setting
  81. 2019-07-01 09:53:42,797: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  82. 2019-07-01 09:53:42,797: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
  83. 2019-07-01 09:53:42,798: DEBUG - ++ . /usr/share/yunohost/helpers.d/string
  84. 2019-07-01 09:53:42,798: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  85. 2019-07-01 09:53:42,798: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/system ']'
  86. 2019-07-01 09:53:42,799: DEBUG - ++ . /usr/share/yunohost/helpers.d/system
  87. 2019-07-01 09:53:42,799: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  88. 2019-07-01 09:53:42,799: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
  89. 2019-07-01 09:53:42,800: DEBUG - ++ . /usr/share/yunohost/helpers.d/user
  90. 2019-07-01 09:53:42,800: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  91. 2019-07-01 09:53:42,800: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
  92. 2019-07-01 09:53:42,800: DEBUG - ++ . /usr/share/yunohost/helpers.d/utils
  93. 2019-07-01 09:53:42,801: DEBUG - + ynh_abort_if_errors
  94. 2019-07-01 09:53:42,801: DEBUG - + set -eu
  95. 2019-07-01 09:53:42,801: DEBUG - + trap ynh_exit_properly EXIT
  96. 2019-07-01 09:53:42,802: DEBUG - + domain=DOMAIN
  97. 2019-07-01 09:53:42,802: DEBUG - + path_url=/shsd
  98. 2019-07-01 09:53:42,802: DEBUG - + language=en
  99. 2019-07-01 09:53:42,802: DEBUG - + app=shsd
  100. 2019-07-01 09:53:42,803: DEBUG - + final_path=/var/www/shsd
  101. 2019-07-01 09:53:42,803: DEBUG - + test '!' -e /var/www/shsd
  102. 2019-07-01 09:53:42,803: DEBUG - + mkdir -p /var/lib/shsd
  103. 2019-07-01 09:53:42,804: DEBUG - ++ ynh_normalize_url_path /shsd
  104. 2019-07-01 09:53:42,804: DEBUG - ++ local legacy_args=p
  105. 2019-07-01 09:53:42,804: DEBUG - ++ args_array=([p]=path_url=)
  106. 2019-07-01 09:53:42,805: DEBUG - ++ declare -Ar args_array
  107. 2019-07-01 09:53:42,805: DEBUG - ++ local path_url
  108. 2019-07-01 09:53:42,805: DEBUG - ++ ynh_handle_getopts_args /shsd
  109. 2019-07-01 09:53:42,805: DEBUG - ++ set +x
  110. 2019-07-01 09:53:42,806: DEBUG - ++ echo '! Helper used in legacy mode !'
  111. 2019-07-01 09:53:42,806: DEBUG - ++ set +x
  112. 2019-07-01 09:53:42,806: DEBUG - ++ test -n /shsd
  113. 2019-07-01 09:53:42,807: DEBUG - ++ '[' / '!=' / ']'
  114. 2019-07-01 09:53:42,807: DEBUG - ++ '[' d == / ']'
  115. 2019-07-01 09:53:42,807: DEBUG - ++ echo /shsd
  116. 2019-07-01 09:53:42,807: DEBUG - + path_url=/shsd
  117. 2019-07-01 09:53:42,808: DEBUG - + ynh_webpath_available DOMAIN /shsd
  118. 2019-07-01 09:53:42,808: DEBUG - + local legacy_args=dp
  119. 2019-07-01 09:53:42,808: DEBUG - + args_array=([d]=domain= [p]=path_url=)
  120. 2019-07-01 09:53:42,809: DEBUG - + declare -Ar args_array
  121. 2019-07-01 09:53:42,809: DEBUG - + local domain
  122. 2019-07-01 09:53:42,809: DEBUG - + local path_url
  123. 2019-07-01 09:53:42,809: DEBUG - + ynh_handle_getopts_args DOMAIN /shsd
  124. 2019-07-01 09:53:42,810: DEBUG - + set +x
  125. 2019-07-01 09:53:42,810: DEBUG - + echo '! Helper used in legacy mode !'
  126. 2019-07-01 09:53:42,810: DEBUG - + set +x
  127. 2019-07-01 09:53:42,811: DEBUG - + sudo yunohost domain url-available DOMAIN /shsd
  128. 2019-07-01 09:53:43,613: DEBUG - True
  129. 2019-07-01 09:53:43,714: DEBUG - + ynh_webpath_register shsd DOMAIN /shsd
  130. 2019-07-01 09:53:43,715: DEBUG - + local legacy_args=adp
  131. 2019-07-01 09:53:43,715: DEBUG - + args_array=([a]=app= [d]=domain= [p]=path_url=)
  132. 2019-07-01 09:53:43,715: DEBUG - + declare -Ar args_array
  133. 2019-07-01 09:53:43,716: DEBUG - + local app
  134. 2019-07-01 09:53:43,716: DEBUG - + local domain
  135. 2019-07-01 09:53:43,716: DEBUG - + local path_url
  136. 2019-07-01 09:53:43,717: DEBUG - + ynh_handle_getopts_args shsd DOMAIN /shsd
  137. 2019-07-01 09:53:43,717: DEBUG - + set +x
  138. 2019-07-01 09:53:43,717: DEBUG - + echo '! Helper used in legacy mode !'
  139. 2019-07-01 09:53:43,718: DEBUG - + set +x
  140. 2019-07-01 09:53:43,718: DEBUG - + sudo yunohost app register-url shsd DOMAIN /shsd
  141. 2019-07-01 09:53:44,821: DEBUG - + ynh_app_setting_set shsd domain DOMAIN
  142. 2019-07-01 09:53:44,822: DEBUG - + local legacy_args=akv
  143. 2019-07-01 09:53:44,822: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
  144. 2019-07-01 09:53:44,823: DEBUG - + declare -Ar args_array
  145. 2019-07-01 09:53:44,823: DEBUG - + local app
  146. 2019-07-01 09:53:44,824: DEBUG - + local key
  147. 2019-07-01 09:53:44,824: DEBUG - + local value
  148. 2019-07-01 09:53:44,824: DEBUG - + ynh_handle_getopts_args shsd domain DOMAIN
  149. 2019-07-01 09:53:44,825: DEBUG - + set +x
  150. 2019-07-01 09:53:44,925: DEBUG - + echo '! Helper used in legacy mode !'
  151. 2019-07-01 09:53:44,926: DEBUG - + set +x
  152. 2019-07-01 09:53:44,926: DEBUG - + ynh_app_setting set shsd domain DOMAIN
  153. 2019-07-01 09:53:44,927: DEBUG - + ACTION=set
  154. 2019-07-01 09:53:44,927: DEBUG - + APP=shsd
  155. 2019-07-01 09:53:44,927: DEBUG - + KEY=domain
  156. 2019-07-01 09:53:44,928: DEBUG - + VALUE=DOMAIN
  157. 2019-07-01 09:53:44,928: DEBUG - + python -
  158. 2019-07-01 09:53:45,229: DEBUG - + ynh_app_setting_set shsd path /shsd
  159. 2019-07-01 09:53:45,230: DEBUG - + local legacy_args=akv
  160. 2019-07-01 09:53:45,230: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
  161. 2019-07-01 09:53:45,231: DEBUG - + declare -Ar args_array
  162. 2019-07-01 09:53:45,231: DEBUG - + local app
  163. 2019-07-01 09:53:45,232: DEBUG - + local key
  164. 2019-07-01 09:53:45,232: DEBUG - + local value
  165. 2019-07-01 09:53:45,232: DEBUG - + ynh_handle_getopts_args shsd path /shsd
  166. 2019-07-01 09:53:45,233: DEBUG - + set +x
  167. 2019-07-01 09:53:45,233: DEBUG - + echo '! Helper used in legacy mode !'
  168. 2019-07-01 09:53:45,233: DEBUG - + set +x
  169. 2019-07-01 09:53:45,233: DEBUG - + ynh_app_setting set shsd path /shsd
  170. 2019-07-01 09:53:45,234: DEBUG - + ACTION=set
  171. 2019-07-01 09:53:45,234: DEBUG - + APP=shsd
  172. 2019-07-01 09:53:45,234: DEBUG - + KEY=path
  173. 2019-07-01 09:53:45,235: DEBUG - + VALUE=/shsd
  174. 2019-07-01 09:53:45,235: DEBUG - + python -
  175. 2019-07-01 09:53:45,637: DEBUG - + ynh_app_setting_set shsd language en
  176. 2019-07-01 09:53:45,637: DEBUG - + local legacy_args=akv
  177. 2019-07-01 09:53:45,638: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
  178. 2019-07-01 09:53:45,638: DEBUG - + declare -Ar args_array
  179. 2019-07-01 09:53:45,638: DEBUG - + local app
  180. 2019-07-01 09:53:45,639: DEBUG - + local key
  181. 2019-07-01 09:53:45,639: DEBUG - + local value
  182. 2019-07-01 09:53:45,639: DEBUG - + ynh_handle_getopts_args shsd language en
  183. 2019-07-01 09:53:45,640: DEBUG - + set +x
  184. 2019-07-01 09:53:45,640: DEBUG - + echo '! Helper used in legacy mode !'
  185. 2019-07-01 09:53:45,641: DEBUG - + set +x
  186. 2019-07-01 09:53:45,641: DEBUG - + ynh_app_setting set shsd language en
  187. 2019-07-01 09:53:45,641: DEBUG - + ACTION=set
  188. 2019-07-01 09:53:45,642: DEBUG - + APP=shsd
  189. 2019-07-01 09:53:45,642: DEBUG - + KEY=language
  190. 2019-07-01 09:53:45,642: DEBUG - + VALUE=en
  191. 2019-07-01 09:53:45,643: DEBUG - + python -
  192. 2019-07-01 09:53:45,944: DEBUG - ++ ynh_find_port 8095
  193. 2019-07-01 09:53:45,945: DEBUG - ++ local legacy_args=p
  194. 2019-07-01 09:53:45,945: DEBUG - ++ args_array=([p]=port=)
  195. 2019-07-01 09:53:45,945: DEBUG - ++ declare -Ar args_array
  196. 2019-07-01 09:53:45,946: DEBUG - ++ local port
  197. 2019-07-01 09:53:45,946: DEBUG - ++ ynh_handle_getopts_args 8095
  198. 2019-07-01 09:53:45,946: DEBUG - ++ set +x
  199. 2019-07-01 09:53:45,946: DEBUG - ++ echo '! Helper used in legacy mode !'
  200. 2019-07-01 09:53:45,947: DEBUG - ++ set +x
  201. 2019-07-01 09:53:45,947: DEBUG - ++ test -n 8095
  202. 2019-07-01 09:53:45,947: DEBUG - ++ netcat -z 127.0.0.1 8095
  203. 2019-07-01 09:53:46,048: DEBUG - ++ echo 8095
  204. 2019-07-01 09:53:46,049: DEBUG - + port=8095
  205. 2019-07-01 09:53:46,049: DEBUG - + yunohost firewall allow --no-upnp TCP 8095
  206. 2019-07-01 09:53:59,282: DEBUG - The firewall has been reloaded
  207. 2019-07-01 09:53:59,282: DEBUG - opened_ports:
  208. 2019-07-01 09:53:59,283: DEBUG - - 22
  209. 2019-07-01 09:53:59,283: DEBUG - - 25
  210. 2019-07-01 09:53:59,283: DEBUG - - 53
  211. 2019-07-01 09:53:59,284: DEBUG - - 80
  212. 2019-07-01 09:53:59,284: DEBUG - - 139
  213. 2019-07-01 09:53:59,284: DEBUG - - 443
  214. 2019-07-01 09:53:59,285: DEBUG - - 445
  215. 2019-07-01 09:53:59,285: DEBUG - - 587
  216. 2019-07-01 09:53:59,285: DEBUG - - 993
  217. 2019-07-01 09:53:59,286: DEBUG - - 5222
  218. 2019-07-01 09:53:59,286: DEBUG - - 5269
  219. 2019-07-01 09:53:59,287: DEBUG - - 5353
  220. 2019-07-01 09:53:59,287: DEBUG - - 8095
  221. 2019-07-01 09:53:59,388: DEBUG - + ynh_app_setting_set shsd port 8095
  222. 2019-07-01 09:53:59,388: DEBUG - + local legacy_args=akv
  223. 2019-07-01 09:53:59,389: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
  224. 2019-07-01 09:53:59,389: DEBUG - + declare -Ar args_array
  225. 2019-07-01 09:53:59,390: DEBUG - + local app
  226. 2019-07-01 09:53:59,390: DEBUG - + local key
  227. 2019-07-01 09:53:59,390: DEBUG - + local value
  228. 2019-07-01 09:53:59,391: DEBUG - + ynh_handle_getopts_args shsd port 8095
  229. 2019-07-01 09:53:59,391: DEBUG - + set +x
  230. 2019-07-01 09:53:59,392: DEBUG - + echo '! Helper used in legacy mode !'
  231. 2019-07-01 09:53:59,392: DEBUG - + set +x
  232. 2019-07-01 09:53:59,392: DEBUG - + ynh_app_setting set shsd port 8095
  233. 2019-07-01 09:53:59,393: DEBUG - + ACTION=set
  234. 2019-07-01 09:53:59,393: DEBUG - + APP=shsd
  235. 2019-07-01 09:53:59,393: DEBUG - + KEY=port
  236. 2019-07-01 09:53:59,394: DEBUG - + VALUE=8095
  237. 2019-07-01 09:53:59,394: DEBUG - + python -
  238. 2019-07-01 09:53:59,695: DEBUG - + ynh_install_app_dependencies python3 python3-sqlalchemy python3-flask python3-geojson python3-geoip geoip-database-extra
  239. 2019-07-01 09:53:59,696: DEBUG - + local 'dependencies=python3 python3-sqlalchemy python3-flask python3-geojson python3-geoip geoip-database-extra'
  240. 2019-07-01 09:53:59,697: DEBUG - + local 'dependencies=python3, python3-sqlalchemy, python3-flask, python3-geojson, python3-geoip, geoip-database-extra'
  241. 2019-07-01 09:53:59,697: DEBUG - + local 'dependencies=python3, python3-sqlalchemy, python3-flask, python3-geojson, python3-geoip, geoip-database-extra'
  242. 2019-07-01 09:53:59,697: DEBUG - + local manifest_path=../manifest.json
  243. 2019-07-01 09:53:59,698: DEBUG - + '[' '!' -e ../manifest.json ']'
  244. 2019-07-01 09:53:59,698: DEBUG - ++ grep '\"version\": ' ../manifest.json
  245. 2019-07-01 09:53:59,698: DEBUG - ++ cut -d '"' -f 4
  246. 2019-07-01 09:53:59,799: DEBUG - + local version=0.1.3~ynh1
  247. 2019-07-01 09:53:59,800: DEBUG - + '[' 10 -eq 0 ']'
  248. 2019-07-01 09:53:59,800: DEBUG - + local dep_app=shsd
  249. 2019-07-01 09:53:59,800: DEBUG - + cat
  250. 2019-07-01 09:53:59,801: DEBUG - + ynh_package_install_from_equivs /tmp/shsd-ynh-deps.control
  251. 2019-07-01 09:53:59,801: DEBUG - + local controlfile=/tmp/shsd-ynh-deps.control
  252. 2019-07-01 09:53:59,802: DEBUG - ++ grep '^Package: ' /tmp/shsd-ynh-deps.control
  253. 2019-07-01 09:53:59,802: DEBUG - ++ cut '-d ' -f 2
  254. 2019-07-01 09:53:59,802: DEBUG - + local pkgname=shsd-ynh-deps
  255. 2019-07-01 09:53:59,803: DEBUG - ++ grep '^Version: ' /tmp/shsd-ynh-deps.control
  256. 2019-07-01 09:53:59,803: DEBUG - ++ cut '-d ' -f 2
  257. 2019-07-01 09:53:59,803: DEBUG - + local pkgversion=0.1.3~ynh1
  258. 2019-07-01 09:53:59,804: DEBUG - + [[ -z shsd-ynh-deps ]]
  259. 2019-07-01 09:53:59,804: DEBUG - + [[ -z 0.1.3~ynh1 ]]
  260. 2019-07-01 09:53:59,804: DEBUG - + ynh_package_update
  261. 2019-07-01 09:53:59,805: DEBUG - + ynh_apt update
  262. 2019-07-01 09:53:59,805: DEBUG - + ynh_wait_dpkg_free
  263. 2019-07-01 09:53:59,805: DEBUG - + local try
  264. 2019-07-01 09:53:59,805: DEBUG - ++ seq 1 17
  265. 2019-07-01 09:53:59,806: DEBUG - + for try in `seq 1 17`
  266. 2019-07-01 09:53:59,806: DEBUG - + sudo lsof /var/lib/dpkg/lock
  267. 2019-07-01 09:54:00,308: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/
  268. 2019-07-01 09:54:00,308: DEBUG - ++ ls -1 /var/lib/dpkg/updates/
  269. 2019-07-01 09:54:00,308: DEBUG - + read dpkg_file
  270. 2019-07-01 09:54:00,309: DEBUG - + echo ''
  271. 2019-07-01 09:54:00,309: DEBUG - + grep -Pq '^[[:digit:]]+$'
  272. 2019-07-01 09:54:00,309: DEBUG - + read dpkg_file
  273. 2019-07-01 09:54:00,310: DEBUG - + return 0
  274. 2019-07-01 09:54:00,310: DEBUG - + DEBIAN_FRONTEND=noninteractive
  275. 2019-07-01 09:54:00,310: DEBUG - + apt-get -y update
  276. 2019-07-01 09:54:00,712: DEBUG - Hit:1 http://security.debian.org stretch/updates InRelease
  277. 2019-07-01 09:54:00,712: DEBUG - Ign:2 http://ftp.debian.org/debian stretch InRelease
  278. 2019-07-01 09:54:00,713: DEBUG - Hit:3 http://ftp.debian.org/debian stretch-updates InRelease
  279. 2019-07-01 09:54:00,713: DEBUG - Hit:4 http://ftp.debian.org/debian stretch Release
  280. 2019-07-01 09:54:00,713: DEBUG - Hit:5 http://forge.yunohost.org/debian stretch InRelease
  281. 2019-07-01 09:54:00,714: DEBUG - Hit:6 http://fuzon.co.uk/meveric all InRelease
  282. 2019-07-01 09:54:05,124: DEBUG - Reading package lists...
  283. 2019-07-01 09:54:05,225: DEBUG - ++ mktemp -d
  284. 2019-07-01 09:54:05,225: DEBUG - + local TMPDIR=/tmp/tmp.WXMBLeXvQJ
  285. 2019-07-01 09:54:05,226: DEBUG - + echo 10
  286. 2019-07-01 09:54:05,226: DEBUG - + ynh_wait_dpkg_free
  287. 2019-07-01 09:54:05,226: DEBUG - + local try
  288. 2019-07-01 09:54:05,227: DEBUG - ++ seq 1 17
  289. 2019-07-01 09:54:05,227: DEBUG - + for try in `seq 1 17`
  290. 2019-07-01 09:54:05,227: DEBUG - + sudo lsof /var/lib/dpkg/lock
  291. 2019-07-01 09:54:05,629: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/
  292. 2019-07-01 09:54:05,630: DEBUG - ++ ls -1 /var/lib/dpkg/updates/
  293. 2019-07-01 09:54:05,630: DEBUG - + read dpkg_file
  294. 2019-07-01 09:54:05,630: DEBUG - + echo ''
  295. 2019-07-01 09:54:05,631: DEBUG - + grep -Pq '^[[:digit:]]+$'
  296. 2019-07-01 09:54:05,631: DEBUG - + read dpkg_file
  297. 2019-07-01 09:54:05,632: DEBUG - + return 0
  298. 2019-07-01 09:54:05,632: DEBUG - + cp /tmp/shsd-ynh-deps.control /tmp/tmp.WXMBLeXvQJ/control
  299. 2019-07-01 09:54:05,733: DEBUG - + cd /tmp/tmp.WXMBLeXvQJ
  300. 2019-07-01 09:54:05,733: DEBUG - + equivs-build ./control
  301. 2019-07-01 09:54:08,240: DEBUG - + dpkg --force-depends -i ./shsd-ynh-deps_0.1.3~ynh1_all.deb
  302. 2019-07-01 09:54:08,441: DEBUG - Selecting previously unselected package shsd-ynh-deps.
  303. 2019-07-01 09:54:08,542: DEBUG - (Reading database ... 46007 files and directories currently installed.)
  304. 2019-07-01 09:54:08,543: DEBUG - Preparing to unpack .../shsd-ynh-deps_0.1.3~ynh1_all.deb ...
  305. 2019-07-01 09:54:08,543: DEBUG - Unpacking shsd-ynh-deps (0.1.3~ynh1) ...
  306. 2019-07-01 09:54:08,744: DEBUG - dpkg: shsd-ynh-deps: dependency problems, but configuring anyway as you requested:
  307. 2019-07-01 09:54:08,744: DEBUG - shsd-ynh-deps depends on python3-sqlalchemy; however:
  308. 2019-07-01 09:54:08,744: DEBUG - Package python3-sqlalchemy is not installed.
  309. 2019-07-01 09:54:08,745: DEBUG - shsd-ynh-deps depends on python3-flask; however:
  310. 2019-07-01 09:54:08,745: DEBUG - Package python3-flask is not installed.
  311. 2019-07-01 09:54:08,745: DEBUG - shsd-ynh-deps depends on python3-geojson; however:
  312. 2019-07-01 09:54:08,746: DEBUG - Package python3-geojson is not installed.
  313. 2019-07-01 09:54:08,746: DEBUG - shsd-ynh-deps depends on python3-geoip; however:
  314. 2019-07-01 09:54:08,746: DEBUG - Package python3-geoip is not installed.
  315. 2019-07-01 09:54:08,746: DEBUG - shsd-ynh-deps depends on geoip-database-extra; however:
  316. 2019-07-01 09:54:08,747: DEBUG - Package geoip-database-extra is not installed.
  317. 2019-07-01 09:54:08,747: DEBUG -
  318. 2019-07-01 09:54:08,747: DEBUG - Setting up shsd-ynh-deps (0.1.3~ynh1) ...
  319. 2019-07-01 09:54:08,948: DEBUG - + ynh_package_install -f
  320. 2019-07-01 09:54:08,949: DEBUG - + ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
  321. 2019-07-01 09:54:08,949: DEBUG - + ynh_wait_dpkg_free
  322. 2019-07-01 09:54:08,949: DEBUG - + local try
  323. 2019-07-01 09:54:08,950: DEBUG - ++ seq 1 17
  324. 2019-07-01 09:54:08,950: DEBUG - + for try in `seq 1 17`
  325. 2019-07-01 09:54:08,950: DEBUG - + sudo lsof /var/lib/dpkg/lock
  326. 2019-07-01 09:54:09,352: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/
  327. 2019-07-01 09:54:09,352: DEBUG - ++ ls -1 /var/lib/dpkg/updates/
  328. 2019-07-01 09:54:09,352: DEBUG - + read dpkg_file
  329. 2019-07-01 09:54:09,353: DEBUG - + echo ''
  330. 2019-07-01 09:54:09,353: DEBUG - + grep -Pq '^[[:digit:]]+$'
  331. 2019-07-01 09:54:09,353: DEBUG - + read dpkg_file
  332. 2019-07-01 09:54:09,354: DEBUG - + return 0
  333. 2019-07-01 09:54:09,354: DEBUG - + DEBIAN_FRONTEND=noninteractive
  334. 2019-07-01 09:54:09,354: DEBUG - + apt-get -y --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
  335. 2019-07-01 09:54:10,157: DEBUG - Reading package lists...
  336. 2019-07-01 09:54:10,659: DEBUG - Building dependency tree...
  337. 2019-07-01 09:54:10,660: DEBUG - Reading state information...
  338. 2019-07-01 09:54:11,161: DEBUG - Correcting dependencies... Done
  339. 2019-07-01 09:54:11,864: DEBUG - The following additional packages will be installed:
  340. 2019-07-01 09:54:11,865: DEBUG - geoip-database geoip-database-extra libjs-jquery python3-click
  341. 2019-07-01 09:54:11,865: DEBUG - python3-colorama python3-flask python3-geoip python3-geojson
  342. 2019-07-01 09:54:11,866: DEBUG - python3-itsdangerous python3-jinja2 python3-markupsafe python3-sqlalchemy
  343. 2019-07-01 09:54:11,866: DEBUG - python3-werkzeug
  344. 2019-07-01 09:54:11,866: DEBUG - Suggested packages:
  345. 2019-07-01 09:54:11,867: DEBUG - python-flask-doc python-jinja2-doc python-sqlalchemy-doc python3-psycopg2
  346. 2019-07-01 09:54:11,867: DEBUG - python3-mysqldb python3-fdb ipython3 python3-lxml python-werkzeug-doc
  347. 2019-07-01 09:54:11,867: DEBUG - Recommended packages:
  348. 2019-07-01 09:54:11,868: DEBUG - python3-blinker python3-simplejson python3-openssl python3-pyinotify
  349. 2019-07-01 09:54:11,968: DEBUG - The following NEW packages will be installed:
  350. 2019-07-01 09:54:11,969: DEBUG - geoip-database geoip-database-extra libjs-jquery python3-click
  351. 2019-07-01 09:54:11,969: DEBUG - python3-colorama python3-flask python3-geoip python3-geojson
  352. 2019-07-01 09:54:11,970: DEBUG - python3-itsdangerous python3-jinja2 python3-markupsafe python3-sqlalchemy
  353. 2019-07-01 09:54:11,970: DEBUG - python3-werkzeug
  354. 2019-07-01 09:54:12,070: DEBUG - 0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
  355. 2019-07-01 09:54:12,071: DEBUG - Need to get 15.4 MB of archives.
  356. 2019-07-01 09:54:12,071: DEBUG - After this operation, 39.6 MB of additional disk space will be used.
  357. 2019-07-01 09:54:12,071: DEBUG - Get:1 http://ftp.debian.org/debian stretch/main armhf geoip-database all 20170512-1 [2,112 kB]
  358. 2019-07-01 09:54:12,473: DEBUG - Get:2 http://ftp.debian.org/debian stretch/main armhf geoip-database-extra all 20170512-1 [12.1 MB]
  359. 2019-07-01 09:54:14,377: DEBUG - Get:3 http://ftp.debian.org/debian stretch/main armhf libjs-jquery all 3.1.1-2+deb9u1 [154 kB]
  360. 2019-07-01 09:54:14,377: DEBUG - Get:4 http://ftp.debian.org/debian stretch/main armhf python3-colorama all 0.3.7-1 [18.1 kB]
  361. 2019-07-01 09:54:14,478: DEBUG - Get:5 http://ftp.debian.org/debian stretch/main armhf python3-click all 6.6-1 [56.2 kB]
  362. 2019-07-01 09:54:14,478: DEBUG - Get:6 http://ftp.debian.org/debian stretch/main armhf python3-itsdangerous all 0.24+dfsg1-2 [13.0 kB]
  363. 2019-07-01 09:54:14,479: DEBUG - Get:7 http://ftp.debian.org/debian stretch/main armhf python3-markupsafe armhf 0.23-3 [14.5 kB]
  364. 2019-07-01 09:54:14,479: DEBUG - Get:8 http://ftp.debian.org/debian stretch/main armhf python3-jinja2 all 2.8-1 [105 kB]
  365. 2019-07-01 09:54:14,479: DEBUG - Get:9 http://ftp.debian.org/debian stretch/main armhf python3-werkzeug all 0.11.15+dfsg1-1 [173 kB]
  366. 2019-07-01 09:54:14,480: DEBUG - Get:10 http://ftp.debian.org/debian stretch/main armhf python3-flask all 0.12.1-1 [62.4 kB]
  367. 2019-07-01 09:54:14,480: DEBUG - Get:11 http://ftp.debian.org/debian stretch/main armhf python3-geoip armhf 1.3.2-1+b2 [18.1 kB]
  368. 2019-07-01 09:54:14,480: DEBUG - Get:12 http://ftp.debian.org/debian stretch/main armhf python3-geojson all 1.3.1-1 [13.5 kB]
  369. 2019-07-01 09:54:14,481: DEBUG - Get:13 http://ftp.debian.org/debian stretch/main armhf python3-sqlalchemy all 1.0.15+ds1-1 [645 kB]
  370. 2019-07-01 09:54:15,684: DEBUG - Fetched 15.4 MB in 2s (5,890 kB/s)
  371. 2019-07-01 09:54:15,785: DEBUG - Selecting previously unselected package geoip-database.
  372. 2019-07-01 09:54:15,785: DEBUG - (Reading database ...
  373. (Reading database ... 5%
  374. (Reading database ... 10%
  375. (Reading database ... 15%
  376. (Reading database ... 20%
  377. (Reading database ... 25%
  378. (Reading database ... 30%
  379. (Reading database ... 35%
  380. (Reading database ... 40%
  381. (Reading database ... 45%
  382. (Reading database ... 50%
  383. (Reading database ... 55%
  384. (Reading database ... 60%
  385. (Reading database ... 65%
  386. (Reading database ... 70%
  387. (Reading database ... 75%
  388. (Reading database ... 80%
  389. (Reading database ... 85%
  390. (Reading database ... 90%
  391. (Reading database ... 95%
  392. (Reading database ... 100%
  393. (Reading database ... 46011 files and directories currently installed.)
  394. 2019-07-01 09:54:15,886: DEBUG - Preparing to unpack .../00-geoip-database_20170512-1_all.deb ...
  395. 2019-07-01 09:54:15,887: DEBUG - Unpacking geoip-database (20170512-1) ...
  396. 2019-07-01 09:54:16,689: DEBUG - Selecting previously unselected package geoip-database-extra.
  397. 2019-07-01 09:54:16,690: DEBUG - Preparing to unpack .../01-geoip-database-extra_20170512-1_all.deb ...
  398. 2019-07-01 09:54:16,791: DEBUG - Unpacking geoip-database-extra (20170512-1) ...
  399. 2019-07-01 09:54:19,298: DEBUG - Selecting previously unselected package libjs-jquery.
  400. 2019-07-01 09:54:19,299: DEBUG - Preparing to unpack .../02-libjs-jquery_3.1.1-2+deb9u1_all.deb ...
  401. 2019-07-01 09:54:19,299: DEBUG - Unpacking libjs-jquery (3.1.1-2+deb9u1) ...
  402. 2019-07-01 09:54:19,700: DEBUG - Selecting previously unselected package python3-colorama.
  403. 2019-07-01 09:54:19,802: DEBUG - Preparing to unpack .../03-python3-colorama_0.3.7-1_all.deb ...
  404. 2019-07-01 09:54:19,802: DEBUG - Unpacking python3-colorama (0.3.7-1) ...
  405. 2019-07-01 09:54:20,103: DEBUG - Selecting previously unselected package python3-click.
  406. 2019-07-01 09:54:20,205: DEBUG - Preparing to unpack .../04-python3-click_6.6-1_all.deb ...
  407. 2019-07-01 09:54:20,205: DEBUG - Unpacking python3-click (6.6-1) ...
  408. 2019-07-01 09:54:20,506: DEBUG - Selecting previously unselected package python3-itsdangerous.
  409. 2019-07-01 09:54:20,507: DEBUG - Preparing to unpack .../05-python3-itsdangerous_0.24+dfsg1-2_all.deb ...
  410. 2019-07-01 09:54:20,607: DEBUG - Unpacking python3-itsdangerous (0.24+dfsg1-2) ...
  411. 2019-07-01 09:54:20,909: DEBUG - Selecting previously unselected package python3-markupsafe.
  412. 2019-07-01 09:54:20,909: DEBUG - Preparing to unpack .../06-python3-markupsafe_0.23-3_armhf.deb ...
  413. 2019-07-01 09:54:21,010: DEBUG - Unpacking python3-markupsafe (0.23-3) ...
  414. 2019-07-01 09:54:21,311: DEBUG - Selecting previously unselected package python3-jinja2.
  415. 2019-07-01 09:54:21,311: DEBUG - Preparing to unpack .../07-python3-jinja2_2.8-1_all.deb ...
  416. 2019-07-01 09:54:21,412: DEBUG - Unpacking python3-jinja2 (2.8-1) ...
  417. 2019-07-01 09:54:21,813: DEBUG - Selecting previously unselected package python3-werkzeug.
  418. 2019-07-01 09:54:21,814: DEBUG - Preparing to unpack .../08-python3-werkzeug_0.11.15+dfsg1-1_all.deb ...
  419. 2019-07-01 09:54:21,915: DEBUG - Unpacking python3-werkzeug (0.11.15+dfsg1-1) ...
  420. 2019-07-01 09:54:22,316: DEBUG - Selecting previously unselected package python3-flask.
  421. 2019-07-01 09:54:22,317: DEBUG - Preparing to unpack .../09-python3-flask_0.12.1-1_all.deb ...
  422. 2019-07-01 09:54:22,317: DEBUG - Unpacking python3-flask (0.12.1-1) ...
  423. 2019-07-01 09:54:22,718: DEBUG - Selecting previously unselected package python3-geoip.
  424. 2019-07-01 09:54:22,719: DEBUG - Preparing to unpack .../10-python3-geoip_1.3.2-1+b2_armhf.deb ...
  425. 2019-07-01 09:54:22,719: DEBUG - Unpacking python3-geoip (1.3.2-1+b2) ...
  426. 2019-07-01 09:54:23,020: DEBUG - Selecting previously unselected package python3-geojson.
  427. 2019-07-01 09:54:23,021: DEBUG - Preparing to unpack .../11-python3-geojson_1.3.1-1_all.deb ...
  428. 2019-07-01 09:54:23,121: DEBUG - Unpacking python3-geojson (1.3.1-1) ...
  429. 2019-07-01 09:54:23,422: DEBUG - Selecting previously unselected package python3-sqlalchemy.
  430. 2019-07-01 09:54:23,423: DEBUG - Preparing to unpack .../12-python3-sqlalchemy_1.0.15+ds1-1_all.deb ...
  431. 2019-07-01 09:54:23,523: DEBUG - Unpacking python3-sqlalchemy (1.0.15+ds1-1) ...
  432. 2019-07-01 09:54:24,125: DEBUG - Setting up libjs-jquery (3.1.1-2+deb9u1) ...
  433. 2019-07-01 09:54:24,326: DEBUG - Setting up python3-werkzeug (0.11.15+dfsg1-1) ...
  434. 2019-07-01 09:54:25,229: DEBUG - Setting up geoip-database-extra (20170512-1) ...
  435. 2019-07-01 09:54:25,330: DEBUG - Setting up python3-sqlalchemy (1.0.15+ds1-1) ...
  436. 2019-07-01 09:54:27,335: DEBUG - Setting up geoip-database (20170512-1) ...
  437. 2019-07-01 09:54:27,436: DEBUG - Setting up python3-geoip (1.3.2-1+b2) ...
  438. 2019-07-01 09:54:27,637: DEBUG - Setting up python3-colorama (0.3.7-1) ...
  439. 2019-07-01 09:54:28,239: DEBUG - Setting up python3-geojson (1.3.1-1) ...
  440. 2019-07-01 09:54:28,841: DEBUG - Setting up python3-markupsafe (0.23-3) ...
  441. 2019-07-01 09:54:29,544: DEBUG - Setting up python3-jinja2 (2.8-1) ...
  442. 2019-07-01 09:54:30,346: DEBUG - Setting up python3-itsdangerous (0.24+dfsg1-2) ...
  443. 2019-07-01 09:54:30,848: DEBUG - Setting up python3-click (6.6-1) ...
  444. 2019-07-01 09:54:31,550: DEBUG - Setting up python3-flask (0.12.1-1) ...
  445. 2019-07-01 09:54:32,854: DEBUG - + [[ -n /tmp/tmp.WXMBLeXvQJ ]]
  446. 2019-07-01 09:54:32,854: DEBUG - + rm -rf /tmp/tmp.WXMBLeXvQJ
  447. 2019-07-01 09:54:32,855: DEBUG - + ynh_package_is_installed shsd-ynh-deps
  448. 2019-07-01 09:54:32,855: DEBUG - + local legacy_args=p
  449. 2019-07-01 09:54:32,855: DEBUG - + args_array=([p]=package=)
  450. 2019-07-01 09:54:32,856: DEBUG - + declare -Ar args_array
  451. 2019-07-01 09:54:32,856: DEBUG - + local package
  452. 2019-07-01 09:54:32,857: DEBUG - + ynh_handle_getopts_args shsd-ynh-deps
  453. 2019-07-01 09:54:32,857: DEBUG - + set +x
  454. 2019-07-01 09:54:32,857: DEBUG - + echo '! Helper used in legacy mode !'
  455. 2019-07-01 09:54:32,857: DEBUG - + set +x
  456. 2019-07-01 09:54:32,858: DEBUG - + ynh_wait_dpkg_free
  457. 2019-07-01 09:54:32,858: DEBUG - + local try
  458. 2019-07-01 09:54:32,858: DEBUG - ++ seq 1 17
  459. 2019-07-01 09:54:32,859: DEBUG - + for try in `seq 1 17`
  460. 2019-07-01 09:54:32,859: DEBUG - + sudo lsof /var/lib/dpkg/lock
  461. 2019-07-01 09:54:33,361: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/
  462. 2019-07-01 09:54:33,362: DEBUG - ++ ls -1 /var/lib/dpkg/updates/
  463. 2019-07-01 09:54:33,362: DEBUG - + read dpkg_file
  464. 2019-07-01 09:54:33,362: DEBUG - + echo ''
  465. 2019-07-01 09:54:33,362: DEBUG - + grep -Pq '^[[:digit:]]+$'
  466. 2019-07-01 09:54:33,363: DEBUG - + read dpkg_file
  467. 2019-07-01 09:54:33,363: DEBUG - + return 0
  468. 2019-07-01 09:54:33,363: DEBUG - + dpkg-query -W -f '${Status}' shsd-ynh-deps
  469. 2019-07-01 09:54:33,364: DEBUG - + grep -c 'ok installed'
  470. 2019-07-01 09:54:33,464: DEBUG - + rm /tmp/shsd-ynh-deps.control
  471. 2019-07-01 09:54:33,465: DEBUG - + ynh_app_setting_set --app=shsd --key=apt_dependencies '--value=python3, python3-sqlalchemy, python3-flask, python3-geojson, python3-geoip, geoip-database-extra'
  472. 2019-07-01 09:54:33,465: DEBUG - + local legacy_args=akv
  473. 2019-07-01 09:54:33,465: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
  474. 2019-07-01 09:54:33,466: DEBUG - + declare -Ar args_array
  475. 2019-07-01 09:54:33,466: DEBUG - + local app
  476. 2019-07-01 09:54:33,466: DEBUG - + local key
  477. 2019-07-01 09:54:33,467: DEBUG - + local value
  478. 2019-07-01 09:54:33,467: DEBUG - + ynh_handle_getopts_args --app=shsd --key=apt_dependencies '--value=python3, python3-sqlalchemy, python3-flask, python3-geojson, python3-geoip, geoip-database-extra'
  479. 2019-07-01 09:54:33,467: DEBUG - + set +x
  480. 2019-07-01 09:54:33,468: DEBUG - + ynh_app_setting set shsd apt_dependencies 'python3, python3-sqlalchemy, python3-flask, python3-geojson, python3-geoip, geoip-database-extra'
  481. 2019-07-01 09:54:33,468: DEBUG - + ACTION=set
  482. 2019-07-01 09:54:33,468: DEBUG - + APP=shsd
  483. 2019-07-01 09:54:33,469: DEBUG - + KEY=apt_dependencies
  484. 2019-07-01 09:54:33,469: DEBUG - + VALUE='python3, python3-sqlalchemy, python3-flask, python3-geojson, python3-geoip, geoip-database-extra'
  485. 2019-07-01 09:54:33,469: DEBUG - + python -
  486. 2019-07-01 09:54:33,770: DEBUG - + ynh_app_setting_set shsd final_path /var/www/shsd
  487. 2019-07-01 09:54:33,771: DEBUG - + local legacy_args=akv
  488. 2019-07-01 09:54:33,771: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
  489. 2019-07-01 09:54:33,772: DEBUG - + declare -Ar args_array
  490. 2019-07-01 09:54:33,772: DEBUG - + local app
  491. 2019-07-01 09:54:33,772: DEBUG - + local key
  492. 2019-07-01 09:54:33,772: DEBUG - + local value
  493. 2019-07-01 09:54:33,773: DEBUG - + ynh_handle_getopts_args shsd final_path /var/www/shsd
  494. 2019-07-01 09:54:33,773: DEBUG - + set +x
  495. 2019-07-01 09:54:33,773: DEBUG - + echo '! Helper used in legacy mode !'
  496. 2019-07-01 09:54:33,774: DEBUG - + set +x
  497. 2019-07-01 09:54:33,774: DEBUG - + ynh_app_setting set shsd final_path /var/www/shsd
  498. 2019-07-01 09:54:33,774: DEBUG - + ACTION=set
  499. 2019-07-01 09:54:33,774: DEBUG - + APP=shsd
  500. 2019-07-01 09:54:33,775: DEBUG - + KEY=final_path
  501. 2019-07-01 09:54:33,775: DEBUG - + VALUE=/var/www/shsd
  502. 2019-07-01 09:54:33,775: DEBUG - + python -
  503. 2019-07-01 09:54:34,076: DEBUG - + mkdir -p /var/www/shsd
  504. 2019-07-01 09:54:34,077: WARNING - --2019-07-01 09:54:34-- https://github.com/dynamid/shsd/archive/master.zip
  505. 2019-07-01 09:54:34,080: DEBUG - + wget https://github.com/dynamid/shsd/archive/master.zip -O /tmp/shsd.zip
  506. 2019-07-01 09:54:34,180: WARNING - Resolving github.com (github.com)... 140.82.118.3
  507. 2019-07-01 09:54:34,181: WARNING - Connecting to github.com (github.com)|140.82.118.3|:443... connected.
  508. 2019-07-01 09:54:34,482: WARNING - HTTP request sent, awaiting response... 302 Found
  509. 2019-07-01 09:54:34,483: WARNING - Location: https://codeload.github.com/dynamid/shsd/zip/master [following]
  510. 2019-07-01 09:54:34,484: WARNING - --2019-07-01 09:54:34-- https://codeload.github.com/dynamid/shsd/zip/master
  511. 2019-07-01 09:54:34,484: WARNING - Resolving codeload.github.com (codeload.github.com)... 192.30.253.120
  512. 2019-07-01 09:54:34,585: WARNING - Connecting to codeload.github.com (codeload.github.com)|192.30.253.120|:443... connected.
  513. 2019-07-01 09:54:34,886: WARNING - HTTP request sent, awaiting response... 200 OK
  514. 2019-07-01 09:54:34,887: WARNING - Length: unspecified [application/zip]
  515. 2019-07-01 09:54:34,888: WARNING - Saving to: ‘/tmp/shsd.zip’
  516. 2019-07-01 09:54:34,888: WARNING -
  517. 2019-07-01 09:54:35,190: WARNING - 0K .......... .......... .......... .......... .......... 234K
  518. 2019-07-01 09:54:35,191: WARNING - 50K .......... .......... .......... .......... .......... 535K
  519. 2019-07-01 09:54:35,291: WARNING - 100K .......... .......... .......... .......... .......... 11.0M
  520. 2019-07-01 09:54:35,292: WARNING - 150K .......... .......... .......... .......... .......... 523K
  521. 2019-07-01 09:54:35,393: WARNING - 200K .......... .......... .......... .......... .......... 10.9M
  522. 2019-07-01 09:54:35,394: WARNING - 250K .......... .......... .......... .......... .......... 12.5M
  523. 2019-07-01 09:54:35,394: WARNING - 300K .......... .......... .......... .......... .......... 1.30M
  524. 2019-07-01 09:54:35,495: DEBUG - + unzip -u /tmp/shsd.zip -d /tmp
  525. 2019-07-01 09:54:35,496: WARNING - 350K .......... .......... .......... .......... ... 734K=0.5s
  526. 2019-07-01 09:54:35,497: DEBUG - Archive: /tmp/shsd.zip
  527. 2019-07-01 09:54:35,497: WARNING -
  528. 2019-07-01 09:54:35,498: DEBUG - 4dd744a96bf11cb303ff1f7180790c1536580aa2
  529. 2019-07-01 09:54:35,499: WARNING - 2019-07-01 09:54:35 (768 KB/s) - ‘/tmp/shsd.zip’ saved [403174]
  530. 2019-07-01 09:54:35,499: DEBUG - creating: /tmp/shsd-master/
  531. 2019-07-01 09:54:35,500: WARNING -
  532. 2019-07-01 09:54:35,500: DEBUG - inflating: /tmp/shsd-master/.gitignore
  533. 2019-07-01 09:54:35,501: DEBUG - inflating: /tmp/shsd-master/INSTALL.md
  534. 2019-07-01 09:54:35,501: DEBUG - inflating: /tmp/shsd-master/LICENSE
  535. 2019-07-01 09:54:35,502: DEBUG - inflating: /tmp/shsd-master/README.md
  536. 2019-07-01 09:54:35,502: DEBUG - creating: /tmp/shsd-master/core/
  537. 2019-07-01 09:54:35,502: DEBUG - inflating: /tmp/shsd-master/core/daemon.py
  538. 2019-07-01 09:54:35,503: DEBUG - inflating: /tmp/shsd-master/core/database.py
  539. 2019-07-01 09:54:35,503: DEBUG - inflating: /tmp/shsd-master/core/shsd.py
  540. 2019-07-01 09:54:35,503: DEBUG - creating: /tmp/shsd-master/core/static/
  541. 2019-07-01 09:54:35,504: DEBUG - inflating: /tmp/shsd-master/core/static/Functions.js
  542. 2019-07-01 09:54:35,504: DEBUG - extracting: /tmp/shsd-master/core/static/logo.png
  543. 2019-07-01 09:54:35,504: DEBUG - inflating: /tmp/shsd-master/core/static/style.css
  544. 2019-07-01 09:54:35,505: DEBUG - creating: /tmp/shsd-master/core/templates/
  545. 2019-07-01 09:54:35,505: DEBUG - inflating: /tmp/shsd-master/core/templates/about.html
  546. 2019-07-01 09:54:35,505: DEBUG - inflating: /tmp/shsd-master/core/templates/details.html
  547. 2019-07-01 09:54:35,506: DEBUG - inflating: /tmp/shsd-master/core/templates/index.html
  548. 2019-07-01 09:54:35,506: DEBUG - creating: /tmp/shsd-master/doc/
  549. 2019-07-01 09:54:35,506: DEBUG - inflating: /tmp/shsd-master/doc/apache.conf
  550. 2019-07-01 09:54:35,507: DEBUG - inflating: /tmp/shsd-master/doc/screenshot.png
  551. 2019-07-01 09:54:35,507: DEBUG - inflating: /tmp/shsd-master/doc/shsd.wsgi
  552. 2019-07-01 09:54:35,508: DEBUG - extracting: /tmp/shsd-master/requirements.txt
  553. 2019-07-01 09:54:35,508: DEBUG - inflating: /tmp/shsd-master/shsd.conf
  554. 2019-07-01 09:54:35,508: DEBUG - creating: /tmp/shsd-master/workers/
  555. 2019-07-01 09:54:35,508: DEBUG - creating: /tmp/shsd-master/workers/devices/
  556. 2019-07-01 09:54:35,509: DEBUG - inflating: /tmp/shsd-master/workers/devices/arpdevices.py
  557. 2019-07-01 09:54:35,509: DEBUG - creating: /tmp/shsd-master/workers/loggers/
  558. 2019-07-01 09:54:35,509: DEBUG - inflating: /tmp/shsd-master/workers/loggers/auth-nginx.py
  559. 2019-07-01 09:54:35,510: DEBUG - inflating: /tmp/shsd-master/workers/loggers/imap-dovecot.py
  560. 2019-07-01 09:54:35,510: DEBUG - inflating: /tmp/shsd-master/workers/loggers/ssh-sshd.py
  561. 2019-07-01 09:54:35,511: DEBUG - + mv /tmp/shsd-master/core /tmp/shsd-master/doc /tmp/shsd-master/INSTALL.md /tmp/shsd-master/LICENSE /tmp/shsd-master/README.md /tmp/shsd-master/requirements.txt /tmp/shsd-master/shsd.conf /tmp/shsd-master/workers /var/www/shsd
  562. 2019-07-01 09:54:35,511: DEBUG - + ynh_secure_remove /tmp/shsd.zip
  563. 2019-07-01 09:54:35,511: DEBUG - + local legacy_args=f
  564. 2019-07-01 09:54:35,512: DEBUG - + args_array=([f]=file=)
  565. 2019-07-01 09:54:35,512: DEBUG - + declare -Ar args_array
  566. 2019-07-01 09:54:35,512: DEBUG - + local file
  567. 2019-07-01 09:54:35,513: DEBUG - + ynh_handle_getopts_args /tmp/shsd.zip
  568. 2019-07-01 09:54:35,513: DEBUG - + set +x
  569. 2019-07-01 09:54:35,513: DEBUG - + echo '! Helper used in legacy mode !'
  570. 2019-07-01 09:54:35,513: DEBUG - + set +x
  571. 2019-07-01 09:54:35,514: DEBUG - + local 'forbidden_path= /var/www /home/yunohost.app'
  572. 2019-07-01 09:54:35,514: DEBUG - + '[' 1 -ge 2 ']'
  573. 2019-07-01 09:54:35,514: DEBUG - + [[ /var/www /home/yunohost.app =~ /tmp/shsd\.zip ]]
  574. 2019-07-01 09:54:35,515: DEBUG - + [[ /tmp/shsd.zip =~ ^/[[:alnum:]]+$ ]]
  575. 2019-07-01 09:54:35,515: DEBUG - + [[ p = \/ ]]
  576. 2019-07-01 09:54:35,515: DEBUG - + '[' -e /tmp/shsd.zip ']'
  577. 2019-07-01 09:54:35,516: DEBUG - + sudo rm -R /tmp/shsd.zip
  578. 2019-07-01 09:54:35,516: DEBUG - + ynh_secure_remove /tmp/shsd-master
  579. 2019-07-01 09:54:35,516: DEBUG - + local legacy_args=f
  580. 2019-07-01 09:54:35,517: DEBUG - + args_array=([f]=file=)
  581. 2019-07-01 09:54:35,517: DEBUG - + declare -Ar args_array
  582. 2019-07-01 09:54:35,517: DEBUG - + local file
  583. 2019-07-01 09:54:35,518: DEBUG - + ynh_handle_getopts_args /tmp/shsd-master
  584. 2019-07-01 09:54:35,518: DEBUG - + set +x
  585. 2019-07-01 09:54:35,518: DEBUG - + echo '! Helper used in legacy mode !'
  586. 2019-07-01 09:54:35,519: DEBUG - + set +x
  587. 2019-07-01 09:54:35,519: DEBUG - + local 'forbidden_path= /var/www /home/yunohost.app'
  588. 2019-07-01 09:54:35,519: DEBUG - + '[' 1 -ge 2 ']'
  589. 2019-07-01 09:54:35,520: DEBUG - + [[ /var/www /home/yunohost.app =~ /tmp/shsd-master ]]
  590. 2019-07-01 09:54:35,520: DEBUG - + [[ /tmp/shsd-master =~ ^/[[:alnum:]]+$ ]]
  591. 2019-07-01 09:54:35,520: DEBUG - + [[ r = \/ ]]
  592. 2019-07-01 09:54:35,521: DEBUG - + '[' -e /tmp/shsd-master ']'
  593. 2019-07-01 09:54:35,521: DEBUG - + sudo rm -R /tmp/shsd-master
  594. 2019-07-01 09:54:35,621: DEBUG - + ynh_add_nginx_config
  595. 2019-07-01 09:54:35,622: DEBUG - + finalnginxconf=/etc/nginx/conf.d/DOMAIN.d/shsd.conf
  596. 2019-07-01 09:54:35,622: DEBUG - + local others_var=
  597. 2019-07-01 09:54:35,623: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/DOMAIN.d/shsd.conf
  598. 2019-07-01 09:54:35,623: DEBUG - + local legacy_args=f
  599. 2019-07-01 09:54:35,623: DEBUG - + args_array=([f]=file=)
  600. 2019-07-01 09:54:35,624: DEBUG - + declare -Ar args_array
  601. 2019-07-01 09:54:35,624: DEBUG - + local file
  602. 2019-07-01 09:54:35,624: DEBUG - + ynh_handle_getopts_args --file=/etc/nginx/conf.d/DOMAIN.d/shsd.conf
  603. 2019-07-01 09:54:35,625: DEBUG - + set +x
  604. 2019-07-01 09:54:35,625: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_DOMAIN.d_shsd.conf
  605. 2019-07-01 09:54:35,625: DEBUG - ++ ynh_app_setting_get --app=shsd --key=checksum__etc_nginx_conf.d_DOMAIN.d_shsd.conf
  606. 2019-07-01 09:54:35,625: DEBUG - ++ local legacy_args=ak
  607. 2019-07-01 09:54:35,626: DEBUG - ++ args_array=([a]=app= [k]=key=)
  608. 2019-07-01 09:54:35,626: DEBUG - ++ declare -Ar args_array
  609. 2019-07-01 09:54:35,626: DEBUG - ++ local app
  610. 2019-07-01 09:54:35,627: DEBUG - ++ local key
  611. 2019-07-01 09:54:35,627: DEBUG - ++ ynh_handle_getopts_args --app=shsd --key=checksum__etc_nginx_conf.d_DOMAIN.d_shsd.conf
  612. 2019-07-01 09:54:35,627: DEBUG - ++ set +x
  613. 2019-07-01 09:54:35,628: DEBUG - ++ ynh_app_setting get shsd checksum__etc_nginx_conf.d_DOMAIN.d_shsd.conf
  614. 2019-07-01 09:54:35,628: DEBUG - ++ ACTION=get
  615. 2019-07-01 09:54:35,628: DEBUG - ++ APP=shsd
  616. 2019-07-01 09:54:35,628: DEBUG - ++ KEY=checksum__etc_nginx_conf.d_DOMAIN.d_shsd.conf
  617. 2019-07-01 09:54:35,629: DEBUG - ++ VALUE=
  618. 2019-07-01 09:54:35,629: DEBUG - ++ python -
  619. 2019-07-01 09:54:36,031: DEBUG - + local checksum_value=
  620. 2019-07-01 09:54:36,031: DEBUG - + backup_file_checksum=
  621. 2019-07-01 09:54:36,032: DEBUG - + '[' -n '' ']'
  622. 2019-07-01 09:54:36,032: DEBUG - + sudo cp ../conf/nginx.conf /etc/nginx/conf.d/DOMAIN.d/shsd.conf
  623. 2019-07-01 09:54:36,032: DEBUG - + test -n /shsd
  624. 2019-07-01 09:54:36,033: DEBUG - + local path_url_slash_less=/shsd
  625. 2019-07-01 09:54:36,033: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/shsd/ --target_file=/etc/nginx/conf.d/DOMAIN.d/shsd.conf
  626. 2019-07-01 09:54:36,034: DEBUG - + local legacy_args=mrf
  627. 2019-07-01 09:54:36,034: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
  628. 2019-07-01 09:54:36,034: DEBUG - + declare -Ar args_array
  629. 2019-07-01 09:54:36,035: DEBUG - + local match_string
  630. 2019-07-01 09:54:36,035: DEBUG - + local replace_string
  631. 2019-07-01 09:54:36,035: DEBUG - + local target_file
  632. 2019-07-01 09:54:36,036: DEBUG - + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/shsd/ --target_file=/etc/nginx/conf.d/DOMAIN.d/shsd.conf
  633. 2019-07-01 09:54:36,036: DEBUG - + set +x
  634. 2019-07-01 09:54:36,137: DEBUG - + local delimit=@
  635. 2019-07-01 09:54:36,138: DEBUG - + match_string=__PATH__/
  636. 2019-07-01 09:54:36,139: DEBUG - + replace_string=/shsd/
  637. 2019-07-01 09:54:36,139: DEBUG - + sudo sed --in-place s@__PATH__/@/shsd/@g /etc/nginx/conf.d/DOMAIN.d/shsd.conf
  638. 2019-07-01 09:54:36,140: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/shsd --target_file=/etc/nginx/conf.d/DOMAIN.d/shsd.conf
  639. 2019-07-01 09:54:36,140: DEBUG - + local legacy_args=mrf
  640. 2019-07-01 09:54:36,140: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
  641. 2019-07-01 09:54:36,141: DEBUG - + declare -Ar args_array
  642. 2019-07-01 09:54:36,141: DEBUG - + local match_string
  643. 2019-07-01 09:54:36,141: DEBUG - + local replace_string
  644. 2019-07-01 09:54:36,142: DEBUG - + local target_file
  645. 2019-07-01 09:54:36,142: DEBUG - + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/shsd --target_file=/etc/nginx/conf.d/DOMAIN.d/shsd.conf
  646. 2019-07-01 09:54:36,143: DEBUG - + set +x
  647. 2019-07-01 09:54:36,144: DEBUG - + local delimit=@
  648. 2019-07-01 09:54:36,144: DEBUG - + match_string=__PATH__
  649. 2019-07-01 09:54:36,145: DEBUG - + replace_string=/shsd
  650. 2019-07-01 09:54:36,145: DEBUG - + sudo sed --in-place s@__PATH__@/shsd@g /etc/nginx/conf.d/DOMAIN.d/shsd.conf
  651. 2019-07-01 09:54:36,246: DEBUG - + test -n DOMAIN
  652. 2019-07-01 09:54:36,246: DEBUG - + ynh_replace_string --match_string=__DOMAIN__ --replace_string=DOMAIN --target_file=/etc/nginx/conf.d/DOMAIN.d/shsd.conf
  653. 2019-07-01 09:54:36,247: DEBUG - + local legacy_args=mrf
  654. 2019-07-01 09:54:36,247: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
  655. 2019-07-01 09:54:36,248: DEBUG - + declare -Ar args_array
  656. 2019-07-01 09:54:36,248: DEBUG - + local match_string
  657. 2019-07-01 09:54:36,248: DEBUG - + local replace_string
  658. 2019-07-01 09:54:36,249: DEBUG - + local target_file
  659. 2019-07-01 09:54:36,249: DEBUG - + ynh_handle_getopts_args --match_string=__DOMAIN__ --replace_string=DOMAIN --target_file=/etc/nginx/conf.d/DOMAIN.d/shsd.conf
  660. 2019-07-01 09:54:36,249: DEBUG - + set +x
  661. 2019-07-01 09:54:36,250: DEBUG - + local delimit=@
  662. 2019-07-01 09:54:36,250: DEBUG - + match_string=__DOMAIN__
  663. 2019-07-01 09:54:36,250: DEBUG - + replace_string=DOMAIN
  664. 2019-07-01 09:54:36,251: DEBUG - + sudo sed --in-place s@__DOMAIN__@DOMAIN@g /etc/nginx/conf.d/DOMAIN.d/shsd.conf
  665. 2019-07-01 09:54:36,351: DEBUG - + test -n 8095
  666. 2019-07-01 09:54:36,352: DEBUG - + ynh_replace_string --match_string=__PORT__ --replace_string=8095 --target_file=/etc/nginx/conf.d/DOMAIN.d/shsd.conf
  667. 2019-07-01 09:54:36,352: DEBUG - + local legacy_args=mrf
  668. 2019-07-01 09:54:36,352: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
  669. 2019-07-01 09:54:36,353: DEBUG - + declare -Ar args_array
  670. 2019-07-01 09:54:36,353: DEBUG - + local match_string
  671. 2019-07-01 09:54:36,353: DEBUG - + local replace_string
  672. 2019-07-01 09:54:36,354: DEBUG - + local target_file
  673. 2019-07-01 09:54:36,354: DEBUG - + ynh_handle_getopts_args --match_string=__PORT__ --replace_string=8095 --target_file=/etc/nginx/conf.d/DOMAIN.d/shsd.conf
  674. 2019-07-01 09:54:36,354: DEBUG - + set +x
  675. 2019-07-01 09:54:36,354: DEBUG - + local delimit=@
  676. 2019-07-01 09:54:36,355: DEBUG - + match_string=__PORT__
  677. 2019-07-01 09:54:36,355: DEBUG - + replace_string=8095
  678. 2019-07-01 09:54:36,355: DEBUG - + sudo sed --in-place s@__PORT__@8095@g /etc/nginx/conf.d/DOMAIN.d/shsd.conf
  679. 2019-07-01 09:54:36,456: DEBUG - + test -n shsd
  680. 2019-07-01 09:54:36,457: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=shsd --target_file=/etc/nginx/conf.d/DOMAIN.d/shsd.conf
  681. 2019-07-01 09:54:36,457: DEBUG - + local legacy_args=mrf
  682. 2019-07-01 09:54:36,457: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
  683. 2019-07-01 09:54:36,457: DEBUG - + declare -Ar args_array
  684. 2019-07-01 09:54:36,458: DEBUG - + local match_string
  685. 2019-07-01 09:54:36,458: DEBUG - + local replace_string
  686. 2019-07-01 09:54:36,458: DEBUG - + local target_file
  687. 2019-07-01 09:54:36,459: DEBUG - + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=shsd --target_file=/etc/nginx/conf.d/DOMAIN.d/shsd.conf
  688. 2019-07-01 09:54:36,459: DEBUG - + set +x
  689. 2019-07-01 09:54:36,459: DEBUG - + local delimit=@
  690. 2019-07-01 09:54:36,460: DEBUG - + match_string=__NAME__
  691. 2019-07-01 09:54:36,460: DEBUG - + replace_string=shsd
  692. 2019-07-01 09:54:36,460: DEBUG - + sudo sed --in-place s@__NAME__@shsd@g /etc/nginx/conf.d/DOMAIN.d/shsd.conf
  693. 2019-07-01 09:54:36,461: DEBUG - + test -n /var/www/shsd
  694. 2019-07-01 09:54:36,461: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/shsd --target_file=/etc/nginx/conf.d/DOMAIN.d/shsd.conf
  695. 2019-07-01 09:54:36,461: DEBUG - + local legacy_args=mrf
  696. 2019-07-01 09:54:36,462: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
  697. 2019-07-01 09:54:36,462: DEBUG - + declare -Ar args_array
  698. 2019-07-01 09:54:36,462: DEBUG - + local match_string
  699. 2019-07-01 09:54:36,463: DEBUG - + local replace_string
  700. 2019-07-01 09:54:36,463: DEBUG - + local target_file
  701. 2019-07-01 09:54:36,463: DEBUG - + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/shsd --target_file=/etc/nginx/conf.d/DOMAIN.d/shsd.conf
  702. 2019-07-01 09:54:36,464: DEBUG - + set +x
  703. 2019-07-01 09:54:36,564: DEBUG - + local delimit=@
  704. 2019-07-01 09:54:36,565: DEBUG - + match_string=__FINALPATH__
  705. 2019-07-01 09:54:36,565: DEBUG - + replace_string=/var/www/shsd
  706. 2019-07-01 09:54:36,565: DEBUG - + sudo sed --in-place s@__FINALPATH__@/var/www/shsd@g /etc/nginx/conf.d/DOMAIN.d/shsd.conf
  707. 2019-07-01 09:54:36,566: DEBUG - + '[' /shsd '!=' / ']'
  708. 2019-07-01 09:54:36,566: DEBUG - + ynh_replace_string '--match_string=^#sub_path_only' --replace_string= --target_file=/etc/nginx/conf.d/DOMAIN.d/shsd.conf
  709. 2019-07-01 09:54:36,566: DEBUG - + local legacy_args=mrf
  710. 2019-07-01 09:54:36,567: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
  711. 2019-07-01 09:54:36,567: DEBUG - + declare -Ar args_array
  712. 2019-07-01 09:54:36,567: DEBUG - + local match_string
  713. 2019-07-01 09:54:36,568: DEBUG - + local replace_string
  714. 2019-07-01 09:54:36,568: DEBUG - + local target_file
  715. 2019-07-01 09:54:36,568: DEBUG - + ynh_handle_getopts_args '--match_string=^#sub_path_only' --replace_string= --target_file=/etc/nginx/conf.d/DOMAIN.d/shsd.conf
  716. 2019-07-01 09:54:36,569: DEBUG - + set +x
  717. 2019-07-01 09:54:36,569: DEBUG - + local delimit=@
  718. 2019-07-01 09:54:36,569: DEBUG - + match_string='^#sub_path_only'
  719. 2019-07-01 09:54:36,569: DEBUG - + replace_string=
  720. 2019-07-01 09:54:36,570: DEBUG - + sudo sed --in-place 's@^#sub_path_only@@g' /etc/nginx/conf.d/DOMAIN.d/shsd.conf
  721. 2019-07-01 09:54:36,670: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/DOMAIN.d/shsd.conf
  722. 2019-07-01 09:54:36,671: DEBUG - + local legacy_args=f
  723. 2019-07-01 09:54:36,671: DEBUG - + args_array=([f]=file=)
  724. 2019-07-01 09:54:36,672: DEBUG - + declare -Ar args_array
  725. 2019-07-01 09:54:36,672: DEBUG - + local file
  726. 2019-07-01 09:54:36,672: DEBUG - + ynh_handle_getopts_args --file=/etc/nginx/conf.d/DOMAIN.d/shsd.conf
  727. 2019-07-01 09:54:36,672: DEBUG - + set +x
  728. 2019-07-01 09:54:36,673: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_DOMAIN.d_shsd.conf
  729. 2019-07-01 09:54:36,673: DEBUG - ++ sudo md5sum /etc/nginx/conf.d/DOMAIN.d/shsd.conf
  730. 2019-07-01 09:54:36,673: DEBUG - ++ cut '-d ' -f1
  731. 2019-07-01 09:54:36,674: DEBUG - + ynh_app_setting_set --app=shsd --key=checksum__etc_nginx_conf.d_DOMAIN.d_shsd.conf --value=80b3c9b800411b70f5e6720673e59007
  732. 2019-07-01 09:54:36,674: DEBUG - + local legacy_args=akv
  733. 2019-07-01 09:54:36,674: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
  734. 2019-07-01 09:54:36,675: DEBUG - + declare -Ar args_array
  735. 2019-07-01 09:54:36,675: DEBUG - + local app
  736. 2019-07-01 09:54:36,675: DEBUG - + local key
  737. 2019-07-01 09:54:36,675: DEBUG - + local value
  738. 2019-07-01 09:54:36,676: DEBUG - + ynh_handle_getopts_args --app=shsd --key=checksum__etc_nginx_conf.d_DOMAIN.d_shsd.conf --value=80b3c9b800411b70f5e6720673e59007
  739. 2019-07-01 09:54:36,676: DEBUG - + set +x
  740. 2019-07-01 09:54:36,777: DEBUG - + ynh_app_setting set shsd checksum__etc_nginx_conf.d_DOMAIN.d_shsd.conf 80b3c9b800411b70f5e6720673e59007
  741. 2019-07-01 09:54:36,777: DEBUG - + ACTION=set
  742. 2019-07-01 09:54:36,778: DEBUG - + APP=shsd
  743. 2019-07-01 09:54:36,778: DEBUG - + KEY=checksum__etc_nginx_conf.d_DOMAIN.d_shsd.conf
  744. 2019-07-01 09:54:36,778: DEBUG - + VALUE=80b3c9b800411b70f5e6720673e59007
  745. 2019-07-01 09:54:36,779: DEBUG - + python -
  746. 2019-07-01 09:54:37,080: DEBUG - + '[' -n '' ']'
  747. 2019-07-01 09:54:37,080: INFO - Reload the service nginx
  748. 2019-07-01 09:54:37,081: DEBUG - + unset backup_file_checksum
  749. 2019-07-01 09:54:37,081: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload
  750. 2019-07-01 09:54:37,082: DEBUG - + local legacy_args=nalpte
  751. 2019-07-01 09:54:37,082: DEBUG - + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=)
  752. 2019-07-01 09:54:37,082: DEBUG - + declare -Ar args_array
  753. 2019-07-01 09:54:37,083: DEBUG - + local service_name
  754. 2019-07-01 09:54:37,083: DEBUG - + local action
  755. 2019-07-01 09:54:37,083: DEBUG - + local line_match
  756. 2019-07-01 09:54:37,084: DEBUG - + local length
  757. 2019-07-01 09:54:37,084: DEBUG - + local log_path
  758. 2019-07-01 09:54:37,084: DEBUG - + local timeout
  759. 2019-07-01 09:54:37,085: DEBUG - + ynh_handle_getopts_args --service_name=nginx --action=reload
  760. 2019-07-01 09:54:37,085: DEBUG - + set +x
  761. 2019-07-01 09:54:37,085: DEBUG - + local service_name=nginx
  762. 2019-07-01 09:54:37,085: DEBUG - + local action=reload
  763. 2019-07-01 09:54:37,086: DEBUG - + local log_path=/var/log/nginx/nginx.log
  764. 2019-07-01 09:54:37,086: DEBUG - + local length=20
  765. 2019-07-01 09:54:37,086: DEBUG - + local timeout=300
  766. 2019-07-01 09:54:37,087: DEBUG - + [[ -n '' ]]
  767. 2019-07-01 09:54:37,087: DEBUG - + ynh_print_info '--message=Reload the service nginx'
  768. 2019-07-01 09:54:37,087: DEBUG - + local legacy_args=m
  769. 2019-07-01 09:54:37,088: DEBUG - + args_array=([m]=message=)
  770. 2019-07-01 09:54:37,088: DEBUG - + declare -Ar args_array
  771. 2019-07-01 09:54:37,088: DEBUG - + local message
  772. 2019-07-01 09:54:37,088: DEBUG - + ynh_handle_getopts_args '--message=Reload the service nginx'
  773. 2019-07-01 09:54:37,089: DEBUG - + set +x
  774. 2019-07-01 09:54:37,089: DEBUG - + echo 'Reload the service nginx'
  775. 2019-07-01 09:54:37,089: DEBUG - + '[' reload == reload ']'
  776. 2019-07-01 09:54:37,090: DEBUG - + action=reload-or-restart
  777. 2019-07-01 09:54:37,090: DEBUG - + systemctl reload-or-restart nginx
  778. 2019-07-01 09:54:37,190: DEBUG - + [[ -n '' ]]
  779. 2019-07-01 09:54:37,191: DEBUG - + '[' /shsd '!=' / ']'
  780. 2019-07-01 09:54:37,191: DEBUG - + ynh_replace_string '^#sub_path_only' '' /etc/nginx/conf.d/DOMAIN.d/shsd.conf
  781. 2019-07-01 09:54:37,192: DEBUG - + local legacy_args=mrf
  782. 2019-07-01 09:54:37,192: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
  783. 2019-07-01 09:54:37,192: DEBUG - + declare -Ar args_array
  784. 2019-07-01 09:54:37,193: DEBUG - + local match_string
  785. 2019-07-01 09:54:37,193: DEBUG - + local replace_string
  786. 2019-07-01 09:54:37,194: DEBUG - + local target_file
  787. 2019-07-01 09:54:37,194: DEBUG - + ynh_handle_getopts_args '^#sub_path_only' '' /etc/nginx/conf.d/DOMAIN.d/shsd.conf
  788. 2019-07-01 09:54:37,194: DEBUG - + set +x
  789. 2019-07-01 09:54:37,295: DEBUG - + echo '! Helper used in legacy mode !'
  790. 2019-07-01 09:54:37,296: DEBUG - + set +x
  791. 2019-07-01 09:54:37,296: DEBUG - + local delimit=@
  792. 2019-07-01 09:54:37,296: DEBUG - + match_string='^#sub_path_only'
  793. 2019-07-01 09:54:37,297: DEBUG - + replace_string=
  794. 2019-07-01 09:54:37,297: DEBUG - + sudo sed --in-place 's@^#sub_path_only@@g' /etc/nginx/conf.d/DOMAIN.d/shsd.conf
  795. 2019-07-01 09:54:37,297: DEBUG - + ynh_store_file_checksum /etc/nginx/conf.d/DOMAIN.d/shsd.conf
  796. 2019-07-01 09:54:37,298: DEBUG - + local legacy_args=f
  797. 2019-07-01 09:54:37,298: DEBUG - + args_array=([f]=file=)
  798. 2019-07-01 09:54:37,299: DEBUG - + declare -Ar args_array
  799. 2019-07-01 09:54:37,299: DEBUG - + local file
  800. 2019-07-01 09:54:37,299: DEBUG - + ynh_handle_getopts_args /etc/nginx/conf.d/DOMAIN.d/shsd.conf
  801. 2019-07-01 09:54:37,300: DEBUG - + set +x
  802. 2019-07-01 09:54:37,300: DEBUG - + echo '! Helper used in legacy mode !'
  803. 2019-07-01 09:54:37,301: DEBUG - + set +x
  804. 2019-07-01 09:54:37,301: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_DOMAIN.d_shsd.conf
  805. 2019-07-01 09:54:37,301: DEBUG - ++ sudo md5sum /etc/nginx/conf.d/DOMAIN.d/shsd.conf
  806. 2019-07-01 09:54:37,302: DEBUG - ++ cut '-d ' -f1
  807. 2019-07-01 09:54:37,403: DEBUG - + ynh_app_setting_set --app=shsd --key=checksum__etc_nginx_conf.d_DOMAIN.d_shsd.conf --value=80b3c9b800411b70f5e6720673e59007
  808. 2019-07-01 09:54:37,403: DEBUG - + local legacy_args=akv
  809. 2019-07-01 09:54:37,403: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
  810. 2019-07-01 09:54:37,404: DEBUG - + declare -Ar args_array
  811. 2019-07-01 09:54:37,404: DEBUG - + local app
  812. 2019-07-01 09:54:37,404: DEBUG - + local key
  813. 2019-07-01 09:54:37,405: DEBUG - + local value
  814. 2019-07-01 09:54:37,405: DEBUG - + ynh_handle_getopts_args --app=shsd --key=checksum__etc_nginx_conf.d_DOMAIN.d_shsd.conf --value=80b3c9b800411b70f5e6720673e59007
  815. 2019-07-01 09:54:37,405: DEBUG - + set +x
  816. 2019-07-01 09:54:37,406: DEBUG - + ynh_app_setting set shsd checksum__etc_nginx_conf.d_DOMAIN.d_shsd.conf 80b3c9b800411b70f5e6720673e59007
  817. 2019-07-01 09:54:37,406: DEBUG - + ACTION=set
  818. 2019-07-01 09:54:37,406: DEBUG - + APP=shsd
  819. 2019-07-01 09:54:37,407: DEBUG - + KEY=checksum__etc_nginx_conf.d_DOMAIN.d_shsd.conf
  820. 2019-07-01 09:54:37,407: DEBUG - + VALUE=80b3c9b800411b70f5e6720673e59007
  821. 2019-07-01 09:54:37,407: DEBUG - + python -
  822. 2019-07-01 09:54:37,708: DEBUG - + '[' -n '' ']'
  823. 2019-07-01 09:54:37,709: DEBUG - + unset backup_file_checksum
  824. 2019-07-01 09:54:37,709: DEBUG - + sudo service nginx reload
  825. 2019-07-01 09:54:37,910: DEBUG - + ynh_system_user_create shsd
  826. 2019-07-01 09:54:37,910: DEBUG - + local legacy_args=uhs
  827. 2019-07-01 09:54:37,911: DEBUG - + args_array=([u]=username= [h]=home_dir= [s]=use_shell)
  828. 2019-07-01 09:54:37,911: DEBUG - + declare -Ar args_array
  829. 2019-07-01 09:54:37,911: DEBUG - + local username
  830. 2019-07-01 09:54:37,912: DEBUG - + local home_dir
  831. 2019-07-01 09:54:37,912: DEBUG - + local use_shell
  832. 2019-07-01 09:54:37,912: DEBUG - + ynh_handle_getopts_args shsd
  833. 2019-07-01 09:54:37,913: DEBUG - + set +x
  834. 2019-07-01 09:54:37,913: DEBUG - + echo '! Helper used in legacy mode !'
  835. 2019-07-01 09:54:37,913: DEBUG - + set +x
  836. 2019-07-01 09:54:37,914: DEBUG - + use_shell=0
  837. 2019-07-01 09:54:37,914: DEBUG - + home_dir=
  838. 2019-07-01 09:54:37,914: DEBUG - + ynh_system_user_exists shsd
  839. 2019-07-01 09:54:37,914: DEBUG - + local legacy_args=u
  840. 2019-07-01 09:54:37,915: DEBUG - + args_array=([u]=username=)
  841. 2019-07-01 09:54:37,915: DEBUG - + declare -Ar args_array
  842. 2019-07-01 09:54:37,915: DEBUG - + local username
  843. 2019-07-01 09:54:37,916: DEBUG - + ynh_handle_getopts_args shsd
  844. 2019-07-01 09:54:37,916: DEBUG - + set +x
  845. 2019-07-01 09:54:37,916: DEBUG - + echo '! Helper used in legacy mode !'
  846. 2019-07-01 09:54:37,916: DEBUG - + set +x
  847. 2019-07-01 09:54:37,917: DEBUG - + getent passwd shsd
  848. 2019-07-01 09:54:37,917: DEBUG - + '[' -n '' ']'
  849. 2019-07-01 09:54:37,917: DEBUG - + local user_home_dir=--no-create-home
  850. 2019-07-01 09:54:37,918: DEBUG - + '[' 0 -eq 1 ']'
  851. 2019-07-01 09:54:37,918: DEBUG - + local 'shell=--shell /usr/sbin/nologin'
  852. 2019-07-01 09:54:37,918: DEBUG - + useradd --no-create-home --system --user-group shsd --shell /usr/sbin/nologin
  853. 2019-07-01 09:54:43,132: DEBUG - + sudo mv /var/www/shsd/shsd.conf /etc/
  854. 2019-07-01 09:54:43,233: DEBUG - + ynh_add_systemd_config
  855. 2019-07-01 09:54:43,233: DEBUG - + local legacy_args=st
  856. 2019-07-01 09:54:43,234: DEBUG - + args_array=([s]=service= [t]=template=)
  857. 2019-07-01 09:54:43,234: DEBUG - + declare -Ar args_array
  858. 2019-07-01 09:54:43,235: DEBUG - + local service
  859. 2019-07-01 09:54:43,235: DEBUG - + local template
  860. 2019-07-01 09:54:43,235: DEBUG - + ynh_handle_getopts_args
  861. 2019-07-01 09:54:43,236: DEBUG - + set +x
  862. 2019-07-01 09:54:43,236: DEBUG - + local service=shsd
  863. 2019-07-01 09:54:43,236: DEBUG - + local template=systemd.service
  864. 2019-07-01 09:54:43,237: DEBUG - + finalsystemdconf=/etc/systemd/system/shsd.service
  865. 2019-07-01 09:54:43,237: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/systemd/system/shsd.service
  866. 2019-07-01 09:54:43,237: DEBUG - + local legacy_args=f
  867. 2019-07-01 09:54:43,238: DEBUG - + args_array=([f]=file=)
  868. 2019-07-01 09:54:43,238: DEBUG - + declare -Ar args_array
  869. 2019-07-01 09:54:43,238: DEBUG - + local file
  870. 2019-07-01 09:54:43,239: DEBUG - + ynh_handle_getopts_args --file=/etc/systemd/system/shsd.service
  871. 2019-07-01 09:54:43,239: DEBUG - + set +x
  872. 2019-07-01 09:54:43,239: DEBUG - + local checksum_setting_name=checksum__etc_systemd_system_shsd.service
  873. 2019-07-01 09:54:43,240: DEBUG - ++ ynh_app_setting_get --app=shsd --key=checksum__etc_systemd_system_shsd.service
  874. 2019-07-01 09:54:43,240: DEBUG - ++ local legacy_args=ak
  875. 2019-07-01 09:54:43,240: DEBUG - ++ args_array=([a]=app= [k]=key=)
  876. 2019-07-01 09:54:43,241: DEBUG - ++ declare -Ar args_array
  877. 2019-07-01 09:54:43,241: DEBUG - ++ local app
  878. 2019-07-01 09:54:43,241: DEBUG - ++ local key
  879. 2019-07-01 09:54:43,242: DEBUG - ++ ynh_handle_getopts_args --app=shsd --key=checksum__etc_systemd_system_shsd.service
  880. 2019-07-01 09:54:43,242: DEBUG - ++ set +x
  881. 2019-07-01 09:54:43,242: DEBUG - ++ ynh_app_setting get shsd checksum__etc_systemd_system_shsd.service
  882. 2019-07-01 09:54:43,243: DEBUG - ++ ACTION=get
  883. 2019-07-01 09:54:43,243: DEBUG - ++ APP=shsd
  884. 2019-07-01 09:54:43,243: DEBUG - ++ KEY=checksum__etc_systemd_system_shsd.service
  885. 2019-07-01 09:54:43,244: DEBUG - ++ VALUE=
  886. 2019-07-01 09:54:43,244: DEBUG - ++ python -
  887. 2019-07-01 09:54:43,645: DEBUG - + local checksum_value=
  888. 2019-07-01 09:54:43,646: DEBUG - + backup_file_checksum=
  889. 2019-07-01 09:54:43,647: DEBUG - + '[' -n '' ']'
  890. 2019-07-01 09:54:43,647: DEBUG - + sudo cp ../conf/systemd.service /etc/systemd/system/shsd.service
  891. 2019-07-01 09:54:43,647: DEBUG - + test -n /var/www/shsd
  892. 2019-07-01 09:54:43,648: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/shsd --target_file=/etc/systemd/system/shsd.service
  893. 2019-07-01 09:54:43,648: DEBUG - + local legacy_args=mrf
  894. 2019-07-01 09:54:43,649: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
  895. 2019-07-01 09:54:43,649: DEBUG - + declare -Ar args_array
  896. 2019-07-01 09:54:43,649: DEBUG - + local match_string
  897. 2019-07-01 09:54:43,649: DEBUG - + local replace_string
  898. 2019-07-01 09:54:43,650: DEBUG - + local target_file
  899. 2019-07-01 09:54:43,650: DEBUG - + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/shsd --target_file=/etc/systemd/system/shsd.service
  900. 2019-07-01 09:54:43,650: DEBUG - + set +x
  901. 2019-07-01 09:54:43,751: DEBUG - + local delimit=@
  902. 2019-07-01 09:54:43,752: DEBUG - + match_string=__FINALPATH__
  903. 2019-07-01 09:54:43,752: DEBUG - + replace_string=/var/www/shsd
  904. 2019-07-01 09:54:43,752: DEBUG - + sudo sed --in-place s@__FINALPATH__@/var/www/shsd@g /etc/systemd/system/shsd.service
  905. 2019-07-01 09:54:43,753: DEBUG - + test -n shsd
  906. 2019-07-01 09:54:43,753: DEBUG - + ynh_replace_string --match_string=__APP__ --replace_string=shsd --target_file=/etc/systemd/system/shsd.service
  907. 2019-07-01 09:54:43,754: DEBUG - + local legacy_args=mrf
  908. 2019-07-01 09:54:43,754: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
  909. 2019-07-01 09:54:43,754: DEBUG - + declare -Ar args_array
  910. 2019-07-01 09:54:43,755: DEBUG - + local match_string
  911. 2019-07-01 09:54:43,755: DEBUG - + local replace_string
  912. 2019-07-01 09:54:43,755: DEBUG - + local target_file
  913. 2019-07-01 09:54:43,756: DEBUG - + ynh_handle_getopts_args --match_string=__APP__ --replace_string=shsd --target_file=/etc/systemd/system/shsd.service
  914. 2019-07-01 09:54:43,756: DEBUG - + set +x
  915. 2019-07-01 09:54:43,857: DEBUG - + local delimit=@
  916. 2019-07-01 09:54:43,857: DEBUG - + match_string=__APP__
  917. 2019-07-01 09:54:43,858: DEBUG - + replace_string=shsd
  918. 2019-07-01 09:54:43,858: DEBUG - + sudo sed --in-place s@__APP__@shsd@g /etc/systemd/system/shsd.service
  919. 2019-07-01 09:54:43,858: DEBUG - + ynh_store_file_checksum --file=/etc/systemd/system/shsd.service
  920. 2019-07-01 09:54:43,859: DEBUG - + local legacy_args=f
  921. 2019-07-01 09:54:43,859: DEBUG - + args_array=([f]=file=)
  922. 2019-07-01 09:54:43,859: DEBUG - + declare -Ar args_array
  923. 2019-07-01 09:54:43,860: DEBUG - + local file
  924. 2019-07-01 09:54:43,860: DEBUG - + ynh_handle_getopts_args --file=/etc/systemd/system/shsd.service
  925. 2019-07-01 09:54:43,860: DEBUG - + set +x
  926. 2019-07-01 09:54:43,860: DEBUG - + local checksum_setting_name=checksum__etc_systemd_system_shsd.service
  927. 2019-07-01 09:54:43,861: DEBUG - ++ sudo md5sum /etc/systemd/system/shsd.service
  928. 2019-07-01 09:54:43,861: DEBUG - ++ cut '-d ' -f1
  929. 2019-07-01 09:54:43,962: DEBUG - + ynh_app_setting_set --app=shsd --key=checksum__etc_systemd_system_shsd.service --value=4b191273c5bb77ee6b5882fcd4c3f624
  930. 2019-07-01 09:54:43,962: DEBUG - + local legacy_args=akv
  931. 2019-07-01 09:54:43,962: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
  932. 2019-07-01 09:54:43,963: DEBUG - + declare -Ar args_array
  933. 2019-07-01 09:54:43,963: DEBUG - + local app
  934. 2019-07-01 09:54:43,963: DEBUG - + local key
  935. 2019-07-01 09:54:43,964: DEBUG - + local value
  936. 2019-07-01 09:54:43,964: DEBUG - + ynh_handle_getopts_args --app=shsd --key=checksum__etc_systemd_system_shsd.service --value=4b191273c5bb77ee6b5882fcd4c3f624
  937. 2019-07-01 09:54:43,964: DEBUG - + set +x
  938. 2019-07-01 09:54:43,965: DEBUG - + ynh_app_setting set shsd checksum__etc_systemd_system_shsd.service 4b191273c5bb77ee6b5882fcd4c3f624
  939. 2019-07-01 09:54:43,965: DEBUG - + ACTION=set
  940. 2019-07-01 09:54:43,965: DEBUG - + APP=shsd
  941. 2019-07-01 09:54:43,966: DEBUG - + KEY=checksum__etc_systemd_system_shsd.service
  942. 2019-07-01 09:54:43,966: DEBUG - + VALUE=4b191273c5bb77ee6b5882fcd4c3f624
  943. 2019-07-01 09:54:43,966: DEBUG - + python -
  944. 2019-07-01 09:54:44,368: DEBUG - + '[' -n '' ']'
  945. 2019-07-01 09:54:44,368: DEBUG - + unset backup_file_checksum
  946. 2019-07-01 09:54:44,369: DEBUG - + sudo chown root: /etc/systemd/system/shsd.service
  947. 2019-07-01 09:54:44,369: DEBUG - + sudo systemctl enable shsd
  948. 2019-07-01 09:54:44,470: WARNING - Created symlink /etc/systemd/system/multi-user.target.wants/shsd.service → /etc/systemd/system/shsd.service.
  949. 2019-07-01 09:54:45,073: DEBUG - + sudo systemctl daemon-reload
  950. 2019-07-01 09:54:45,474: DEBUG - + chown -R shsd: /var/www/shsd
  951. 2019-07-01 09:54:45,475: DEBUG - + chown -R shsd: /var/lib/shsd
  952. 2019-07-01 09:54:45,475: DEBUG - + ynh_app_setting_set shsd skipped_uris /
  953. 2019-07-01 09:54:45,475: DEBUG - + local legacy_args=akv
  954. 2019-07-01 09:54:45,476: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
  955. 2019-07-01 09:54:45,476: DEBUG - + declare -Ar args_array
  956. 2019-07-01 09:54:45,476: DEBUG - + local app
  957. 2019-07-01 09:54:45,477: DEBUG - + local key
  958. 2019-07-01 09:54:45,477: DEBUG - + local value
  959. 2019-07-01 09:54:45,477: DEBUG - + ynh_handle_getopts_args shsd skipped_uris /
  960. 2019-07-01 09:54:45,478: DEBUG - + set +x
  961. 2019-07-01 09:54:45,478: DEBUG - + echo '! Helper used in legacy mode !'
  962. 2019-07-01 09:54:45,478: DEBUG - + set +x
  963. 2019-07-01 09:54:45,579: DEBUG - + ynh_app_setting set shsd skipped_uris /
  964. 2019-07-01 09:54:45,579: DEBUG - + ACTION=set
  965. 2019-07-01 09:54:45,580: DEBUG - + APP=shsd
  966. 2019-07-01 09:54:45,580: DEBUG - + KEY=skipped_uris
  967. 2019-07-01 09:54:45,580: DEBUG - + VALUE=/
  968. 2019-07-01 09:54:45,581: DEBUG - + python -
  969. 2019-07-01 09:54:45,782: DEBUG - + yunohost app ssowatconf
  970. 2019-07-01 09:54:47,085: DEBUG - The SSOwat configuration has been generated
  971. 2019-07-01 09:54:47,086: DEBUG - + systemctl reload nginx
  972. 2019-07-01 09:54:47,287: DEBUG - + ynh_replace_string 5000 8095 /etc/shsd.conf
  973. 2019-07-01 09:54:47,287: DEBUG - + local legacy_args=mrf
  974. 2019-07-01 09:54:47,288: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
  975. 2019-07-01 09:54:47,288: DEBUG - + declare -Ar args_array
  976. 2019-07-01 09:54:47,288: DEBUG - + local match_string
  977. 2019-07-01 09:54:47,289: DEBUG - + local replace_string
  978. 2019-07-01 09:54:47,289: DEBUG - + local target_file
  979. 2019-07-01 09:54:47,289: DEBUG - + ynh_handle_getopts_args 5000 8095 /etc/shsd.conf
  980. 2019-07-01 09:54:47,289: DEBUG - + set +x
  981. 2019-07-01 09:54:47,290: DEBUG - + echo '! Helper used in legacy mode !'
  982. 2019-07-01 09:54:47,290: DEBUG - + set +x
  983. 2019-07-01 09:54:47,290: DEBUG - + local delimit=@
  984. 2019-07-01 09:54:47,291: DEBUG - + match_string=5000
  985. 2019-07-01 09:54:47,291: DEBUG - + replace_string=8095
  986. 2019-07-01 09:54:47,291: DEBUG - + sudo sed --in-place s@5000@8095@g /etc/shsd.conf
  987. 2019-07-01 09:54:47,392: DEBUG - + ynh_store_file_checksum /etc/shsd.conf
  988. 2019-07-01 09:54:47,393: DEBUG - + local legacy_args=f
  989. 2019-07-01 09:54:47,393: DEBUG - + args_array=([f]=file=)
  990. 2019-07-01 09:54:47,394: DEBUG - + declare -Ar args_array
  991. 2019-07-01 09:54:47,394: DEBUG - + local file
  992. 2019-07-01 09:54:47,394: DEBUG - + ynh_handle_getopts_args /etc/shsd.conf
  993. 2019-07-01 09:54:47,395: DEBUG - + set +x
  994. 2019-07-01 09:54:47,395: DEBUG - + echo '! Helper used in legacy mode !'
  995. 2019-07-01 09:54:47,396: DEBUG - + set +x
  996. 2019-07-01 09:54:47,396: DEBUG - + local checksum_setting_name=checksum__etc_shsd.conf
  997. 2019-07-01 09:54:47,396: DEBUG - ++ sudo md5sum /etc/shsd.conf
  998. 2019-07-01 09:54:47,397: DEBUG - ++ cut '-d ' -f1
  999. 2019-07-01 09:54:47,498: DEBUG - + ynh_app_setting_set --app=shsd --key=checksum__etc_shsd.conf --value=e1585f3242f1c788f6498281b57f396a
  1000. 2019-07-01 09:54:47,499: DEBUG - + local legacy_args=akv
  1001. 2019-07-01 09:54:47,501: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
  1002. 2019-07-01 09:54:47,502: DEBUG - + declare -Ar args_array
  1003. 2019-07-01 09:54:47,503: DEBUG - + local app
  1004. 2019-07-01 09:54:47,504: DEBUG - + local key
  1005. 2019-07-01 09:54:47,505: DEBUG - + local value
  1006. 2019-07-01 09:54:47,507: DEBUG - + ynh_handle_getopts_args --app=shsd --key=checksum__etc_shsd.conf --value=e1585f3242f1c788f6498281b57f396a
  1007. 2019-07-01 09:54:47,508: DEBUG - + set +x
  1008. 2019-07-01 09:54:47,509: DEBUG - + ynh_app_setting set shsd checksum__etc_shsd.conf e1585f3242f1c788f6498281b57f396a
  1009. 2019-07-01 09:54:47,510: DEBUG - + ACTION=set
  1010. 2019-07-01 09:54:47,512: DEBUG - + APP=shsd
  1011. 2019-07-01 09:54:47,513: DEBUG - + KEY=checksum__etc_shsd.conf
  1012. 2019-07-01 09:54:47,514: DEBUG - + VALUE=e1585f3242f1c788f6498281b57f396a
  1013. 2019-07-01 09:54:47,515: DEBUG - + python -
  1014. 2019-07-01 09:54:47,817: DEBUG - + '[' -n '' ']'
  1015. 2019-07-01 09:54:47,818: DEBUG - + unset backup_file_checksum
  1016. 2019-07-01 09:54:47,818: DEBUG - + chown -R root: /var/www/shsd
  1017. 2019-07-01 09:54:47,818: DEBUG - + yunohost service add shsd --log /var/log/daemon.log
  1018. 2019-07-01 09:54:48,620: DEBUG - The service 'shsd' has been added
  1019. 2019-07-01 09:54:48,621: DEBUG - + ynh_app_setting_delete shsd skipped_uris
  1020. 2019-07-01 09:54:48,621: DEBUG - + local legacy_args=ak
  1021. 2019-07-01 09:54:48,621: DEBUG - + args_array=([a]=app= [k]=key=)
  1022. 2019-07-01 09:54:48,622: DEBUG - + declare -Ar args_array
  1023. 2019-07-01 09:54:48,622: DEBUG - + local app
  1024. 2019-07-01 09:54:48,622: DEBUG - + local key
  1025. 2019-07-01 09:54:48,623: DEBUG - + ynh_handle_getopts_args shsd skipped_uris
  1026. 2019-07-01 09:54:48,623: DEBUG - + set +x
  1027. 2019-07-01 09:54:48,623: DEBUG - + echo '! Helper used in legacy mode !'
  1028. 2019-07-01 09:54:48,624: DEBUG - + set +x
  1029. 2019-07-01 09:54:48,624: DEBUG - + ynh_app_setting delete shsd skipped_uris
  1030. 2019-07-01 09:54:48,624: DEBUG - + ACTION=delete
  1031. 2019-07-01 09:54:48,624: DEBUG - + APP=shsd
  1032. 2019-07-01 09:54:48,625: DEBUG - + KEY=skipped_uris
  1033. 2019-07-01 09:54:48,625: DEBUG - + VALUE=
  1034. 2019-07-01 09:54:48,625: DEBUG - + python -
  1035. 2019-07-01 09:54:48,926: DEBUG - + systemctl reload nginx
  1036. 2019-07-01 09:54:49,027: DEBUG - + systemctl start shsd
  1037. 2019-07-01 09:54:49,129: DEBUG - + /var/www/shsd/workers/loggers/imap-dovecot.py
  1038. 2019-07-01 09:54:49,129: WARNING - Traceback (most recent call last):
  1039. 2019-07-01 09:54:49,130: DEBUG - + ynh_exit_properly
  1040. 2019-07-01 09:54:49,131: WARNING - File "/var/www/shsd/workers/loggers/imap-dovecot.py", line 4, in <module>
  1041. 2019-07-01 09:54:49,132: DEBUG - + local exit_code=1
  1042. 2019-07-01 09:54:49,132: WARNING - import requests
  1043. 2019-07-01 09:54:49,133: DEBUG - + '[' 1 -eq 0 ']'
  1044. 2019-07-01 09:54:49,133: WARNING - ImportError: No module named 'requests'
  1045. 2019-07-01 09:54:49,133: DEBUG - + trap '' EXIT
  1046. 2019-07-01 09:54:49,134: WARNING - !!
  1047. 2019-07-01 09:54:49,134: DEBUG - + set +eu
  1048. 2019-07-01 09:54:49,135: WARNING - shsd's script has encountered an error. Its execution was cancelled.
  1049. 2019-07-01 09:54:49,135: DEBUG - + echo -e '!!\n shsd'\''s script has encountered an error. Its execution was cancelled.\n!!'
  1050. 2019-07-01 09:54:49,136: WARNING - !!
  1051. 2019-07-01 09:54:49,136: DEBUG - + type -t ynh_clean_setup
  1052. 2019-07-01 09:54:49,137: WARNING -
  1053. 2019-07-01 09:54:49,137: DEBUG - + ynh_die
  1054. 2019-07-01 09:54:49,137: DEBUG - + local legacy_args=mc
  1055. 2019-07-01 09:54:49,138: DEBUG - + args_array=([m]=message= [c]=ret_code=)
  1056. 2019-07-01 09:54:49,138: DEBUG - + declare -Ar args_array
  1057. 2019-07-01 09:54:49,138: DEBUG - + local message
  1058. 2019-07-01 09:54:49,139: DEBUG - + local ret_code
  1059. 2019-07-01 09:54:49,139: DEBUG - + ynh_handle_getopts_args
  1060. 2019-07-01 09:54:49,139: DEBUG - + set +x
  1061. 2019-07-01 09:54:49,140: DEBUG - + echo ''
  1062. 2019-07-01 09:54:49,140: DEBUG - + exit 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement