Coder Social home page Coder Social logo

bookstack_ynh's Introduction

BookStack for YunoHost

Integration level Working status Maintenance status

Install BookStack with YunoHost

Lire ce readme en français.

This package allows you to install BookStack quickly and simply on a YunoHost server. If you don't have YunoHost, please consult the guide to learn how to install it.

Overview

BookStack is an opinionated wiki system that provides a pleasant and simple out of the box experience. New users to an instance should find the experience intuitive and only basic word-processing skills should be required to get involved in creating content on BookStack. The platform should provide advanced power features to those that desire it but they should not interfere with the core simple user experience.

Features

  • Multi-Factor Authentication
  • Dark & Light Modes
  • LDAP Authentication
  • Markdown Editor
  • WYSIWYG Editing
  • Multi-Lingual
  • Diagrams.net Integration

Shipped version: 24.02~ynh1

Demo: https://demo.bookstackapp.com

Screenshots

Screenshot of BookStack

Documentation and resources

Developer info

Please send your pull request to the testing branch.

To try the testing branch, please proceed like that.

sudo yunohost app install https://github.com/YunoHost-Apps/bookstack_ynh/tree/testing --debug
or
sudo yunohost app upgrade bookstack -u https://github.com/YunoHost-Apps/bookstack_ynh/tree/testing --debug

More info regarding app packaging: https://yunohost.org/packaging_apps

bookstack_ynh's People

Contributors

arthurzenika avatar ericgaspar avatar liberodark avatar oniricorpe avatar yalh76 avatar yunohost-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bookstack_ynh's Issues

Add LDAP Support

https://www.bookstackapp.com/docs/admin/ldap-auth/

AUTH_METHOD=ldap

# The LDAP host, Adding a port is optional
LDAP_SERVER=localhost:389
# If using LDAP over SSL you should also define the protocol:
# LDAP_SERVER=ldaps://example.com:636

# The base DN from where users will be searched within
LDAP_BASE_DN=ou=People,dc=yunohost,dc=org

# The full DN and password of the user used to search the server
# Can both be left as false to bind anonymously
LDAP_DN=false
LDAP_PASS=false

# A filter to use when searching for users
# The user-provided user-name used to replace any occurrences of '${user}'
LDAP_USER_FILTER=(&(uid=${user}))

# Set the LDAP version to use when connecting to the server
LDAP_VERSION=false

# Set the default 'email' attribute. Defaults to 'mail'
LDAP_EMAIL_ATTRIBUTE=mail

# Set the property to use for a user's display name. Defaults to 'cn'
LDAP_DISPLAY_NAME_ATTRIBUTE=cn

# If you need to allow untrusted LDAPS certificates, add the below and uncomment (remove the #)
# Only set this option if debugging or you're absolutely sure it's required for your setup.
#LDAP_TLS_INSECURE=true

Can’t login

Describe the bug

I cannot log into my newly installed BookStack instance. First of all, nowhere in the documentation I can find any hint concerning what the login email and password should be. Nevertheless, I attempted logging in with the YunoHost user password and several different emails:

I have no success.

Even by clicking on “reset password” I try any of those email addresses and I receive no reset email.


Context

Hardware: VPS bought online
YunoHost version: 4.3.6
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no


Steps to reproduce

  • Installed the app successfully
  • tried to log in

Expected behavior

Successfully logging in.


Logs

/

Updates clear certain .env files

Certain .env values get overwritten when updating.

APP_KEY
MAIL_FROM_NAME
MAIL_FROM
APP_DEFAULT_DARK_MODE

Auth methods are also removed, for services like Google and Discord.

Consider adding the app to the apps list

Hello !

This is a friendly notice from the Yunohost Apps team : our tool noticed that your app is pretty interesting but is not listed in the apps list !

Please consider making a pull request to add it, such that people can easily learn about its existence from this page. If you declare your app as working, you might also benefit from automatic tests on the app C.I..

It is relevant to add your app to the list even if it's not working or unmaintained since it might still help people who might want to continue packaging the app. Just be sure to correctly flag it as notworking/unmaintained.

Checkout the README to learn how to add your app to the list (should take only a few minutes).

Datalove <3,

The YunoHost team.

401 error after changing YNH admin password.

Describe the bug

I was changing the password to my admin account to something more secure and then tried to use bookstack which directed me to a 401 Authorization Required error. I have all my documentation on there so I can't uninstall and re-install.
I tried updating Bookstack from 23.02.2~ynh2 (i think) to 23.05.2~ynh2 to see if that would fix it but to no avail.
Hopefully bookstack eventually forgets my credentials and takes me to a login page, but if not, how would I fix this?

Capture

Context

  • Hardware: Old laptop
  • YunoHost version: 11.1.20
  • I have access to my server: yes to all
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch: 23.05.2~ynh2

Steps to reproduce

  1. login to bookstack
  2. change your admin account password through the webadmin's /yunohost/admin/#/users page (in my case this is the only account)
  3. go back to the bookstack app and receive the error.
  4. experience frustration.

I'm not sure how to do this:

  • If you used the webadmin, please perform the equivalent command from the CLI first.

Expected behavior

I suppose Bookstack should log me out and take me to the login page if my "credentials are invalid".

Logs

changed credentials:
https://paste.yunohost.org/raw/upoyivupow
then this which I presume was an auto backup:
https://paste.yunohost.org/raw/kesovezego
then updated bookstack:
https://paste.yunohost.org/raw/yaguqoqepa

installation process don't finish: do not run composer as root/sudo

YNH 4.1.6 with Debian 10

I run the command for installing BookStack in the CLI. It gives me this warning and don't continue.
Warning: Do not run Composer as root/super user! See https://getcomposer.org/root for details

