matt
1
Are you using stock Docker compose setup?
Yes
If not, either reproduce this issue on the official demo or switch to Docker and see if the issue is resolved.
Describe the problem you’re having:
In a brand new setup, setting TTRSS_SINGLE_USER_MODE=true in .env and running docker-compose up --build results in the following errors:
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | db:5432 - accepting connections
app_1 | cloning tt-rss source from https://git.tt-rss.org/fox/tt-rss.git to /var/www/html/tt-rss...
app_1 | Cloning into '/var/www/html/tt-rss'...
app_1 | cloning plugins.local/nginx_xaccel...
app_1 | Cloning into '/var/www/html/tt-rss/plugins.local/nginx_xaccel'...
app_1 | PHP Fatal error: Uncaught PDOException: SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "ttrss_users" does not exist
app_1 | LINE 1: SELECT * FROM "ttrss_users" WHERE "id" = $1 LIMIT 1
app_1 | ^ in /var/www/html/tt-rss/vendor/j4mie/idiorm/idiorm.php:505
app_1 | Stack trace:
app_1 | #0 /var/www/html/tt-rss/vendor/j4mie/idiorm/idiorm.php(505): PDOStatement->execute()
app_1 | #1 /var/www/html/tt-rss/vendor/j4mie/idiorm/idiorm.php(1909): ORM::_execute()
app_1 | #2 /var/www/html/tt-rss/vendor/j4mie/idiorm/idiorm.php(687): ORM->_run()
app_1 | #3 /var/www/html/tt-rss/classes/userhelper.php(169): ORM->find_one()
app_1 | #4 /var/www/html/tt-rss/classes/config.php(488): UserHelper::get_login_by_id()
app_1 | #5 /var/www/html/tt-rss/update.php(13): Config::sanity_check()
app_1 | #6 {main}
app_1 | thrown in /var/www/html/tt-rss/vendor/j4mie/idiorm/idiorm.php on line 505
…
Include steps to reproduce the problem:
$ git clone https://git.tt-rss.org/fox/ttrss-docker-compose ttrss-docker
$ cd ttrss-docker
$ cp .env-dist .env
$ echo "TTRSS_SINGLE_USER_MODE=true" >> .env
$ docker-compose up --build -d
…
tt-rss version (including git commit id):
ttrss-docker: ab100cd2db3cf32c9ad2b83c17b5e568a4ae8e71
tt-rss: b2f888e3868c3703819e8acc1519e44d57a53259
…
Platform (i.e. Linux distro, PHP, PostgreSQL, etc) versions:
- Fedora 34
- Debian 10 (WSL).
…
Please provide any additional information below:
Running docker-compose up --build once before setting SINGLE_USER_MODE is a workaround.
…
fox
2
thanks for reporting, i’ll try to take a look early next week.
fox
3