Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 06:00
    j0k3r edited #5748
  • 05:59
    j0k3r edited #5758
  • 05:59
    j0k3r edited #5759
  • 05:59
    j0k3r milestoned #5782
  • 05:59
    j0k3r edited #5782
  • 05:58
    j0k3r milestoned #5784
  • 05:58
    j0k3r edited #5784
  • 05:58
    j0k3r edited #5810
  • 05:58

    j0k3r on 2.6.0

    Remove SensioDistributionBundle Merge pull request #5761 from y… (compare)

  • 05:58
    j0k3r closed #5761
  • 05:57
    j0k3r edited #5761
  • 04:48

    j0k3r on npm_and_yarn

    (compare)

  • 04:48

    j0k3r on master

    Bump @babel/core from 7.17.10 t… Merge pull request #5821 from w… (compare)

  • 04:48
    j0k3r closed #5821
  • 04:30
    dependabot[bot] edited #5820
  • 04:29
    dependabot[bot] edited #5821
  • 04:29
    dependabot[bot] edited #5812
  • 04:27
    ddeimeke closed #5811
  • 04:27
    ddeimeke commented #5811
  • 04:24
    dependabot[bot] synchronize #5821
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"

The Doctor
@virtadpt
Is there anything contraindicating using MySQL's full text search feature?
月季花中的星辰
@starsareintherose
I found here is still error for my wallabag

2021/07/27 13:35:31 [error] 325#325: *2771 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/FingersCrossedHandler.php(116): Monolog\Handler\AbstractProcessingHandler->handle()

#2 /usr/share/webapps/wallabag/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\Handler\FingersCrossedHandler->handle()

#3 /usr/share/webapps/wallabag/vendor/monolog/monolog/src/Monolog/Logger.php(740): Monolog\Logger->addRecord()

#4 /usr/share/webapps/wallabag/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/ExceptionListener.php(101): Monolog\Logger->critical()" 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"

But actually, I have configured the database and have clear the cache

[root@archlinux wallabag]# php74 bin/console cache:clear --env=prod

// Clearing the cache for the prod
// environment with debug false

[OK] Cache for the "prod" environment (debug=false)
was successfully cleared.

