HenryQW / Awesome-TTRSS

🐋 Awesome TTRSS, a powerful Dockerised all-in-one RSS solution.
http://ttrss.henry.wang
MIT License
2.44k stars 494 forks source link

[BUG]Use of undefined constant GLOB_BRACE #118

Closed jostyee closed 4 years ago

jostyee commented 4 years ago

Bug 描述 ttrss的event log里面出现很多:

1. plugins/cache_starred_images/init.php(77): glob(cache/starred-images/*.{png,mp4,status}, GLOB_BRACE)
2. classes/pluginhost.php(129): hook_house_keeping()
3. classes/rssutils.php(1513): run_hooks(24, hook_house_keeping, )
4. update.php(253): housekeeping_common(1) | 

你谷歌/百度了吗? 按照官方论坛 https://community.tt-rss.org/t/php-7-3-use-of-undefined-constant-glob-brace/2230/3 的讨论,应该是项目Docker base image选用了alpine不带glibc导致

部署方法

部署环境

复现步骤 复现该 bug 的详细步骤

  1. 打开 Preferences
  2. 点击 'System'
  3. 查看Event log

其他 可以考虑把base image换到 https://github.com/Docker-Hub-frolvlad/docker-alpine-glibc 添加glibc集成。

HenryQW commented 4 years ago

这个 base image 集成 glibc 的做法可能会导致 arm 架构无法正常 build,有空我要试一下。

HenryQW commented 4 years ago

@jostyee 请测试 wangqiru/ttrss:dev

jostyee commented 4 years ago

@HenryQW 我没有ARM架构(RPi等)设备测试,只能在x86上检查。。

jostyee commented 4 years ago

ttrss:dev on Ubuntu 18.04

image

jostyee commented 4 years ago

现在还多了个 Legacy connect requested to pgsql ,切到主线版本也有,貌似pgo没用上?

HenryQW commented 4 years ago

那就是上游的问题啦

HenryQW commented 4 years ago

现在还多了个 Legacy connect requested to pgsql ,切到主线版本也有,貌似pgo没用上?

上游貌似解决了这个问题,麻烦测试一下最新版 dev

jostyee commented 4 years ago
image

还是一样

HenryQW commented 4 years ago

hmmm...为什么我这里什么警告日志都没有?

jostyee commented 4 years ago

因为我加了个官方插件?

- ENABLE_PLUGINS=auth_internal,cache_starred_images,fever

cognition9144 commented 4 years ago

cache_starred_images 確實有這個問題。

dimon222 commented 3 years ago

This is not resolved, its still being thrown on current latest docker tag.

HenryQW commented 3 years ago

@dimon222 I do not see relevant logs from my TTRSS instance, on the latest tag. Can you post your env and plugins enabled so we can find out what happened?

dimon222 commented 3 years ago

Configuration - running from docker-compose.yml that in root of this repository.

I guess its always this culprit? image

New 3 log stacktraces appear every time update-daemon.php runs any feed fetching. Error screenshot: image