I set up a new non root/non sudo user and tried to start the installation using the new user. When I run the command with sudo it says 'user has no sudo priviliges' and when I try without sudo the installation don't start because the command yunohost needs to be run with sudo.

I already asked on reddit an one user suggested that BookStack made slight changes to the install script and that the yunohost package might need to be updated too. https://github.com/BookStackApp/devops/commit/d72f29bb83773e0882781afa9f5d209be7c92beb

Could this be the problem? Or what else could be the problem?

Failing to install composer

2020-01-29 08:46:41,838: DEBUG - + echo 'Install BookStack composer dependancies'
2020-01-29 08:46:41,839: DEBUG - + pushd /var/www/bookstack
2020-01-29 08:46:41,839: DEBUG - /var/www/bookstack /var/cache/yunohost/from_file/bookstack_ynh-master/scripts
2020-01-29 08:46:41,839: DEBUG - + php -r 'readfile('\''https://getcomposer.org/installer'\'');'
2020-01-29 08:46:41,839: DEBUG - + php
2020-01-29 08:46:42,141: DEBUG - All settings correct for using Composer
2020-01-29 08:46:42,141: DEBUG - The HOME or COMPOSER_HOME environment variable must be set for composer to run correctly
2020-01-29 08:46:42,141: DEBUG - + ynh_exit_properly
2020-01-29 08:46:42,141: DEBUG - + local exit_code=1
2020-01-29 08:46:42,141: DEBUG - + '[' 1 -eq 0 ']'
2020-01-29 08:46:42,142: DEBUG - + trap '' EXIT
2020-01-29 08:46:42,142: DEBUG - + set +eu
2020-01-29 08:46:42,142: DEBUG - + sleep 0.5
2020-01-29 08:46:42,644: DEBUG - + ynh_print_err '--message=!!\n  bookstack'\''s script has encountered an error. Its execution was cancelled.\n!!'
2020-01-29 08:46:42,645: WARNING - �[91m�[1m[ERR]�[0m !!
2020-01-29 08:46:42,645: DEBUG - + local legacy_args=m
2020-01-29 08:46:42,646: WARNING -   bookstack's script has encountered an error. Its execution was cancelled.

I think the HOME and COMPOSER_HOME missing might be the problem. Will look into other ynh packages which use composer to see if that problem is fixed somehow.

bookstack cannot be installed: An error occurred in the installation script

Hey,

Bookstack installation (Via SSH and web interface) unfortunately aborts due to an error.
Logs:

2021-01-09 13:20:04,217: INFO - bookstack wird installiert...
2021-01-09 13:20:04,278: DEBUG - Permission 'bookstack.main' updated
2021-01-09 13:20:04,314: DEBUG - Vollständiges Log dieser Operation: 'Update url related to permission 'bookstack''
2021-01-09 13:20:04,391: DEBUG - The permission database has been resynchronized
2021-01-09 13:20:04,437: DEBUG - Die Konfiguration von SSOwat erstellt
2021-01-09 13:20:04,476: DEBUG - Permission 'bookstack.main' created
2021-01-09 13:20:04,476: DEBUG - Vollständiges Log dieser Operation: 'Create permission 'bookstack''
2021-01-09 13:20:04,484: DEBUG - Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/scripts YNH_APP_MANIFEST_VERSION=0.26.3 YNH_APP_ARG_IS_PUBLIC=1 YNH_STDINFO=/tmp/tmp60Hwox/stdinfo YNH_APP_INSTANCE_NAME=bookstack YNH_INTERFACE=api YNH_APP_ID=bookstack YNH_APP_ARG_PATH=/bs YNH_STDRETURN=/tmp/tmp66khZz/stdreturn YNH_APP_ARG_DOMAIN=tectastic.de BASH_XTRACEFD=7 /bin/bash -x "./install" tectastic.de /bs 1 bookstack 7>&1'
2021-01-09 13:20:04,497: DEBUG - + source common.sh
2021-01-09 13:20:04,498: DEBUG - + source /usr/share/yunohost/helpers
2021-01-09 13:20:04,498: DEBUG - +++ set +o
2021-01-09 13:20:04,498: DEBUG - +++ grep xtrace
2021-01-09 13:20:04,498: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2021-01-09 13:20:04,498: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2021-01-09 13:20:04,598: DEBUG - + ynh_abort_if_errors
2021-01-09 13:20:04,598: DEBUG - + set -o errexit
2021-01-09 13:20:04,598: DEBUG - + set -o nounset
2021-01-09 13:20:04,598: DEBUG - + trap ynh_exit_properly EXIT
2021-01-09 13:20:04,599: DEBUG - + domain=tectastic.de
2021-01-09 13:20:04,599: DEBUG - + path_url=/bs
2021-01-09 13:20:04,599: DEBUG - + is_public=1
2021-01-09 13:20:04,599: DEBUG - + app=bookstack
2021-01-09 13:20:04,599: DEBUG - + final_path=/var/www/bookstack
2021-01-09 13:20:04,599: DEBUG - + test '!' -e /var/www/bookstack
2021-01-09 13:20:04,599: DEBUG - ++ ynh_normalize_url_path /bs
2021-01-09 13:20:04,600: DEBUG - ++ test -n /bs
2021-01-09 13:20:04,600: DEBUG - ++ '[' / '!=' / ']'
2021-01-09 13:20:04,600: DEBUG - ++ '[' s == / ']'
2021-01-09 13:20:04,600: DEBUG - ++ echo /bs
2021-01-09 13:20:04,600: DEBUG - + path_url=/bs
2021-01-09 13:20:04,600: DEBUG - + ynh_webpath_available tectastic.de /bs
2021-01-09 13:20:04,601: DEBUG - + yunohost domain url-available tectastic.de /bs
2021-01-09 13:20:04,801: DEBUG - True
2021-01-09 13:20:04,801: DEBUG - + ynh_webpath_register bookstack tectastic.de /bs
2021-01-09 13:20:04,802: DEBUG - + yunohost app register-url bookstack tectastic.de /bs
2021-01-09 13:20:05,403: DEBUG - + ynh_app_setting_set bookstack domain tectastic.de
2021-01-09 13:20:05,404: DEBUG - + [[ domain =~ (unprotected|protected|skipped)
]]
2021-01-09 13:20:05,404: DEBUG - + ynh_app_setting set bookstack domain tectastic.de
2021-01-09 13:20:05,404: DEBUG - + ACTION=set
2021-01-09 13:20:05,404: DEBUG - + APP=bookstack
2021-01-09 13:20:05,404: DEBUG - + KEY=domain
2021-01-09 13:20:05,404: DEBUG - + VALUE=tectastic.de
2021-01-09 13:20:05,404: DEBUG - + python2.7 -
2021-01-09 13:20:05,404: DEBUG - + ynh_app_setting_set bookstack path /bs
2021-01-09 13:20:05,505: DEBUG - + [[ path =~ (unprotected|protected|skipped)_ ]]
2021-01-09 13:20:05,505: DEBUG - + ynh_app_setting set bookstack path /bs
2021-01-09 13:20:05,505: DEBUG - + ACTION=set
2021-01-09 13:20:05,505: DEBUG - + APP=bookstack
2021-01-09 13:20:05,505: DEBUG - + KEY=path
2021-01-09 13:20:05,505: DEBUG - + VALUE=/bs
2021-01-09 13:20:05,506: DEBUG - + python2.7 -
2021-01-09 13:20:05,506: DEBUG - + ynh_app_setting_set bookstack is_public 1
2021-01-09 13:20:05,506: DEBUG - + [[ is_public =~ (unprotected|protected|skipped)_ ]]
2021-01-09 13:20:05,506: DEBUG - + ynh_app_setting set bookstack is_public 1
2021-01-09 13:20:05,506: DEBUG - + ACTION=set
2021-01-09 13:20:05,506: DEBUG - + APP=bookstack
2021-01-09 13:20:05,506: DEBUG - + KEY=is_public
2021-01-09 13:20:05,507: DEBUG - + VALUE=1
2021-01-09 13:20:05,507: DEBUG - + python2.7 -
2021-01-09 13:20:05,607: DEBUG - + ynh_print_info 'Installing dependencies...'
2021-01-09 13:20:05,607: INFO - Installing dependencies...
2021-01-09 13:20:05,608: DEBUG - + echo 'Installing dependencies...'
2021-01-09 13:20:05,608: DEBUG - + ynh_install_app_dependencies php7.3-fpm php7.3-cli php7.3-curl php7.3-mysql php7.3-ldap php7.3-mbstring php7.3-tidy php7.3-xml php7.3-zip php7.3-gd php7.3-mysql
2021-01-09 13:20:05,608: DEBUG - + local 'dependencies=php7.3-fpm php7.3-cli php7.3-curl php7.3-mysql php7.3-ldap php7.3-mbstring php7.3-tidy php7.3-xml php7.3-zip php7.3-gd php7.3-mysql'
2021-01-09 13:20:05,608: DEBUG - ++ echo 'php7.3-fpm php7.3-cli php7.3-curl php7.3-mysql php7.3-ldap php7.3-mbstring php7.3-tidy php7.3-xml php7.3-zip php7.3-gd php7.3-mysql'
2021-01-09 13:20:05,608: DEBUG - ++ sed 's/([^\<=\>])\ ([^(])/\1, \2/g'
2021-01-09 13:20:05,608: DEBUG - + dependencies='php7.3-fpm, php7.3-cli, php7.3-curl, php7.3-mysql, php7.3-ldap, php7.3-mbstring, php7.3-tidy, php7.3-xml, php7.3-zip, php7.3-gd, php7.3-mysql'
2021-01-09 13:20:05,609: DEBUG - + local 'dependencies=php7.3-fpm, php7.3-cli, php7.3-curl, php7.3-mysql, php7.3-ldap, php7.3-mbstring, php7.3-tidy, php7.3-xml, php7.3-zip, php7.3-gd, php7.3-mysql'
2021-01-09 13:20:05,609: DEBUG - + local manifest_path=../manifest.json
2021-01-09 13:20:05,609: DEBUG - + '[' '!' -e ../manifest.json ']'
2021-01-09 13:20:05,609: DEBUG - ++ grep '"version": ' ../manifest.json
2021-01-09 13:20:05,609: DEBUG - ++ cut '--delimiter="' --fields=4
2021-01-09 13:20:05,609: DEBUG - + local version=0.26.3
2021-01-09 13:20:05,609: DEBUG - + '[' 6 -eq 0 ']'
2021-01-09 13:20:05,609: DEBUG - + local dep_app=bookstack
2021-01-09 13:20:05,609: DEBUG - + [[ php7.3-fpm, php7.3-cli, php7.3-curl, php7.3-mysql, php7.3-ldap, php7.3-mbstring, php7.3-tidy, php7.3-xml, php7.3-zip, php7.3-gd, php7.3-mysql =~ [<=>] ]]
2021-01-09 13:20:05,609: DEBUG - + echo php7.3-fpm, php7.3-cli, php7.3-curl, php7.3-mysql, php7.3-ldap, php7.3-mbstring, php7.3-tidy, php7.3-xml, php7.3-zip, php7.3-gd, php7.3-mysql
2021-01-09 13:20:05,609: DEBUG - + grep --quiet php
2021-01-09 13:20:05,609: DEBUG - + dpkg --list
2021-01-09 13:20:05,609: DEBUG - + grep php7.0
2021-01-09 13:20:05,609: DEBUG - + grep --quiet --invert-match 7.0.33-0+deb9
2021-01-09 13:20:05,609: DEBUG - + cat
2021-01-09 13:20:05,610: DEBUG - + ynh_package_install_from_equivs /tmp/bookstack-ynh-deps.control
2021-01-09 13:20:05,610: DEBUG - + local controlfile=/tmp/bookstack-ynh-deps.control
2021-01-09 13:20:05,610: DEBUG - ++ grep '^Package: ' /tmp/bookstack-ynh-deps.control
2021-01-09 13:20:05,610: DEBUG - ++ cut '--delimiter= ' --fields=2
2021-01-09 13:20:05,610: DEBUG - + local pkgname=bookstack-ynh-deps
2021-01-09 13:20:05,610: DEBUG - ++ grep '^Version: ' /tmp/bookstack-ynh-deps.control
2021-01-09 13:20:05,610: DEBUG - ++ cut '--delimiter= ' --fields=2
2021-01-09 13:20:05,610: DEBUG - + local pkgversion=0.26.3
2021-01-09 13:20:05,610: DEBUG - + [[ -z bookstack-ynh-deps ]]
2021-01-09 13:20:05,610: DEBUG - + [[ -z 0.26.3 ]]
2021-01-09 13:20:05,610: DEBUG - + ynh_package_update
2021-01-09 13:20:05,610: DEBUG - + ynh_apt update
2021-01-09 13:20:05,610: DEBUG - + ynh_wait_dpkg_free
2021-01-09 13:20:05,711: DEBUG - + return 0
2021-01-09 13:20:05,711: DEBUG - + LC_ALL=C
2021-01-09 13:20:05,711: DEBUG - + DEBIAN_FRONTEND=noninteractive
2021-01-09 13:20:05,711: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2021-01-09 13:20:05,911: DEBUG - Hit:1 http://forge.yunohost.org/debian buster InRelease
2021-01-09 13:20:06,012: DEBUG - Hit:2 http://ftp.debian.org/debian buster InRelease
2021-01-09 13:20:06,012: DEBUG - Hit:3 http://security.debian.org/debian-security buster/updates InRelease
2021-01-09 13:20:06,012: DEBUG - Hit:4 http://ftp.debian.org/debian buster-updates InRelease
2021-01-09 13:20:06,713: DEBUG - Reading package lists...
2021-01-09 13:20:06,713: DEBUG - ++ mktemp --directory
2021-01-09 13:20:06,713: DEBUG - + local TMPDIR=/tmp/tmp.zHapHhJhLV
2021-01-09 13:20:06,713: DEBUG - + echo 10
2021-01-09 13:20:06,714: DEBUG - + ynh_wait_dpkg_free
2021-01-09 13:20:06,814: DEBUG - + return 0
2021-01-09 13:20:06,814: DEBUG - + cp /tmp/bookstack-ynh-deps.control /tmp/tmp.zHapHhJhLV/control
2021-01-09 13:20:06,814: DEBUG - + cd /tmp/tmp.zHapHhJhLV
2021-01-09 13:20:06,814: DEBUG - + LC_ALL=C
2021-01-09 13:20:06,814: DEBUG - + equivs-build ./control
2021-01-09 13:20:07,215: DEBUG - + LC_ALL=C
2021-01-09 13:20:07,215: DEBUG - + dpkg --force-depends --install ./bookstack-ynh-deps_0.26.3_all.deb
2021-01-09 13:20:07,215: DEBUG - + tee ./dpkg_log
2021-01-09 13:20:07,215: DEBUG - Selecting previously unselected package bookstack-ynh-deps.
2021-01-09 13:20:07,215: DEBUG - (Reading database ... 57398 files and directories currently installed.)
2021-01-09 13:20:07,215: DEBUG - Preparing to unpack .../bookstack-ynh-deps_0.26.3_all.deb ...
2021-01-09 13:20:07,215: DEBUG - Unpacking bookstack-ynh-deps (0.26.3) ...
2021-01-09 13:20:07,316: DEBUG - dpkg: bookstack-ynh-deps: dependency problems, but configuring anyway as you requested:
2021-01-09 13:20:07,316: DEBUG - bookstack-ynh-deps depends on php7.3-tidy; however:
2021-01-09 13:20:07,316: DEBUG - Package php7.3-tidy is not installed.
2021-01-09 13:20:07,316: DEBUG -
2021-01-09 13:20:07,316: DEBUG - Setting up bookstack-ynh-deps (0.26.3) ...
2021-01-09 13:20:07,316: DEBUG - + ynh_package_install --fix-broken
2021-01-09 13:20:07,316: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2021-01-09 13:20:07,316: DEBUG - + ynh_wait_dpkg_free
2021-01-09 13:20:07,417: DEBUG - + return 0
2021-01-09 13:20:07,417: DEBUG - + LC_ALL=C
2021-01-09 13:20:07,417: DEBUG - + DEBIAN_FRONTEND=noninteractive
2021-01-09 13:20:07,417: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2021-01-09 13:20:07,417: DEBUG - Reading package lists...
2021-01-09 13:20:07,517: DEBUG - Building dependency tree...
2021-01-09 13:20:07,517: DEBUG - Reading state information...
2021-01-09 13:20:07,618: DEBUG - Correcting dependencies... Done
2021-01-09 13:20:07,618: DEBUG - The following additional packages will be installed:
2021-01-09 13:20:07,618: DEBUG - libtidy5deb1 php7.3-tidy
2021-01-09 13:20:07,618: DEBUG - The following NEW packages will be installed:
2021-01-09 13:20:07,618: DEBUG - libtidy5deb1 php7.3-tidy
2021-01-09 13:20:07,919: DEBUG - 0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
2021-01-09 13:20:07,919: DEBUG - Need to get 0 B/227 kB of archives.
2021-01-09 13:20:07,919: DEBUG - After this operation, 1139 kB of additional disk space will be used.
2021-01-09 13:20:07,919: DEBUG - Selecting previously unselected package libtidy5deb1:amd64.
2021-01-09 13:20:07,919: DEBUG - (Reading database ... 57402 files and directories currently installed.)
2021-01-09 13:20:07,919: DEBUG - Preparing to unpack .../libtidy5deb1_2%3a5.6.0-10_amd64.deb ...
2021-01-09 13:20:07,919: DEBUG - Unpacking libtidy5deb1:amd64 (2:5.6.0-10) ...
2021-01-09 13:20:07,919: DEBUG - Selecting previously unselected package php7.3-tidy.
2021-01-09 13:20:07,919: DEBUG - Preparing to unpack .../php7.3-tidy_7.3.19-1deb10u1_amd64.deb ...
2021-01-09 13:20:08,020: DEBUG - Unpacking php7.3-tidy (7.3.19-1
deb10u1) ...
2021-01-09 13:20:08,020: DEBUG - /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2021-01-09 13:20:08,020: DEBUG - Setting up libtidy5deb1:amd64 (2:5.6.0-10) ...
2021-01-09 13:20:08,020: DEBUG - Setting up php7.3-tidy (7.3.19-1deb10u1) ...
2021-01-09 13:20:08,120: DEBUG - /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2021-01-09 13:20:08,120: DEBUG -
2021-01-09 13:20:08,120: DEBUG - Creating config file /etc/php/7.3/mods-available/tidy.ini with new version
2021-01-09 13:20:08,120: DEBUG - /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2021-01-09 13:20:08,221: DEBUG - Processing triggers for libc-bin (2.28-10) ...
2021-01-09 13:20:08,221: DEBUG - Processing triggers for php7.3-fpm (7.3.19-1
deb10u1) ...
2021-01-09 13:20:08,421: DEBUG - + [[ -n /tmp/tmp.zHapHhJhLV ]]
2021-01-09 13:20:08,421: DEBUG - + rm --recursive --force /tmp/tmp.zHapHhJhLV
2021-01-09 13:20:08,422: DEBUG - + ynh_package_is_installed bookstack-ynh-deps
2021-01-09 13:20:08,422: DEBUG - + ynh_wait_dpkg_free
2021-01-09 13:20:08,522: DEBUG - + return 0
2021-01-09 13:20:08,523: DEBUG - + dpkg-query --show '--showformat=${Status}' bookstack-ynh-deps
2021-01-09 13:20:08,523: DEBUG - + grep --count 'ok installed'
2021-01-09 13:20:08,523: DEBUG - + rm /tmp/bookstack-ynh-deps.control
2021-01-09 13:20:08,523: DEBUG - + ynh_app_setting_set --app=bookstack --key=apt_dependencies '--value=php7.3-fpm, php7.3-cli, php7.3-curl, php7.3-mysql, php7.3-ldap, php7.3-mbstring, php7.3-tidy, php7.3-xml, php7.3-zip, php7.3-gd, php7.3-mysql'
2021-01-09 13:20:08,624: DEBUG - + [[ apt_dependencies =~ (unprotected|protected|skipped)_ ]]
2021-01-09 13:20:08,624: WARNING - Synchronizing state of php7.3-fpm.service with SysV service script with /lib/systemd/systemd-sysv-install.
2021-01-09 13:20:08,624: DEBUG - + ynh_app_setting set bookstack apt_dependencies 'php7.3-fpm, php7.3-cli, php7.3-curl, php7.3-mysql, php7.3-ldap, php7.3-mbstring, php7.3-tidy, php7.3-xml, php7.3-zip, php7.3-gd, php7.3-mysql'
2021-01-09 13:20:08,624: WARNING - Executing: /lib/systemd/systemd-sysv-install enable php7.3-fpm
2021-01-09 13:20:08,624: DEBUG - + ACTION=set
2021-01-09 13:20:08,624: DEBUG - + APP=bookstack
2021-01-09 13:20:08,624: DEBUG - + KEY=apt_dependencies
2021-01-09 13:20:08,625: DEBUG - + VALUE='php7.3-fpm, php7.3-cli, php7.3-curl, php7.3-mysql, php7.3-ldap, php7.3-mbstring, php7.3-tidy, php7.3-xml, php7.3-zip, php7.3-gd, php7.3-mysql'
2021-01-09 13:20:08,625: DEBUG - + python2.7 -
2021-01-09 13:20:08,625: DEBUG - + systemctl enable php7.3-fpm
2021-01-09 13:20:08,925: DEBUG - + systemctl start php7.3-fpm
2021-01-09 13:20:08,925: INFO - Creating a MySQL database...
2021-01-09 13:20:08,926: DEBUG - + ynh_print_info 'Creating a MySQL database...'
2021-01-09 13:20:08,926: DEBUG - + echo 'Creating a MySQL database...'
2021-01-09 13:20:08,926: DEBUG - ++ ynh_sanitize_dbid bookstack
2021-01-09 13:20:08,927: DEBUG - ++ echo bookstack
2021-01-09 13:20:08,927: DEBUG - + db_name=bookstack
2021-01-09 13:20:08,927: DEBUG - + ynh_app_setting_set bookstack db_name bookstack
2021-01-09 13:20:08,928: DEBUG - + [[ db_name =~ (unprotected|protected|skipped)_ ]]
2021-01-09 13:20:08,928: DEBUG - + ynh_app_setting set bookstack db_name bookstack
2021-01-09 13:20:08,928: DEBUG - + ACTION=set
2021-01-09 13:20:08,928: DEBUG - + APP=bookstack
2021-01-09 13:20:08,928: DEBUG - + KEY=db_name
2021-01-09 13:20:08,928: DEBUG - + VALUE=bookstack
2021-01-09 13:20:08,928: DEBUG - + python2.7 -
2021-01-09 13:20:09,028: DEBUG - + ynh_mysql_setup_db bookstack bookstack
2021-01-09 13:20:09,029: DEBUG - + db_pwd=
2021-01-09 13:20:09,029: DEBUG - ++ ynh_string_random
2021-01-09 13:20:09,030: DEBUG - ++ length=24
2021-01-09 13:20:09,030: DEBUG - ++ dd if=/dev/urandom bs=1 count=1000
2021-01-09 13:20:09,030: DEBUG - ++ tr --complement --delete A-Za-z0-9
2021-01-09 13:20:09,030: DEBUG - ++ sed --quiet 's/(.{24})./\1/p'
2021-01-09 13:20:09,030: DEBUG - + local new_db_pwd=
*********
2021-01-09 13:20:09,030: DEBUG - + db_pwd=**********
2021-01-09 13:20:09,030: DEBUG - + ynh_mysql_create_db bookstack bookstack **********
2021-01-09 13:20:09,030: DEBUG - + local db=bookstack
2021-01-09 13:20:09,030: DEBUG - + local 'sql=CREATE DATABASE bookstack;'
2021-01-09 13:20:09,030: DEBUG - + [[ 3 -gt 1 ]]
2021-01-09 13:20:09,030: DEBUG - + sql+=' GRANT ALL PRIVILEGES ON bookstack.* TO '''bookstack'''@'''localhost''''
2021-01-09 13:20:09,030: DEBUG - + [[ -n ********** ]]
2021-01-09 13:20:09,031: DEBUG - + sql+=' IDENTIFIED BY '''''''
2021-01-09 13:20:09,031: DEBUG - + sql+=' WITH GRANT OPTION;'
2021-01-09 13:20:09,031: DEBUG - + ynh_mysql_execute_as_root '--sql=CREATE DATABASE bookstack; GRANT ALL PRIVILEGES ON bookstack.
TO '''bookstack'''@'''localhost''' IDENTIFIED BY '''
''' WITH GRANT OPTION;'
2021-01-09 13:20:09,031: DEBUG - + database=
2021-01-09 13:20:09,031: DEBUG - + '[' -n '' ']'
2021-01-09 13:20:09,031: DEBUG - ++ cat /etc/yunohost/mysql
2021-01-09 13:20:09,031: DEBUG - + ynh_mysql_connect_as --user=root --password=
*********
2021-01-09 13:20:09,132: DEBUG - + database=
2021-01-09 13:20:09,132: DEBUG - + mysql --user=root --password=********** --batch ''
2021-01-09 13:20:09,132: DEBUG - + ynh_app_setting_set --app=bookstack --key=mysqlpwd --value=**********
2021-01-09 13:20:09,133: DEBUG - + [[ mysqlpwd =~ (unprotected|protected|skipped)_ ]]
2021-01-09 13:20:09,133: DEBUG - + ynh_app_setting set bookstack mysqlpwd **********
2021-01-09 13:20:09,133: DEBUG - + ACTION=set
2021-01-09 13:20:09,133: DEBUG - + APP=bookstack
2021-01-09 13:20:09,133: DEBUG - + KEY=mysqlpwd
2021-01-09 13:20:09,133: DEBUG - + VALUE=**********
2021-01-09 13:20:09,133: DEBUG - + python2.7 -
2021-01-09 13:20:09,133: DEBUG - + ynh_print_info 'Download BookStack'
2021-01-09 13:20:09,134: DEBUG - + echo 'Download BookStack'
2021-01-09 13:20:09,134: DEBUG - + ynh_app_setting_set bookstack final_path /var/www/bookstack
2021-01-09 13:20:09,235: INFO - Download BookStack
2021-01-09 13:20:09,235: DEBUG - + [[ final_path =~ (unprotected|protected|skipped)_ ]]
2021-01-09 13:20:09,235: DEBUG - + ynh_app_setting set bookstack final_path /var/www/bookstack
2021-01-09 13:20:09,236: DEBUG - + ACTION=set
2021-01-09 13:20:09,236: DEBUG - + APP=bookstack
2021-01-09 13:20:09,236: DEBUG - + KEY=final_path
2021-01-09 13:20:09,236: DEBUG - + VALUE=/var/www/bookstack
2021-01-09 13:20:09,236: DEBUG - + python2.7 -
2021-01-09 13:20:09,236: DEBUG - + ynh_setup_source /var/www/bookstack
2021-01-09 13:20:09,237: DEBUG - + source_id=app
2021-01-09 13:20:09,237: DEBUG - + local src_file_path=/var/cache/yunohost/from_file/scripts/../conf/app.src
2021-01-09 13:20:09,237: DEBUG - + '[' '!' -e /var/cache/yunohost/from_file/scripts/../conf/app.src ']'
2021-01-09 13:20:09,237: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/from_file/scripts/../conf/app.src
2021-01-09 13:20:09,237: DEBUG - ++ cut --delimiter== --fields=2-
2021-01-09 13:20:09,237: DEBUG - + local src_url=https://github.com/BookStackApp/BookStack/archive/v0.26.3.tar.gz
2021-01-09 13:20:09,237: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/scripts/../conf/app.src
2021-01-09 13:20:09,237: DEBUG - ++ cut --delimiter== --fields=2-
2021-01-09 13:20:09,237: DEBUG - + local src_sum=9b577a5d7a2347b2a386bce78ad3ba9e8ee99f61f759cdf91f88a9ba76757c34b09d46ec9e1fb51d62b99aefc153a652d976aa4bcb49c2e38e0c2620ab8dcd9e
2021-01-09 13:20:09,237: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/scripts/../conf/app.src
2021-01-09 13:20:09,237: DEBUG - ++ cut --delimiter== --fields=2-
2021-01-09 13:20:09,237: DEBUG - + local src_sumprg=sha512sum
2021-01-09 13:20:09,237: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/scripts/../conf/app.src
2021-01-09 13:20:09,237: DEBUG - ++ cut --delimiter== --fields=2-
2021-01-09 13:20:09,238: DEBUG - + local src_format=tar.gz
2021-01-09 13:20:09,238: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/scripts/../conf/app.src
2021-01-09 13:20:09,238: DEBUG - ++ cut --delimiter== --fields=2-
2021-01-09 13:20:09,238: DEBUG - + local src_extract=true
2021-01-09 13:20:09,238: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/scripts/../conf/app.src
2021-01-09 13:20:09,238: DEBUG - ++ cut --delimiter== --fields=2-
2021-01-09 13:20:09,238: DEBUG - + local src_in_subdir=true
2021-01-09 13:20:09,238: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/scripts/../conf/app.src
2021-01-09 13:20:09,238: DEBUG - ++ cut --delimiter== --fields=2-
2021-01-09 13:20:09,238: DEBUG - + local src_filename=bookstack.tar.gz
2021-01-09 13:20:09,238: DEBUG - + src_sumprg=sha512sum
2021-01-09 13:20:09,238: DEBUG - + src_in_subdir=true
2021-01-09 13:20:09,238: DEBUG - + src_format=tar.gz
2021-01-09 13:20:09,238: DEBUG - ++ echo tar.gz
2021-01-09 13:20:09,238: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2021-01-09 13:20:09,239: DEBUG - + src_format=tar.gz
2021-01-09 13:20:09,239: DEBUG - + src_extract=true
2021-01-09 13:20:09,239: DEBUG - + '[' bookstack.tar.gz = '' ']'
2021-01-09 13:20:09,239: DEBUG - + local local_src=/opt/yunohost-apps-src/bookstack/bookstack.tar.gz
2021-01-09 13:20:09,239: DEBUG - + test -e /opt/yunohost-apps-src/bookstack/bookstack.tar.gz
2021-01-09 13:20:09,239: DEBUG - ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=bookstack.tar.gz https://github.com/BookStackApp/BookStack/archive/v0.26.3.tar.gz
2021-01-09 13:20:10,040: DEBUG - + out='2021-01-09 13:20:10 URL:https://codeload.github.com/BookStackApp/BookStack/tar.gz/v0.26.3 [1460488] -> "bookstack.tar.gz" [1]'
2021-01-09 13:20:10,040: DEBUG - + echo '9b577a5d7a2347b2a386bce78ad3ba9e8ee99f61f759cdf91f88a9ba76757c34b09d46ec9e1fb51d62b99aefc153a652d976aa4bcb49c2e38e0c2620ab8dcd9e bookstack.tar.gz'
2021-01-09 13:20:10,041: DEBUG - + sha512sum --check --status
2021-01-09 13:20:10,041: DEBUG - + mkdir --parents /var/www/bookstack
2021-01-09 13:20:10,041: DEBUG - + true
2021-01-09 13:20:10,041: DEBUG - + '[' tar.gz = zip ']'
2021-01-09 13:20:10,041: DEBUG - + local strip=
2021-01-09 13:20:10,041: DEBUG - + '[' true '!=' false ']'
2021-01-09 13:20:10,041: DEBUG - + '[' true == true ']'
2021-01-09 13:20:10,041: DEBUG - + local sub_dirs=1
2021-01-09 13:20:10,041: DEBUG - + strip='--strip-components 1'
2021-01-09 13:20:10,041: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2021-01-09 13:20:10,041: DEBUG - + tar --extract --file=bookstack.tar.gz --directory=/var/www/bookstack --strip-components 1
2021-01-09 13:20:10,142: DEBUG - ++ find /var/cache/yunohost/from_file/scripts/../sources/patches/ -type f -name 'app-*.patch'
2021-01-09 13:20:10,142: INFO - Install BookStack composer dependancies
2021-01-09 13:20:10,142: DEBUG - ++ wc --lines
2021-01-09 13:20:10,142: DEBUG - + (( 0 > 0 ))
2021-01-09 13:20:10,142: DEBUG - + test -e /var/cache/yunohost/from_file/scripts/../sources/extra_files/app
2021-01-09 13:20:10,142: DEBUG - + ynh_print_info 'Install BookStack composer dependancies'
2021-01-09 13:20:10,143: DEBUG - + echo 'Install BookStack composer dependancies'
2021-01-09 13:20:10,143: DEBUG - + pushd /var/www/bookstack
2021-01-09 13:20:10,143: DEBUG - /var/www/bookstack /var/cache/yunohost/from_file/scripts
2021-01-09 13:20:10,143: DEBUG - + php -r 'readfile('''https://getcomposer.org/installer'\'');'
2021-01-09 13:20:10,143: DEBUG - + php
2021-01-09 13:20:10,344: DEBUG - All settings correct for using Composer
2021-01-09 13:20:10,344: DEBUG - The HOME or COMPOSER_HOME environment variable must be set for composer to run correctly
2021-01-09 13:20:10,344: DEBUG - + ynh_exit_properly
2021-01-09 13:20:10,344: DEBUG - + local exit_code=1
2021-01-09 13:20:10,344: DEBUG - + '[' 1 -eq 0 ']'
2021-01-09 13:20:10,345: DEBUG - + trap '' EXIT
2021-01-09 13:20:10,345: DEBUG - + set +o errexit
2021-01-09 13:20:10,345: DEBUG - + set +o nounset
2021-01-09 13:20:10,345: DEBUG - + sleep 0.5
2021-01-09 13:20:10,846: DEBUG - + type -t ynh_clean_setup
2021-01-09 13:20:10,846: DEBUG - + ynh_clean_setup
2021-01-09 13:20:10,847: DEBUG - + true
2021-01-09 13:20:10,847: DEBUG - + exit 1
2021-01-09 13:20:10,862: ERROR - bookstack kann nicht installiert werden: Im Installationsscript ist ein Fehler aufgetreten

Can anyone help?

Email notifications not working

Describe the bug

It seems that after configuring properly email notifications and subscribing to a book or shelve, the email notifying for changes is never sent.

Context

  • Hardware: Other ARM board
  • YunoHost version: 11.2.10.3
  • I have access to my server: Through SSH | through the webadmin | direct access via keyboard / screen | ...
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch: 24.02~ynh1

Steps to reproduce

  • Install Bookstack.
  • Configure notification preferences under Profile -> My account -> Notification Preferences and mark all checkboxes.
  • Go to an existing book or shelve and subscribe to it using the Watch button.

Expected behavior

An email is sent to the subscribed people on each book/shelve on every change, to the email address configured on each profile individually.

Logs

Screenshot 2024-03-12 at 18 57 37

SMTP configuration

Describe the bug

SMTP is not working. Trying to send an email test from the "maintenance" page is failed

Context

  • Hardware: My own computer
  • YunoHost version: 11.2.4
  • I have access to my server: Through SSH
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no

Steps to reproduce

Send a email test

Expected behavior

Sending email is successfull

Logs

Two kind of errors :

  • In .env file if MAIL_HOST is set to "localhost", there is an error concerning certificate verification on the CN attribute
  • In .env file MAIL_USERNAME is set to "bookstack" AND if the setting above is fixed, there is an authentication error.

So, I guess the to setting above must be modified :

  • MAIL_HOST to the server fqdn
  • MAIL_USERNAME must be set to "null" instead of bookstack.

Hope this help

Many thanks for your job about bookstack

--
Bidroidk

Switching domain names breaks the instance

Describe the bug

Switching domain names through the YUnoHost UI can lead to the following error:

An Error Occurred
An unknown error occurred

This renders bookstack unusable.

Context

  • Hardware: Hetzner Cloud VPS
  • YunoHost version: 4.3.6.2
  • I have access to my server: Through SSH and webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch: 21.05.3~ynh1

Steps to reproduce

  1. Set up up working bookstack instance & fill it with content
  2. Add a new, properly configured domain name to YunoHost
  3. Switch BookStack to that new domain name

Expected behavior

Bookstack should continue to work, although it might exhibit some broken URLs. The BookStack docs recommends the following command to fix broken links, though they do not describe whether this applies to broken instances as well.

# Searches for <oldUrl> and replaces it with <newUrl>
php artisan bookstack:update-url <oldUrl> <newUrl>

# Example:
php artisan bookstack:update-url http://docs.example.com https://demo.bookstackapp.com

Logs

I would require assistance retrieving the logs.

Unable to upload avatar image in profile

Message show error on the page and toaster message show it was OK at the same time ?

I've try to debug with looking at 'storage/logs/laravel.log' and find this error:

production.ERROR: Unable to delete file located at: /var/www/bookstack/public/uploads/images/user/2023-08/bugmsbfzlh-avatar.png. {"userId":3,"exception":"[object] (League\Flysystem\UnableToDeleteFile(code: 0): Unable to delete file located at: /var/www/bookstack/public/uploads/images/user/2023-08/bugmsbfzlh-avatar.png. at /var/www/bookstack/vendor/league/flysystem/src/UnableToDeleteFile.php:24)

Finally i've found the directory 'images/**/*' have bad right (root:root), i changed to bookstack:www-data and that's work.

I hope this information will help fix the bug.

Page Not Found

After loging to BookStack installed in sub folder (https://domain.tld/bookstack), we get redirected to this path https://domain.tld/bookstack/bookstack which displays a Page Not Found as the page do not exist.

Error 502 after configuring standard auth

Describe the bug

Hello,
I just installed a fresh bookstack instance (version 23.2.3~ynh2) and as soon as I changed the authentication setting from LDAP to standard I get an error 502. Even though I try to go back to the LDAP auth, I still get this error. Rebooting the service doesn't change anything.

Context

  • Hardware: VPS bought online / Old laptop or computer / Raspberry Pi at home / Internet Cube with VPN / Other ARM board / ...
  • YunoHost version: 11.1.17
  • I have access to my server: Through SSH | through the webadmin | direct access via keyboard / screen | ...
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: *no

Expected behavior

I should be able to log in with standard authentication.

Possible enhancement: OIDC vs LDAP auth service

Describe the bug feauture

I believe an enhancement to this project could be the ability to bundle with Dex to create an OpenID authenticated bookstack instance for more collaborative work without require account generation via the LDAP system.

Context

  • Hardware: Linode server
  • YunoHost version:
  • I have access to my server: Yes
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: *no
  • Using, or trying to install package version/branch: N/A
  • If upgrading, current package version: N/A

possible approach

Emulate Outline’s yunihost approach to co-install Dex while loading a bookstack config that uses the OIDC auth type or allow the identification of an existing oidc service like Dex to be used.

After update, logs not working, images gone.

So, after update on RPI 4 with yunohost install. EVERY update Bookstack it's break ALL images path, and also break access for the admin account.

Basically every update is pretty scary, i don't even know how it can lost ALL images at every update, can't make a wiki with this..

What can i do ?

Custom .env changes are gone

After update to 22.06~ynh1 all custom changes in .env file, like custom theme folder or custom session time, are gone.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.