Advertisement
Guest User

Untitled

a guest
Apr 14th, 2019
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.05 KB | None | 0 0
  1. admin@portail:~ $ sudo yunohost app install --debug https://github.com/YunoHost-Apps/ghost_ynh
  2. 509 DEBUG loading actions map namespace 'yunohost'
  3. 605 DEBUG extra parameter classes loaded: ['comment', 'ask', 'password', 'required', 'pattern']
  4. 606 DEBUG initializing base actions map parser for cli
  5. 611 DEBUG registering new callback action 'yunohost.utils.packages.ynh_packages_version' to ['-v', '--version']
  6. 971 DEBUG initialize authenticator 'ldap-anonymous' with: uri='ldap://localhost:389', base_dn='dc=yunohost,dc=org', user_rdn='None'
  7. 982 DEBUG lock has been acquired
  8. 1093 DEBUG loading python module yunohost.app took 0.110s
  9. 1093 INFO processing action [22014.1]: yunohost.app.install with args={'force': False, 'app': 'https://github.com/YunoHost-Apps/ghost_ynh', 'args': None, 'auth': <moulinette.authenticators.ldap.Authenticator object at 0x76449cb0>, 'label': None, 'no_remove_on_failure': False}
  10. WARNING! Installing 3rd party applications may compromise the integrity and security of your system. You should probably NOT install it unless you know what you are doing. Are you willing to take that risk? [Y/N] : y
  11. 8899 DEBUG Downloading…
  12. 10413 DEBUG Extracting…
  13. 10473 DEBUG Done
  14. 11600 DEBUG Checking required packages for ghost…
  15. 12641 DEBUG Checking that required services are up and running...
  16. Choose a domain for Ghost: notkaa.xyz
  17. Choose a path for Ghost (default: /blog):
  18. Is it a public application? [yes | no] (default: yes):
  19. 24099 INFO Installing application ghost…
  20. 24540 DEBUG Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/ghost_ynh-master/scripts YNH_APP_ARG_IS_PUBLIC=1 YNH_STDINFO=/tmp/tmpUOEtnc/stdinfo YNH_APP_INSTANCE_NAME=ghost YNH_STDRETURN=/tmp/tmpO2Tsmp/stdreturn YNH_APP_ID=ghost YNH_APP_ARG_PATH=/blog YNH_APP_ARG_DOMAIN=notkaa.xyz BASH_XTRACEFD=7 /bin/bash -x "./install" notkaa.xyz /blog 1 ghost 7>&1'…
  21. 24543 DEBUG About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/ghost_ynh-master/scripts YNH_APP_ARG_IS_PUBLIC=1 YNH_STDINFO=/tmp/tmpUOEtnc/stdinfo YNH_APP_INSTANCE_NAME=ghost YNH_STDRETURN=/tmp/tmpO2Tsmp/stdreturn YNH_APP_ID=ghost YNH_APP_ARG_PATH=/blog YNH_APP_ARG_DOMAIN=notkaa.xyz BASH_XTRACEFD=7 /bin/bash -x "./install" notkaa.xyz /blog 1 ghost 7>&1']'
  22. 24577 DEBUG + source _common.sh
  23. 24579 DEBUG + source /usr/share/yunohost/helpers
  24. 24580 DEBUG +++ run-parts --list /usr/share/yunohost/helpers.d
  25. 24582 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  26. 24583 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
  27. 24585 DEBUG ++ . /usr/share/yunohost/helpers.d/backend
  28. 24687 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  29. 24688 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/debug ']'
  30. 24689 DEBUG ++ . /usr/share/yunohost/helpers.d/debug
  31. 24690 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  32. 24692 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
  33. 24694 DEBUG ++ . /usr/share/yunohost/helpers.d/filesystem
  34. 24695 DEBUG +++ source /usr/share/yunohost/helpers.d/getopts
  35. 24697 DEBUG +++ CAN_BIND=1
  36. 24698 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  37. 24700 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
  38. 24701 DEBUG ++ . /usr/share/yunohost/helpers.d/getopts
  39. 24703 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  40. 24704 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
  41. 24705 DEBUG ++ . /usr/share/yunohost/helpers.d/ip
  42. 24707 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  43. 24708 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
  44. 24710 DEBUG ++ . /usr/share/yunohost/helpers.d/mysql
  45. 24711 DEBUG +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
  46. 24713 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  47. 24714 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
  48. 24716 DEBUG ++ . /usr/share/yunohost/helpers.d/network
  49. 24717 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  50. 24718 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
  51. 24720 DEBUG ++ . /usr/share/yunohost/helpers.d/nodejs
  52. 24721 DEBUG +++ n_install_dir=/opt/node_n
  53. 24723 DEBUG +++ node_version_path=/opt/node_n/n/versions/node
  54. 24724 DEBUG +++ export N_PREFIX=/opt/node_n
  55. 24726 DEBUG +++ N_PREFIX=/opt/node_n
  56. 24727 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  57. 24729 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/package ']'
  58. 24730 DEBUG ++ . /usr/share/yunohost/helpers.d/package
  59. 24731 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  60. 24733 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/print ']'
  61. 24734 DEBUG ++ . /usr/share/yunohost/helpers.d/print
  62. 24735 DEBUG +++ increment_progression=0
  63. 24736 DEBUG +++ previous_weight=0
  64. 24737 DEBUG ++++ date +%s
  65. 24739 DEBUG +++ base_time=1555230782
  66. 24740 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  67. 24741 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/psql ']'
  68. 24743 DEBUG ++ . /usr/share/yunohost/helpers.d/psql
  69. 24744 DEBUG +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql
  70. 24746 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  71. 24747 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
  72. 24748 DEBUG ++ . /usr/share/yunohost/helpers.d/setting
  73. 24749 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  74. 24750 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
  75. 24751 DEBUG ++ . /usr/share/yunohost/helpers.d/string
  76. 24753 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  77. 24754 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/system ']'
  78. 24755 DEBUG ++ . /usr/share/yunohost/helpers.d/system
  79. 24756 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  80. 24758 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
  81. 24759 DEBUG ++ . /usr/share/yunohost/helpers.d/user
  82. 24760 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  83. 24761 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
  84. 24762 DEBUG ++ . /usr/share/yunohost/helpers.d/utils
  85. 24763 DEBUG + ynh_abort_if_errors
  86. 24765 DEBUG + set -eu
  87. 24767 DEBUG + trap ynh_exit_properly EXIT
  88. 24768 DEBUG + domain=notkaa.xyz
  89. 24769 DEBUG + path_url=/blog
  90. 24771 DEBUG + is_public=1
  91. 24772 DEBUG + app=ghost
  92. 24774 DEBUG + final_path=/var/www/ghost
  93. 24775 DEBUG + test '!' -e /var/www/ghost
  94. 24776 DEBUG ++ ynh_normalize_url_path /blog
  95. 24777 DEBUG ++ local legacy_args=p
  96. 24778 DEBUG ++ args_array=([p]=path_url=)
  97. 24780 DEBUG ++ declare -Ar args_array
  98. 24782 DEBUG ++ local path_url
  99. 24784 DEBUG ++ ynh_handle_getopts_args /blog
  100. 24786 DEBUG ++ set +x
  101. 24787 DEBUG ++ echo '! Helper used in legacy mode !'
  102. 24789 DEBUG ++ set +x
  103. 24791 DEBUG ++ test -n /blog
  104. 24792 DEBUG ++ '[' / '!=' / ']'
  105. 24793 DEBUG ++ '[' g == / ']'
  106. 24795 DEBUG ++ echo /blog
  107. 24796 DEBUG + path_url=/blog
  108. 24798 DEBUG + ynh_webpath_available notkaa.xyz /blog
  109. 24799 DEBUG + local legacy_args=dp
  110. 24801 DEBUG + args_array=([d]=domain= [p]=path_url=)
  111. 24803 DEBUG + declare -Ar args_array
  112. 24805 DEBUG + local domain
  113. 24806 DEBUG + local path_url
  114. 24808 DEBUG + ynh_handle_getopts_args notkaa.xyz /blog
  115. 24810 DEBUG + set +x
  116. 24812 DEBUG + echo '! Helper used in legacy mode !'
  117. 24813 DEBUG + set +x
  118. 24815 DEBUG + sudo yunohost domain url-available notkaa.xyz /blog
  119. 26220 DEBUG True
  120. 26321 DEBUG + ynh_webpath_register ghost notkaa.xyz /blog
  121. 26323 DEBUG + local legacy_args=adp
  122. 26325 DEBUG + args_array=([a]=app= [d]=domain= [p]=path_url=)
  123. 26326 DEBUG + declare -Ar args_array
  124. 26327 DEBUG + local app
  125. 26329 DEBUG + local domain
  126. 26330 DEBUG + local path_url
  127. 26331 DEBUG + ynh_handle_getopts_args ghost notkaa.xyz /blog
  128. 26332 DEBUG + set +x
  129. 26334 DEBUG + echo '! Helper used in legacy mode !'
  130. 26335 DEBUG + set +x
  131. 26336 DEBUG + sudo yunohost app register-url ghost notkaa.xyz /blog
  132. 28042 DEBUG + ynh_app_setting_set ghost domain notkaa.xyz
  133. 28044 DEBUG + local legacy_args=akv
  134. 28045 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
  135. 28046 DEBUG + declare -Ar args_array
  136. 28047 DEBUG + local app
  137. 28048 DEBUG + local key
  138. 28049 DEBUG + local value
  139. 28050 DEBUG + ynh_handle_getopts_args ghost domain notkaa.xyz
  140. 28051 DEBUG + set +x
  141. 28052 DEBUG + echo '! Helper used in legacy mode !'
  142. 28053 DEBUG + set +x
  143. 28054 DEBUG + ynh_app_setting set ghost domain notkaa.xyz
  144. 28056 DEBUG + ACTION=set
  145. 28057 DEBUG + APP=ghost
  146. 28058 DEBUG + KEY=domain
  147. 28059 DEBUG + VALUE=notkaa.xyz
  148. 28060 DEBUG + python -
  149. 28462 DEBUG + ynh_app_setting_set ghost path /blog
  150. 28463 DEBUG + local legacy_args=akv
  151. 28464 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
  152. 28465 DEBUG + declare -Ar args_array
  153. 28466 DEBUG + local app
  154. 28468 DEBUG + local key
  155. 28469 DEBUG + local value
  156. 28470 DEBUG + ynh_handle_getopts_args ghost path /blog
  157. 28471 DEBUG + set +x
  158. 28472 DEBUG + echo '! Helper used in legacy mode !'
  159. 28473 DEBUG + set +x
  160. 28474 DEBUG + ynh_app_setting set ghost path /blog
  161. 28475 DEBUG + ACTION=set
  162. 28476 DEBUG + APP=ghost
  163. 28477 DEBUG + KEY=path
  164. 28478 DEBUG + VALUE=/blog
  165. 28479 DEBUG + python -
  166. 28881 DEBUG + ynh_app_setting_set ghost is_public 1
  167. 28882 DEBUG + local legacy_args=akv
  168. 28883 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
  169. 28885 DEBUG + declare -Ar args_array
  170. 28886 DEBUG + local app
  171. 28887 DEBUG + local key
  172. 28888 DEBUG + local value
  173. 28889 DEBUG + ynh_handle_getopts_args ghost is_public 1
  174. 28890 DEBUG + set +x
  175. 28992 DEBUG + echo '! Helper used in legacy mode !'
  176. 28993 DEBUG + set +x
  177. 28994 DEBUG + ynh_app_setting set ghost is_public 1
  178. 28995 DEBUG + ACTION=set
  179. 28996 DEBUG + APP=ghost
  180. 28996 DEBUG + KEY=is_public
  181. 28997 DEBUG + VALUE=1
  182. 28998 DEBUG + python -
  183. 29401 DEBUG ++ ynh_find_port 4010
  184. 29402 DEBUG ++ local legacy_args=p
  185. 29403 DEBUG ++ args_array=([p]=port=)
  186. 29404 DEBUG ++ declare -Ar args_array
  187. 29405 DEBUG ++ local port
  188. 29406 DEBUG ++ ynh_handle_getopts_args 4010
  189. 29407 DEBUG ++ set +x
  190. 29408 DEBUG ++ echo '! Helper used in legacy mode !'
  191. 29409 DEBUG ++ set +x
  192. 29410 DEBUG ++ test -n 4010
  193. 29411 DEBUG ++ netcat -z 127.0.0.1 4010
  194. 29412 DEBUG ++ echo 4010
  195. 29413 DEBUG + port=4010
  196. 29414 DEBUG + ynh_app_setting_set ghost port 4010
  197. 29415 DEBUG + local legacy_args=akv
  198. 29416 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
  199. 29417 DEBUG + declare -Ar args_array
  200. 29418 DEBUG + local app
  201. 29419 DEBUG + local key
  202. 29420 DEBUG + local value
  203. 29421 DEBUG + ynh_handle_getopts_args ghost port 4010
  204. 29422 DEBUG + set +x
  205. 29423 DEBUG + echo '! Helper used in legacy mode !'
  206. 29424 DEBUG + set +x
  207. 29425 DEBUG + ynh_app_setting set ghost port 4010
  208. 29426 DEBUG + ACTION=set
  209. 29427 DEBUG + APP=ghost
  210. 29428 DEBUG + KEY=port
  211. 29429 DEBUG + VALUE=4010
  212. 29430 DEBUG + python -
  213. 29833 DEBUG + ynh_install_nodejs 8
  214. 29834 DEBUG + local legacy_args=n
  215. 29835 DEBUG + args_array=([n]=nodejs_version=)
  216. 29836 DEBUG + declare -Ar args_array
  217. 29837 DEBUG + local nodejs_version
  218. 29838 DEBUG + ynh_handle_getopts_args 8
  219. 29839 DEBUG + set +x
  220. 29841 DEBUG + echo '! Helper used in legacy mode !'
  221. 29842 DEBUG + set +x
  222. 29843 DEBUG + mkdir -p /opt/node_n
  223. 29844 DEBUG + CLEAR_PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  224. 29845 DEBUG ++ echo /opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  225. 29846 DEBUG ++ sed s@/usr/local/bin:@@
  226. 29847 DEBUG + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin
  227. 29848 DEBUG + test -x /usr/bin/node
  228. 29849 DEBUG + test -x /usr/bin/npm
  229. 29849 DEBUG ++ n --version
  230. 29951 DEBUG + test
  231. 29952 WARNING Installation of N - Node.js version management
  232. 29953 DEBUG + ynh_install_n
  233. 29954 DEBUG + echo 'Installation of N - Node.js version management'
  234. 29955 DEBUG + mkdir -p ../conf
  235. 29956 DEBUG + echo 'SOURCE_URL=https://github.com/tj/n/archive/v2.1.7.tar.gz
  236. 29957 DEBUG SOURCE_SUM=2ba3c9d4dd3c7e38885b37e02337906a1ee91febe6d5c9159d89a9050f2eea8f'
  237. 29958 DEBUG + ynh_setup_source --dest_dir=/opt/node_n/git --source_id=n
  238. 29959 DEBUG + local legacy_args=ds
  239. 29960 DEBUG + args_array=([d]=dest_dir= [s]=source_id=)
  240. 29961 DEBUG + declare -Ar args_array
  241. 29962 DEBUG + local dest_dir
  242. 29963 DEBUG + local source_id
  243. 29964 DEBUG + ynh_handle_getopts_args --dest_dir=/opt/node_n/git --source_id=n
  244. 29965 DEBUG + set +x
  245. 29966 DEBUG + source_id=n
  246. 29967 DEBUG ++ grep SOURCE_URL= /var/cache/yunohost/from_file/ghost_ynh-master/scripts/../conf/n.src
  247. 29969 DEBUG ++ cut -d= -f2-
  248. 29970 DEBUG + local src_url=https://github.com/tj/n/archive/v2.1.7.tar.gz
  249. 29971 DEBUG ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/ghost_ynh-master/scripts/../conf/n.src
  250. 29972 DEBUG ++ cut -d= -f2-
  251. 29973 DEBUG + local src_sum=2ba3c9d4dd3c7e38885b37e02337906a1ee91febe6d5c9159d89a9050f2eea8f
  252. 29974 DEBUG ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/ghost_ynh-master/scripts/../conf/n.src
  253. 29975 DEBUG ++ cut -d= -f2-
  254. 29976 DEBUG + local src_sumprg=
  255. 29976 DEBUG ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/ghost_ynh-master/scripts/../conf/n.src
  256. 29977 DEBUG ++ cut -d= -f2-
  257. 29978 DEBUG + local src_format=
  258. 29979 DEBUG ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/ghost_ynh-master/scripts/../conf/n.src
  259. 29980 DEBUG ++ cut -d= -f2-
  260. 29981 DEBUG + local src_extract=
  261. 29982 DEBUG ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/ghost_ynh-master/scripts/../conf/n.src
  262. 29983 DEBUG ++ cut -d= -f2-
  263. 29984 DEBUG + local src_in_subdir=
  264. 29985 DEBUG ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/ghost_ynh-master/scripts/../conf/n.src
  265. 29986 DEBUG ++ cut -d= -f2-
  266. 29987 DEBUG + local src_filename=
  267. 29988 DEBUG + src_sumprg=sha256sum
  268. 29989 DEBUG + src_in_subdir=true
  269. 29990 DEBUG + src_format=tar.gz
  270. 29991 DEBUG ++ echo tar.gz
  271. 29992 DEBUG ++ tr '[:upper:]' '[:lower:]'
  272. 29993 DEBUG + src_format=tar.gz
  273. 29994 DEBUG + src_extract=true
  274. 29995 DEBUG + '[' '' = '' ']'
  275. 29996 DEBUG + src_filename=n.tar.gz
  276. 29997 DEBUG + local local_src=/opt/yunohost-apps-src/ghost/n.tar.gz
  277. 29998 DEBUG + test -e /opt/yunohost-apps-src/ghost/n.tar.gz
  278. 29998 DEBUG ++ wget -nv -O n.tar.gz https://github.com/tj/n/archive/v2.1.7.tar.gz
  279. 31304 DEBUG + local 'out=2019-04-14 09:33:08 URL:https://codeload.github.com/tj/n/tar.gz/v2.1.7 [9592] -> "n.tar.gz" [1]'
  280. 31305 DEBUG + echo '2ba3c9d4dd3c7e38885b37e02337906a1ee91febe6d5c9159d89a9050f2eea8f n.tar.gz'
  281. 31307 DEBUG + sha256sum -c --status
  282. 31309 DEBUG + mkdir -p /opt/node_n/git
  283. 31311 DEBUG + true
  284. 31313 DEBUG + '[' tar.gz = zip ']'
  285. 31315 DEBUG + local strip=
  286. 31317 DEBUG + '[' true '!=' false ']'
  287. 31319 DEBUG + '[' true == true ']'
  288. 31321 DEBUG + local sub_dirs=1
  289. 31323 DEBUG + strip='--strip-components 1'
  290. 31324 DEBUG + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
  291. 31326 DEBUG + tar -xf n.tar.gz -C /opt/node_n/git --strip-components 1
  292. 31328 DEBUG ++ find /var/cache/yunohost/from_file/ghost_ynh-master/scripts/../sources/patches/ -type f -name 'n-*.patch'
  293. 31330 DEBUG ++ wc -l
  294. 31332 DEBUG + (( 0 > 0 ))
  295. 31334 DEBUG + test -e /var/cache/yunohost/from_file/ghost_ynh-master/scripts/../sources/extra_files/n
  296. 31336 DEBUG + cd /opt/node_n/git
  297. 31338 DEBUG + PREFIX=/opt/node_n
  298. 31339 DEBUG + make install
  299. 31342 DEBUG mkdir -p /opt/node_n/bin/
  300. 31344 DEBUG cp bin/n /opt/node_n/bin/n
  301. 31345 DEBUG + ynh_replace_string '--match_string=^N_PREFIX=${N_PREFIX-.*}$' '--replace_string=N_PREFIX=${N_PREFIX-/opt/node_n}' --target_file=/opt/node_n/bin/n
  302. 31347 DEBUG + local legacy_args=mrf
  303. 31349 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
  304. 31351 DEBUG + declare -Ar args_array
  305. 31353 DEBUG + local match_string
  306. 31355 DEBUG + local replace_string
  307. 31357 DEBUG + local target_file
  308. 31358 DEBUG + ynh_handle_getopts_args '--match_string=^N_PREFIX=${N_PREFIX-.*}$' '--replace_string=N_PREFIX=${N_PREFIX-/opt/node_n}' --target_file=/opt/node_n/bin/n
  309. 31359 DEBUG + set +x
  310. 31461 DEBUG + local delimit=@
  311. 31462 DEBUG + match_string='^N_PREFIX=${N_PREFIX-.*}$'
  312. 31464 DEBUG + replace_string='N_PREFIX=${N_PREFIX-/opt/node_n}'
  313. 31465 DEBUG + sudo sed --in-place 's@^N_PREFIX=${N_PREFIX-.*}$@N_PREFIX=${N_PREFIX-/opt/node_n}@g' /opt/node_n/bin/n
  314. 31466 DEBUG + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  315. 31467 DEBUG + test -x /usr/bin/node_n
  316. 31468 DEBUG + test -x /usr/bin/npm_n
  317. 31469 DEBUG ++ uname -m
  318. 31471 DEBUG + uname=armv7l
  319. 31472 DEBUG + [[ armv7l =~ aarch64 ]]
  320. 31473 DEBUG + [[ armv7l =~ arm64 ]]
  321. 31474 DEBUG + n 8
  322. 32478 DEBUG ++ sort --version-sort
  323. 32479 DEBUG ++ find /opt/node_n/n/versions/node/8 /opt/node_n/n/versions/node/8.15.1 -maxdepth 0
  324. 32480 DEBUG ++ tail --lines=1
  325. 32481 DEBUG + real_nodejs_version=/opt/node_n/n/versions/node/8.15.1
  326. 32483 DEBUG ++ basename /opt/node_n/n/versions/node/8.15.1
  327. 32484 DEBUG + real_nodejs_version=8.15.1
  328. 32485 DEBUG + '[' '!' -e /opt/node_n/n/versions/node/8 ']'
  329. 32486 DEBUG + echo ghost:8
  330. 32487 DEBUG + tee --append /opt/node_n/ynh_app_version
  331. 32488 DEBUG ghost:8
  332. 32489 DEBUG + ynh_app_setting_set --app=ghost --key=nodejs_version --value=8
  333. 32490 DEBUG + local legacy_args=akv
  334. 32491 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
  335. 32492 DEBUG + declare -Ar args_array
  336. 32493 DEBUG + local app
  337. 32494 DEBUG + local key
  338. 32495 DEBUG + local value
  339. 32496 DEBUG + ynh_handle_getopts_args --app=ghost --key=nodejs_version --value=8
  340. 32497 DEBUG + set +x
  341. 32498 DEBUG + ynh_app_setting set ghost nodejs_version 8
  342. 32499 DEBUG + ACTION=set
  343. 32500 DEBUG + APP=ghost
  344. 32501 DEBUG + KEY=nodejs_version
  345. 32502 DEBUG + VALUE=8
  346. 32503 DEBUG + python -
  347. 32905 DEBUG + ynh_cron_upgrade_node
  348. 32907 DEBUG + cat
  349. 33008 DEBUG + chmod +x /opt/node_n/node_update.sh
  350. 33009 DEBUG + cat
  351. 33010 DEBUG + chmod +x /etc/cron.daily/node_update
  352. 33011 DEBUG + ynh_use_nodejs
  353. 33013 DEBUG ++ ynh_app_setting_get --app=ghost --key=nodejs_version
  354. 33013 DEBUG ++ local legacy_args=ak
  355. 33014 DEBUG ++ args_array=([a]=app= [k]=key=)
  356. 33015 DEBUG ++ declare -Ar args_array
  357. 33016 DEBUG ++ local app
  358. 33017 DEBUG ++ local key
  359. 33017 DEBUG ++ ynh_handle_getopts_args --app=ghost --key=nodejs_version
  360. 33018 DEBUG ++ set +x
  361. 33019 DEBUG ++ ynh_app_setting get ghost nodejs_version
  362. 33020 DEBUG ++ ACTION=get
  363. 33020 DEBUG ++ APP=ghost
  364. 33021 DEBUG ++ KEY=nodejs_version
  365. 33022 DEBUG ++ VALUE=
  366. 33023 DEBUG ++ python -
  367. 33425 DEBUG + nodejs_version=8
  368. 33426 DEBUG + nodejs_use_version='echo "Deprecated command, should be removed"'
  369. 33427 DEBUG + nodejs_path=/opt/node_n/n/versions/node/8/bin
  370. 33429 DEBUG + [[ :/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: == *\:\/\o\p\t\/\n\o\d\e\_\n\/\n\/\v\e\r\s\i\o\n\s\/\n\o\d\e\/\8\/\b\i\n* ]]
  371. 33430 DEBUG + PATH=/opt/node_n/n/versions/node/8/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  372. 33431 DEBUG + apt-key add -
  373. 33432 DEBUG + curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg
  374. 33734 WARNING Warning: apt-key output should not be parsed (stdout is not a terminal)
  375. 34136 DEBUG OK
  376. 34238 DEBUG + tee /etc/apt/sources.list.d/yarn.list
  377. 34239 DEBUG + echo 'deb https://dl.yarnpkg.com/debian/ stable main'
  378. 34240 DEBUG deb https://dl.yarnpkg.com/debian/ stable main
  379. 34240 DEBUG + ynh_package_update
  380. 34241 DEBUG + ynh_apt update
  381. 34242 DEBUG + ynh_wait_dpkg_free
  382. 34243 DEBUG + local try
  383. 34244 DEBUG ++ seq 1 17
  384. 34244 DEBUG + for try in `seq 1 17`
  385. 34245 DEBUG + sudo lsof /var/lib/dpkg/lock
  386. 34748 DEBUG + local dpkg_dir=/var/lib/dpkg/updates/
  387. 34749 DEBUG ++ ls -1 /var/lib/dpkg/updates/
  388. 34750 DEBUG + read dpkg_file
  389. 34751 DEBUG + echo ''
  390. 34752 DEBUG + grep -Pq '^[[:digit:]]+$'
  391. 34753 DEBUG + read dpkg_file
  392. 34754 DEBUG + return 0
  393. 34755 DEBUG + DEBIAN_FRONTEND=noninteractive
  394. 34756 DEBUG + apt-get -y update
  395. 35058 DEBUG Hit:1 http://forge.yunohost.org/debian stretch InRelease
  396. 35059 DEBUG Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease
  397. 35060 DEBUG Hit:3 http://archive.raspberrypi.org/debian stretch InRelease
  398. 35462 DEBUG Hit:4 https://dl.yarnpkg.com/debian stable InRelease
  399. 41080 DEBUG Reading package lists...
  400. 41183 DEBUG + ynh_install_app_dependencies mailutils yarn
  401. 41184 DEBUG + local 'dependencies=mailutils yarn'
  402. 41185 DEBUG + local 'dependencies=mailutils, yarn'
  403. 41187 DEBUG + local 'dependencies=mailutils, yarn'
  404. 41187 DEBUG + local manifest_path=../manifest.json
  405. 41188 DEBUG + '[' '!' -e ../manifest.json ']'
  406. 41190 DEBUG ++ grep '\"version\": ' ../manifest.json
  407. 41191 DEBUG ++ cut -d '"' -f 4
  408. 41292 DEBUG + local version=2.1.1
  409. 41294 DEBUG + '[' 5 -eq 0 ']'
  410. 41295 DEBUG + local dep_app=ghost
  411. 41296 DEBUG + cat
  412. 41297 DEBUG + ynh_package_install_from_equivs /tmp/ghost-ynh-deps.control
  413. 41298 DEBUG + local controlfile=/tmp/ghost-ynh-deps.control
  414. 41299 DEBUG ++ grep '^Package: ' /tmp/ghost-ynh-deps.control
  415. 41300 DEBUG ++ cut '-d ' -f 2
  416. 41301 DEBUG + local pkgname=ghost-ynh-deps
  417. 41302 DEBUG ++ grep '^Version: ' /tmp/ghost-ynh-deps.control
  418. 41303 DEBUG ++ cut '-d ' -f 2
  419. 41304 DEBUG + local pkgversion=2.1.1
  420. 41305 DEBUG + [[ -z ghost-ynh-deps ]]
  421. 41306 DEBUG + [[ -z 2.1.1 ]]
  422. 41307 DEBUG + ynh_package_update
  423. 41308 DEBUG + ynh_apt update
  424. 41309 DEBUG + ynh_wait_dpkg_free
  425. 41310 DEBUG + local try
  426. 41311 DEBUG ++ seq 1 17
  427. 41312 DEBUG + for try in `seq 1 17`
  428. 41313 DEBUG + sudo lsof /var/lib/dpkg/lock
  429. 41715 DEBUG + local dpkg_dir=/var/lib/dpkg/updates/
  430. 41717 DEBUG ++ ls -1 /var/lib/dpkg/updates/
  431. 41718 DEBUG + read dpkg_file
  432. 41719 DEBUG + echo ''
  433. 41720 DEBUG + grep -Pq '^[[:digit:]]+$'
  434. 41721 DEBUG + read dpkg_file
  435. 41722 DEBUG + return 0
  436. 41724 DEBUG + DEBIAN_FRONTEND=noninteractive
  437. 41725 DEBUG + apt-get -y update
  438. 42028 DEBUG Hit:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
  439. 42029 DEBUG Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
  440. 42031 DEBUG Hit:3 http://forge.yunohost.org/debian stretch InRelease
  441. 42434 DEBUG Hit:4 https://dl.yarnpkg.com/debian stable InRelease
  442. 48051 DEBUG Reading package lists...
  443. 48153 DEBUG ++ mktemp -d
  444. 48154 DEBUG + local TMPDIR=/tmp/tmp.XIYWq2bEqP
  445. 48155 DEBUG + echo 10
  446. 48156 DEBUG + ynh_wait_dpkg_free
  447. 48158 DEBUG + local try
  448. 48159 DEBUG ++ seq 1 17
  449. 48162 DEBUG + for try in `seq 1 17`
  450. 48163 DEBUG + sudo lsof /var/lib/dpkg/lock
  451. 48565 DEBUG + local dpkg_dir=/var/lib/dpkg/updates/
  452. 48566 DEBUG ++ ls -1 /var/lib/dpkg/updates/
  453. 48568 DEBUG + read dpkg_file
  454. 48569 DEBUG + grep -Pq '^[[:digit:]]+$'
  455. 48570 DEBUG + echo ''
  456. 48571 DEBUG + read dpkg_file
  457. 48572 DEBUG + return 0
  458. 48573 DEBUG + cp /tmp/ghost-ynh-deps.control /tmp/tmp.XIYWq2bEqP/control
  459. 48574 DEBUG + cd /tmp/tmp.XIYWq2bEqP
  460. 48576 DEBUG + equivs-build ./control
  461. 51485 DEBUG + dpkg --force-depends -i ./ghost-ynh-deps_2.1.1_all.deb
  462. 51586 DEBUG Selecting previously unselected package ghost-ynh-deps.
  463. 51688 DEBUG (Reading database ... 52860 files and directories currently installed.)
  464. 51690 DEBUG Preparing to unpack ./ghost-ynh-deps_2.1.1_all.deb ...
  465. 51693 DEBUG Unpacking ghost-ynh-deps (2.1.1) ...
  466. 51794 DEBUG dpkg: ghost-ynh-deps: dependency problems, but configuring anyway as you requested:
  467. 51796 DEBUG ghost-ynh-deps depends on yarn; however:
  468. 51797 DEBUG Package yarn is not installed.
  469. 51798 DEBUG
  470. 51800 DEBUG Setting up ghost-ynh-deps (2.1.1) ...
  471. 51902 DEBUG + ynh_package_install -f
  472. 51904 DEBUG + ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
  473. 51907 DEBUG + ynh_wait_dpkg_free
  474. 51910 DEBUG + local try
  475. 51912 DEBUG ++ seq 1 17
  476. 51915 DEBUG + for try in `seq 1 17`
  477. 51917 DEBUG + sudo lsof /var/lib/dpkg/lock
  478. 52421 DEBUG + local dpkg_dir=/var/lib/dpkg/updates/
  479. 52422 DEBUG ++ ls -1 /var/lib/dpkg/updates/
  480. 52423 DEBUG + read dpkg_file
  481. 52425 DEBUG + echo ''
  482. 52426 DEBUG + grep -Pq '^[[:digit:]]+$'
  483. 52427 DEBUG + read dpkg_file
  484. 52429 DEBUG + return 0
  485. 52430 DEBUG + DEBIAN_FRONTEND=noninteractive
  486. 52432 DEBUG + apt-get -y --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
  487. 53638 DEBUG Reading package lists...
  488. 54341 DEBUG Building dependency tree...
  489. 54342 DEBUG Reading state information...
  490. 55146 DEBUG Correcting dependencies... Done
  491. 56050 DEBUG The following additional packages will be installed:
  492. 56052 DEBUG libc-ares2 libhttp-parser2.8 libuv1 nodejs nodejs-doc yarn
  493. 56154 DEBUG The following NEW packages will be installed:
  494. 56155 DEBUG libc-ares2 libhttp-parser2.8 libuv1 nodejs nodejs-doc yarn
  495. 61182 DEBUG 0 upgraded, 6 newly installed, 0 to remove and 1 not upgraded.
  496. 61184 DEBUG Need to get 0 B/5,923 kB of archives.
  497. 61185 DEBUG After this operation, 27.2 MB of additional disk space will be used.
  498. 61386 DEBUG Selecting previously unselected package libc-ares2:armhf.
  499. (Reading database ... 52864 files and directories currently installed.) 61387 DEBUG (Reading database ...
  500. 61388 DEBUG Preparing to unpack .../0-libc-ares2_1.14.0-1~bpo9+1_armhf.deb ...
  501. 61490 DEBUG Unpacking libc-ares2:armhf (1.14.0-1~bpo9+1) ...
  502. 61591 DEBUG Selecting previously unselected package libhttp-parser2.8:armhf.
  503. 61592 DEBUG Preparing to unpack .../1-libhttp-parser2.8_2.8.1-1~bpo9+1_armhf.deb ...
  504. 61593 DEBUG Unpacking libhttp-parser2.8:armhf (2.8.1-1~bpo9+1) ...
  505. 61795 DEBUG Selecting previously unselected package libuv1:armhf.
  506. 61796 DEBUG Preparing to unpack .../2-libuv1_1.18.0-3~bpo9+1_armhf.deb ...
  507. 61797 DEBUG Unpacking libuv1:armhf (1.18.0-3~bpo9+1) ...
  508. 61998 DEBUG Selecting previously unselected package nodejs.
  509. 62000 DEBUG Preparing to unpack .../3-nodejs_8.11.1~dfsg-2~bpo9+1_armhf.deb ...
  510. 62000 DEBUG Unpacking nodejs (8.11.1~dfsg-2~bpo9+1) ...
  511. 63806 DEBUG Selecting previously unselected package nodejs-doc.
  512. 63908 DEBUG Preparing to unpack .../4-nodejs-doc_8.11.1~dfsg-2~bpo9+1_all.deb ...
  513. 63910 DEBUG Unpacking nodejs-doc (8.11.1~dfsg-2~bpo9+1) ...
  514. 64413 DEBUG Selecting previously unselected package yarn.
  515. 64414 DEBUG Preparing to unpack .../5-yarn_1.15.2-1_all.deb ...
  516. 64415 DEBUG Unpacking yarn (1.15.2-1) ...
  517. 65118 DEBUG Setting up nodejs-doc (8.11.1~dfsg-2~bpo9+1) ...
  518. 65118 DEBUG Setting up libuv1:armhf (1.18.0-3~bpo9+1) ...
  519. 65220 DEBUG Setting up yarn (1.15.2-1) ...
  520. 65221 DEBUG Processing triggers for libc-bin (2.24-11+deb9u4) ...
  521. 65322 DEBUG Processing triggers for man-db (2.7.6.1-2) ...
  522. 65824 DEBUG Setting up libc-ares2:armhf (1.14.0-1~bpo9+1) ...
  523. 65926 DEBUG Setting up libhttp-parser2.8:armhf (2.8.1-1~bpo9+1) ...
  524. 65927 DEBUG Setting up nodejs (8.11.1~dfsg-2~bpo9+1) ...
  525. 66028 DEBUG update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode
  526. 66029 DEBUG Processing triggers for libc-bin (2.24-11+deb9u4) ...
  527. 67735 DEBUG + [[ -n /tmp/tmp.XIYWq2bEqP ]]
  528. 67738 DEBUG + rm -rf /tmp/tmp.XIYWq2bEqP
  529. 67740 DEBUG + ynh_package_is_installed ghost-ynh-deps
  530. 67743 DEBUG + local legacy_args=p
  531. 67746 DEBUG + args_array=([p]=package=)
  532. 67748 DEBUG + declare -Ar args_array
  533. 67751 DEBUG + local package
  534. 67753 DEBUG + ynh_handle_getopts_args ghost-ynh-deps
  535. 67756 DEBUG + set +x
  536. 67759 DEBUG + echo '! Helper used in legacy mode !'
  537. 67761 DEBUG + set +x
  538. 67763 DEBUG + ynh_wait_dpkg_free
  539. 67765 DEBUG + local try
  540. 67766 DEBUG ++ seq 1 17
  541. 67767 DEBUG + for try in `seq 1 17`
  542. 67769 DEBUG + sudo lsof /var/lib/dpkg/lock
  543. 68272 DEBUG + local dpkg_dir=/var/lib/dpkg/updates/
  544. 68273 DEBUG ++ ls -1 /var/lib/dpkg/updates/
  545. 68274 DEBUG + read dpkg_file
  546. 68275 DEBUG + echo ''
  547. 68276 DEBUG + grep -Pq '^[[:digit:]]+$'
  548. 68277 DEBUG + read dpkg_file
  549. 68278 DEBUG + return 0
  550. 68279 DEBUG + dpkg-query -W -f '${Status}' ghost-ynh-deps
  551. 68280 DEBUG + grep -c 'ok installed'
  552. 68382 DEBUG + rm /tmp/ghost-ynh-deps.control
  553. 68383 DEBUG + ynh_app_setting_set --app=ghost --key=apt_dependencies '--value=mailutils, yarn'
  554. 68384 DEBUG + local legacy_args=akv
  555. 68386 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
  556. 68387 DEBUG + declare -Ar args_array
  557. 68388 DEBUG + local app
  558. 68389 DEBUG + local key
  559. 68391 DEBUG + local value
  560. 68392 DEBUG + ynh_handle_getopts_args --app=ghost --key=apt_dependencies '--value=mailutils, yarn'
  561. 68393 DEBUG + set +x
  562. 68394 DEBUG + ynh_app_setting set ghost apt_dependencies 'mailutils, yarn'
  563. 68396 DEBUG + ACTION=set
  564. 68397 DEBUG + APP=ghost
  565. 68398 DEBUG + KEY=apt_dependencies
  566. 68399 DEBUG + VALUE='mailutils, yarn'
  567. 68401 DEBUG + python -
  568. 68903 DEBUG ++ ynh_sanitize_dbid ghost
  569. 68905 DEBUG ++ local legacy_args=n
  570. 68906 DEBUG ++ args_array=([n]=db_name=)
  571. 68907 DEBUG ++ declare -Ar args_array
  572. 68908 DEBUG ++ local db_name
  573. 68909 DEBUG ++ ynh_handle_getopts_args ghost
  574. 68910 DEBUG ++ set +x
  575. 68911 DEBUG ++ echo '! Helper used in legacy mode !'
  576. 68912 DEBUG ++ set +x
  577. 68913 DEBUG ++ echo ghost
  578. 68914 DEBUG + db_name=ghost
  579. 68915 DEBUG + ynh_app_setting_set ghost db_name ghost
  580. 68916 DEBUG + local legacy_args=akv
  581. 68917 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
  582. 68918 DEBUG + declare -Ar args_array
  583. 68919 DEBUG + local app
  584. 68920 DEBUG + local key
  585. 68921 DEBUG + local value
  586. 68922 DEBUG + ynh_handle_getopts_args ghost db_name ghost
  587. 68923 DEBUG + set +x
  588. 68924 DEBUG + echo '! Helper used in legacy mode !'
  589. 68925 DEBUG + set +x
  590. 68926 DEBUG + ynh_app_setting set ghost db_name ghost
  591. 68927 DEBUG + ACTION=set
  592. 68928 DEBUG + APP=ghost
  593. 68929 DEBUG + KEY=db_name
  594. 68930 DEBUG + VALUE=ghost
  595. 68931 DEBUG + python -
  596. 69334 DEBUG + ynh_mysql_setup_db ghost ghost
  597. 69336 DEBUG + local legacy_args=unp
  598. 69338 DEBUG + args_array=([u]=db_user= [n]=db_name= [p]=db_pwd=)
  599. 69339 DEBUG + declare -Ar args_array
  600. 69341 DEBUG + local db_user
  601. 69343 DEBUG + local db_name
  602. 69345 DEBUG + db_pwd=
  603. 69346 DEBUG + ynh_handle_getopts_args ghost ghost
  604. 69348 DEBUG + set +x
  605. 69351 DEBUG + echo '! Helper used in legacy mode !'
  606. 69354 DEBUG + set +x
  607. 69356 DEBUG ++ ynh_string_random
  608. 69357 DEBUG ++ local legacy_args=l
  609. 69359 DEBUG ++ args_array=([l]=length=)
  610. 69360 DEBUG ++ declare -Ar args_array
  611. 69361 DEBUG ++ local length
  612. 69363 DEBUG ++ ynh_handle_getopts_args
  613. 69364 DEBUG ++ set +x
  614. 69368 DEBUG ++ length=24
  615. 69369 DEBUG ++ dd if=/dev/urandom bs=1 count=1000
  616. 69371 DEBUG ++ sed -n 's/\(.\{24\}\).*/\1/p'
  617. 69373 DEBUG ++ tr -c -d A-Za-z0-9
  618. 69374 DEBUG + local new_db_pwd=DcqG7yJkBHiDtTNbouDj6xFI
  619. 69376 DEBUG + db_pwd=DcqG7yJkBHiDtTNbouDj6xFI
  620. 69378 DEBUG + ynh_mysql_create_db ghost ghost DcqG7yJkBHiDtTNbouDj6xFI
  621. 69379 DEBUG + local db=ghost
  622. 69380 DEBUG + local 'sql=CREATE DATABASE ghost;'
  623. 69382 DEBUG + [[ 3 -gt 1 ]]
  624. 69384 DEBUG + sql+=' GRANT ALL PRIVILEGES ON ghost.* TO '\''ghost'\''@'\''localhost'\'''
  625. 69386 DEBUG + [[ -n DcqG7yJkBHiDtTNbouDj6xFI ]]
  626. 69387 DEBUG + sql+=' IDENTIFIED BY '\''DcqG7yJkBHiDtTNbouDj6xFI'\'''
  627. 69389 DEBUG + sql+=' WITH GRANT OPTION;'
  628. 69391 DEBUG + ynh_mysql_execute_as_root '--sql=CREATE DATABASE ghost; GRANT ALL PRIVILEGES ON ghost.* TO '\''ghost'\''@'\''localhost'\'' IDENTIFIED BY '\''DcqG7yJkBHiDtTNbouDj6xFI'\'' WITH GRANT OPTION;'
  629. 69393 DEBUG + local legacy_args=sd
  630. 69394 DEBUG + args_array=([s]=sql= [d]=database=)
  631. 69396 DEBUG + declare -Ar args_array
  632. 69397 DEBUG + local sql
  633. 69399 DEBUG + local database
  634. 69400 DEBUG + ynh_handle_getopts_args '--sql=CREATE DATABASE ghost; GRANT ALL PRIVILEGES ON ghost.* TO '\''ghost'\''@'\''localhost'\'' IDENTIFIED BY '\''DcqG7yJkBHiDtTNbouDj6xFI'\'' WITH GRANT OPTION;'
  635. 69401 DEBUG + set +x
  636. 69403 DEBUG + database=
  637. 69404 DEBUG ++ sudo cat /etc/yunohost/mysql
  638. 69506 DEBUG + ynh_mysql_connect_as --user=root --password=JjyM6RSmqw --database=
  639. 69507 DEBUG + local legacy_args=upd
  640. 69508 DEBUG + args_array=([u]=user= [p]=password= [d]=database=)
  641. 69509 DEBUG + declare -Ar args_array
  642. 69510 DEBUG + local user
  643. 69511 DEBUG + local password
  644. 69513 DEBUG + local database
  645. 69514 DEBUG + ynh_handle_getopts_args --user=root --password=JjyM6RSmqw --database=
  646. 69515 DEBUG + set +x
  647. 69616 DEBUG + database=
  648. 69618 DEBUG + mysql -u root --password=JjyM6RSmqw -B ''
  649. 69619 DEBUG + ynh_app_setting_set --app=ghost --key=mysqlpwd --value=DcqG7yJkBHiDtTNbouDj6xFI
  650. 69621 DEBUG + local legacy_args=akv
  651. 69623 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
  652. 69624 DEBUG + declare -Ar args_array
  653. 69626 DEBUG + local app
  654. 69627 DEBUG + local key
  655. 69629 DEBUG + local value
  656. 69630 DEBUG + ynh_handle_getopts_args --app=ghost --key=mysqlpwd --value=DcqG7yJkBHiDtTNbouDj6xFI
  657. 69632 DEBUG + set +x
  658. 69634 DEBUG + ynh_app_setting set ghost mysqlpwd DcqG7yJkBHiDtTNbouDj6xFI
  659. 69635 DEBUG + ACTION=set
  660. 69637 DEBUG + APP=ghost
  661. 69639 DEBUG + KEY=mysqlpwd
  662. 69640 DEBUG + VALUE=DcqG7yJkBHiDtTNbouDj6xFI
  663. 69641 DEBUG + python -
  664. 70044 DEBUG + ynh_app_setting_set ghost final_path /var/www/ghost
  665. 70046 DEBUG + local legacy_args=akv
  666. 70047 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
  667. 70048 DEBUG + declare -Ar args_array
  668. 70050 DEBUG + local app
  669. 70052 DEBUG + local key
  670. 70053 DEBUG + local value
  671. 70055 DEBUG + ynh_handle_getopts_args ghost final_path /var/www/ghost
  672. 70056 DEBUG + set +x
  673. 70058 DEBUG + echo '! Helper used in legacy mode !'
  674. 70059 DEBUG + set +x
  675. 70061 DEBUG + ynh_app_setting set ghost final_path /var/www/ghost
  676. 70062 DEBUG + ACTION=set
  677. 70064 DEBUG + APP=ghost
  678. 70065 DEBUG + KEY=final_path
  679. 70067 DEBUG + VALUE=/var/www/ghost
  680. 70068 DEBUG + python -
  681. 70571 DEBUG ++ mktemp -d
  682. 70572 WARNING --2019-04-14 09:33:48-- https://ghost.org/zip/ghost-latest.zip
  683. 70574 DEBUG + tmpdir=/tmp/tmp.OzhiCwa5WL
  684. 70575 DEBUG + sudo wget -O /tmp/tmp.OzhiCwa5WL/ghost.zip https://ghost.org/zip/ghost-latest.zip
  685. 70677 WARNING Resolving ghost.org (ghost.org)... 104.18.171.77, 104.18.170.77
  686. 70678 WARNING Connecting to ghost.org (ghost.org)|104.18.171.77|:443... connected.
  687. 70880 WARNING HTTP request sent, awaiting response... 404 Not Found
  688. 70881 WARNING 2019-04-14 09:33:48 ERROR 404: Not Found.
  689. 70883 WARNING
  690. 70986 DEBUG + ynh_exit_properly
  691. 70987 WARNING !!
  692. 70988 DEBUG + local exit_code=8
  693. 70989 WARNING ghost's script has encountered an error. Its execution was cancelled.
  694. 70990 DEBUG + '[' 8 -eq 0 ']'
  695. 70992 WARNING !!
  696. 70993 DEBUG + trap '' EXIT
  697. 70994 WARNING
  698. 70995 DEBUG + set +eu
  699. 70996 DEBUG + echo -e '!!\n ghost'\''s script has encountered an error. Its execution was cancelled.\n!!'
  700. 70997 DEBUG + type -t ynh_clean_setup
  701. 70998 DEBUG + ynh_die
  702. 70999 DEBUG + local legacy_args=mc
  703. 71001 DEBUG + args_array=([m]=message= [c]=ret_code=)
  704. 71002 DEBUG + declare -Ar args_array
  705. 71003 DEBUG + local message
  706. 71004 DEBUG + local ret_code
  707. 71005 DEBUG + ynh_handle_getopts_args
  708. 71006 DEBUG + set +x
  709. 71007 DEBUG + echo ''
  710. 71008 DEBUG + exit 1
  711. 71170 INFO The operation 'Install 'ghost' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20190414-083301-app_install-ghost --share'
  712. 71202 DEBUG Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/ghost_ynh-master/scripts YNH_STDINFO=/tmp/tmp9i4oIf/stdinfo YNH_APP_INSTANCE_NAME=ghost YNH_STDRETURN=/tmp/tmpfyEIl5/stdreturn YNH_APP_ID=ghost BASH_XTRACEFD=7 /bin/bash -x "./remove" ghost 7>&1'…
  713. 71203 DEBUG About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/ghost_ynh-master/scripts YNH_STDINFO=/tmp/tmp9i4oIf/stdinfo YNH_APP_INSTANCE_NAME=ghost YNH_STDRETURN=/tmp/tmpfyEIl5/stdreturn YNH_APP_ID=ghost BASH_XTRACEFD=7 /bin/bash -x "./remove" ghost 7>&1']'
  714. 71234 DEBUG + source _common.sh
  715. 71237 DEBUG + source /usr/share/yunohost/helpers
  716. 71238 DEBUG +++ run-parts --list /usr/share/yunohost/helpers.d
  717. 71239 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  718. 71241 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
  719. 71242 DEBUG ++ . /usr/share/yunohost/helpers.d/backend
  720. 71344 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  721. 71345 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/debug ']'
  722. 71347 DEBUG ++ . /usr/share/yunohost/helpers.d/debug
  723. 71348 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  724. 71349 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
  725. 71351 DEBUG ++ . /usr/share/yunohost/helpers.d/filesystem
  726. 71353 DEBUG +++ source /usr/share/yunohost/helpers.d/getopts
  727. 71355 DEBUG +++ CAN_BIND=1
  728. 71356 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  729. 71358 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
  730. 71359 DEBUG ++ . /usr/share/yunohost/helpers.d/getopts
  731. 71361 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  732. 71363 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
  733. 71364 DEBUG ++ . /usr/share/yunohost/helpers.d/ip
  734. 71366 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  735. 71367 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
  736. 71369 DEBUG ++ . /usr/share/yunohost/helpers.d/mysql
  737. 71370 DEBUG +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
  738. 71372 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  739. 71373 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
  740. 71375 DEBUG ++ . /usr/share/yunohost/helpers.d/network
  741. 71376 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  742. 71378 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
  743. 71379 DEBUG ++ . /usr/share/yunohost/helpers.d/nodejs
  744. 71381 DEBUG +++ n_install_dir=/opt/node_n
  745. 71382 DEBUG +++ node_version_path=/opt/node_n/n/versions/node
  746. 71384 DEBUG +++ export N_PREFIX=/opt/node_n
  747. 71385 DEBUG +++ N_PREFIX=/opt/node_n
  748. 71387 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  749. 71388 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/package ']'
  750. 71390 DEBUG ++ . /usr/share/yunohost/helpers.d/package
  751. 71391 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  752. 71393 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/print ']'
  753. 71394 DEBUG ++ . /usr/share/yunohost/helpers.d/print
  754. 71396 DEBUG +++ increment_progression=0
  755. 71397 DEBUG +++ previous_weight=0
  756. 71399 DEBUG ++++ date +%s
  757. 71400 DEBUG +++ base_time=1555230828
  758. 71402 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  759. 71403 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/psql ']'
  760. 71405 DEBUG ++ . /usr/share/yunohost/helpers.d/psql
  761. 71408 DEBUG +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql
  762. 71410 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  763. 71413 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
  764. 71415 DEBUG ++ . /usr/share/yunohost/helpers.d/setting
  765. 71418 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  766. 71420 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
  767. 71422 DEBUG ++ . /usr/share/yunohost/helpers.d/string
  768. 71425 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  769. 71427 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/system ']'
  770. 71430 DEBUG ++ . /usr/share/yunohost/helpers.d/system
  771. 71432 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  772. 71435 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
  773. 71438 DEBUG ++ . /usr/share/yunohost/helpers.d/user
  774. 71440 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
  775. 71443 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
  776. 71445 DEBUG ++ . /usr/share/yunohost/helpers.d/utils
  777. 71447 DEBUG + app=ghost
  778. 71449 DEBUG ++ ynh_app_setting_get ghost domain
  779. 71451 DEBUG ++ local legacy_args=ak
  780. 71453 DEBUG ++ args_array=([a]=app= [k]=key=)
  781. 71456 DEBUG ++ declare -Ar args_array
  782. 71458 DEBUG ++ local app
  783. 71460 DEBUG ++ local key
  784. 71462 DEBUG ++ ynh_handle_getopts_args ghost domain
  785. 71464 DEBUG ++ set +x
  786. 71466 DEBUG ++ echo '! Helper used in legacy mode !'
  787. 71468 DEBUG ++ set +x
  788. 71470 DEBUG ++ ynh_app_setting get ghost domain
  789. 71472 DEBUG ++ ACTION=get
  790. 71474 DEBUG ++ APP=ghost
  791. 71476 DEBUG ++ KEY=domain
  792. 71478 DEBUG ++ VALUE=
  793. 71480 DEBUG ++ python -
  794. 71884 DEBUG + domain=notkaa.xyz
  795. 71885 DEBUG ++ ynh_app_setting_get ghost port
  796. 71887 DEBUG ++ local legacy_args=ak
  797. 71888 DEBUG ++ args_array=([a]=app= [k]=key=)
  798. 71890 DEBUG ++ declare -Ar args_array
  799. 71891 DEBUG ++ local app
  800. 71893 DEBUG ++ local key
  801. 71894 DEBUG ++ ynh_handle_getopts_args ghost port
  802. 71896 DEBUG ++ set +x
  803. 71897 DEBUG ++ echo '! Helper used in legacy mode !'
  804. 71898 DEBUG ++ set +x
  805. 71900 DEBUG ++ ynh_app_setting get ghost port
  806. 71901 DEBUG ++ ACTION=get
  807. 71903 DEBUG ++ APP=ghost
  808. 71904 DEBUG ++ KEY=port
  809. 71906 DEBUG ++ VALUE=
  810. 71907 DEBUG ++ python -
  811. 72410 DEBUG + port=4010
  812. 72412 DEBUG ++ ynh_app_setting_get ghost db_name
  813. 72413 DEBUG ++ local legacy_args=ak
  814. 72414 DEBUG ++ args_array=([a]=app= [k]=key=)
  815. 72415 DEBUG ++ declare -Ar args_array
  816. 72416 DEBUG ++ local app
  817. 72417 DEBUG ++ local key
  818. 72418 DEBUG ++ ynh_handle_getopts_args ghost db_name
  819. 72420 DEBUG ++ set +x
  820. 72421 DEBUG ++ echo '! Helper used in legacy mode !'
  821. 72422 DEBUG ++ set +x
  822. 72423 DEBUG ++ ynh_app_setting get ghost db_name
  823. 72424 DEBUG ++ ACTION=get
  824. 72426 DEBUG ++ APP=ghost
  825. 72427 DEBUG ++ KEY=db_name
  826. 72428 DEBUG ++ VALUE=
  827. 72429 DEBUG ++ python -
  828. 72832 DEBUG + db_name=ghost
  829. 72834 DEBUG + db_user=ghost
  830. 72835 DEBUG ++ ynh_app_setting_get ghost final_path
  831. 72836 DEBUG ++ local legacy_args=ak
  832. 72838 DEBUG ++ args_array=([a]=app= [k]=key=)
  833. 72839 DEBUG ++ declare -Ar args_array
  834. 72841 DEBUG ++ local app
  835. 72842 DEBUG ++ local key
  836. 72844 DEBUG ++ ynh_handle_getopts_args ghost final_path
  837. 72845 DEBUG ++ set +x
  838. 72846 DEBUG ++ echo '! Helper used in legacy mode !'
  839. 72848 DEBUG ++ set +x
  840. 72850 DEBUG ++ ynh_app_setting get ghost final_path
  841. 72852 DEBUG ++ ACTION=get
  842. 72853 DEBUG ++ APP=ghost
  843. 72855 DEBUG ++ KEY=final_path
  844. 72856 DEBUG ++ VALUE=
  845. 72858 DEBUG ++ python -
  846. 73260 DEBUG + final_path=/var/www/ghost
  847. 73261 DEBUG + ynh_remove_systemd_config
  848. 73263 DEBUG + local legacy_args=s
  849. 73264 DEBUG + args_array=([s]=service=)
  850. 73266 DEBUG + declare -Ar args_array
  851. 73267 DEBUG + local service
  852. 73269 DEBUG + ynh_handle_getopts_args
  853. 73270 DEBUG + set +x
  854. 73272 DEBUG + local service=ghost
  855. 73273 DEBUG + local finalsystemdconf=/etc/systemd/system/ghost.service
  856. 73275 DEBUG + '[' -e /etc/systemd/system/ghost.service ']'
  857. 73276 DEBUG + yunohost service status
  858. 73277 DEBUG + grep -q ghost
  859. 75284 DEBUG + ynh_remove_app_dependencies
  860. 75286 DEBUG + local dep_app=ghost
  861. 75287 DEBUG + ynh_package_autopurge ghost-ynh-deps
  862. 75288 DEBUG + ynh_apt autoremove --purge ghost-ynh-deps
  863. 75290 DEBUG + ynh_wait_dpkg_free
  864. 75291 DEBUG + local try
  865. 75293 DEBUG ++ seq 1 17
  866. 75294 DEBUG + for try in `seq 1 17`
  867. 75296 DEBUG + sudo lsof /var/lib/dpkg/lock
  868. 75798 DEBUG + local dpkg_dir=/var/lib/dpkg/updates/
  869. 75799 DEBUG ++ ls -1 /var/lib/dpkg/updates/
  870. 75800 DEBUG + read dpkg_file
  871. 75802 DEBUG + echo ''
  872. 75803 DEBUG + grep -Pq '^[[:digit:]]+$'
  873. 75805 DEBUG + read dpkg_file
  874. 75806 DEBUG + return 0
  875. 75807 DEBUG + DEBIAN_FRONTEND=noninteractive
  876. 75808 DEBUG + apt-get -y autoremove --purge ghost-ynh-deps
  877. 75910 DEBUG Reading package lists...
  878. 76613 DEBUG Building dependency tree...
  879. 76620 DEBUG Reading state information...
  880. 77825 DEBUG The following packages will be REMOVED:
  881. 77826 DEBUG ghost-ynh-deps* libc-ares2* libhttp-parser2.8* libuv1* nodejs* nodejs-doc*
  882. 77827 DEBUG yarn*
  883. 81345 DEBUG 0 upgraded, 0 newly installed, 7 to remove and 1 not upgraded.
  884. 81346 DEBUG After this operation, 27.2 MB disk space will be freed.
  885. 81448 DEBUG (Readi(Reading database ... 53029 files and directories currently installed.)
  886. 81549 DEBUG Removing ghost-ynh-deps (2.1.1) ...
  887. 81651 DEBUG Removing yarn (1.15.2-1) ...
  888. 81853 DEBUG Removing nodejs (8.11.1~dfsg-2~bpo9+1) ...
  889. 82056 DEBUG Removing libc-ares2:armhf (1.14.0-1~bpo9+1) ...
  890. 82259 DEBUG Removing libhttp-parser2.8:armhf (2.8.1-1~bpo9+1) ...
  891. 82462 DEBUG Removing libuv1:armhf (1.18.0-3~bpo9+1) ...
  892. 82665 DEBUG Removing nodejs-doc (8.11.1~dfsg-2~bpo9+1) ...
  893. 82967 DEBUG Processing triggers for libc-bin (2.24-11+deb9u4) ...
  894. 83068 DEBUG Processing triggers for man-db (2.7.6.1-2) ...
  895. 85979 DEBUG + ynh_mysql_remove_db ghost ghost
  896. 85982 DEBUG + local legacy_args=un
  897. 85984 DEBUG + args_array=([u]=db_user= [n]=db_name=)
  898. 85987 DEBUG + declare -Ar args_array
  899. 85989 DEBUG + local db_user
  900. 85991 DEBUG + local db_name
  901. 85993 DEBUG + ynh_handle_getopts_args ghost ghost
  902. 85995 DEBUG + set +x
  903. 85998 DEBUG + echo '! Helper used in legacy mode !'
  904. 86001 DEBUG + set +x
  905. 86004 DEBUG ++ sudo cat /etc/yunohost/mysql
  906. 86107 DEBUG + local mysql_root_password=JjyM6RSmqw
  907. 86110 DEBUG + mysqlshow -u root -pJjyM6RSmqw
  908. 86115 WARNING Removing database ghost
  909. 86118 DEBUG + grep -q '^| ghost'
  910. 86120 DEBUG + echo 'Removing database ghost'
  911. 86123 DEBUG + ynh_mysql_drop_db ghost
  912. 86125 DEBUG + ynh_mysql_execute_as_root '--sql=DROP DATABASE ghost;'
  913. 86127 DEBUG + local legacy_args=sd
  914. 86130 DEBUG + args_array=([s]=sql= [d]=database=)
  915. 86132 DEBUG + declare -Ar args_array
  916. 86134 DEBUG + local sql
  917. 86137 DEBUG + local database
  918. 86139 DEBUG + ynh_handle_getopts_args '--sql=DROP DATABASE ghost;'
  919. 86141 DEBUG + set +x
  920. 86244 DEBUG + database=
  921. 86246 DEBUG ++ sudo cat /etc/yunohost/mysql
  922. 86349 DEBUG + ynh_mysql_connect_as --user=root --password=JjyM6RSmqw --database=
  923. 86351 DEBUG + local legacy_args=upd
  924. 86353 DEBUG + args_array=([u]=user= [p]=password= [d]=database=)
  925. 86356 DEBUG + declare -Ar args_array
  926. 86358 DEBUG + local user
  927. 86360 DEBUG + local password
  928. 86362 DEBUG + local database
  929. 86364 DEBUG + ynh_handle_getopts_args --user=root --password=JjyM6RSmqw --database=
  930. 86366 DEBUG + set +x
  931. 86368 DEBUG + database=
  932. 86370 DEBUG + mysql -u root --password=JjyM6RSmqw -B ''
  933. 86472 DEBUG ++ ynh_mysql_user_exists --user=ghost
  934. 86474 DEBUG ++ local legacy_args=u
  935. 86476 DEBUG ++ args_array=([u]=user=)
  936. 86478 DEBUG ++ declare -Ar args_array
  937. 86480 DEBUG ++ local user
  938. 86482 DEBUG ++ ynh_handle_getopts_args --user=ghost
  939. 86484 DEBUG ++ set +x
  940. 86486 DEBUG +++ ynh_mysql_execute_as_root '--sql=SELECT User from mysql.user WHERE User = '\''ghost'\'';'
  941. 86488 DEBUG +++ local legacy_args=sd
  942. 86490 DEBUG +++ args_array=([s]=sql= [d]=database=)
  943. 86492 DEBUG +++ declare -Ar args_array
  944. 86494 DEBUG +++ local sql
  945. 86496 DEBUG +++ local database
  946. 86498 DEBUG +++ ynh_handle_getopts_args '--sql=SELECT User from mysql.user WHERE User = '\''ghost'\'';'
  947. 86500 DEBUG +++ set +x
  948. 86503 DEBUG +++ database=
  949. 86505 DEBUG ++++ sudo cat /etc/yunohost/mysql
  950. 86609 DEBUG +++ ynh_mysql_connect_as --user=root --password=JjyM6RSmqw --database=
  951. 86612 DEBUG +++ local legacy_args=upd
  952. 86618 DEBUG +++ args_array=([u]=user= [p]=password= [d]=database=)
  953. 86620 DEBUG +++ declare -Ar args_array
  954. 86623 DEBUG +++ local user
  955. 86625 DEBUG +++ local password
  956. 86627 DEBUG +++ local database
  957. 86628 DEBUG +++ ynh_handle_getopts_args --user=root --password=JjyM6RSmqw --database=
  958. 86630 DEBUG +++ set +x
  959. 86732 DEBUG +++ database=
  960. 86735 DEBUG +++ mysql -u root --password=JjyM6RSmqw -B ''
  961. 86736 DEBUG ++ [[ -z User
  962. 86738 DEBUG ghost ]]
  963. 86740 DEBUG ++ return 0
  964. 86743 DEBUG + ynh_mysql_drop_user ghost
  965. 86745 DEBUG + ynh_mysql_execute_as_root '--sql=DROP USER '\''ghost'\''@'\''localhost'\'';'
  966. 86746 DEBUG + local legacy_args=sd
  967. 86748 DEBUG + args_array=([s]=sql= [d]=database=)
  968. 86750 DEBUG + declare -Ar args_array
  969. 86752 DEBUG + local sql
  970. 86754 DEBUG + local database
  971. 86756 DEBUG + ynh_handle_getopts_args '--sql=DROP USER '\''ghost'\''@'\''localhost'\'';'
  972. 86758 DEBUG + set +x
  973. 86860 DEBUG + database=
  974. 86862 DEBUG ++ sudo cat /etc/yunohost/mysql
  975. 86965 DEBUG + ynh_mysql_connect_as --user=root --password=JjyM6RSmqw --database=
  976. 86967 DEBUG + local legacy_args=upd
  977. 86968 DEBUG + args_array=([u]=user= [p]=password= [d]=database=)
  978. 86970 DEBUG + declare -Ar args_array
  979. 86971 DEBUG + local user
  980. 86973 DEBUG + local password
  981. 86975 DEBUG + local database
  982. 86977 DEBUG + ynh_handle_getopts_args --user=root --password=JjyM6RSmqw --database=
  983. 86978 DEBUG + set +x
  984. 86980 DEBUG + database=
  985. 86982 DEBUG + mysql -u root --password=JjyM6RSmqw -B ''
  986. 87084 DEBUG + ynh_secure_remove /var/www/ghost
  987. 87086 WARNING /var/www/ghost wasn't deleted because it doesn't exist.
  988. 87088 DEBUG + local legacy_args=f
  989. 87090 WARNING /etc/nginx/conf.d/notkaa.xyz.d/ghost.conf wasn't deleted because it doesn't exist.
  990. 87092 DEBUG + args_array=([f]=file=)
  991. 87094 DEBUG + declare -Ar args_array
  992. 87096 DEBUG + local file
  993. 87098 DEBUG + ynh_handle_getopts_args /var/www/ghost
  994. 87100 DEBUG + set +x
  995. 87102 DEBUG + echo '! Helper used in legacy mode !'
  996. 87104 DEBUG + set +x
  997. 87106 DEBUG + local 'forbidden_path= /var/www /home/yunohost.app'
  998. 87108 DEBUG + '[' 1 -ge 2 ']'
  999. 87109 DEBUG + [[ /var/www /home/yunohost.app =~ /var/www/ghost ]]
  1000. 87111 DEBUG + [[ /var/www/ghost =~ ^/[[:alnum:]]+$ ]]
  1001. 87113 DEBUG + [[ t = \/ ]]
  1002. 87115 DEBUG + '[' -e /var/www/ghost ']'
  1003. 87117 DEBUG + echo '/var/www/ghost wasn'\''t deleted because it doesn'\''t exist.'
  1004. 87119 DEBUG + ynh_remove_nginx_config
  1005. 87121 DEBUG + ynh_secure_remove --file=/etc/nginx/conf.d/notkaa.xyz.d/ghost.conf
  1006. 87123 DEBUG + local legacy_args=f
  1007. 87125 DEBUG + args_array=([f]=file=)
  1008. 87127 DEBUG + declare -Ar args_array
  1009. 87129 DEBUG + local file
  1010. 87131 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/notkaa.xyz.d/ghost.conf
  1011. 87133 DEBUG + set +x
  1012. 87134 DEBUG + local 'forbidden_path= /var/www /home/yunohost.app'
  1013. 87136 DEBUG + '[' 1 -ge 2 ']'
  1014. 87138 DEBUG + [[ /var/www /home/yunohost.app =~ /etc/nginx/conf\.d/notkaa\.xyz\.d/ghost\.conf ]]
  1015. 87140 DEBUG + [[ /etc/nginx/conf.d/notkaa.xyz.d/ghost.conf =~ ^/[[:alnum:]]+$ ]]
  1016. 87142 DEBUG + [[ f = \/ ]]
  1017. 87144 DEBUG + '[' -e /etc/nginx/conf.d/notkaa.xyz.d/ghost.conf ']'
  1018. 87146 DEBUG + echo '/etc/nginx/conf.d/notkaa.xyz.d/ghost.conf wasn'\''t deleted because it doesn'\''t exist.'
  1019. 87148 DEBUG + ynh_systemd_action --service_name=nginx --action=reload
  1020. 87150 DEBUG + local legacy_args=nalpte
  1021. 87151 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=)
  1022. 87153 DEBUG + declare -Ar args_array
  1023. 87155 DEBUG + local service_name
  1024. 87157 DEBUG + local action
  1025. 87159 DEBUG + local line_match
  1026. 87161 DEBUG + local length
  1027. 87163 DEBUG + local log_path
  1028. 87165 DEBUG + local timeout
  1029. 87167 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload
  1030. 87169 DEBUG + set +x
  1031. 87171 DEBUG + local service_name=nginx
  1032. 87173 DEBUG + local action=reload
  1033. 87175 DEBUG + local log_path=/var/log/nginx/nginx.log
  1034. 87176 DEBUG + local length=20
  1035. 87178 DEBUG + local timeout=300
  1036. 87179 DEBUG + [[ -n '' ]]
  1037. 87181 DEBUG + ynh_print_info '--message=Reload the service nginx'
  1038. 87184 DEBUG + local legacy_args=m
  1039. 87185 DEBUG + args_array=([m]=message=)
  1040. 87187 DEBUG + declare -Ar args_array
  1041. 87189 DEBUG + local message
  1042. 87191 DEBUG + ynh_handle_getopts_args '--message=Reload the service nginx'
  1043. 87193 DEBUG + set +x
  1044. 87194 DEBUG + echo 'Reload the service nginx'
  1045. 87196 DEBUG + '[' reload == reload ']'
  1046. 87197 DEBUG + action=reload-or-restart
  1047. 87199 DEBUG + systemctl reload-or-restart nginx
  1048. 87902 DEBUG + [[ -n '' ]]
  1049. 87904 INFO Reload the service nginx
  1050. 87905 DEBUG + yunohost firewall list
  1051. 87906 DEBUG + grep -q '\- 4010$'
  1052. 89111 DEBUG + ynh_system_user_delete ghost
  1053. 89112 WARNING The user ghost was not found
  1054. 89113 DEBUG + local legacy_args=u
  1055. 89114 DEBUG + args_array=([u]=username=)
  1056. 89115 DEBUG + declare -Ar args_array
  1057. 89116 DEBUG + local username
  1058. 89116 DEBUG + ynh_handle_getopts_args ghost
  1059. 89117 DEBUG + set +x
  1060. 89118 DEBUG + echo '! Helper used in legacy mode !'
  1061. 89119 DEBUG + set +x
  1062. 89120 DEBUG + ynh_system_user_exists ghost
  1063. 89121 DEBUG + local legacy_args=u
  1064. 89122 DEBUG + args_array=([u]=username=)
  1065. 89123 DEBUG + declare -Ar args_array
  1066. 89123 DEBUG + local username
  1067. 89124 DEBUG + ynh_handle_getopts_args ghost
  1068. 89125 DEBUG + set +x
  1069. 89126 DEBUG + echo '! Helper used in legacy mode !'
  1070. 89127 DEBUG + set +x
  1071. 89128 DEBUG + getent passwd ghost
  1072. 89129 DEBUG + echo 'The user ghost was not found'
  1073. 89129 DEBUG + ynh_system_group_exists ghost
  1074. 89130 DEBUG + local legacy_args=g
  1075. 89131 DEBUG + args_array=([g]=group=)
  1076. 89132 DEBUG + declare -Ar args_array
  1077. 89133 DEBUG + local group
  1078. 89134 DEBUG + ynh_handle_getopts_args ghost
  1079. 89135 DEBUG + set +x
  1080. 89135 DEBUG + echo '! Helper used in legacy mode !'
  1081. 89136 DEBUG + set +x
  1082. 89137 DEBUG + getent group ghost
  1083. 89279 DEBUG To view the log of the operation 'Remove 'ghost' after a failed installation', use the command 'yunohost log display 20190414-083348-remove_on_failed_install-ghost'
  1084. 90360 SUCCESS The SSOwat configuration has been generated
  1085. 90362 DEBUG action [22014.1] executed in 89.267s
  1086. 90363 DEBUG lock has been released
  1087. 90363 ERROR The operation 'Install 'ghost' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20190414-083301-app_install-ghost --share'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement