YunoHost-Apps / rocketchat_ynh

Rocket.Chat package for YunoHost
https://rocket.chat/
GNU General Public License v3.0
16 stars 22 forks source link

Login apres installation #158

Closed stilobique closed 1 year ago

stilobique commented 1 year ago

Describe the bug

Après une installation, j'ai voulut me connecter avec l'admin user (password renseigné pendant l'installation)

Context

Steps to reproduce

// Pas testé de le désinstallé/reinstallé.

Logs

Le log du service

-- Journal begins at Sat 2022-07-23 23:49:20 CEST, ends at Fri 2022-10-07 16:48:44 CEST. --
oct. 07 16:02:58 rocketchat[1876036]: {"level":40,"time":"2022-10-07T14:02:58.201Z","pid":1876036,"hostname":"stilobique.com","name":"VoIPService","msg":"VoIP service already stopped"}
oct. 07 16:02:59 rocketchat[1876036]: [DatabaseWatcher] Using change streams
oct. 07 16:03:00 rocketchat[1876036]: ufs: temp directory created at "/tmp/ufs"
oct. 07 16:03:01 rocketchat[1876036]: Loaded the Apps Framework and loaded a total of 0 Apps!
oct. 07 16:03:02 rocketchat[1876036]: +-----------------------------------------------------------------+
oct. 07 16:03:02 rocketchat[1876036]: |                          SERVER RUNNING                         |
oct. 07 16:03:02 rocketchat[1876036]: +-----------------------------------------------------------------+
oct. 07 16:03:02 rocketchat[1876036]: |                                                                 |
oct. 07 16:03:02 rocketchat[1876036]: |  Rocket.Chat Version: 5.1.4                                     |
oct. 07 16:03:02 rocketchat[1876036]: |       NodeJS Version: 14.20.1 - x64                             |
oct. 07 16:03:02 rocketchat[1876036]: |      MongoDB Version: 5.0.13                                    |
oct. 07 16:03:02 rocketchat[1876036]: |       MongoDB Engine: wiredTiger                                |
oct. 07 16:03:02 rocketchat[1876036]: |             Platform: linux                                     |
oct. 07 16:03:02 rocketchat[1876036]: |         Process Port: 3001                                      |
oct. 07 16:03:02 rocketchat[1876036]: |             Site URL: https://rocket.stilobique.com/rocketchat  |
oct. 07 16:03:02 rocketchat[1876036]: |     ReplicaSet OpLog: Enabled                                   |
oct. 07 16:03:02 rocketchat[1876036]: |          Commit Hash: 4173a2109f                                |
oct. 07 16:03:02 rocketchat[1876036]: |        Commit Branch: HEAD                                      |
oct. 07 16:03:02 rocketchat[1876036]: |                                                                 |
oct. 07 16:03:02 rocketchat[1876036]: +-----------------------------------------------------------------+
oct. 07 16:03:02 rocketchat[1876036]: Inserting admin user:
oct. 07 16:03:02 rocketchat[1876036]: Name: **
oct. 07 16:03:02 rocketchat[1876036]: Email: **@**.**
oct. 07 16:03:02 rocketchat[1876036]: Username: **
oct. 07 16:03:55 rocketchat[1876036]: {"level":50,"time":"2022-10-07T14:03:55.144Z","pid":1876036,"hostname":"stilobique.com","name":"System","msg":"Exception while invoking method login 'User not found [403]'"}

Il me donne simplement un user not found Je doit activer manuellement le LDAP mais de ce que je vois l'admin user est générer d'emblé. Est-ce qu'il me faut un autre acces ? Je me log via l'url de base. J'ai tenté de lancer un reset password, mais pas de mail reçu sur la boite mail de l'utilisation "admin".

ericgaspar commented 1 year ago

Can you check your password/username? It can be found at /etc/systemd/system/rocketchat.service L.18-19

stilobique commented 1 year ago

Hello @ericgaspar Of course, my password are generated with enpass, and some special character are present, a can update this line and restart the service.

Actually, it's something like @WCsZ8Ui6b=J9%sjrX and the username are the user setup with the installation.

EDIT: Hum, write a new password with only MAJ, min and number like vH3wf9hjJ8AuqWPjs6, restart with sudo yunohost service restart roketchat and always this login error.


oct. 07 17:48:44 rocketchat[1896255]: {"level":50,"time":"2022-10-07T15:48:44.900Z","pid":1896255,"hostname":"stilobique.com","name":"System","msg":"Exception while invoking method login 'User not found [403]'"}```
stilobique commented 1 year ago

Hello, I have uninstall/reinstall the application with a password more simple, and it's work. I don't know if I close this issue.