YunoHost-Apps / mobilizon_ynh

A federated organization and mobilization platform for YunoHost
https://joinmobilizon.org/
GNU Affero General Public License v3.0
20 stars 9 forks source link

Upgrade to version 3.1.3 #154

Closed yalh76 closed 1 year ago

yalh76 commented 1 year ago

Problem

Solution

PR Status

Automatic tests

Automatic tests can be triggered on https://ci-apps-dev.yunohost.org/ after creating the PR, by commenting "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!". (N.B. : for this to work you need to be a member of the Yunohost-Apps organization)

yalh76 commented 1 year ago

!testme

yunohost-bot commented 1 year ago

:rocket: Test Badge

rodinux commented 1 year ago

Ok, I have 2 suggestions. I have done a lot of tests also on a local Yunohost.

  1. For the stable branch version 2.0.2, please, it works with my suggestion with the PR https://github.com/YunoHost-Apps/mobilizon_ynh/pull/153 to have mail and sign up available !!
  2. For this update, the Swoosh smtp Adapter works, so all good, but we still have the bug with LDAP, the admin user can not connect back after this upgrade, only visitors can do it...

I can try now found logs, I have try on a local server with virtualbox install mobilizon, update with my fix https://github.com/YunoHost-Apps/mobilizon_ynh/pull/153, all was working. Then upgrade with the testing branch 3.0.1.

For example, after upgrading I couldn't sign in with my LDAP admin user, I have these logs if it helps ??

/var/log/syslog

