Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreshRSS 1.15.0 #84

Closed
genma opened this issue Nov 5, 2019 · 23 comments
Closed

FreshRSS 1.15.0 #84

genma opened this issue Nov 5, 2019 · 23 comments

Comments

@genma
Copy link

genma commented Nov 5, 2019

FreshRSS 1.15.0 was released on Oct 31, 2019 https://github.com/FreshRSS/FreshRSS/releases/tag/1.15.0 Is it possible to have an update for this package ?

@Alkarex
Copy link

Alkarex commented Nov 5, 2019

FYI, we will have a quick fix 1.15.1 out shortly (today or tomorrow) FreshRSS/FreshRSS#2633

@plopoyop
Copy link
Member

plopoyop commented Nov 5, 2019

@Alkarex : I did not have the time to open an issue but I couldn't install the 1.15.0.
Even if I am calling the cli-install whith db mysql, I get an permission error for an sqlite file...

Sorry, I am not at home to give you the exact error message. Maybe this evening.

@Alkarex
Copy link

Alkarex commented Nov 5, 2019

I can reproduce the following, if you do not have write access to ./data/users/*

$ sudo touch /var/lib/docker/volumes/freshrss-data/_data/users/db.sqlite
$ sudo chmod a-rw /var/lib/docker/volumes/freshrss-data/_data/users/db.sqlite
$ sudo docker exec -it --user www-data freshrss_dev ./cli/do-install.php --default_user freshrss --db-type mysql --db-host mariadb --db-user freshrss --db-password freshrss --db-base freshrss
FreshRSS install…
PHP Fatal error:  Uncaught Minz_PDOConnectionException: Access to database is denied for `` (`sqlite:/var/www/FreshRSS/data/users//db.sqlite`) in /var/www/FreshRSS/lib/Minz/ModelPdo.php:91
Stack trace:
#0 /var/www/FreshRSS/app/Models/Factory.php(69): Minz_ModelPdo->__construct(false)
#1 /var/www/FreshRSS/lib/lib_install.php(92): FreshRSS_Factory::createDatabaseDAO()
#2 /var/www/FreshRSS/cli/do-install.php(85): checkDb()
#3 {main}
  thrown in /var/www/FreshRSS/lib/Minz/ModelPdo.php on line 91

Indeed, there should be no need to touch /data/users/db.sqlite, and I will try to fix that, but that directory should still be writeable :-)

@Alkarex
Copy link

Alkarex commented Nov 5, 2019

Hum, there may be a bigger problem. Looking into it

@plopoyop
Copy link
Member

plopoyop commented Nov 5, 2019

The script is executed as root, there should not be permissions problem (but I tried to add the correct ownership).
the debug trace :

/var/www/freshrss/cli/do-install.php --default_user clement --auth_type http_auth --environment production --base_url https://yunohost.local/rss --title FreshRSS --api_enabled --db-type mysql --db-host localhost:3306 --db-user freshrss --db-password XXX --db-base freshrss
FreshRSS install…
PHP Fatal error:  Uncaught Minz_PDOConnectionException: Access to database is denied for `` (`sqlite:/var/www/freshrss/data/users//db.sqlite`) in /var/www/freshrss/lib/Minz/ModelPdo.php:91
Stack trace:
#0 /var/www/freshrss/app/Models/Factory.php(69): Minz_ModelPdo->__construct(false)
#1 /var/www/freshrss/lib/lib_install.php(92): FreshRSS_Factory::createDatabaseDAO()
#2 /var/www/freshrss/cli/do-install.php(85): checkDb()
#3 {main}
thrown in /var/www/freshrss/lib/Minz/ModelPdo.php on line 91

So, even if we use mysql, we need sqlite ?
Should I add sqlite php extention as a dependency ?

Edit :
@Alkarex : with php-sqlite3 extension, it is working fine.

@Alkarex
Copy link

Alkarex commented Nov 5, 2019

@plopoyop Adding SQLite would be a good idea as we have features, which depend on it in any case (e.g. export/import SQLite files).
But this made me find the root problem, which I am trying to fix :-)

@Alkarex
Copy link

Alkarex commented Nov 5, 2019

@plopoyop In your tests, the MySQL database is not created, right?

@plopoyop
Copy link
Member

plopoyop commented Nov 5, 2019

The mysql database is created just before, so, it already exists

@plopoyop
Copy link
Member

plopoyop commented Nov 5, 2019

It is working for me now, I'll wait for the 1.15.1 before updating the package.

Alkarex added a commit to Alkarex/FreshRSS that referenced this issue Nov 5, 2019
Several bugs prevented the auto-creation of the database in Web and CLI
installs.
Fix
YunoHost-Apps/freshrss_ynh#84 (comment)
@Alkarex
Copy link

Alkarex commented Nov 5, 2019

@plopoyop We had a regression preventing the auto-creation of databases (no problem if the database was already created in advance). This should be fixed in FreshRSS/FreshRSS#2635
Would you be able to test? We can merge in /dev if it is easier

@plopoyop
Copy link
Member

plopoyop commented Nov 5, 2019

temp edit : my test is invalid wrong sources used....

When I don't add the sqlite extension, I have the same error message.
When I add the sqlite extension, the problem is solved.

@Alkarex
Copy link

Alkarex commented Nov 5, 2019

Thanks for the test @plopoyop
Ok, I was about to write that it was strange to have the same error message 😄

@Alkarex
Copy link

Alkarex commented Nov 5, 2019

In any case it is good to add the SQLite extension, but I am still interested in a test without it and with the same setup than generated the original error you observed

@plopoyop
Copy link
Member

plopoyop commented Nov 5, 2019

Sorry, as my edit said, my test was invalid.
After testing again, no error message with or without sqlite extension.
I'll still add it as dependency

@Alkarex
Copy link

Alkarex commented Nov 5, 2019

Excellent, thanks @plopoyop 👍

Alkarex added a commit to FreshRSS/FreshRSS that referenced this issue Nov 6, 2019
* Fix database autocreate at install

Several bugs prevented the auto-creation of the database in Web and CLI
installs.
Fix
YunoHost-Apps/freshrss_ynh#84 (comment)

* initDb

#2635 (comment)
@Alkarex
Copy link

Alkarex commented Nov 6, 2019

@plopoyop Voilà :-) https://github.com/FreshRSS/FreshRSS/releases/tag/1.15.1

@plopoyop
Copy link
Member

plopoyop commented Nov 6, 2019

@genma The package is now up to date in testing branch.
Have fun.

@Alkarex thanks for your work. as always :)

@plopoyop plopoyop closed this as completed Nov 6, 2019
@Alkarex
Copy link

Alkarex commented Nov 6, 2019

P.S. : Pour la liste des paquets Debian, la liste la plus maintenue à jour est https://github.com/FreshRSS/FreshRSS/blob/dev/Docker/Dockerfile

@Alkarex
Copy link

Alkarex commented Nov 6, 2019

P.P.S : What is missing in order to have an official YunoHost package?

@plopoyop
Copy link
Member

plopoyop commented Nov 6, 2019

I update the depedencies list.
I don't really know the rules. I think there must be a community vote.
and the package must follow those rules : https://yunohost.org/#/packaging_apps_guidelines_fr
I think I would demand more investment from myself

@Alkarex
Copy link

Alkarex commented Nov 6, 2019

That looks reasonable, and please let us know @plopoyop if anything can be done on FreshRSS side to ease the packaging process

@Alkarex
Copy link

Alkarex commented Nov 8, 2019

1.15.2 coming soon (one more regression, hopefully the last...) https://github.com/FreshRSS/FreshRSS/milestones/1.15.2

@Alkarex
Copy link

Alkarex commented Nov 12, 2019

@plopoyop FreshRSS 1.15.2 released, with hopefully the last regressions closed https://github.com/FreshRSS/FreshRSS/releases/tag/1.15.2

javerous pushed a commit to javerous/FreshRSS that referenced this issue Jan 20, 2020
* Fix database autocreate at install

Several bugs prevented the auto-creation of the database in Web and CLI
installs.
Fix
YunoHost-Apps/freshrss_ynh#84 (comment)

* initDb

FreshRSS#2635 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants