#998421 tt-rss: Unable to create categories and labels after installation

Package:
tt-rss
Source:
tt-rss
Submitter:
Guillermo López
Date:
2021-11-03 21:57:04 UTC
Severity:
important
#998421#5
Date:
2021-11-03 21:45:42 UTC
From:
To:
Dear Maintainer,

Right after Tiny Tiny RSS installation, clicking “Create category” in the
“Preferences” > “Feeds” menu does nothing. Manually creating a category in the
database solved the issue. Some weeks ago, this bug was reported in the
FreedomBox forum [1]. Other FreedomBox users were able to reproduce the issue.

According to my tests, this issue is solved in the latest Tiny Tiny RSS version
(repo [2], commit 3c30e416063c5ac77da27206d7e24d208962e6a3, Mon Aug 23 10:13:36
2021 +0300).

A description of the problem follows.

Right after installation, clicking “Create category” in the “Preferences” >
“Feeds” menu does nothing: no browser console errors, no requests to the
server, I couldn’t even find a line in the Javascript to set a breakpoint for
debugging. The same happens with labels.

Manually creating a category in the database solved the issue:

# As root
runuser -l postgres -c 'psql'

# Connect to ttrrs database
\c ttrss

# Determine your id:
SELECT id, login FROM ttrss_users WHERE login = '<YOUR_LOGIN_NAME>';

# List existing categories
SELECT * FROM ttrss_feed_categories;

# Create a category:
INSERT INTO ttrss_feed_categories(owner_uid, parent_cat, title)
VALUES (<YOUR_ID>, null, '<NEW CATEGORY NAME>');

From that point on, the categories are properly displayed in the UI and the
“Create category” button works.

Thank you,

[1] https://discuss.freedombox.org/t/early-tiny-tiny-rss-
impressions/1765#unable-to-create-categories-and-labels-after-installation-2
[2] https://git.tt-rss.org/fox/ttrss-docker-compose.git