Dec 16 00:00:00 yunohost mobilizon[25976]: 00:00:00.573 [info] {"args":{},"attempt":1,"duration":390067,"event":"job:stop","id":1,"max_attempts":20,"meta":{},"queue":"background","queue_time":48376,"source":"oban","state":"success","tags":[],"worker":"Mobilizon.Service.Workers.BuildSiteMap"}
Dec 16 00:00:08 yunohost systemd[1]: Starting Rotate log files...
Dec 16 00:00:08 yunohost systemd[1]: Starting Daily man-db regeneration...
Dec 16 00:00:09 yunohost systemd[1]: Reloading LSB: Metronome XMPP Server.
Dec 16 00:00:09 yunohost metronome[26689]: Reloading Metronome XMPP Server: metronome.
Dec 16 00:00:09 yunohost systemd[1]: Reloaded LSB: Metronome XMPP Server.
Dec 16 00:00:09 yunohost systemd[1]: rspamd.service: Sent signal SIGUSR1 to main process 911 (rspamd) on client request.
Dec 16 00:00:09 yunohost systemd[1]: rspamd.service: Sending signal SIGUSR1 to process 1405 (rspamd) on client request.
Dec 16 00:00:09 yunohost systemd[1]: rspamd.service: Sending signal SIGUSR1 to process 1406 (rspamd) on client request.
Dec 16 00:00:09 yunohost systemd[1]: rspamd.service: Sending signal SIGUSR1 to process 1407 (rspamd) on client request.
Dec 16 00:00:09 yunohost systemd[1]: rspamd.service: Sending signal SIGUSR1 to process 1408 (rspamd) on client request.
Dec 16 00:00:09 yunohost systemd[1]: logrotate.service: Succeeded.
Dec 16 00:00:09 yunohost systemd[1]: Finished Rotate log files.
Dec 16 00:00:09 yunohost mobilizon[25976]: 00:00:09.752 request_id=FzEZttNoGfOJmlEAAAcx [info] POST /api
Dec 16 00:00:10 yunohost mobilizon[25976]: 00:00:10.072 request_id=FzEZttNoGfOJmlEAAAcx graphql_operation_name=#NULL [info] Sent 200 in 319ms
Dec 16 00:00:10 yunohost systemd[1]: man-db.service: Succeeded.
Dec 16 00:00:10 yunohost systemd[1]: Finished Daily man-db regeneration.
Dec 16 00:00:15 yunohost mobilizon[25976]: 00:00:15.990 request_id=FzEZuEc56u5rCxQAAAex [info] POST /api
Dec 16 00:00:16 yunohost mobilizon[25976]: 00:00:16.020 request_id=FzEZuEc56u5rCxQAAAex graphql_operation_name=CategoryStatistics [info] Sent 200 in 29ms
Dec 16 00:00:16 yunohost mobilizon[25976]: 00:00:16.047 request_id=FzEZuEqR5HkK3h4AAAfx [info] POST /api
Dec 16 00:00:16 yunohost mobilizon[25976]: 00:00:16.117 request_id=FzEZuEqR5HkK3h4AAAfx graphql_operation_name=SearchEvents [info] Sent 200 in 70ms
Dec 16 00:00:16 yunohost mobilizon[25976]: 00:00:16.140 request_id=FzEZuFAnrMyKR4AAAAhB [info] POST /api
Dec 16 00:00:16 yunohost mobilizon[25976]: 00:00:16.204 request_id=FzEZuFAnrMyKR4AAAAhB graphql_operation_name=FetchEvents [info] Sent 200 in 63ms
Dec 16 00:05:01 yunohost CRON[26815]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Dec 16 00:09:01 yunohost CRON[26834]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Dec 16 00:09:08 yunohost systemd[1]: Starting Clean php session files...
Dec 16 00:09:09 yunohost systemd[1]: phpsessionclean.service: Succeeded.
Dec 16 00:09:09 yunohost systemd[1]: Finished Clean php session files.
Dec 16 00:12:49 yunohost slapd[786]: slap_global_control: unrecognized control: 1.3.6.1.4.1.4203.666.5.16
Dec 16 00:12:49 yunohost slapd[786]: slap_global_control: unrecognized control: 1.3.6.1.4.1.4203.666.5.16
Dec 16 00:12:49 yunohost slapd[786]: slap_global_control: unrecognized control: 1.3.6.1.4.1.4203.666.5.16
Dec 16 00:12:49 yunohost slapd[786]: slap_global_control: unrecognized control: 1.3.6.1.4.1.4203.666.5.16
Dec 16 00:13:58 yunohost slapd[786]: slap_global_control: unrecognized control: 1.3.6.1.4.1.4203.666.5.16
Dec 16 00:13:58 yunohost slapd[786]: slap_global_control: unrecognized control: 1.3.6.1.4.1.4203.666.5.16
Dec 16 00:14:13 yunohost nslcd[1003]: [a1821b] <passwd="*"> request denied by validnames option
Dec 16 00:15:01 yunohost CRON[26990]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Dec 16 00:17:01 yunohost CRON[27007]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Dec 16 00:17:05 yunohost nslcd[1003]: [e67713] <passwd="*"> request denied by validnames option
Dec 16 00:17:36 yunohost nslcd[1003]: [5c55b5] <passwd="*"> request denied by validnames option
Dec 16 00:17:42 yunohost postfix/qmgr[2706]: 002147FED2: from=<mobilizon@mobilizon.yunohost.packaging>, size=13396, nrcpt=1 (queue active)
Dec 16 00:17:42 yunohost postfix/smtp[27029]: 002147FED2: host smtp-in.sfr.fr[93.17.128.165] refused to talk to me: 554 5.7.1 Service unavailable; Client host [37.167.254.28] blocked using pbl.spamhaus.sfr; https://www.spamhaus.org/query/ip/37.167.254.28
Dec 16 00:17:42 yunohost postfix/smtp[27029]: 002147FED2: to=<rodolphe.robles@sfr.fr>, relay=smtp-in.sfr.fr[93.17.128.123]:25, delay=2363, delays=2362/0.1/0.33/0, dsn=4.7.1, status=deferred (host smtp-in.sfr.fr[93.17.128.123] refused to talk to me: 554 5.7.1 Service unavailable; Client host [37.167.254.28] blocked using pbl.spamhaus.sfr; https://www.spamhaus.org/query/ip/37.167.254.28)
Dec 16 00:17:58 yunohost nslcd[1003]: [a62aca] <passwd="*"> request denied by validnames option
Dec 16 00:21:25 yunohost nslcd[1003]: [fce74e] <passwd="*"> request denied by validnames option
Dec 16 00:21:48 yunohost nslcd[1003]: [3dd3e8] <passwd="*"> request denied by validnames option
Dec 16 00:22:19 yunohost nslcd[1003]: [c91298] <passwd="*"> request denied by validnames option
Dec 16 00:25:01 yunohost CRON[27105]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)

