Git Product home page Git Product logo

wallabag2_ynh's Introduction

Wallabag for YunoHost

Integration level Working status Maintenance status

Install Wallabag with YunoHost

Read this README is other languages.

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

Overview

Wallabag is a self hostable Read-It-Later application allowing you to not miss any content anymore. Click, save, read it when you can. It provides a web interface, browser (Firefox/Chrome/Opera) add-ons, mobile apps (Android/iOS/Windows Phone) and even on e-reader (PocketBook/Kobo).

Upgrade from the YunoHost Wallabag v1 app requires a manual operation. That's why it's provided as a new package. For the migration process, please refer to the Wallabag official documentation.

Shipped version: 2.5.4~ynh3

Demo: https://demo.yunohost.org/wallabag/

Screenshots

Screenshot of Wallabag

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/wallabag2_ynh/tree/testing --debug
or
sudo yunohost app upgrade wallabag2 -u https://github.com/YunoHost-Apps/wallabag2_ynh/tree/testing --debug

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

wallabag2_ynh's People

Contributors

alexaubin avatar ericgaspar avatar genma avatar jeromelebleu avatar jimbojoe avatar jules-bertholet avatar kay0u avatar kcchouette avatar lapineige avatar maniackcrudelis avatar mkody avatar naguirre avatar salamandar avatar yalh76 avatar yunohost-bot avatar zamentur avatar

Stargazers

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

Watchers

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

wallabag2_ynh's Issues

Validate quality level 5 conformance

This level needs to be formally assessed as there are residual warnings stated by package_linter

Level 5 is forced on this package due to 2 false positives:

>>>> INSTALL SCRIPT <<<<
✔ Only helpers are used
✔ no 'exit' command found: 'ynh_die' helper is possibly used
✔ Verifications (with 'ynh_die' or 'exit' commands) are done before any system modification.
✘ set -eu is missing at beginning of file. For details, look at https://dev.yunohost.org/issues/419
✔ Argument retrieval from manifest seems to be done with environement variables

Due to this bug in package linter (Don't check "set -eu" in install script if it uses ynh_abort_if_errors).

>>>> _COMMON.SH SCRIPT <<<<
✔ Only helpers are used
✘ Line 112: 'exit' command shouldn't be used. Use 'ynh_die' helper instead.

Due to the inclusion of the forthcoming ynh_exit_properly helper in _common.sh script; this helper uses exit 0 which is forbidden in a package (but not in a helper).

Installation failed : system requirements not fulfilled (without any other hint)

I tried to install it from https://github.com/YunoHost-Apps/wallabag2_ynh but I got the following error:

Choose the Wallabag administrator: nicofrand
Warning: The helper ynh_mkdir_tmp is deprecated.
Warning: You should use 'mktemp -d' instead and manage permissions properly with chmod/chown.
Warning: The helper ynh_mkdir_tmp is deprecated.
Warning: You should use 'mktemp -d' instead and manage permissions properly with chmod/chown.
Warning: 
Warning: 
Warning:   [RuntimeException]
Warning:   Some system requirements are not fulfilled. Please check output messages and fix them.
Warning: 
Warning: 
Warning: wallabag:install [--reset] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>
Warning: 
Error: Installation failed

How can I know what are the system requirements that are not fulfilled ? I am not sure if this comes from wallabag itself (which I currently have installed manually on the same machine) or this app ?

Tell me if I can provide anything else useful.

Set-up fail2ban rules

When Wallabag 2.3.0 gets released, this PR will enable setting a fail2ban rule to get protected against a brute-force attack.

Access denied to assets

I just installed the app and the first page I am redirected to is the quickstart page.
The text is displayed but all the assets (JS, CSS, images, etc.) are not.

When I check the logs I have several errors about Permission denied:

2017/04/22 13:50:41 [crit] 4361#0: *476 stat() "/var/www/wallabag2/web/js/routing" failed (13: Permission denied), client: 109.8.157.161, server: wb.nicofrand.eu, request: "GET /js/routing?callback=fos.Router.setData HTTP/1.1", host: "wb.nicofrand.eu", referrer: "https://wb.nicofrand.eu/quickstart"
2017/04/22 13:50:41 [crit] 4361#0: *477 stat() "/var/www/wallabag2/web/bundles/wallabagcore/themes/material/js/material.min.js" failed (13: Permission denied), client: 109.8.157.161, server: wb.nicofrand.eu, request: "GET /bundles/wallabagcore/themes/material/js/material.min.js HTTP/1.1", host: "wb.nicofrand.eu", referrer: "https://wb.nicofrand.eu/quickstart"
2017/04/22 13:50:41 [crit] 4361#0: *475 stat() "/var/www/wallabag2/web/ynhpanel.js" failed (13: Permission denied), client: 109.8.157.161, server: wb.nicofrand.eu, request: "GET /ynhpanel.js HTTP/1.1", host: "wb.nicofrand.eu", referrer: "https://wb.nicofrand.eu/quickstart"
2017/04/22 13:50:42 [crit] 4361#0: *478 stat() "/var/www/wallabag2/web/bundles/wallabagcore/themes/_global/img/logo-square.png" failed (13: Permission denied), client: 109.8.157.161, server: wb.nicofrand.eu, request: "GET /bundles/wallabagcore/themes/_global/img/logo-square.png HTTP/1.1", host: "wb.nicofrand.eu", referrer: "https://wb.nicofrand.eu/quickstart"
2017/04/22 13:50:42 [crit] 4361#0: *476 stat() "/var/www/wallabag2/web/bundles/wallabagcore/themes/material/js/material.min.js" failed (13: Permission denied), client: 109.8.157.161, server: wb.nicofrand.eu, request: "GET /bundles/wallabagcore/themes/material/js/material.min.js HTTP/1.1", host: "wb.nicofrand.eu", referrer: "https://wb.nicofrand.eu/quickstart"
2017/04/22 13:50:42 [crit] 4361#0: *478 stat() "/var/www/wallabag2/web/ynhpanel.js" failed (13: Permission denied), client: 109.8.157.161, server: wb.nicofrand.eu, request: "GET /ynhpanel.js HTTP/1.1", host: "wb.nicofrand.eu", referrer: "https://wb.nicofrand.eu/quickstart"
2017/04/22 13:50:43 [crit] 4361#0: *476 stat() "/var/www/wallabag2/web/bundles/wallabagcore/themes/_global/img/logo-square.png" failed (13: Permission denied), client: 109.8.157.161, server: wb.nicofrand.eu, request: "GET /bundles/wallabagcore/themes/_global/img/logo-square.png HTTP/1.1", host: "wb.nicofrand.eu", referrer: "https://wb.nicofrand.eu/quickstart"

Here are the permissions on the top directory (and it is always the same user and group everywhere I check):

root@nicofrand:/var/www/wallabag2# ls -l
total 408
drwxr-xr-x  5 wallabag2 wallabag2   4096 Apr 22 13:48 app
drwxr-xr-x  2 wallabag2 wallabag2   4096 Apr 22 13:48 bin
-rw-r--r--  1 wallabag2 wallabag2   6561 Mar  2 15:30 build.xml
-rw-r--r--  1 wallabag2 wallabag2    468 Mar  2 15:30 Capfile
-rw-r--r--  1 wallabag2 wallabag2  59344 Mar  2 15:30 CHANGELOG.md
-rw-r--r--  1 wallabag2 wallabag2   4745 Mar  2 15:30 composer.json
-rw-r--r--  1 wallabag2 wallabag2 241053 Mar  2 15:32 composer.lock
-rw-r--r--  1 wallabag2 wallabag2   1066 Mar  2 15:30 COPYING.md
-rw-r--r--  1 wallabag2 wallabag2    282 Mar  2 15:30 CREDITS.md
drwxr-xr-x  4 wallabag2 wallabag2   4096 Apr 22 13:48 data
drwxr-xr-x  6 wallabag2 wallabag2   4096 Apr 22 13:48 docker
-rw-r--r--  1 wallabag2 wallabag2   1543 Mar  2 15:30 docker-compose.yml
drwxr-xr-x  7 wallabag2 wallabag2   4096 Apr 22 13:48 docs
-rw-r--r--  1 wallabag2 wallabag2    160 Mar  2 15:30 Gemfile
-rw-r--r--  1 wallabag2 wallabag2    777 Mar  2 15:30 Gemfile.lock
-rw-r--r--  1 wallabag2 wallabag2   6434 Mar  2 15:30 Gruntfile.js
-rwxr-xr-x  1 wallabag2 wallabag2   1157 Mar  2 15:30 Makefile
-rw-r--r--  1 wallabag2 wallabag2   2853 Mar  2 15:30 package.json
-rw-r--r--  1 wallabag2 wallabag2   1029 Mar  2 15:30 phpunit.xml.dist
-rw-r--r--  1 wallabag2 wallabag2   1465 Mar  2 15:30 README.md
-rw-r--r--  1 wallabag2 wallabag2   3228 Mar  2 15:30 RELEASE_PROCESS.md
drwxr-xr-x  2 wallabag2 wallabag2   4096 Apr 22 13:48 scripts
drwxr-xr-x  3 wallabag2 wallabag2   4096 Apr 22 13:48 src
drwxr-xr-x  3 wallabag2 wallabag2   4096 Apr 22 13:48 tests
drwxr-xr-x  5 wallabag2 wallabag2   4096 Apr 22 13:48 var
drwxr-xr-x 51 wallabag2 wallabag2   4096 Apr 22 13:48 vendor
drwxr-xr-x  6 wallabag2 wallabag2   4096 Mar  2 15:30 web

I am not sure which user/group/chmod should be applied here ?

Can’t install wallabag2/Installation fails

I tried to reinstall Wallabag 2 due to the failing Pocket import using https://github.com/YunoHost-Apps/wallabag2_ynh/ but something is going wrong. It was working before I made a dist-upgrade yesterday to YNH 2.5.
It ends up here:

delete mode 120000 php5/fpm/conf.d/20-tidy.ini
delete mode 120000 php5/cli/conf.d/20-tidy.ini
2 files changed, 2 deletions(-)
Author: admin
[master c02345f] committing changes in /etc after apt run
Processing triggers for libc-bin (2.19-18+deb8u7) ...
insserv: warning: current stop runlevel(s) (0 6) of script php5-fpm' overrides LSB defaults (0 1 6). insserv: warning: current stop runlevel(s) (0 6) of script php5-fpm' overrides LSB defaults (0 1 6).
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01yunohost-api
Processing triggers for php5-fpm (5.6.29+dfsg-0+deb8u1) ...
Removing libtidy-0.99-0 (20091223cvs-1.4+deb8u1) ...
php5_invoke prerm: Disable module tidy for fpm SAPI
php5_invoke prerm: Disable module tidy for cli SAPI
Removing php5-tidy (5.6.29+dfsg-0+deb8u1) ...
Removing wallabag-deps (2.1-1) ...
(Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 44723 files and directories currently installed.)
1 file changed, 2 insertions(+)
Author: admin
[master d95df1a] saving uncommitted changes in /etc prior to apt run

  • sudo apt-get -y -qq autoremove wallabag-deps
  • DEBIAN_FRONTEND=noninteractive
  • ynh_apt autoremove wallabag-deps
  • ynh_package_autoremove wallabag-deps
  • sudo service nginx reload
  • sudo service php5-fpm restart
  • sudo rm -f /etc/nginx/conf.d/www.example.de.d/wallabag2.conf
  • [[ -n www.example.de ]]
  • sudo rm -f /etc/php5/fpm/pool.d/wallabag2.conf
  • sudo rm -rf /var/www/wallabag2
  • domain=www.example.de
    ++ sudo yunohost app setting wallabag2 domain --output-as plain --quiet
    ++ ynh_app_setting_get wallabag2 domain
  • mysql -u root --password=g7vK9TFrTE -B ''
  • ynh_mysql_connect_as root g7vK9TFrTE ''
    ++ sudo cat /etc/yunohost/mysql
  • ynh_mysql_execute_as_root 'DROP USER '''wallabag2'''@'''localhost''';'
  • ynh_mysql_drop_user wallabag2
  • mysql -u root --password=g7vK9TFrTE -B ''
  • ynh_mysql_connect_as root g7vK9TFrTE ''
    ++ sudo cat /etc/yunohost/mysql
  • ynh_mysql_execute_as_root 'DROP DATABASE wallabag2;'
  • ynh_mysql_drop_db wallabag2
  • dbuser=wallabag2
  • dbname=wallabag2
    +++ . /usr/share/yunohost/helpers.d/utils
    +++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
    +++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    +++ . /usr/share/yunohost/helpers.d/user
    +++ '[' -r /usr/share/yunohost/helpers.d/user ']'
    +++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    +++ . /usr/share/yunohost/helpers.d/string
    +++ '[' -r /usr/share/yunohost/helpers.d/string ']'
    +++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    +++ . /usr/share/yunohost/helpers.d/setting
    +++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
    +++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    +++ . /usr/share/yunohost/helpers.d/print
    +++ '[' -r /usr/share/yunohost/helpers.d/print ']'
    +++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    +++ . /usr/share/yunohost/helpers.d/package
    +++ '[' -r /usr/share/yunohost/helpers.d/package ']'
    +++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    ++++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
    +++ . /usr/share/yunohost/helpers.d/mysql
    +++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
    +++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    +++ . /usr/share/yunohost/helpers.d/ip
    +++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
    +++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    ++++ CAN_BIND=1
    +++ . /usr/share/yunohost/helpers.d/filesystem
    +++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
    +++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    ++++ run-parts --list /usr/share/yunohost/helpers.d
    ++ . /usr/share/yunohost/helpers
    ++ PKGDIR=/var/cache/yunohost/from_file/wallabag2_ynh-master
    +++ pwd
    +++ cd ../
    ++ WALLABAG_SOURCE_SHA256=eb64205a4d7c161527edd08bed22e8dd9799fe8a4130c5964c18cba3a94c9768
    ++ WALLABAG_SOURCE_URL=https://framabag.org/wallabag-release-2.1.4.tar.gz
    ++ DEPS_PKG_NAME=wallabag-deps
    ++ VERSION=2.1.4
  • . ./_common.sh
  • app=wallabag2
    script '/var/cache/yunohost/from_file/wallabag2_ynh-master/scripts/remove' will be executed...
  • cd /var/www/wallabag2
  • shift 2
    ./_common.sh: line 48: cd: /var/www/wallabag2: Permission denied
  • local WORKDIR=/var/www/wallabag2
  • local AS_USER=www-data
  • exec_console www-data /var/www/wallabag2 wallabag:install
  • sudo chown -R www-data: /var/www/wallabag2
  • sudo mv /tmp/tmp.N9GiaDZLje /var/www/wallabag2
  • sed -i 's@{DESKEY}@jA0rPnNmcrZ47u93wekI8yr8@g' /tmp/tmp.N9GiaDZLje/app/config/parameters.yml
  • sed -i 's@{DBPASS}@DmJpJ4QTYVbI62KoNWSavRk0@g' /tmp/tmp.N9GiaDZLje/app/config/parameters.yml
  • sed -i 's@{DBUSER}@wallabag2@g' /tmp/tmp.N9GiaDZLje/app/config/parameters.yml
  • sed -i 's@{DBNAME}@wallabag2@g' /tmp/tmp.N9GiaDZLje/app/config/parameters.yml
  • cp ../conf/parameters.yml /tmp/tmp.N9GiaDZLje/app/config/parameters.yml
  • wb_conf=/tmp/tmp.N9GiaDZLje/app/config/parameters.yml
  • mysql -u root --password=g7vK9TFrTE -B ''
  • ynh_mysql_connect_as root g7vK9TFrTE ''
    ++ sudo cat /etc/yunohost/mysql
  • ynh_mysql_execute_as_root 'CREATE DATABASE wallabag2; GRANT ALL PRIVILEGES ON wallabag2.* TO '''wallabag2'''@'''localhost''' IDENTIFIED BY '''DmJpJ4QTYVbI62KoNWSavRk0''' WITH GRANT OPTION;'
  • sql+=' WITH GRANT OPTION;'
  • sql+=' IDENTIFIED BY '''DmJpJ4QTYVbI62KoNWSavRk0''''
  • [[ -n DmJpJ4QTYVbI62KoNWSavRk0 ]]
  • sql+=' GRANT ALL PRIVILEGES ON wallabag2.* TO '''wallabag2'''@'''localhost''''
  • [[ 3 -gt 1 ]]
  • sql='CREATE DATABASE wallabag2;'
  • db=wallabag2
  • ynh_mysql_create_db wallabag2 wallabag2 DmJpJ4QTYVbI62KoNWSavRk0
  • sudo yunohost app setting wallabag2 deskey -v jA0rPnNmcrZ47u93wekI8yr8 --quiet
  • ynh_app_setting_set wallabag2 deskey jA0rPnNmcrZ47u93wekI8yr8
  • sudo yunohost app setting wallabag2 mysqlpwd -v DmJpJ4QTYVbI62KoNWSavRk0 --quiet
  • ynh_app_setting_set wallabag2 mysqlpwd DmJpJ4QTYVbI62KoNWSavRk0
  • dbpass=DmJpJ4QTYVbI62KoNWSavRk0
    ++ dd if=/dev/urandom bs=1 count=200
    ++ sed -n 's/(.{24}).*/\1/p'
    ++ tr -c -d A-Za-z0-9
    ++ ynh_string_random
  • deskey=jA0rPnNmcrZ47u93wekI8yr8
    ++ sed -n 's/(.{24}).*/\1/p'
    ++ dd if=/dev/urandom bs=1 count=200
    ++ tr -c -d A-Za-z0-9
    ++ ynh_string_random 24
    patching file src/Wallabag/YunoHostBundle/Security/LogoutSuccessHandler.php
    Hunk #1 succeeded at 43 (offset 6 lines).
    patching file app/config/services.yml
    Hunk #1 succeeded at 62 (offset 2 lines).
    patching file app/config/security.yml
  • patch -p1
  • for p in '${PKGDIR}/patches/*.patch'
    Hunk #2 succeeded at 46 (offset 2 lines).
    Hunk #1 succeeded at 13 with fuzz 1 (offset 2 lines).
    patching file app/config/security.yml
    Hunk #1 succeeded at 42 (offset 6 lines).
    patching file app/config/services.yml
  • patch -p1
  • for p in '${PKGDIR}/patches/*.patch'
  • cd /tmp/tmp.N9GiaDZLje
  • rm -f /tmp/wallabag.tar.gz
    ++ tar xf /tmp/wallabag.tar.gz -C /tmp/tmp.N9GiaDZLje --strip-components 1
  • eval tar xf /tmp/wallabag.tar.gz -C /tmp/tmp.N9GiaDZLje --strip-components 1
  • [[ admin = admin ]]
    ++ whoami
  • shift 1
  • local USER=admin
  • exec_as admin tar xf /tmp/wallabag.tar.gz -C /tmp/tmp.N9GiaDZLje --strip-components 1
  • echo 'eb64205a4d7c161527edd08bed22e8dd9799fe8a4130c5964c18cba3a94c9768 /tmp/wallabag.tar.gz'
  • sha256sum -c
  • wget -q -O /tmp/wallabag.tar.gz https://framabag.org/wallabag-release-2.1.4.tar.gz
  • rm -f /tmp/wallabag.tar.gz
  • wb_tarball=/tmp/wallabag.tar.gz
  • local AS_USER=admin
  • local DESTDIR=/tmp/tmp.N9GiaDZLje
  • extract_wallabag /tmp/tmp.N9GiaDZLje
  • TMPDIR=/tmp/tmp.N9GiaDZLje
    ++ mktemp -d
    ++ echo 'This helper is deprecated, you should use '''mktemp -d''' instead.'
    This helper is deprecated, you should use 'mktemp -d' instead.
    ++ ynh_mkdir_tmp
  • dpkg-query -W -f '${Status}' wallabag-deps
  • grep -c 'ok installed'
  • ynh_package_is_installed wallabag-deps
  • rm -rf /tmp/tmp.NsundPte4T
  • [[ -n /tmp/tmp.NsundPte4T ]]
    create mode 120000 php5/fpm/conf.d/20-tidy.ini
    create mode 120000 php5/cli/conf.d/20-tidy.ini
    2 files changed, 2 insertions(+)
    Author: admin
    [master 202f20b] committing changes in /etc after apt run
    insserv: warning: current stop runlevel(s) (0 6) of script php5-fpm' overrides LSB defaults (0 1 6). insserv: warning: current stop runlevel(s) (0 6) of script php5-fpm' overrides LSB defaults (0 1 6).
    insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01yunohost-api
    Processing triggers for php5-fpm (5.6.29+dfsg-0+deb8u1) ...
    Processing triggers for libc-bin (2.19-18+deb8u7) ...
    php5_invoke: Enable module tidy for fpm SAPI
    php5_invoke: Enable module tidy for cli SAPI
    debconf: falling back to frontend: Readline
    debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
    debconf: unable to initialize frontend: Dialog
    Setting up php5-tidy (5.6.29+dfsg-0+deb8u1) ...
    Setting up libtidy-0.99-0 (20091223cvs-1.4+deb8u1) ...
    insserv: warning: current stop runlevel(s) (0 6) of script php5-fpm' overrides LSB defaults (0 1 6). insserv: warning: current stop runlevel(s) (0 6) of script php5-fpm' overrides LSB defaults (0 1 6).
    insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01yunohost-api
    Processing triggers for php5-fpm (5.6.29+dfsg-0+deb8u1) ...
    Unpacking php5-tidy (5.6.29+dfsg-0+deb8u1) ...
    Preparing to unpack .../php5-tidy_5.6.29+dfsg-0+deb8u1_armhf.deb ...
    Selecting previously unselected package php5-tidy.
    Unpacking libtidy-0.99-0 (20091223cvs-1.4+deb8u1) ...
    Preparing to unpack .../libtidy-0.99-0_20091223cvs-1.4+deb8u1_armhf.deb ...
    (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 44711 files and directories currently installed.)
    Selecting previously unselected package libtidy-0.99-0.
    dpkg-preconfigure: unable to re-open stdin:
    debconf: falling back to frontend: Teletype
    debconf: (This frontend requires a controlling tty.)
    debconf: unable to initialize frontend: Readline
    debconf: falling back to frontend: Readline
    debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
    debconf: unable to initialize frontend: Dialog
    1 file changed, 1 insertion(+), 3 deletions(-)
    Author: admin
    [master 252beea] saving uncommitted changes in /etc prior to apt run
  • sudo apt-get -y -qq -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
  • DEBIAN_FRONTEND=noninteractive
  • ynh_apt -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
  • ynh_package_install -f
    Setting up wallabag-deps (2.1-1) ...
    Package php5-tidy is not installed.
    wallabag-deps depends on php5-tidy; however:
    dpkg: wallabag-deps: dependency problems, but configuring anyway as you requested:
    Unpacking wallabag-deps (2.1-1) ...
    Preparing to unpack ./wallabag-deps_2.1-1_all.deb ...
    (Reading database ... 44707 files and directories currently installed.)
    Selecting previously unselected package wallabag-deps.
  • sudo dpkg --force-depends -i ./wallabag-deps_2.1-1_all.deb
    dh_installdeb: Compatibility levels before 9 are deprecated (level 7 in use)
    dh_installchangelogs: Compatibility levels before 9 are deprecated (level 7 in use)
    dh_installdocs: Compatibility levels before 9 are deprecated (level 7 in use)
    dh_install: Compatibility levels before 9 are deprecated (level 7 in use)
  • equivs-build ./control
  • cd /tmp/tmp.NsundPte4T
  • cp ../conf/wallabag-deps.control /tmp/tmp.NsundPte4T/control
  • TMPDIR=/tmp/tmp.NsundPte4T
    This helper is deprecated, you should use 'mktemp -d' instead.
    ++ mktemp -d
    ++ echo 'This helper is deprecated, you should use '''mktemp -d''' instead.'
    ++ ynh_mkdir_tmp
  • sudo apt-get -y -qq update
  • DEBIAN_FRONTEND=noninteractive
  • ynh_apt update
  • ynh_package_update
  • [[ -z 2.1-1 ]]
  • [[ -z wallabag-deps ]]
  • pkgversion=2.1-1
    ++ cut '-d ' -f 2
    ++ grep '^Version: ' ../conf/wallabag-deps.control
  • pkgname=wallabag-deps
    ++ cut '-d ' -f 2
    ++ grep '^Package: ' ../conf/wallabag-deps.control
  • grep -c 'ok installed'
  • dpkg-query -W -f '${Status}' equivs
  • ynh_package_is_installed equivs
  • controlfile=../conf/wallabag-deps.control
  • ynh_package_install_from_equivs ../conf/wallabag-deps.control
  • [[ -d /var/www/wallabag2 ]]
  • DESTDIR=/var/www/wallabag2
  • sudo yunohost app setting wallabag2 admin_user -v alex --quiet
  • ynh_app_setting_set wallabag2 admin_user alex
  • sudo yunohost user list --output-as json
  • grep -q '"username": "alex"'
  • ynh_user_exists alex
  • sudo yunohost app checkurl www.example.de/wallabag -a wallabag2
  • dbuser=wallabag2
  • dbname=wallabag2
    +++ . /usr/share/yunohost/helpers.d/utils
    +++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
    +++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    +++ . /usr/share/yunohost/helpers.d/user
    +++ '[' -r /usr/share/yunohost/helpers.d/user ']'
    +++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    +++ . /usr/share/yunohost/helpers.d/string
    +++ '[' -r /usr/share/yunohost/helpers.d/string ']'
    +++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    +++ . /usr/share/yunohost/helpers.d/setting
    +++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
    +++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    +++ . /usr/share/yunohost/helpers.d/print
    +++ '[' -r /usr/share/yunohost/helpers.d/print ']'
    +++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    +++ . /usr/share/yunohost/helpers.d/package
    +++ '[' -r /usr/share/yunohost/helpers.d/package ']'
    +++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    ++++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
    +++ . /usr/share/yunohost/helpers.d/mysql
    +++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
    +++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    +++ . /usr/share/yunohost/helpers.d/ip
    +++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
    +++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    ++++ CAN_BIND=1
    +++ . /usr/share/yunohost/helpers.d/filesystem
    +++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
    +++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    ++++ run-parts --list /usr/share/yunohost/helpers.d
    ++ . /usr/share/yunohost/helpers
    ++ PKGDIR=/var/cache/yunohost/from_file/wallabag2_ynh-master
    +++ pwd
    +++ cd ../
    ++ WALLABAG_SOURCE_SHA256=eb64205a4d7c161527edd08bed22e8dd9799fe8a4130c5964c18cba3a94c9768
    ++ WALLABAG_SOURCE_URL=https://framabag.org/wallabag-release-2.1.4.tar.gz
    ++ DEPS_PKG_NAME=wallabag-deps
    ++ VERSION=2.1.4
  • source ./_common.sh
  • admin=alex
  • path=/wallabag
  • domain=www.example.de
  • app=wallabag2
  • set -eu
    script '/var/cache/yunohost/from_file/wallabag2_ynh-master/scripts/install' will be executed ...
    Checking required packages...
    Done.
    Unzip...
    Download ...

edit: I took the liberty to edit your post and make the log quoted - it's easier to read :)

Any ideas?

Not Enough Memory When Adding

When attempting to add an article using either Wallabagger or the Wallabag2 web interface it fails, and when using the web interface I get the following error:

500: Internal Server Error

Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 134217736 bytes)

Wallabag version: 2.3.2
Yunohost version: 3.5.2.2

Why no 2.3 in master?

Hi,

I've seen that you reverted the change merging 2.3 in master? Why did you do that? Isn't the 2.3 branch ready?

Best

Article assets don't have the right URL so are not visible

On articles that have a photo the following html is used (the app is served on domain.com/wallabag/)

<div class="preview activator" style="background-image: url(/assets/images/2/6/26ddd99c/e333994e.jpeg)"></div>

Changing the URL to /wallabag/assets/images/2/6/26ddd99c/e333994e.jpeg gets the image to show.

Unable to install the app

Hi,
yunohost_wallbaglog.txt

The installation of this got failed. I could see few errors like error with wallabag2 app and also invalid folder path (the path contains an extra space).

Attached is the log for reference.

cannot get Token in wallabager

If logged in yunohost, which is needed to keep using searx for example, then one can't use wallabagger.
To be able to use wallabagger (even to make wallabagger accept the token at first), one need to be logged out from yunohost.

Issue reported to wallabager here : wallabag/wallabagger#149

This app is still using the skipped/protected/unprotected_uris/regex settings which are now obsolete and deprecated

Bonjour

Voici le contenu d'une partie du LOG

/!\ Packagers! This app is still using the skipped/protected/unprotected_uris/regex settings which are now obsolete and deprecated... Instead, you should use the new helpers 'ynh_permission_{create,urls,update,delete}' and the 'visitors' group to initialize the public/private access. Check out the documentation at the bottom of yunohost.org/groups_and_permissions to learn how to use the new permission mechanism.

YunoHost 3.7.0.12 (stable).

Cordialement

Selecting the interface language does not work

In the configuration page, when selecting the language, the software records but does not apply. Disconnect / reconnect does not solve the problem: the user interface remains in English.

Error while creating previously deleted user

Bug originally posted on YunoHost bugtracker here.
The problem is systematically reproducible.

I tried creating a deleted user again. The account was created with error message. I can see the user in the user list and on trying to login from SSO the login is successful too.

Error:

Warning:    null, 0, null]:
Warning:   SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'pranav' for key 'UNIQ_8D93D64992FC23A8'
Warning: 
Warning: 
Warning: 
Warning:   [Doctrine\DBAL\Driver\PDOException]
Warning:   SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'pranav' for key 'UNIQ_8D93D64992FC23A8'
Warning: 
Warning: 
Warning: 
Warning:   [PDOException]
Warning:   SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'pranav' for key 'UNIQ_8D93D64992FC23A8'
Warning: 
Warning: 
Warning: fos:user:create [--super-admin] [--inactive] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command> <username> <email> <password>
Warning: 
Error: Script execution failed: /etc/yunohost/hooks.d/post_user_create/50-wallabag2

Analysis:
The reason is that the post user delete hook doesn't delete the user from wallabag, it only deactivates it (see here).

From what I see, there doesn't seem to be an option to delete a user from the wallabag CLI console (hence this original design choice)...

Until a solution is found, maybe we should describe this limitation in the README/documentation to advise to delete the wallabag account from wallabag (and obviously from another account!) before removing the user from YunoHost?

Cannot use the API (bad username/password combination)

Hello!

Thanks for the app :)

I'm trying to set up the iOS app, and the ttrss to wallabag v2 plugin with my wallabag v2 which I host on my Yunohost, and it doesn't work.

I tried via curl and I get the {"error":"invalid_grant","error_description":"Invalid username and password combination"} error message when I use my ynh username and password.
I have created a user in the wallabag users management interface and I managed to use the API via curl, so it looks like the YNH username and/or password is not properly recognized by the wallabag API.

I have looked for a cause in the ynh package but I'm still new, would you have any idea why this happens?

Thanks!

Redis permission problem

Hi everyone

According to the Lynis Audit tool, the permission for /etc/redis/redis.conf should be 640 and not 644.

! Redis configuration file /etc/redis/redis.conf is world readable and might leak sensitive details [DBS-1882]
- Details : /etc/redis/redis.conf
- Solution : Use chmod 640 to change file permissions
https://cisofy.com/controls/DBS-1882/

Can you fix that in your package ?
Thanks a lot.

Installation failed

Hello,

I have an unkown error occuring at line 66 during the installation. All seems to go well, but it swaps to the remove script after attempting to create the database.

Here is what I get using in CLI, using the --verbose option. The --debug is pretty much the same, the severity is always INFO on those lines.

+ sudo chown -R www-data: /var/www/wallabag2
+ exec_console www-data /var/www/wallabag2 wallabag:install
+ local AS_USER=www-data
+ local WORKDIR=/var/www/wallabag2
+ shift 2
+ cd /var/www/wallabag2
+ exec_as www-data php bin/console --no-interaction --env=prod wallabag:install
+ local USER=www-data
+ shift 1
++ whoami
+ [[ www-data = admin ]]
+ sudo sudo -u www-data php bin/console --no-interaction --env=prod wallabag:install
Installing Wallabag...
Step 1 of 4. Checking system requirements.
+---------------------+--------+----------------+
| Checked | Status | Recommendation |
+---------------------+--------+----------------+
| PDO Driver | OK! | |
| Database connection | OK! | |
| curl_exec | OK! | |
| curl_multi_init | OK! | |
+---------------------+--------+----------------+
Success! Your system can run Wallabag properly.
Step 2 of 4. Setting up database.
Creating schema
Clearing the cache
Executing script '/var/cache/yunohost/from_file/wallabag2_ynh-master/scripts/remove'...
[ the rest of the remove script ]

Fix fail2ban config when using API / wallabag app

When using the API via wallabag mobile app, fail2ban log some connections, and might ban the app for a while.
See: https://forum.yunohost.org/t/official-app-wallabag2/3966/30 (in French, but I can translate it if needed).

But it is not supposed to do that…

When looking at the log, there is indeed an "Authentication failure" message.

app.ERROR: Authentication failure for user "", from IP "some ip address", with UA: "okhttp/4.2.2". [] []
(my credentials are correct)
And that's exactly maching our regex… Does Wallabag official mobile app perform some connection test before actually doing something with the API ? (ping @di72nn @Strubbl @tcitworld, maybe you have more information about this ?)
A test that would be blocked by our SSO ? 🤔

I don't really know what's the best solution to tackle this.
I guess the easiest way is to change the regex to exclude that case. But if we exclude UA okhttp, will it create a potential security breach ?
If the app performs some kind of test, with no authentification, is it possible to allow it to pass throught the SSO ? 🤔

Also when a login is failed in the web interface, there are several messages in the log related to that failed login:

app.ERROR: Authentication failure for user (and so on, that's the one we use right now)
security.INFO: Authentication request failed.
security.DEBUG: Authentication failure, redirect triggered. {"failure_path":"/login"}

With the API, it's only the first one.
I wonder if we could try to change the regex to adapt to another message 🤔


PS: btw when looking at the look file, I saw that error message:

request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "Wallabag\CoreBundle\Entity\Entry object not found." at /var/www/wallabag2/vendor/sensio/framework-extra-bundle/Request/ParamConverter/DoctrineParamConverter.php line 66 {"exception":"[object] (Symfony\Component\HttpKernel\Exception\NotFoundHttpException(code: 0): Wallabag\CoreBundle\Entity\Entry object not found. at /var/www/wallabag2/vendor/sensio/framework-extra-bundle/Request/ParamConverter/DoctrineParamConverter.php:66)"}

Wtf is that…

Error encounterd in wallabag logs

I've checked the wallabag specific logs and I see :

root@minipc:/var/www/wallabag2/var/logs# tail -f prod.log 
[2016-09-26 17:17:05] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /ynhpanel.js" (from "https:
//wallabag.mydomain.org/")" at /var/www/wallabag2/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 125 {"exception":"[object] (Symfo
ny\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /ynhpanel.js\" (from \"https://wallabag.mydomain.org/\") at /var/www/wallabag2/ven
dor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:125, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0):  at /va
r/www/wallabag2/var/cache/prod/appProdUrlMatcher.php:632)"} []

Nothing in /var/log/nginx/wallabag.mydomain-error.log

If more information needed, just ask.

Cache cleanup required after "Change URL" operation

Hello,

I recently changed my wallabag2 application from mydomain.tdl/wallabag to wallabag.mydomain.tld using the "Change URL" operation.

It went well but some assets such as the css and js files where not served when accessing wallabag.mydomain.tld (302 errors due to SSO redirection since the previous urls where pointing to protected paths).

I fixed the issue by removing the /var/www/wallabag2/var/cache/ directory.

Happing to give more details if needed.

Sincrely

Manuel

Update to 2.0.7

@jeromelebleu could you update to the 2.0.7 version ? The wallabag team released it a few days ago: https://www.wallabag.org/blog/2016/08/22/wallabag-207

This version, and the previous ones from 2.0 (the current version of this repo, right ?), fix a lot of small but annoying bugs.
It would be great if you have some time to work on this. Thanks :)
(If you need some tests/help, feel free to ping me ;)

Redis Pocket import doesn't work

Environment: VPS, debian-8.0-x86_64, Memory 768MB, 1 Core.
I have opened redis port 6379 on firewall, run redis-server. enable redis on internal setting (set to 1), entered pocket consumer key, entered the bin/console wallabag:import:redis-worker -e=prod pocket -vv >> /path/to/wallabag/var/logs/redis-pocket.log on redis server (path changed in accordance to my config). It send "Messages in Queue 1681" on the import page and "basic save xxxx"on SSH. However, nothing happened and it has been 8 hours.

It was working fine previously. Any ideas?

Problèmes bookmarklet et config

Hello,
J'ai quelques problèmes avec mon instance de wallabag V2

  • Le bookmarklet (/wallabag/bookmarklet?url=http...) me renvoi un 500 Internal Server Error nginx
  • Quand je change la langue dans la version web elle n'est pas sauvegarder, en anglais par defaut

et l'appli android ne veux pas sauvegarder un article (pas de prob avec la version web) mais bon ça c'est autre chose...

Can't import v1 json

Hi guys, I can't manage to import v1's articles. I think that my json is clean because I can import it in wallabag 1.92.
Looks like the connection broke or something. I can replicate this on chromium and safari.

capture d ecran 2016-07-21 a 12 35 09

error while importing

I see error message on Starred ,Archived , unread and while importing the json file from the previous version.

Oops! An Error Occurred
The server returned a "500 Internal Server Error".
Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.

Upgrading apps logs from Yunohost

During the upgrade of the apps to the last version, Yunohost interface provides some logs :

Upgrading apps wallabag2
Mise à jour de l’application wallabag2...
The helper ynh_mkdir_tmp is deprecated.
You should use 'mktemp -d' instead and manage permissions properly with chmod/chown.

Effectively, ynh_mkdir_tmp is used in the upgrade script.
Everything works.
Just an improvement to do at the occasion.

Empty old logs

Problem

appdirectory/var/logs/prod.log file contains all logs since installation.
This is unnecessary, and after a while it can take quite some disk space (90MB in 3 years for instance).

Solution

We need to implement a solution to empty those old logs on a regular basis (is logrotate the good tool for that purpose ?), for instance via a cron job every month.
Does wallabag provide such a tool in command line ? 🤔
In my opinion 6 months logs history is a fair value.

error while creating rss token

The server returned a "500 Internal Server Error".

can't find any log about this :( (php5-fpm.log, mydomain-error.log, nginx/error.log)

Installation failed: unable to download wallabag

Hi,

The installation failed.
It's seems that is due this error during the download.

root@YunoHost:~# yunohost app install https://github.com/YunoHost-Apps/wallabag2_ynh/
Available domains:
- xxx.org
Choose a domain for Wallabag (default: xxx.org): 
Choose a path for Wallabag (default: /wallabag): /wallabag2
Choose the Wallabag administrator: mathieu
Warning: dh_install: Compatibility levels before 9 are deprecated (level 7 in use)
Warning: dh_installdocs: Compatibility levels before 9 are deprecated (level 7 in use)
Warning: dh_installchangelogs: Compatibility levels before 9 are deprecated (level 7 in use)
Warning: dh_installdeb: Compatibility levels before 9 are deprecated (level 7 in use)
Warning: Unable to download Wallabag tarball
Error: Installation failed


root@YunoHost:~# wget -O /tmp/wallabag.tar.gz https://static.wallabag.org/releases/wallabag-release-2.2.2.tar.gz 
--2017-05-10 21:08:59--  https://static.wallabag.org/releases/wallabag-release-2.2.2.tar.gz
Resolving static.wallabag.org (static.wallabag.org)... 185.49.22.17
Connecting to static.wallabag.org (static.wallabag.org)|185.49.22.17|:443... connected.
ERROR: The certificate of ‘static.wallabag.org’ is not trusted.
ERROR: The certificate of ‘static.wallabag.org’ hasn't got a known issuer.


root@YunoHost:~# date
Wed 10 May 21:09:01 UTC 20

Thanks.

Installation fails because of php7.0-tidy

Hi,

I'm trying to install Wallabag on Yunohost 3.5.2.2 but it fails. It seems to be relative to php7.0-tidy.
From the logs:

2019-04-19 15:49:15,335: DEBUG - Dépaquetage de wallabag2-ynh-deps (2.3.2-1) ...
2019-04-19 15:49:15,535: DEBUG - dpkg: wallabag2-ynh-deps : problèmes de dépendances, mais configuration comme demandé :
2019-04-19 15:49:15,535: DEBUG -  wallabag2-ynh-deps dépend de php7.0-tidy ; cependant :
2019-04-19 15:49:15,536: DEBUG -   Le paquet php7.0-tidy n'est pas installé. 

Trying to install this package:

# apt install php7.0-tidy
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Certains paquets ne peuvent être installés. Ceci peut signifier
que vous avez demandé l'impossible, ou bien, si vous utilisez
la distribution unstable, que certains paquets n'ont pas encore
été créés ou ne sont pas sortis d'Incoming.
L'information suivante devrait vous aider à résoudre la situation :

Les paquets suivants contiennent des dépendances non satisfaites :
php7.0-tidy : Dépend: php7.0-common (= 7.0.33-0+deb9u3) mais 7.0.33-5+0~20190309015553.9+stretch~1.gbp4c6517 devra être installé
E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état ».

Thanks a lot!

Validate quality level 4 conformance

This application should be reviewed by the YunoHost Apps group to assess quality level 4 conformance.

SSO is implemented in this package by different ways:

  • logging-in through server variable $REMOTE_USER (see here)
  • LDAP authentication: use LDAPClient in Symfony framework (see here)

Add Fail2Ban app config

(#65 needs to be merged before working on this topic)

I think the administrator/user should be able to configure the number of retry before being banned, as well as the banning time.

And maybe also to whitelist some IP ?

We can use a app config panel for that.

Problem with bookmarklet and FF add-on

Hello,
Since last update I have a few blocking problems.
For the Firefox extension I think it's because of SSO because it keeps rejecting me if I try to connect to my YNH instance.
The other problem is more blocking for me: I have an error 500 when using the bookmarklet. I found that in my logs:

2016/11/29 21:58:18 [error] 4177#0: *1082558 rewrite or internal redirection cycle while redirect to named location "@wallbag2", client: 92.171.104.151, server: domaine.tld, request: "GET /wallabag/bookmarklet?url=https://linuxfr.org/users/rodhlann/journaux/des-basheries HTTP/1.1", host: "domaine.tld", referrer: "https://linuxfr.org/users/rodhlann/journaux/des-basheries"

I also have an error 500 when trying to export to PDF

I'm available if you need more informations or tests just ping me ! :-)

Improve the LDAP integration

The LDAP is currently only integrated for the user authentication - using the HTTP basic auth credentials provided by the SSO - who must be already created in the Wallabag database. This is done by this patch thanks to the Symfony LDAP Component - suggested here by @nicosomb - and users are created here at the install.

It "works", but I really don't know a lot about Symfony and I'm sure it can be improved - waiting that it's fully integrated into Wallabag, see wallabag/wallabag#966 for that. Also, if it's possible to manage the user creation directly from Wallabag...

So, any help, review, advices or - even better - pull-request is really welcome! :) Thanks in advance!

Exclude cached files from backup

Hi,

I am currently using borg_ynh to backup my YunoHost on a 3rd party server, which is really nice.
However the more space I use, the more I pay. The issue is that wallabag2_ynh backs up files that are useless, specially all the cached files.

Example:

drwxr-xr-x wallabag2 wallabag2        0 Sun, 2018-12-30 12:18:20 apps/wallabag2/backup/var/www/wallabag2/var/cache/prod/twig/32                                                                                                                                                
-rw-r--r-- wallabag2 wallabag2     2229 Sun, 2018-12-30 12:18:20 apps/wallabag2/backup/var/www/wallabag2/var/cache/prod/twig/32/32c545867c6904ee61e15dbe457151b311f2862c6995302ab0a1eac93c42d2bf.php                                                                           
drwxr-xr-x wallabag2 wallabag2        0 Sun, 2018-12-30 12:18:20 apps/wallabag2/backup/var/www/wallabag2/var/cache/prod/twig/85                                                                                                                                                
-rw-r--r-- wallabag2 wallabag2     4570 Sun, 2018-12-30 12:18:20 apps/wallabag2/backup/var/www/wallabag2/var/cache/prod/twig/85/85ccc2312970912665200aa2473f0885c695d34995607121b2c5644d7b21b8b4.php                                                                           
drwxr-xr-x wallabag2 wallabag2        0 Sun, 2018-12-30 12:18:20 apps/wallabag2/backup/var/www/wallabag2/var/cache/prod/twig/6b                                                                                                                                                
-rw-r--r-- wallabag2 wallabag2     1950 Sun, 2018-12-30 12:18:20 apps/wallabag2/backup/var/www/wallabag2/var/cache/prod/twig/6b/6bde35f741d3b0bb6bbdd96abc0be3058d8c934e808e903364eb9b3391be0bdf.php                                                   

I am not sure the vendors files should be backed up too?

So, would that be possible to exclude the cached files from the backup please?

Moving from PHP5 to PHP7

Since Yunohost on Debian9 use PHP7 by default
and it's an easy way to improve the performance
I'll would like to see this apps using PHP 7.x instead of PHP 5

I say that because I see php5 mentioned in your config file

missing system requirements

Hello,

update failed, now i cant install wallabag

cant install wallabag2 - got error "Missing System requirements"

PDO Driver (pdo_mysql) ERROR! Database driver "pdo_mysql" is not installed.
Database connection ERROR! Can't connect to the database: An exception occured in driver: could not find driver
Database version OK!
curl_exec ERROR! You need the curl_exec function activated
curl_multi_init ERROR! You need the curl_multi_init function activated


[console] Error thrown while running command "--no-interaction --env=prod wallabag:install". Message: "Some system requirements are not fulfilled. Please check output messages and fix them." ["error" => RuntimeException { …},"command" => "--no-interaction --env=prod wallabag:install","message" => "Some system requirements are not fulfilled. Please check output messages and fix them."] []

thanks for help....

Import from Pocket doesn't work

Hello,

When I try to import from Pocket, I receive the following message (after 20-30 seconds of loading):

500: Internal Server Error

Error: Maximum execution time of 30 seconds exceeded

Let me know if you need more information.

Gui update from v2.2.3 failed

I'm in v2.2.3, and try to update from the administration frontend page. It seems to fail doing the backup:

[...]
2017-07-26 20:16:42,044 INFO yunohost.hook <lambda> - [535.7] + ynh_backup_before_upgrade
2017-07-26 20:16:42,050 INFO yunohost.hook <lambda> - [535.7] + backup_number=1
2017-07-26 20:16:42,051 INFO yunohost.hook <lambda> - [535.7] + old_backup_number=2
2017-07-26 20:16:42,054 INFO yunohost.hook <lambda> - [535.7] + app_bck=wallabag2
2017-07-26 20:16:42,058 INFO yunohost.hook <lambda> - [535.7] + grep -q wallabag2-pre-upgrade1
2017-07-26 20:16:42,059 INFO yunohost.hook <lambda> - [535.7] + sudo yunohost backup list
2017-07-26 20:16:45,934 INFO yunohost.hook <lambda> - [535.7] + sudo yunohost backup create --ignore-hooks --apps wallabag2 --name wallabag2-pre-upgrade1
2017-07-26 20:16:49,724 WARNING yunohost.hook <lambda> - [535.7] --ignore-hooks is deprecated and will be removed in thefuture. Please use --ignore-system instead.
2017-07-26 20:16:49,728 WARNING yunohost.hook <lambda> - [535.7] Le dossier de sortie n'est pas vide
2017-07-26 20:16:49,887 ERROR yunohost.app app_upgrade - [535.7] Impossible de mettre à jour wallabag2
2017-07-26 20:16:49,889 WARNING yunohost.tools tools_upgrade - [535.7] unable to upgrade apps: [Errno 61] Aucune application à mettre à jour
2017-07-26 20:16:49,890 INFO moulinette.core translate - untranslated key 'app_upgrade_failed' for locale 'fr'
2017-07-26 20:16:49,890 ERROR moulinette.core translate - unable to retrieve key 'app_upgrade_failed' for default locale 'en'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/moulinette/core.py", line 201, in translate
return _load_key(self.default_locale)
File "/usr/lib/python2.7/dist-packages/moulinette/core.py", line 192, in _load_key
return value.encode('utf-8').format(*args, **kwargs)
KeyError: 'app'
2017-07-26 20:16:49,891 ERROR yunohost.tools tools_upgrade - [535.7] app_upgrade_failed

No Wallabag backup found in /home/yunohost.backup/

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.