Also, I use 777 for /var/lib/wallabag/var/logs/prod.log
[root@archlinux ~]# cd /var/lib/wallabag/var/logs/
[root@archlinux logs]# ls
[root@archlinux logs]# cd ..
[root@archlinux var]# ls -o
total 88
-rw-r--r-- 1 root 42998 Jul 24 00:46 bootstrap.php.cache
drwxr-xr-x 3 root 4096 Jul 27 13:35 cache
drwxr-xr-x 2 root 4096 Jul 25 23:11 logs
-rw-r--r-- 1 root 33831 Jul 24 00:46 SymfonyRequirements.php
[root@archlinux var]# chmod -R 777 logs
[root@archlinux var]# ls -o
total 88
-rw-r--r-- 1 root 42998 Jul 24 00:46 bootstrap.php.cache
drwxr-xr-x 3 root 4096 Jul 27 13:35 cache
drwxrwxrwx 2 root 4096 Jul 25 23:11 logs
-rw-r--r-- 1 root 33831 Jul 24 00:46 SymfonyRequirements.php
And the web shows
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.
[root@archlinux var]# stat /var/lib/wallabag/var/logs/
File: /var/lib/wallabag/var/logs/
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: fe01h/65025d Inode: 1836197 Links: 2
Access: (0777/drwxrwxrwx) Uid: ( 0/ root) Gid: ( 33/ http)
Access: 2021-07-27 13:37:47.129710658 +0800
Modify: 2021-07-27 13:37:55.259709826 +0800
Change: 2021-07-27 13:37:55.259709826 +0800
Birth: 2021-07-25 23:11:57.728393402 +0800
[root@archlinux var]# stat /var/lib/wallabag/var/logs/prod.log
File: /var/lib/wallabag/var/logs/prod.log
Size: 2207 Blocks: 8 IO Block: 4096 regular file
Device: fe01h/65025d Inode: 1836096 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 33/ http) Gid: ( 33/ http)
Access: 2021-07-27 13:37:55.259709826 +0800
Modify: 2021-07-27 13:37:55.709709780 +0800
Change: 2021-07-27 13:37:55.709709780 +0800
Birth: 2021-07-27 13:37:55.259709826 +0800
I can't find any ideas about it.
Johannes
@jrabensc:matrix.org
[m]
I think wallabag cannot write to the log file. Could you check permissions?
月季花中的星辰
@starsareintherose
You can see the log, I give it 777
[root@archlinux ~]# cd /var/lib/wallabag/var/logs/
[root@archlinux logs]# ls
[root@archlinux logs]# cd ..
[root@archlinux var]# ls -o
total 88
-rw-r--r-- 1 root 42998 Jul 24 00:46 bootstrap.php.cache
drwxr-xr-x 3 root 4096 Jul 27 13:35 cache
drwxr-xr-x 2 root 4096 Jul 25 23:11 logs
-rw-r--r-- 1 root 33831 Jul 24 00:46 SymfonyRequirements.php
[root@archlinux var]# chmod -R 777 logs
[root@archlinux var]# ls -o
total 88
-rw-r--r-- 1 root 42998 Jul 24 00:46 bootstrap.php.cache
drwxr-xr-x 3 root 4096 Jul 27 13:35 cache
drwxrwxrwx 2 root 4096 Jul 25 23:11 logs
-rw-r--r-- 1 root 33831 Jul 24 00:46 SymfonyRequirements.php
Johannes
@jrabensc:matrix.org
[m]
But in the log it says permission denied
月季花中的星辰
@starsareintherose
right, I am little confused
[root@archlinux ~]# cd /var/lib/wallabag/var/logs/
[root@archlinux logs]# ls
prod.log
[root@archlinux logs]# ls -o
total 12
-rw-r--r-- 1 http 11035 Jul 27 14:08 prod.log
[root@archlinux logs]# chmod -R 777 prod.log
[root@archlinux logs]# ls
prod.log
[root@archlinux logs]# ls -o
total 12
-rwxrwxrwx 1 http 11035 Jul 27 14:08 prod.log
now no error log, but the web is still not well
Johannes
@jrabensc:matrix.org
[m]
Not well?
月季花中的星辰
@starsareintherose
still show this
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.
月季花中的星辰
@starsareintherose
2021/07/29 00:56:41 [error] 319#319: *127 FastCGI sent in stderr: "PHP message: PHP Warning: SessionHandler::read(): open(/usr/share/webapps/wallabag/var/sessions/prod/sess_k7bhnpdf5s73k7n4u90ljcvtve, O_RDWR) failed: Permission denied (13) in /usr/share/webapps/wallabag/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/StrictSessionHandler.php on line 48" while reading response header from upstream, client: 47.241.89.31, server: read.malacology.net, request: "GET /js/routing?callback=fos.Router.setData HTTP/2.0", upstream: "fastcgi://unix:/run/php74-fpm/php-fpm.sock:", host: "read.malacology.net", referrer: "https://read.malacology.net/login"
New error log
when I input the password and user, it return back to the login page
2021/07/29 01:04:05 [error] 319#319: 167 FastCGI sent in stderr: "PHP message: PHP Warning: SessionHandler::read(): open(/usr/share/webapps/wallabag/var/sessions/prod/sess_7s7lceadu9le3plpoce33q237d, O_RDWR) failed: Permission denied (13) in /usr/share/webapps/wallabag/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/StrictSessionHandler.php on line 48PHP message: PHP Warning: SessionHandler::write(): open(/usr/share/webapps/wallabag/var/sessions/prod/sess_7s7lceadu9le3plpoce33q237d, O_RDWR) failed: Permission denied (13) in /usr/share/webapps/wallabag/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/StrictSessionHandler.php on line 64PHP message: PHP Warning: session_write_close(): Failed to write session data using user defined save handler. (session.save_path: /usr/share/webapps/wallabag/var/sessions/prod) in /usr/share/webapps/wallabag/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php on line 266" while reading response header from upstream, client: 120.192.37.36, server: read.malacology.net, request: "POST /login_check HTTP/2.0", upstream: "fastcgi://unix:/run/php74-fpm/php-fpm.sock:", host: "read.malacology.net", referrer: "https://read.malacology.net/login"
2021/07/29 01:04:05 [error] 319#319:
167 FastCGI sent in stderr: "PHP message: PHP Warning: SessionHandler::read(): open(/usr/share/webapps/wallabag/var/sessions/prod/sess_7s7lceadu9le3plpoce33q237d, O_RDWR) failed: Permission denied (13) in /usr/share/webapps/wallabag/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/StrictSessionHandler.php on line 48PHP message: PHP Warning: SessionHandler::write(): open(/usr/share/webapps/wallabag/var/sessions/prod/sess_7s7lceadu9le3plpoce33q237d, O_RDWR) failed: Permission denied (13) in /usr/share/webapps/wallabag/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/StrictSessionHandler.php on line 64PHP message: PHP Warning: session_write_close(): Failed to write session data using user defined save handler. (session.save_path: /usr/share/webapps/wallabag/var/sessions/prod) in /usr/share/webapps/wallabag/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php on line 266" while reading response header from upstream, client: 120.192.37.36, server: read.malacology.net, request: "GET /login HTTP/2.0", upstream: "fastcgi://unix:/run/php74-fpm/php-fpm.sock:", host: "read.malacology.net", referrer: "https://read.malacology.net/login"
2021/07/29 01:04:05 [error] 319#319: *167 FastCGI sent in stderr: "PHP message: PHP Warning: SessionHandler::read(): open(/usr/share/webapps/wallabag/var/sessions/prod/sess_7s7lceadu9le3plpoce33q237d, O_RDWR) failed: Permission denied (13) in /usr/share/webapps/wallabag/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/StrictSessionHandler.php on line 48" while reading response header from upstream, client: 120.192.37.36, server: read.malacology.net, request: "GET /js/routing?callback=fos.Router.setData HTTP/2.0", upstream: "fastcgi://unix:/run/php74-fpm/php-fpm.sock:", host: "read.malacology.net", referrer: "https://read.malacology.net/login"
月季花中的星辰
@starsareintherose
when I grant the private to it, it shows "HTTP ERROR 500"
ploc
@ploc:matrix.gresille.org
[m]