/var/log/nginx/mobilizon.yunohost.packaging-error.log

Dec 16 00:17:58 yunohost nslcd[1003]: [a62aca] <passwd="*"> request denied by validnames option

journalctl -u mobilizon -f

Dec 16 00:17:58 yunohost nslcd[1003]: [a62aca] <passwd="*"> request denied by validnames option
Dec 16 00:21:25 yunohost nslcd[1003]: [fce74e] <passwd="*"> request denied by validnames option
Dec 16 00:21:48 yunohost nslcd[1003]: [3dd3e8] <passwd="*"> request denied by validnames option
Dec 16 00:22:19 yunohost nslcd[1003]: [c91298] <passwd="*"> request denied by validnames option
Dec 16 00:25:01 yunohost CRON[27105]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
root@yunohost:/var/log# journalctl -u mobilizon -f
-- Journal begins at Thu 2022-11-10 22:49:33 CET. --
déc. 16 00:00:00 yunohost.packaging mobilizon[25976]: 00:00:00.212 [info] {"args":{},"attempt":1,"duration":27053,"event":"job:stop","id":2,"max_attempts":20,"meta":{},"queue":"background","queue_time":48376,"source":"oban","state":"success","tags":[],"worker":"Mobilizon.Service.Workers.CleanOrphanMediaWorker"}
déc. 16 00:00:00 yunohost.packaging mobilizon[25976]: 00:00:00.573 [info] {"args":{},"attempt":1,"duration":390067,"event":"job:stop","id":1,"max_attempts":20,"meta":{},"queue":"background","queue_time":48376,"source":"oban","state":"success","tags":[],"worker":"Mobilizon.Service.Workers.BuildSiteMap"}
déc. 16 00:00:09 yunohost.packaging mobilizon[25976]: 00:00:09.752 request_id=FzEZttNoGfOJmlEAAAcx [info] POST /api
déc. 16 00:00:10 yunohost.packaging mobilizon[25976]: 00:00:10.072 request_id=FzEZttNoGfOJmlEAAAcx graphql_operation_name=#NULL [info] Sent 200 in 319ms
déc. 16 00:00:15 yunohost.packaging mobilizon[25976]: 00:00:15.990 request_id=FzEZuEc56u5rCxQAAAex [info] POST /api
déc. 16 00:00:16 yunohost.packaging mobilizon[25976]: 00:00:16.020 request_id=FzEZuEc56u5rCxQAAAex graphql_operation_name=CategoryStatistics [info] Sent 200 in 29ms
déc. 16 00:00:16 yunohost.packaging mobilizon[25976]: 00:00:16.047 request_id=FzEZuEqR5HkK3h4AAAfx [info] POST /api
déc. 16 00:00:16 yunohost.packaging mobilizon[25976]: 00:00:16.117 request_id=FzEZuEqR5HkK3h4AAAfx graphql_operation_name=SearchEvents [info] Sent 200 in 70ms
déc. 16 00:00:16 yunohost.packaging mobilizon[25976]: 00:00:16.140 request_id=FzEZuFAnrMyKR4AAAAhB [info] POST /api
déc. 16 00:00:16 yunohost.packaging mobilizon[25976]: 00:00:16.204 request_id=FzEZuFAnrMyKR4AAAAhB graphql_operation_name=FetchEvents [info] Sent 200 in 63ms
centralscrutinizer21 commented 1 year ago

@rodinux I have come to the same conclusion. The only way to have a working mobilizon instance at the moment, is to install stable version and then upgrade to your PR. I have tried every combination. It is a pity because the new version is much more eye catching and it features the search engine. I hope someone get interested in the matter, I am ready to test and debug

