YunoHost-Apps / gitea_ynh

Gitea is a fork of Gogs. A git platform, Mirror of https://framagit.org/YunoHost-Apps/gitea_ynh
https://gitea.io
MIT License
22 stars 17 forks source link

Fresh install: don't work #101

Open clecle226 opened 3 months ago

clecle226 commented 3 months ago

Bonjour,

L'application ne s'installe pas bien sur une installation neuve. gitea est bien installé mais inutilisable car nous ne pouvons pas nous authentifier sur l'application. Quand on clique sur "Login": Aucun message d'erreur, juste un retour à la page d'accueil sans être authentifié. Aucun log de message d'erreur, nulle part.

Je ne suis pas certains, mais après avoir debug l'installation, je pense avoir trouvé une coquille dans les helper de Yunohost qui provoque un problème lors de l'installation.

197170 DEBUG + ynh_replace_string --match_string=__GROUP_TEAM_MAP__ '--replace_string=""' --target_file=./login_source.sql
197170 DEBUG + local legacy_args=mrf
197171 DEBUG + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=')
197171 DEBUG + local -A args_array
197171 DEBUG + local match_string
197171 DEBUG + local replace_string
197171 DEBUG + local target_file
197171 DEBUG + ynh_handle_getopts_args --match_string=__GROUP_TEAM_MAP__ '--replace_string=""' --target_file=./login_source.sql
197171 DEBUG + set +o xtrace
197224 DEBUG + set +o xtrace
197224 DEBUG + sed --in-place 's__GROUP_TEAM_MAP__""g' ./login_source.sql

Le sed qui est généré par le helper n'a aucun sens technique. Je pense que cela est dû à la valeur qui est vide.

Le problème a dû commencer avec ce commit: https://github.com/YunoHost-Apps/gitea_ynh/commit/5f7b5352378a5d554cf24ce1d2c7f717b4fe6a1a

Je reste disponible si vous avez besoin d'autres informations.


Hello,

The application does not install well on a new installation. gitea is installed but unusable because we cannot authenticate on the application. When you click on "Login": No error message, just a return to the home page without being authenticated. No error message log anywhere.

I'm not sure, but after debugging the installation, I think I found a typo in the Yunohost helper which causes a problem during the installation.

197170 DEBUG + ynh_replace_string --match_string=__GROUP_TEAM_MAP__ '--replace_string=""' --target_file=./login_source.sql
197170 DEBUG + local legacy_args=mrf
197171 DEBUG + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=')
197171 DEBUG + local -A args_array
197171 DEBUG + local match_string
197171 DEBUG + local replace_string
197171 DEBUG + local target_file
197171 DEBUG + ynh_handle_getopts_args --match_string=__GROUP_TEAM_MAP__ '--replace_string=""' --target_file=./login_source.sql
197171 DEBUG + set +o xtrace
197224 DEBUG + set +o xtrace
197224 DEBUG + sed --in-place 's__GROUP_TEAM_MAP__""g' ./login_source.sql

The sed that is generated by the helper makes no technical sense. I think this is due to the value being empty.

The problem must have started with this commit: https://github.com/YunoHost-Apps/gitea_ynh/commit/5f7b5352378a5d554cf24ce1d2c7f717b4fe6a1a

I remain available if you need further information.

Josue-T commented 3 months ago

Hello,

Tested today with the last version and I can't reproduce your issue. Note that currently the SSO is not available so you need to authenticate manually.

isAAAc commented 1 month ago

works here with a manuall login too

clecle226 commented 2 weeks ago

At the moment, I don't know what to say. I have uninstalled and reinstalled, but I can't do anything. The application to too weird behavior. It seems to connect fine but it still offers the "connect" button and I can't do anything. What surprises me is that no one has the problem. This probably means that there is a configuration on my server specifically that is causing this :/ The only "uncommon" thing is the use of an LXC container rather than a complete VM in a hypervisor.

Josue-T commented 2 weeks ago

Hello,

Note on my side now gitea also run in unprivileged LXC container and it run greatly.

Would be interesting to know see all log you have in /var/log/gitea/*