I've just finished to develop an ansible role and playbook that offer to install Wallabag. I'm trying to follow the best practices of ansible playbooks and to make each task idempotent. I have a problem with a task that is changing the default password of the default user already created (user: wallabag, password: wallabag). This task is indeed idempotent, but is always reported as changed.

I'm trying to find a solution to avoid this task to be reported as changed each time. The only way I can imagine is to delete this default user. Is it possible to delete this default wallabag user, as it is an admin user? And by the way, I can't find any way to delete a user using the default console commands.

月季花中的星辰
@starsareintherose
500: Internal Server Error
Unable to write in the "/usr/share/webapps/wallabag/web/uploads/import" directory.
When I try to import the json, it shows this information
月季花中的星辰
@starsareintherose
2021/08/10 03:14:48 [error] 53746#53746: *1 FastCGI sent in stderr: "PHP message: PHP Warning: mkdir(): Permission denied in /usr/share/webapps/wallabag/vendor/friendsofsymfony/jsrouting-bundle/Extractor/ExposedRoutesExtractor.php on line 174" while reading response header from upstream, client: 47.241.99.23, server: read.malacology.net, request: "GET /js/routing?callback=fos.Router.setData HTTP/2.0", upstream: "fastcgi://unix:/run/php74-fpm/php-fpm.sock:", host: "read.malacology.net", referrer: "https://read.malacology.net/import/wallabag-v2"
slkjf84lkj
@slkjf84lkj_twitter
Hello
It seems there is a missed feature on the self-hosted version. I see the site credential feature on the official site but not on my server.
Am I right?
1 reply
The Doctor
@virtadpt
@starsareintherose When you try to import stuff into Wallabag, it has to write the file to a temporary directory. In your case that temp directory is /usr/share/webapps/wallabag/web/uploads/import
If you're running Wallabag under Apache, Apache has to be able to write to that directory. The way to make that happen is to chown /usr/share/webapps/wallabag/web/uploads/import to the Apache user (apache:apache or httpd:httpd, whatever it is on your server). ps aux | grep [h]ttpd or ps aux | grep [a]pache will tell you which it needs to be.
If you're running Nginx + PHP-FPM, /usr/share/webapps/wallabag/web/uploads/import has to be owned by the PHP-FPM user. ps aux | grep [p]hp will tell you what user that has to be.
Then, just do a sudo chown -R <whoever it has to be> /usr/share/webapps/wallabag/web/uploads/import and try importing again.
月季花中的星辰
@starsareintherose
Actually, it belongs the http, which is the php-fpm user.
[root@archlinux ~]# cd /usr/share/webapps/wallabag/web/uploads/
[root@archlinux uploads]# ls -o
total 4
drwxr-xr-x 2 http 4096 Jul 25 23:17 import
TimeWalker
@timewalker:foxden.party
[m]
Hey 👋
I have troubles with some sites where they use Cloudflare's captcha test. If I try to save an article then the only thing I get is the captcha check. I'm self-hosting so I've been wondering if there are ways to make it "trustworthy" enough to not get funnelled into that check