Gredin67 commented 1 year ago
janv. 14 11:21:18 mobilizon[29961]: 11:21:18.483 request_id=FzoltseMk8-XP50AABwh [info] POST /api
janv. 14 11:21:18 mobilizon[29961]: 11:21:18.716 request_id=FzoltseMk8-XP50AABwh graphql_operation_name=FetchEvent [info] Sent 200 in 232ms
janv. 14 11:21:19 mobilizon[29961]: 11:21:19.633 request_id=FzoltwwbpqTx_KsAAB5h [info] POST /api
janv. 14 11:21:19 mobilizon[29961]: 11:21:19.658 request_id=FzoltwwbpqTx_KsAAB5h graphql_operation_name=CommentThreadsWithReplies [info] Sent 200 in 24ms
janv. 14 11:21:47 mobilizon[29961]: 11:21:47.147 request_id=FzolvXQF8j8cpRIAAB6h [info] POST /api
janv. 14 11:21:47 mobilizon[29961]: 11:21:47.151 request_id=FzolvXQF8j8cpRIAAB6h graphql_operation_name=Login [info] Sent 200 in 4ms
janv. 14 11:22:49 mobilizon[29961]: 11:22:49.866 request_id=FzolzA5f-dpDS1IAAB8B [info] POST /api
janv. 14 11:22:49 mobilizon[29961]: 11:22:49.871 request_id=FzolzA5f-dpDS1IAAB8B graphql_operation_name=Login [info] Sent 200 in 4ms
yalh76 commented 1 year ago

smtp stuff has been merged in master. so putting this PR in draft, waiting for mobilizon 3.0.4 with a working ldap

rodinux commented 1 year ago

smtp stuff has been merged in master. so putting this PR in draft, waiting for mobilizon 3.0.4 with a working ldap

It's will be soon here to test it ! https://packages.joinmobilizon.org/3.0.4/

Gredin67 commented 1 year ago

!testme

yunohost-bot commented 1 year ago

:sunflower: Test Badge

Gredin67 commented 1 year ago

@yalh76 @rodinux did anybody else experience the issue after this upgrade ?

rodinux commented 1 year ago

The issue is still here: https://framagit.org/framasoft/mobilizon/-/issues/1130 If you need only an instance for yunohost users pehaps it could work... it's tricky... And for Yunohost if we want use without the LDAP, then we have no mails send by a user mobilizon_notifs created since the installation...

rodinux commented 1 year ago

Hello @yalh76 @Gredin67 , I can explain after testing, we need change the parameters for Webmail:

  #adapter: Bamboo.SMTPAdapter,
  #server: "127.0.0.1",
  adapter: Swoosh.Adapters.SMTP,
  relay: "127.0.0.1",

The adapter.Bamboo..SMTPAdapter don't works with this release

mai 08 14:18:19 rodinux.fr mobilizon[207802]: ** (exit) an exception was raised:
mai 08 14:18:19 rodinux.fr mobilizon[207802]:     ** (UndefinedFunctionError) function Bamboo.SMTPAdapter.validate_config/1 is undefined (module Bamboo.SMTPAdapter is not available)

I have mails working with these changes but users from outside can not sign in... If I try resent a new password (or I forgot my password), the link to reset the password is not good...

Capture d’écran du 2023-05-08 14-58-54

rodinux commented 1 year ago

Here some logs...

