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

can't delete an account #87

Closed
gwlegion opened this issue May 30, 2022 · 14 comments
Closed

can't delete an account #87

gwlegion opened this issue May 30, 2022 · 14 comments
Labels
nginx yunohost YunoHost related issue

Comments

@gwlegion
Copy link

hi ... i can't delete account.
when i select an account and push delete, i got the confirmation popup, i select OK, but nothing appens

@Bubka
Copy link
Owner

Bubka commented May 31, 2022

Can you please give some info about your environment: OS, web server, db type, php version, 2fauth version, etc...

In addition can you copy/paste here the content of the latest log file in [2fauth install directory]/storage/logs/

@gwlegion
Copy link
Author

hi .
i use 2fauth on a rpi B3 with yuno host ...
2fauth version : v3.1.0
web server is nginx

PHP 7.3.33-1+020211119.91+debian101.gbp618351 (cli) (built: Nov 19 2021 06:39:58) ( NTS )
Zend Engine v3.3.33, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.33-1+020211119.91+debian101.gbp618351, Copyright (c) 1999-2018, by Zend Technologies

db is probably mariaDb .
will try to get log file

@Bubka
Copy link
Owner

Bubka commented May 31, 2022

PHP 7.3 support has been dropped with the v3 release. You should upgrade to PHP 7.4.

@gwlegion
Copy link
Author

for info : the log when i try to delete something :
[2022-05-31 10:37:31] local.INFO: New totp generated
[2022-05-31 10:38:01] local.INFO: New totp generated
[2022-05-31 10:38:31] local.INFO: New totp generated
[2022-05-31 10:39:01] local.INFO: New totp generated
[2022-05-31 10:39:31] local.INFO: New totp generated
[2022-05-31 10:51:16] local.INFO: Setting 'activeGroup' is now 3
[2022-05-31 10:51:25] local.INFO: Setting 'activeGroup' is now 0
[2022-05-31 10:51:32] local.INFO: Twofaccounts #9,#8 assigned to groups 'a supp'
[2022-05-31 10:51:36] local.INFO: Setting 'activeGroup' is now 3

(as it's loged, i've tried delete an account, moved it, and try to delete it again ... so you can see there is no entry in log when i try to delete an account)

both bug probably comes from the php version problem ... if you can reproduce it, i'll know what to do

@Bubka
Copy link
Owner

Bubka commented May 31, 2022

so you can see there is no entry in log when i try to delete an account
Unfortunately nothing is logged when an account is deleted (I should change this), so this is not relevant.

Regarding the PHP version, I'm surprised that you were able to install the composer dependencies because composer waits for php >= 7.4.

How did you install 2FAuth? By following the install documentation? https://docs.2fauth.app/getting-started/installation/self-hosted-server/#set-up-2fauth

Set up php 8.0 for your CLI execution using a terminal:

sudo update-alternatives --config php

Then run composer install again from the 2FAuth directory.

@gwlegion
Copy link
Author

gwlegion commented May 31, 2022

i installed it using the yuno host tool (so i installed the yuno host version) ...
so the problem probably comes from the yuno host configuration about this application.
i got a command line to install it with the php version forced ... will try it, but i must uninstall it before ...

As i use PHP 8.0 for this app , the condition PHP >= 7.4 is right ...

@Bubka
Copy link
Owner

Bubka commented May 31, 2022

Ok. I just discover the Yunohost package, I'll try to set up my own Yunohost env to see if 2FAuth works out of the box and how the package is configured.

@gwlegion
Copy link
Author

gwlegion commented May 31, 2022

i've tried with the command line to force the php version ... still the same problems ... when i scan a qr code, codes are good, but when i validate the new account codes gone bad ... i can't delete account ... something is bad

and i've checked, the php version is set to 7.4

Same thing with the basic qr code ... good code => validate => bad code

@Bubka
Copy link
Owner

Bubka commented May 31, 2022

and i've checked, the php version is set to 7.4

Be careful, if you run php -v in a terminal you will see the php version ran by the php-cli, whereas nginx/apache can run another version. The only effective way to known the version used by the server is to add echo phpinfo() on line 2 of the file /public/index.php and reopen 2FAuth in your browser.

@gwlegion
Copy link
Author

yes, i've learned that after my first answer XD
now, i look in /etc/php/[VER]/pool.d to search where is the 2fauth configuration file ...
there is also a reference in the 2fauth nginx config file.
that why, now i'm sure : i was using 8.0 and i'm now using 7.4 ...
so, the problem don't come from php version.
can be a problem with the ARM arch ?

https://forum.yunohost.org/t/php-version-7-4/19976/10

@gwlegion
Copy link
Author

gwlegion commented Jun 1, 2022

ok ... tryed the testing version in yuno (3.1.1) and the code generation is working ...

still the deleting account problem.

@Bubka
Copy link
Owner

Bubka commented Jun 1, 2022

still the deleting account problem.

Yep, I'm working on it. This one is really weird, seems to be an issue with NGINX.

@gwlegion
Copy link
Author

gwlegion commented Jun 1, 2022

you had reproduced this issue too ?

i'm here if you need testing ...

@Bubka Bubka added yunohost YunoHost related issue nginx labels Jun 1, 2022
@Bubka
Copy link
Owner

Bubka commented Jun 1, 2022

Not a 2FAuth bug, please continue here: YunoHost-Apps/2FAuth_ynh#12

@Bubka Bubka closed this as completed Jun 1, 2022
@Bubka Bubka closed this as not planned Won't fix, can't repro, duplicate, stale Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nginx yunohost YunoHost related issue
Projects
None yet
Development

No branches or pull requests

2 participants