WriteFreely error install no /var/cache/yunohost/tmp_work_dirs/ directories

Hi all,

Happy user of YunoHost, currently running Nextcloud. I am eager to install and use WriteFreely, which I stupidly deleted because of an earlier issue with a particular setting (having it show a ‘Public’ option for publication, which I understood is because of choosing a single user or multi-user blog). Then I have tried reinstalling WriteFreely on the same domain I installed it on before, but I am getting installation errors having to do with a lack of specific directory under /var/cache/yunohost/app_tmp_work_dirs/. I have already tried to restart several times, as I thought it might help with cached or temporary directories. Full log:

args:
app: writefreely
force: false
label: WriteFreely
no_remove_on_failure: false
ended_at: 2022-02-13 07:32:25.074861
env:
YNH_APP_ARG_ADMIN: joost
YNH_APP_ARG_DOMAIN: maindomain.tld
YNH_APP_ARG_IS_PUBLIC: ‘1’
YNH_APP_ARG_SINGLE_USER: ‘0’
YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_cb0ikjx_
YNH_APP_ID: writefreely
YNH_APP_INSTANCE_NAME: writefreely
YNH_APP_INSTANCE_NUMBER: ‘1’
YNH_APP_MANIFEST_VERSION: 0.13.1~ynh2
YNH_ARCH: armhf
error: An error occurred inside the app installation script
interface: api
operation: app_install
parent: null
related_to:

    • app
    • writefreely
      started_at: 2022-02-13 07:31:54.709201
      success: false
      yunohost_version: 4.3.6.2

============

2022-02-13 07:31:54,740: INFO - Installing writefreely…
2022-02-13 07:31:55,260: DEBUG - Nothing to update in LDAP
2022-02-13 07:31:55,266: DEBUG - Permission ‘writefreely.main’ updated
2022-02-13 07:31:55,442: DEBUG - Full log of this operation: ‘Update URL related to permission ‘writefreely’
2022-02-13 07:31:55,746: DEBUG - The permission database has been resynchronized
2022-02-13 07:31:56,353: DEBUG - SSOwat configuration regenerated
2022-02-13 07:31:56,680: DEBUG - Permission ‘writefreely.main’ created
2022-02-13 07:31:56,682: DEBUG - Full log of this operation: ‘Create permission ‘writefreely’
2022-02-13 07:31:56,735: DEBUG - Executing command ‘[‘sh’, ‘-c’, ‘/bin/bash -x “./install” 7>&1’]’
2022-02-13 07:31:56,761: DEBUG - + source common.sh
2022-02-13 07:31:56,762: DEBUG - + source /usr/share/yunohost/helpers
2022-02-13 07:31:56,875: DEBUG - +++ set +o
2022-02-13 07:31:56,876: DEBUG - +++ grep xtrace
2022-02-13 07:31:56,882: DEBUG - ++ readonly ‘XTRACE_ENABLE=set -o xtrace’
2022-02-13 07:31:56,884: DEBUG - ++ XTRACE_ENABLE=‘set -o xtrace’
2022-02-13 07:31:57,752: DEBUG - + ynh_abort_if_errors
2022-02-13 07:31:57,755: DEBUG - + trap ynh_exit_properly EXIT
2022-02-13 07:31:57,756: DEBUG - + domain=maindomain.tld
2022-02-13 07:31:57,757: DEBUG - + path_url=/
2022-02-13 07:31:57,757: DEBUG - + admin=joost
2022-02-13 07:31:57,758: DEBUG - + is_public=1
2022-02-13 07:31:57,759: DEBUG - + password=‘
2022-02-13 07:31:57,759: DEBUG - + single_user=0
2022-02-13 07:31:57,760: DEBUG - + architecture=armhf
2022-02-13 07:31:57,761: DEBUG - + app=writefreely
2022-02-13 07:31:57,979: DEBUG - + ‘[’ armhf = i386 ‘]’
2022-02-13 07:31:57,980: DEBUG - + final_path=/var/www/writefreely
2022-02-13 07:31:57,981: INFO - [+…] > Validating installation parameters…
2022-02-13 07:31:57,984: DEBUG - + test ‘!’ -e /var/www/writefreely
2022-02-13 07:31:57,985: DEBUG - + ynh_webpath_register --app=writefreely --domain=maindomain.tld --path_url=/
2022-02-13 07:31:58,228: DEBUG - + yunohost app register-url writefreely maindomain.tld /
2022-02-13 07:32:13,684: DEBUG - + ynh_app_setting_set --app=writefreely --key=domain --value=maindomain.tld
2022-02-13 07:32:13,685: DEBUG - + local globalapp=writefreely
2022-02-13 07:32:13,694: INFO - [#+…] > Storing installation settings…
2022-02-13 07:32:13,933: DEBUG - + app=writefreely
2022-02-13 07:32:13,934: DEBUG - + [[ domain =~ (unprotected|protected|skipped)
]]
2022-02-13 07:32:13,935: DEBUG - + ynh_app_setting set writefreely domain maindomain.tld
2022-02-13 07:32:14,218: DEBUG - + ynh_app_setting_set --app=writefreely --key=path --value=/
2022-02-13 07:32:14,219: DEBUG - + local globalapp=writefreely
2022-02-13 07:32:14,429: DEBUG - + app=writefreely
2022-02-13 07:32:14,431: DEBUG - + [[ path =~ (unprotected|protected|skipped)
]]
2022-02-13 07:32:14,432: DEBUG - + ynh_app_setting set writefreely path /
2022-02-13 07:32:14,710: DEBUG - + ynh_app_setting_set --app=writefreely --key=admin --value=joost
2022-02-13 07:32:14,712: DEBUG - + local globalapp=writefreely
2022-02-13 07:32:14,921: DEBUG - + app=writefreely
2022-02-13 07:32:14,923: DEBUG - + [[ admin =~ (unprotected|protected|skipped)
]]
2022-02-13 07:32:14,923: DEBUG - + ynh_app_setting set writefreely admin joost
2022-02-13 07:32:15,878: DEBUG - + ynh_app_setting_set --app=writefreely --key=single_user --value=0
2022-02-13 07:32:15,880: DEBUG - + local globalapp=writefreely
2022-02-13 07:32:16,195: DEBUG - + app=writefreely
2022-02-13 07:32:16,196: DEBUG - + [[ single_user =~ (unprotected|protected|skipped)
]]
2022-02-13 07:32:16,198: DEBUG - + ynh_app_setting set writefreely single_user 0
2022-02-13 07:32:16,645: INFO - [##++…] > Finding an available port…
2022-02-13 07:32:16,648: DEBUG - ++ ynh_find_port --port=8095
2022-02-13 07:32:16,683: DEBUG - ++ test -n 8095
2022-02-13 07:32:16,684: DEBUG - ++ ynh_port_available --port=8095
2022-02-13 07:32:16,719: DEBUG - ++ ss --numeric --listening --tcp --udp
2022-02-13 07:32:16,720: DEBUG - ++ awk ‘{print$5}’
2022-02-13 07:32:16,721: DEBUG - ++ grep --quiet --extended-regexp ‘:8095$’
2022-02-13 07:32:18,087: DEBUG - ++ grep -q ‘port: ‘’‘8095’’’’ /etc/yunohost/apps/nextcloud/settings.yml /etc/yunohost/apps/writefreely/settings.yml
2022-02-13 07:32:18,092: DEBUG - ++ return 0
2022-02-13 07:32:18,093: DEBUG - ++ echo 8095
2022-02-13 07:32:18,095: DEBUG - + port=8095
2022-02-13 07:32:18,095: DEBUG - + ynh_app_setting_set --app=writefreely --key=port --value=8095
2022-02-13 07:32:18,096: DEBUG - + local globalapp=writefreely
2022-02-13 07:32:18,336: DEBUG - + app=writefreely
2022-02-13 07:32:18,337: DEBUG - + [[ port =~ (unprotected|protected|skipped)
]]
2022-02-13 07:32:18,339: DEBUG - + ynh_app_setting set writefreely port 8095
2022-02-13 07:32:18,783: INFO - [####+…] > Configuring system user…
2022-02-13 07:32:18,786: DEBUG - + ynh_system_user_create --username=writefreely --home_dir=/var/www/writefreely
2022-02-13 07:32:18,994: DEBUG - + use_shell=0
2022-02-13 07:32:18,995: DEBUG - + home_dir=/var/www/writefreely
2022-02-13 07:32:18,996: DEBUG - + groups=
2022-02-13 07:32:18,998: DEBUG - + ynh_system_user_exists writefreely
2022-02-13 07:32:19,032: DEBUG - + getent passwd writefreely
2022-02-13 07:32:19,067: DEBUG - + ‘[’ -n /var/www/writefreely ‘]’
2022-02-13 07:32:19,068: DEBUG - + local ‘user_home_dir=–home-dir /var/www/writefreely’
2022-02-13 07:32:19,070: DEBUG - + local ‘shell=–shell /usr/sbin/nologin’
2022-02-13 07:32:19,070: DEBUG - + useradd --home-dir /var/www/writefreely --system --user-group writefreely --shell /usr/sbin/nologin
2022-02-13 07:32:20,834: INFO - [#####+…] > Creating a MySQL database…
2022-02-13 07:32:20,837: DEBUG - ++ ynh_sanitize_dbid --db_name=writefreely
2022-02-13 07:32:20,875: DEBUG - ++ echo writefreely
2022-02-13 07:32:20,877: DEBUG - + db_name=writefreely
2022-02-13 07:32:20,878: DEBUG - + db_user=writefreely
2022-02-13 07:32:20,879: DEBUG - + ynh_app_setting_set --app=writefreely --key=db_name --value=writefreely
2022-02-13 07:32:20,881: DEBUG - + local globalapp=writefreely
2022-02-13 07:32:21,126: DEBUG - + app=writefreely
2022-02-13 07:32:21,127: DEBUG - + [[ db_name =~ (unprotected|protected|skipped)
]]
2022-02-13 07:32:21,128: DEBUG - + ynh_app_setting set writefreely db_name writefreely
2022-02-13 07:32:21,419: DEBUG - + ynh_mysql_setup_db --db_user=writefreely --db_name=writefreely
2022-02-13 07:32:21,425: DEBUG - + db_pwd=
2022-02-13 07:32:21,584: DEBUG - ++ ynh_string_random
2022-02-13 07:32:21,596: DEBUG - ++ length=24
2022-02-13 07:32:21,597: DEBUG - ++ dd if=/dev/urandom bs=1 count=1000
2022-02-13 07:32:21,598: DEBUG - ++ tr --complement --delete A-Za-z0-9
2022-02-13 07:32:21,598: DEBUG - ++ sed --quiet 's/(.{24}).
/\1/p’
2022-02-13 07:32:21,615: DEBUG - + local new_db_pwd=
*
2022-02-13 07:32:21,616: DEBUG - + db_pwd=**********
2022-02-13 07:32:21,617: DEBUG - + ynh_mysql_create_db writefreely writefreely **********
2022-02-13 07:32:21,618: DEBUG - + local db=writefreely
2022-02-13 07:32:21,619: DEBUG - + local ‘sql=CREATE DATABASE writefreely;’
2022-02-13 07:32:21,620: DEBUG - + [[ 3 -gt 1 ]]
2022-02-13 07:32:21,621: DEBUG - + sql+=’ GRANT ALL PRIVILEGES ON writefreely.* TO ‘’‘writefreely’’’@’’‘localhost’’’’
2022-02-13 07:32:21,622: DEBUG - + [[ -n ********** ]]
2022-02-13 07:32:21,623: DEBUG - + sql+=’ IDENTIFIED BY ‘’'’’’’
2022-02-13 07:32:21,624: DEBUG - + sql+=’ WITH GRANT OPTION;’
2022-02-13 07:32:21,625: DEBUG - + ynh_mysql_execute_as_root '–sql=CREATE DATABASE writefreely; GRANT ALL PRIVILEGES ON writefreely.
TO ‘’‘writefreely’’’@’’‘localhost’’’ IDENTIFIED BY ‘’'
’’’ WITH GRANT OPTION;’
2022-02-13 07:32:21,679: DEBUG - + database=
2022-02-13 07:32:21,681: DEBUG - + ‘[’ -n ‘’ ‘]’
2022-02-13 07:32:21,682: DEBUG - + mysql -B ‘’
2022-02-13 07:32:21,947: DEBUG - + ynh_app_setting_set --app=writefreely --key=mysqlpwd --value=
*********
2022-02-13 07:32:21,948: DEBUG - + local globalapp=writefreely
2022-02-13 07:32:22,194: DEBUG - + app=writefreely
2022-02-13 07:32:22,195: DEBUG - + [[ mysqlpwd =~ (unprotected|protected|skipped)
]]
2022-02-13 07:32:22,196: DEBUG - + ynh_app_setting set writefreely mysqlpwd **********
2022-02-13 07:32:22,659: INFO - [######++…] > Setting up source files…
2022-02-13 07:32:22,663: DEBUG - + ynh_app_setting_set --app=writefreely --key=final_path --value=/var/www/writefreely
2022-02-13 07:32:22,664: DEBUG - + local globalapp=writefreely
2022-02-13 07:32:22,907: DEBUG - + app=writefreely
2022-02-13 07:32:22,910: DEBUG - + [[ final_path =~ (unprotected|protected|skipped)
]]
2022-02-13 07:32:22,911: DEBUG - + ynh_app_setting set writefreely final_path /var/www/writefreely
2022-02-13 07:32:23,198: DEBUG - + ynh_setup_source --dest_dir=/var/www/writefreely --source_id=armhf
2022-02-13 07:32:23,354: DEBUG - + source_id=armhf
2022-02-13 07:32:23,355: DEBUG - + keep=
2022-02-13 07:32:23,356: DEBUG - + local src_file_path=/var/cache/yunohost/app_tmp_work_dirs/app_cb0ikjx
/conf/armhf.src
2022-02-13 07:32:23,362: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/app_tmp_work_dirs/app_cb0ikjx_/conf/armhf.src
2022-02-13 07:32:23,364: DEBUG - ++ cut --delimiter== --fields=2-
2022-02-13 07:32:23,367: WARNING - grep: /var/cache/yunohost/app_tmp_work_dirs/app_cb0ikjx_/conf/armhf.src: No such file or directory
2022-02-13 07:32:23,372: DEBUG - + local src_url=
2022-02-13 07:32:23,376: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/app_tmp_work_dirs/app_cb0ikjx_/conf/armhf.src
2022-02-13 07:32:23,377: DEBUG - ++ cut --delimiter== --fields=2-
2022-02-13 07:32:23,385: WARNING - grep: /var/cache/yunohost/app_tmp_work_dirs/app_cb0ikjx_/conf/armhf.src: No such file or directory
2022-02-13 07:32:23,388: DEBUG - + local src_sum=
2022-02-13 07:32:23,390: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/app_tmp_work_dirs/app_cb0ikjx_/conf/armhf.src
2022-02-13 07:32:23,391: DEBUG - ++ cut --delimiter== --fields=2-
2022-02-13 07:32:23,396: WARNING - grep: /var/cache/yunohost/app_tmp_work_dirs/app_cb0ikjx_/conf/armhf.src: No such file or directory
2022-02-13 07:32:23,400: DEBUG - + local src_sumprg=
2022-02-13 07:32:23,403: DEBUG - ++ cut --delimiter== --fields=2-
2022-02-13 07:32:23,404: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/app_tmp_work_dirs/app_cb0ikjx_/conf/armhf.src
2022-02-13 07:32:23,410: WARNING - grep: /var/cache/yunohost/app_tmp_work_dirs/app_cb0ikjx_/conf/armhf.src: No such file or directory
2022-02-13 07:32:23,416: DEBUG - + local src_format=
2022-02-13 07:32:23,419: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/app_tmp_work_dirs/app_cb0ikjx_/conf/armhf.src
2022-02-13 07:32:23,420: DEBUG - ++ cut --delimiter== --fields=2-
2022-02-13 07:32:23,426: WARNING - grep: /var/cache/yunohost/app_tmp_work_dirs/app_cb0ikjx_/conf/armhf.src: No such file or directory
2022-02-13 07:32:23,429: DEBUG - + local src_extract=
2022-02-13 07:32:23,432: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/app_tmp_work_dirs/app_cb0ikjx_/conf/armhf.src
2022-02-13 07:32:23,433: DEBUG - ++ cut --delimiter== --fields=2-
2022-02-13 07:32:23,439: WARNING - grep: /var/cache/yunohost/app_tmp_work_dirs/app_cb0ikjx_/conf/armhf.src: No such file or directory
2022-02-13 07:32:23,444: DEBUG - + local src_in_subdir=
2022-02-13 07:32:23,447: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/app_tmp_work_dirs/app_cb0ikjx_/conf/armhf.src
2022-02-13 07:32:23,448: DEBUG - ++ cut --delimiter== --fields=2-
2022-02-13 07:32:23,454: WARNING - grep: /var/cache/yunohost/app_tmp_work_dirs/app_cb0ikjx_/conf/armhf.src: No such file or directory
2022-02-13 07:32:23,460: DEBUG - + local src_filename=
2022-02-13 07:32:23,461: DEBUG - + src_sumprg=sha256sum
2022-02-13 07:32:23,462: DEBUG - + src_in_subdir=true
2022-02-13 07:32:23,464: DEBUG - + src_format=tar.gz
2022-02-13 07:32:23,465: DEBUG - ++ tr ‘[:upper:]’ ‘[:lower:]’
2022-02-13 07:32:23,465: DEBUG - ++ echo tar.gz
2022-02-13 07:32:23,469: DEBUG - + src_format=tar.gz
2022-02-13 07:32:23,471: DEBUG - + src_extract=true
2022-02-13 07:32:23,472: DEBUG - + ‘[’ ‘’ = ‘’ ‘]’
2022-02-13 07:32:23,473: DEBUG - + src_filename=armhf.tar.gz
2022-02-13 07:32:23,473: DEBUG - + local local_src=/opt/yunohost-apps-src/writefreely/armhf.tar.gz
2022-02-13 07:32:23,474: DEBUG - + mkdir -p /var/cache/yunohost/download/writefreely/
2022-02-13 07:32:23,481: DEBUG - + src_filename=/var/cache/yunohost/download/writefreely/armhf.tar.gz
2022-02-13 07:32:23,482: DEBUG - + test -e /opt/yunohost-apps-src/writefreely/armhf.tar.gz
2022-02-13 07:32:23,483: DEBUG - + ‘[’ -n ‘’ ‘]’
2022-02-13 07:32:23,484: DEBUG - + ynh_die ‘Couldn’’‘t parse SOURCE_URL from /var/cache/yunohost/app_tmp_work_dirs/app_cb0ikjx_/conf/armhf.src ?’
2022-02-13 07:32:23,549: WARNING - Couldn’t parse SOURCE_URL from /var/cache/yunohost/app_tmp_work_dirs/app_cb0ikjx_/conf/armhf.src ?
2022-02-13 07:32:23,553: DEBUG - + ynh_exit_properly
2022-02-13 07:32:24,066: DEBUG - + ynh_clean_setup
2022-02-13 07:32:24,067: DEBUG - + ynh_clean_check_starting
2022-02-13 07:32:24,068: DEBUG - + ‘[’ -n ‘’ ‘]’
2022-02-13 07:32:24,069: DEBUG - + ‘[’ -n ‘’ ‘]’
2022-02-13 07:32:25,072: ERROR - Unable to install writefreely: An error occurred inside the app installation script

Also, how would I put the entire log in a blockquote or otherwise readable format (now has a lot of cursive and strong text)?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.