mai 08 14:48:16 rodinux.fr mobilizon[213259]: 14:48:16.584 request_id=F10r5JyEBuKir5oAAAhC [info] POST /api
mai 08 14:48:16 rodinux.fr mobilizon[213259]: 14:48:16.587 request_id=F10r5JyEBuKir5oAAAhC graphql_operation_name=Login [info] Sent 200 in 2ms
mai 08 14:48:32 rodinux.fr mobilizon[213259]: 14:48:32.316 request_id=F10r6EY27UX8SMkAAAii [info] GET /login
mai 08 14:48:32 rodinux.fr mobilizon[213259]: 14:48:32.320 request_id=F10r6EY27UX8SMkAAAii [info] Sent 200 in 3ms
mai 08 14:48:32 rodinux.fr mobilizon[213259]: 14:48:32.995 request_id=F10r6G6wq_lKVioAAAjC [info] POST /api
mai 08 14:48:33 rodinux.fr mobilizon[213259]: 14:48:33.005 request_id=F10r6G6wq_lKVioAAAjC graphql_operation_name=FullConfig [info] Sent 200 in 9ms
mai 08 14:49:07 rodinux.fr mobilizon[213259]: 14:49:07.858 request_id=F10r8IytMjyWitkAAAgB [info] POST /api
mai 08 14:49:07 rodinux.fr mobilizon[213259]: 14:49:07.861 request_id=F10r8IytMjyWitkAAAgB graphql_operation_name=Login [info] Sent 200 in 3ms
mai 08 14:49:40 rodinux.fr mobilizon[213259]: 14:49:40.007 request_id=F10r-AjpHDjJgL4AAAhh [info] POST /api
mai 08 14:49:40 rodinux.fr mobilizon[213259]: 14:49:40.088 request_id=F10r-AjpHDjJgL4AAAhh [warning] Description: 'Authenticity is not established by certificate path validation'
mai 08 14:49:40 rodinux.fr mobilizon[213259]:      Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
mai 08 14:49:40 rodinux.fr mobilizon[213259]: 14:49:40.365 request_id=F10r-AjpHDjJgL4AAAhh graphql_operation_name=SendResetPassword [info] Sent 200 in 357ms
mai 08 14:49:52 rodinux.fr mobilizon[213259]: 14:49:52.237 request_id=F10r-uHg2QOtbvEAAAkB [info] GET /password-reset/8bTEujyKTReTYUk0e4gKOVuw2TrsoRhZVIOmCHW7
mai 08 14:49:52 rodinux.fr mobilizon[213259]: 14:49:52.240 request_id=F10r-uHg2QOtbvEAAAkB [info] Sent 200 in 2ms
mai 08 14:49:53 rodinux.fr mobilizon[213259]: 14:49:53.009 request_id=F10r-w_cBGyXkVkAAAkh [info] POST /api
mai 08 14:49:53 rodinux.fr mobilizon[213259]: 14:49:53.022 request_id=F10r-w_cBGyXkVkAAAkh graphql_operation_name=FullConfig [info] Sent 200 in 12ms
mai 08 14:50:30 rodinux.fr mobilizon[213259]: 14:50:30.838 request_id=F10sA96r9fu1RUgAAAmh [info] POST /api
mai 08 14:50:31 rodinux.fr mobilizon[213259]: 14:50:31.222 request_id=F10sA96r9fu1RUgAAAmh [warning] Failed to send Sentry event. Cannot send Sentry event because of invalid DSN
mai 08 14:50:31 rodinux.fr mobilizon[213259]: 14:50:31.223 request_id=F10sA96r9fu1RUgAAAmh [info] Sent 500 in 384ms
mai 08 14:50:31 rodinux.fr mobilizon[213259]: 14:50:31.224 [error] #PID<0.4758.0> running Mobilizon.Web.Endpoint (connection #PID<0.4757.0>, stream id 1) terminated
mai 08 14:50:31 rodinux.fr mobilizon[213259]: Server: mobilizon.rodinux.fr:80 (http)
mai 08 14:50:31 rodinux.fr mobilizon[213259]: Request: POST /api
mai 08 14:50:31 rodinux.fr mobilizon[213259]: ** (exit) an exception was raised:
mai 08 14:50:31 rodinux.fr mobilizon[213259]:     ** (MatchError) no match of right hand side value: {:error, {:ok, {:eldap_search_result, [], [], :asn1_NOVALUE}}}
mai 08 14:50:31 rodinux.fr mobilizon[213259]:         (mobilizon 3.0.4) lib/graphql/resolvers/user.ex:328: Mobilizon.GraphQL.Resolvers.User.reset_password/3
mai 08 14:50:31 rodinux.fr mobilizon[213259]:         (absinthe 1.7.0) lib/absinthe/resolution.ex:209: Absinthe.Resolution.call/2
mai 08 14:50:31 rodinux.fr mobilizon[213259]:         (absinthe 1.7.0) lib/absinthe/phase/document/execution/resolution.ex:230: Absinthe.Phase.Document.Execution.Resolution.reduce_resolution/1
mai 08 14:50:31 rodinux.fr mobilizon[213259]:         (absinthe 1.7.0) lib/absinthe/phase/document/execution/resolution.ex:185: Absinthe.Phase.Document.Execution.Resolution.do_resolve_field/3
mai 08 14:50:31 rodinux.fr mobilizon[213259]:         (absinthe 1.7.0) lib/absinthe/phase/document/execution/resolution.ex:170: Absinthe.Phase.Document.Execution.Resolution.do_resolve_fields/6
mai 08 14:50:31 rodinux.fr mobilizon[213259]:         (absinthe 1.7.0) lib/absinthe/phase/document/execution/resolution.ex:88: Absinthe.Phase.Document.Execution.Resolution.walk_result/5
mai 08 14:50:31 rodinux.fr mobilizon[213259]:         (absinthe 1.7.0) lib/absinthe/phase/document/execution/resolution.ex:67: Absinthe.Phase.Document.Execution.Resolution.perform_resolution/3
mai 08 14:50:31 rodinux.fr mobilizon[213259]:         (absinthe 1.7.0) lib/absinthe/phase/document/execution/resolution.ex:24: Absinthe.Phase.Document.Execution.Resolution.resolve_current/3
mai 08 14:50:31 rodinux.fr mobilizon[213259]: 14:50:31.896 request_id=F10sBB29voYkLd8AAAoh [info] POST /api
mai 08 14:50:31 rodinux.fr mobilizon[213259]: 14:50:31.899 request_id=F10sBB29voYkLd8AAAoh graphql_operation_name=ResetPassword [info] Sent 200 in 2ms

It is very strange, because I can create a new account with a mail from outside, and get a first connexion, but If I want to sign in again after a sign out, it did not works...

rodinux commented 1 year ago

A test with a new external user, I received the confirmation and could connect with the link sended, but after sign out can't sign in again !

mai 08 15:10:04 rodinux.fr mobilizon[213259]:      Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
mai 08 15:10:06 rodinux.fr mobilizon[213259]: 15:10:06.183 request_id=F10tFQT1iHOxkK4AAAqC graphql_operation_name=CreateUser [info] Sent 200 in 2176ms
mai 08 15:10:29 rodinux.fr mobilizon[213259]: 15:10:29.569 request_id=F10tGvic6q216NEAAAri [info] POST /api
mai 08 15:10:29 rodinux.fr mobilizon[213259]: 15:10:29.630 request_id=F10tGvic6q216NEAAAri graphql_operation_name=#NULL [info] Sent 200 in 60ms
mai 08 15:11:03 rodinux.fr mobilizon[213259]: 15:11:03.946 request_id=F10tIvmifYb_yDMAAAti [info] GET /validate/XabXrGbFdWJeaewz3FLmvQ_WLIsnsi5cKu9HWFcB
mai 08 15:11:03 rodinux.fr mobilizon[213259]: 15:11:03.949 request_id=F10tIvmifYb_yDMAAAti [info] Sent 200 in 2ms
mai 08 15:11:04 rodinux.fr mobilizon[213259]: 15:11:04.592 request_id=F10tIyAYrro9AU0AAAuC [info] POST /api
mai 08 15:11:04 rodinux.fr mobilizon[213259]: 15:11:04.602 request_id=F10tIyAYrro9AU0AAAuC graphql_operation_name=FullConfig [info] Sent 200 in 10ms
mai 08 15:11:04 rodinux.fr mobilizon[213259]: 15:11:04.927 request_id=F10tIzQYcYvpxeMAAAwC [info] POST /api
mai 08 15:11:04 rodinux.fr mobilizon[213259]: 15:11:04.934 request_id=F10tIzQYcYvpxeMAAAwC [info] User rodolphe@linux07.fr has been confirmed
mai 08 15:11:04 rodinux.fr mobilizon[213259]: 15:11:04.939 request_id=F10tIzQYcYvpxeMAAAwC graphql_operation_name=ValidateUser [info] Sent 200 in 11ms
mai 08 15:11:05 rodinux.fr mobilizon[213259]: 15:11:05.186 request_id=F10tI0OKwevszL8AAAyC [info] POST /api
mai 08 15:11:05 rodinux.fr mobilizon[213259]: 15:11:05.192 request_id=F10tI0OKwevszL8AAAyC graphql_operation_name=Identities user_id=5 actor_name=@linux07 [info] Sent 200 in 5ms
mai 08 15:11:05 rodinux.fr mobilizon[213259]: 15:11:05.372 request_id=F10tI06i9szYsQMAAA3B [info] POST /api
mai 08 15:11:05 rodinux.fr mobilizon[213259]: 15:11:05.375 request_id=F10tI06i9szYsQMAAA3B graphql_operation_name=CategoryStatistics user_id=5 actor_name=@linux07 [info] Sent 200 in 2ms
mai 08 15:11:05 rodinux.fr mobilizon[213259]: 15:11:05.404 request_id=F10tI1CEqV49iJ0AAA0C [info] POST /api
mai 08 15:11:05 rodinux.fr mobilizon[213259]: 15:11:05.415 request_id=F10tI1CEqV49iJ0AAA0C graphql_operation_name=SearchEvents user_id=5 actor_name=@linux07 [info] Sent 200 in 10ms
mai 08 15:11:05 rodinux.fr mobilizon[213259]: 15:11:05.507 request_id=F10tI1au4B-9CHkAAA0i [info] POST /api
mai 08 15:11:05 rodinux.fr mobilizon[213259]: 15:11:05.532 request_id=F10tI1au4B-9CHkAAA0i graphql_operation_name=HomeUserQueries user_id=5 actor_name=@linux07 [info] Sent 200 in 24ms
mai 08 15:11:05 rodinux.fr mobilizon[213259]: 15:11:05.545 request_id=F10tI1jxTBCEqjAAAA1C [info] POST /api
mai 08 15:11:05 rodinux.fr mobilizon[213259]: 15:11:05.559 request_id=F10tI1jxTBCEqjAAAA1C graphql_operation_name=FetchEvents user_id=5 actor_name=@linux07 [info] Sent 200 in 13ms
mai 08 15:11:13 rodinux.fr mobilizon[213259]: 15:11:13.760 request_id=F10tJUKMi6Z9pQ8AAA3h [info] POST /api
mai 08 15:11:13 rodinux.fr mobilizon[213259]: 15:11:13.764 request_id=F10tJUKMi6Z9pQ8AAA3h graphql_operation_name=LoggedUserQuery user_id=5 actor_name=@linux07 [info] Sent 200 in 4ms
mai 08 15:11:23 rodinux.fr mobilizon[213259]: 15:11:23.318 request_id=F10tJ3xOmD8JHTQAAA4B [info] POST /api
mai 08 15:11:23 rodinux.fr mobilizon[213259]: 15:11:23.329 request_id=F10tJ3xOmD8JHTQAAA4B graphql_operation_name=Logout user_id=5 actor_name=@linux07 [info] Sent 200 in 10ms
mai 08 15:11:30 rodinux.fr mobilizon[213259]: 15:11:30.209 request_id=F10tKRcLH_yWkNsAAA5h [info] POST /api
mai 08 15:11:30 rodinux.fr mobilizon[213259]: 15:11:30.222 request_id=F10tKRcLH_yWkNsAAA5h graphql_operation_name=SearchEvents [info] Sent 200 in 12ms
mai 08 15:12:07 rodinux.fr mobilizon[213259]: 15:12:07.501 request_id=F10tMcXQZ4CplMEAAA7B [info] POST /api
mai 08 15:12:07 rodinux.fr mobilizon[213259]: 15:12:07.504 request_id=F10tMcXQZ4CplMEAAA7B graphql_operation_name=Login [info] Sent 200 in 2ms
rodinux commented 1 year ago

Par contre comme expliqué ici: https://framagit.org/framasoft/mobilizon/-/issues/1130#note_1947471

Si j'inverse l'ordre des authentifications, le LDAP est désactivé mais les utilisateurs externes peuvent se connecter:

config :mobilizon, Mobilizon.Service.Auth.LDAPAuthenticator, Mobilizon.Service.Auth.Authenticator

au lieu de

config :mobilizon, Mobilizon.Service.Auth.Authenticator, Mobilizon.Service.Auth.LDAPAuthenticator, 

cela m'oblige à créer ou modifier un utilisateur externe en admin

/var/www/mobilizon/live# sudo -u mobilizon ./bin/mobilizon_ctl users.modify "user@domaine.tld" --admin

Par contre l'user LDAP ne peux plus se connecter, Mobilizon lit sa bdd et non le LDAP...

rodinux commented 1 year ago

Par contre certains profils sont inversés !! très bizarre

ericgaspar commented 1 year ago

!testme

yunohost-bot commented 1 year ago

May the CI gods be with you! Test Badge

ericgaspar commented 1 year ago

!testme

yunohost-bot commented 1 year ago

Alrighty! Test Badge

yalh76 commented 1 year ago

!testme

yunohost-bot commented 1 year ago

:rocket: Test Badge