Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Dec 04 00:26
    solarchemist opened #5502
  • Dec 03 20:59
    wallabag-bot labeled #5501
  • Dec 03 20:59
    wallabag-bot opened #5501
  • Dec 03 06:10
    gramster closed #274
  • Dec 03 06:10
    gramster commented #274
  • Dec 02 17:24
    gramster edited #274
  • Dec 02 13:54
    weblate opened #1220
  • Dec 02 10:09
    putzwasser commented #4125
  • Dec 02 07:24
    gramster opened #274
  • Dec 01 21:52
    starsareintherose commented #5492
  • Dec 01 14:16
    xplosionmind opened #5500
  • Dec 01 14:16
    xplosionmind labeled #5500
  • Dec 01 04:26
    starsareintherose commented #5358
  • Dec 01 03:07

    dependabot[bot] on npm_and_yarn

    (compare)

  • Dec 01 03:07
    dependabot[bot] closed #5474
  • Dec 01 03:07
    dependabot[bot] commented #5474
  • Dec 01 03:07
    dependabot[bot] labeled #5499
  • Dec 01 03:07
    dependabot[bot] labeled #5499
  • Dec 01 03:07
    dependabot[bot] opened #5499
  • Dec 01 03:07

    dependabot[bot] on npm_and_yarn

    Bump css-loader from 5.2.7 to 6… (compare)

