Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jul 26 18:46
    wallabag-bot opened #5357
  • Jul 26 18:46
    wallabag-bot labeled #5357
  • Jul 26 09:35
    TontonMollo opened #5356
  • Jul 25 17:11
    wallabag-bot labeled #5355
  • Jul 25 17:11
    wallabag-bot opened #5355
  • Jul 25 15:46
    starsareintherose commented #5354
  • Jul 25 15:45
    starsareintherose commented #5354
  • Jul 25 14:57

    tcitworld on master

    Translated using Weblate (Polis… Merge pull request #1188 from w… (compare)

  • Jul 25 14:57
    tcitworld closed #1188
  • Jul 25 14:05
    starsareintherose edited #5354
  • Jul 25 14:04
    starsareintherose opened #5354
  • Jul 24 23:45
    wallabag-bot labeled #5353
  • Jul 24 23:45
    wallabag-bot opened #5353
  • Jul 24 21:22
    dependabot[bot] edited #1187
  • Jul 24 21:22
    dependabot[bot] synchronize #1187
  • Jul 24 21:22
    dependabot[bot] edited #1187
  • Jul 24 21:22

    dependabot[bot] on gradle

    Bump media from 1.3.1 to 1.4.0 … (compare)

  • Jul 24 21:22
    dependabot[bot] edited #1187
  • Jul 24 21:22
    dependabot[bot] edited #1187
  • Jul 24 21:22
    weblate synchronize #1188
月季花中的星辰
@starsareintherose
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"

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.