YunoHost-Apps / invoiceninja_ynh

InvoiceNinja package for YunoHost
https://www.invoiceninja.org/
Other
6 stars 2 forks source link

Error after fresh install YNH #20

Closed anivard closed 1 year ago

anivard commented 3 years ago

Hello,

I done a fresh install today of YNH and try InvoiceNinja. After the assistante, the URL : Error: app is already configured, backup then delete the .env file to re-run the setup

The file /var/www/invoiceninja/.env is ok : APP_ENV=production APP_DEBUG=false APP_LOCALE=fr

MariaDB access is ok but the user table is empty. ` MariaDB [invoiceninja]> select * from users; Empty set (0.002 sec)

MariaDB [invoiceninja]> select * from user_accounts; Empty set (0.003 sec) `

php -v PHP 7.3.19-1~deb10u1 (cli) (built: Jul 5 2020 06:46:45) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.19, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.3.19-1~deb10u1, Copyright (c) 1999-2018, by Zend Technologies

I tried to reset the .env and re-run setup, nothing change. Which logs file I should look at nginx, php, bootstrap?

Thanks,

rndmh3ro commented 3 years ago

This seems to be a bug with invoiceninja itself: https://github.com/invoiceninja/dockerfiles/issues/238

anivard commented 3 years ago

Ok, so how I use image: invoiceninja/invoiceninja:alpine-4.5.18 ? There are no docker on YNH ?

So, I should the testing tree ? yunohost app install https://github.com/YunoHost-Apps/invoiceninja_ynh/tree/testing --debug

rndmh3ro commented 3 years ago

Ok, so how I use image: invoiceninja/invoiceninja:alpine-4.5.18 ? There are no docker on YNH ?

You can't - it has nothing to do with docker since it happens regardless where you run IN.

So, I should the testing tree ?

Testing has the same version as master. I'll need to rollback master.

rndmh3ro commented 3 years ago

I updated the master branch to use the old version. Can you please try again?

anivard commented 3 years ago

Same issue

verzog commented 3 years ago

Same issue also - TIA

anivard commented 3 years ago

Hello,

I done a "bad" way with :

  1. move old directory (YNH package)
  2. download zip
  3. install composer (apt)
  4. composer install

And after setup... => the user was created (not done with YNH package) Test: Ok

A reswap directory (prod YNH package) Test: ok

rndmh3ro commented 3 years ago

And after setup... => the user was created (not done with YNH package)

What user do you mean?

anivard commented 3 years ago

When I deployed the IN package for YNH, the user table is empty. The user selected was not created in the IN database.

MariaDB access is ok but the user table is empty.

MariaDB [invoiceninja]> select * from users;
Empty set (0.002 sec)

MariaDB [invoiceninja]> select * from user_accounts;
Empty set (0.003 sec)
rndmh3ro commented 3 years ago

Ah yes. That's because the setup never ran, so the tables don't get created.

doubletap-dave commented 3 years ago

Has this been fixed or are we still required to use @anivard (s) janky work around?

rndmh3ro commented 3 years ago

Does akaunting work on yunohost? Or this this just an ad?

alexAubin commented 3 years ago

Sounds like just an ad

jnrmy commented 3 years ago

Having the same issue. Is there a fix now ?

rndmh3ro commented 3 years ago

No fix, yet. However I welcome any help.

rndmh3ro commented 3 years ago

So this is definetly a regression with invoiceninja itself.

Installing v4.5.18 works. The latest version v4.5.35 doesn't.

As I have not much time to further debug this, I updated the code to use the old version.

rndmh3ro commented 1 year ago

We just merged a new version where this should not happen anymore.

If it still does, please open a new issue for that, thanks.