tandy
@tandy1000:matrix.org
[m]
i realised my problem, i had to set the domain_name to my servers public hostname
server.local
ploc
@ploc:matrix.gresille.org
[m]
Can anyone tell me what is the file site-credentials-secret-key.txt about?
kdecherf
@kdecherf:matrix.org
[m]
ploc: this is the secret key used to encrypt site credentials in the database (site credentials are used for paywalled content on some websites)
Edmund Kasprzak
@ekasprzak
Hi, any news on nginx 504 Gateway Time-out when trying to export multiple articles (eg. https://app.wallabag.it/export/unread.epub?search_entry%5Bterm%5D=) ?
ghostjoad
@ghostjoad:matrix.org
[m]
Hi, I have just setup wallabag on my VPS, but there is something strange in the setup. With this docker-compose.yml, whatever I put in SYMFONYENVDATABASE_NAME, SYMFONYENVDATABASE_USER or SYMFONYENVDATABASE_PASSWORD, the only login recognized is always "wallabag", with password "wallabag". What am I missing ?
1 reply
kdecherf
@kdecherf:matrix.org
[m]
Baptiste Demoulin: this is the default wallabag user that is created during installation, the three variables you mention are unrelated to that
after the installation you can create another admin user using the default user
Baptiste Demoulin
@ghostjoad:matrix.org
[m]
OK thanks !
kdecherf
@kdecherf:matrix.org
[m]
And don't forget to remove or disable the user wallabag after you created your account :)
Baptiste Demoulin
@ghostjoad:matrix.org
[m]
Thanks for your help, I was getting confused with all these parameters. Now it works :) !
月季花中的星辰
@starsareintherose
I configure it with php7.4 and nginx, also I use nginx7.4-fpm on my ArchLinux, I use AUR to install it. The nginx configure is almost the same as offial docs. But when I visit it, it shows No input file specified.
月季花中的星辰
@starsareintherose
My configure file
```

[root@archlinux ~]# cd /etc/nginx/
[root@archlinux nginx]# cd sites-enabled
[root@archlinux sites-enabled]# cat read.conf
server {
listen 80;
server_name read.malacology.net;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
server_name read.malacology.net;
root /usr/share/webapps/wallabag;
ssl_certificate /etc/nginx/web_ssl/read/1_read.malacology.net_bundle.crt;
ssl_certificate_key /etc/nginx/web_ssl/read/2_read.malacology.net.key;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
ssl_prefer_server_ciphers on;
access_log /var/log/nginx/access.log;

location / {
    # try to serve file directly, fallback to app.php
    try_files $uri /app.php$is_args$args;
}
location ~ ^/app\.php(/|$) {
    # if, for some reason, you are still using PHP 5,
    # then replace /run/php/php7.0 by /var/run/php5
    fastcgi_pass unix:/run/php74-fpm/php-fpm.sock;
    fastcgi_split_path_info ^(.+\.php)(/.*)$;
    include fastcgi_params;
    # When you are using symlinks to link the document root to the
    # current version of your application, you should pass the real
    # application path instead of the path to the symlink to PHP
    # FPM.
    # Otherwise, PHP's OPcache may not properly detect changes to
    # your PHP files (see https://github.com/zendtech/ZendOptimizerPlus/issues/126
    # for more information).
    fastcgi_param  SCRIPT_FILENAME  $realpath_root$fastcgi_script_name;
    fastcgi_param DOCUMENT_ROOT $realpath_root;
    # Prevents URIs that include the front controller. This will 404:
    # http://domain.tld/app.php/some-path
    # Remove the internal directive to allow URIs like this
    internal;
}
# return 404 for all other php files not matching the front controller
# this prevents access to other php files you don't want to be accessible.
location ~ \.php$ {
    return 404;
}

}

Johannes
@jrabensc:matrix.org
[m]
why do you don't use the official nginx config from the documentation?
and how did you install wallabag exactly?
are you able to run other php scripts?
月季花中的星辰
@starsareintherose
I just follow the official configure, but I need to TLS configure which is absent, therefore, I add SSL section, and others are almost the same as others, I also configure freshrss, which is okay to run the PHP script.

[root@archlinux sites-enabled]# cat rss.conf
server {
listen 80;
server_name rss.malacology.net;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
server_name rss.malacology.net;
root /usr/share/webapps/freshrss;
ssl_certificate /etc/nginx/web_ssl/rss/1_rss.malacology.net_bundle.crt;
ssl_certificate_key /etc/nginx/web_ssl/rss/2_rss.malacology.net.key;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
ssl_prefer_server_ciphers on;
access_log /var/log/nginx/access.log;
location / {
index index.php index.html index.htm;
}

location ~ [^/].(php|html|htm)(/|$) {

    location ~ \.php$ {
    # 404
    try_files $fastcgi_script_name =404;

    # default fastcgi_params
    include fastcgi_params;

    # fastcgi settings
    fastcgi_pass            unix:/run/php74-fpm/php-fpm.sock;
    fastcgi_index            index.php;
    fastcgi_buffers            8 16k;
    fastcgi_buffer_size        32k;

    # fastcgi params
    fastcgi_param DOCUMENT_ROOT    $realpath_root;
    fastcgi_param SCRIPT_FILENAME    $realpath_root$fastcgi_script_name;
    #fastcgi_param PHP_ADMIN_VALUE    "open_basedir=$base/:/usr/lib/php/:/tmp/";
}

}

I install via AUR (ArchLinux), which makes wallbag install under /usr/share/webapps/wallabag
I change the owner of wallbag files to root and no extra modification for AUR (https://aur.archlinux.org/packages/wallabag/)
@jrabensc:matrix.org That's all.
Johannes
@jrabensc:matrix.org
[m]
I would recommend to not use the AUR package. Just do exactly as the docs point out and you should be fine.
maybe you could try to run it without ssl first
I also would recommend to not run a web app as root
月季花中的星辰
@starsareintherose
I configure the nginx without SSL, it still shows that No input file specified.
Johannes
@jrabensc:matrix.org
[m]
did you try the same config on another machine?
https://www.google.com/search?q=No+input+file+specified this is probably related to a php config error
月季花中的星辰
@starsareintherose
I haven't, this is my first time to configure it without docker.
I have searched about this problem, they said it related with the absent PHP file.
[root@archlinux ~]# cd /usr/share/webapps/wallabag
[root@archlinux wallabag]# ls -o
total 936
drwxr-xr-x 5 root 4096 Jul 24 00:46 app
drwxr-xr-x 2 root 4096 Jul 24 00:46 bin
-rwxr-xr-x 1 root 72485 Jul 24 00:46 CHANGELOG.md
-rwxr-xr-x 1 root 3350 Jul 24 00:46 CODE_OF_CONDUCT.md
-rwxr-xr-x 1 root 5717 Jul 24 00:46 composer.json
-rwxr-xr-x 1 root 474281 Jul 24 00:46 composer.lock
-rwxr-xr-x 1 root 1069 Jul 24 00:46 COPYING.md
-rwxr-xr-x 1 root 282 Jul 24 00:46 CREDITS.md
lrwxrwxrwx 1 root 22 Jul 24 00:46 data -> /var/lib/wallabag/data
drwxr-xr-x 6 root 4096 Jul 24 00:46 docker
-rwxr-xr-x 1 root 1585 Jul 24 00:46 docker-compose.yml
-rwxr-xr-x 1 root 1781 Jul 24 00:46 GNUmakefile
-rwxr-xr-x 1 root 20 Jul 24 00:46 Makefile
-rwxr-xr-x 1 root 2417 Jul 24 00:46 package.json
-rwxr-xr-x 1 root 311 Jul 24 00:46 phpstan.neon
-rwxr-xr-x 1 root 1151 Jul 24 00:46 phpunit.xml.dist
-rwxr-xr-x 1 root 2395 Jul 24 00:46 README.md
-rwxr-xr-x 1 root 1750 Jul 24 00:46 RELEASE_PROCESS.md
drwxr-xr-x 2 root 4096 Jul 24 00:46 scripts
drwxr-xr-x 3 root 4096 Jul 24 00:46 src
drwxr-xr-x 3 root 4096 Jul 24 00:46 tests
lrwxrwxrwx 1 root 21 Jul 24 00:46 var -> /var/lib/wallabag/var
drwxr-xr-x 67 root 4096 Jul 24 00:47 vendor
drwxr-xr-x 8 root 4096 Jul 24 00:47 web
-rwxr-xr-x 1 root 216 Jul 24 00:46 webpack.config.js
-rwxr-xr-x 1 root 316840 Jul 24 00:46 yarn.lock
[root@archlinux wallabag]# cd /var/lib/wallabag/data && ls -o
total 4
drwxr-xr-x 2 root 4096 Jul 24 00:47 db
[root@archlinux data]# cd /var/lib/wallabag/var && ls -o
total 80
-rw-r--r-- 1 root 42998 Jul 24 00:46 bootstrap.php.cache
-rw-r--r-- 1 root 33831 Jul 24 00:46 SymfonyRequirements.php
Johannes
@jrabensc:matrix.org
[m]
sorry, I have no idea whats wrong here.
月季花中的星辰
@starsareintherose
Thanks, it would take several months to deal with it.
Johannes
@jrabensc:matrix.org
[m]
just use the docker instead?
btw, I dont think the files should be owned by root. did you try to use www-data user?
月季花中的星辰
@starsareintherose
That's the default thinking of RedHat Linux.
Johannes
@jrabensc:matrix.org
[m]
but dont you use arch?
月季花中的星辰
@starsareintherose
docker can't be auto update following the master branch. Right, I'm using arch, so I don't want to use www-data
Johannes
@jrabensc:matrix.org
[m]
which user runs nginx?
月季花中的星辰
@starsareintherose
root
Johannes
@jrabensc:matrix.org
[m]
lol ok
月季花中的星辰
@starsareintherose
this is just my private cloud computer and if many people use the same VPS, I won't run it as root.
月季花中的星辰
@starsareintherose
I foud the log
[root@archlinux nginx]# cat wallabag_access.log
120.77.245.50 - - [25/Jul/2021:20:48:02 +0800] "GET / HTTP/1.1" 404 36 "-" "curl/7.78.0"
120.192.37.36 - - [25/Jul/2021:21:43:41 +0800] "GET / HTTP/2.0" 404 25 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4571.0 Safari/537.36 Edg/93.0.957.0"
[root@archlinux nginx]# cat wallabag_error.log
2021/07/25 20:48:02 [error] 7064#7064: 32 FastCGI sent in stderr: "Unable to open primary script: /usr/share/webapps/wallabag/app.php (No such file or directory)" while reading response header from upstream, client: 120.77.245.50, server: read.malacology.net, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php74-fpm/php-fpm.sock:", host: "read.malacology.net"
2021/07/25 21:43:41 [error] 9868#9868:
3 FastCGI sent in stderr: "Unable to open primary script: /usr/share/webapps/wallabag/app.php (No such file or directory)" while reading response header from upstream, client: 120.192.37.36, server: read.malacology.net, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/run/php74-fpm/php-fpm.sock:", host: "read.malacology.net"
and here is no app.php after install
月季花中的星辰
@starsareintherose
I change the root to /usr/share/webapps/wallbag/web, wich there is an app.php
But error report says following

2021/07/25 23:19:10 [error] 15447#15447: *20 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/lib/wallabag/var/logs/prod.log" could not be opened in append mode: failed to open stream: Permission denied in /usr/share/webapps/wallabag/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:110
Stack trace:

#0 /usr/share/webapps/wallabag/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(39): Monolog\Handler\StreamHandler->write()

#1 /usr/share/webapps/wallabag/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php(59): Monolog\Handler\AbstractProcessingHandler->handle()

#2 /usr/share/webapps/wallabag/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php(92): Monolog\Handler\AbstractHandler->handleBatch()

#3 /usr/share/webapps/wallabag/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php(113): Monolog\Handler\FingersCrossedHandler->activate()

#4 /usr/share/webapps/wallabag/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\Handl" while reading response header from upstream, client: 120.192.37.36, server: read.malacology.net, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/run/php74-fpm/php-fpm.sock:", host: "read.malacology.net"