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

Admin creation during installation #5

Open
wants to merge 17 commits into
base: testing
Choose a base branch
from
Open

Conversation

lapineige
Copy link
Member

@lapineige lapineige commented Jan 26, 2024

#4

@lapineige lapineige added the enhancement New feature or request label Jan 26, 2024
@lapineige
Copy link
Member Author

!testme

@yunohost-bot
Copy link
Contributor

🌻
Test Badge

@lapineige
Copy link
Member Author

CI test will fail as in #2. This needs manual testing.

@lapineige lapineige added good first issue Good for newcomers help wanted Extra attention is needed labels Jan 26, 2024
@lapineige
Copy link
Member Author

Oh wait @mayel now in my current instance (not from this PR) the TZ issue (from #2) appeared… same as in CI.

17:10:18.530 request_id=F7AXm2EV75CFxWkAAABh [warning] You should pass a current_user and/or current_account (with settings assoc preloaded) in `opts` depending on what scope of Settings you want for OTP app: :bonfire
    (bonfire_common 0.1.0) lib/config_settings/settings.ex:117: Bonfire.Common.Settings.fetch_all_scopes/2
    (bonfire_common 0.1.0) lib/config_settings/settings.ex:85: Bonfire.Common.Settings.get_merged_ext/2
    (bonfire_common 0.1.0) lib/config_settings/settings.ex:28: Bonfire.Common.Settings.get/3
    (bonfire 0.1.0-beta.3) lib/web/endpoint.ex:32: Bonfire.Web.Endpoint.include_assets/2
    (bonfire_ui_common 0.1.0) lib/layout/root.html.heex:72: anonymous fn/2 in Bonfire.UI.Common.LayoutView.root/1

17:10:18.531 request_id=F7AXm2EV75CFxWkAAABh [warning] No current_user found, will fallback to looking for a current_user_id: %{
  csrf_socket_token: nil,
  current_app: :bonfire,
  current_extension: nil,
  current_params: %{},
  current_url: "/#",
  current_user: nil,
  current_user_id: nil,
  current_view: Bonfire.Web.HomeLive,
  live_action: nil,
  locale: "en",
  socket_connected?: false,
  ui_compact: nil
}
    (bonfire_common 0.1.0) lib/utils.ex:274: Bonfire.Common.Utils.current_user/2
    (bonfire_common 0.1.0) lib/utils.ex:249: Bonfire.Common.Utils.current_user/2
    (bonfire 0.1.0-beta.3) lib/web/endpoint.ex:69: Bonfire.Web.Endpoint.include_assets/2
    (bonfire_ui_common 0.1.0) lib/layout/root.html.heex:84: anonymous fn/2 in Bonfire.UI.Common.LayoutView.root/1
    (phoenix_live_view 0.20.1) lib/phoenix_live_view/engine.ex:150: Phoenix.HTML.Safe.Phoenix.LiveView.Rendered.to_iodata/1

17:10:18.531 request_id=F7AXm2EV75CFxWkAAABh [info] Sent 200 in 3642ms
17:10:18.534 [notice] Application bonfire exited: Bonfire.Application.start(:normal, []) returned an error: shutdown: failed to start child: Tz.UpdatePeriodically
    ** (EXIT) an exception was raised:
        ** (RuntimeError) files ["antarctica", "asia", "australasia", "backward", "etcetera", "europe", "northamerica", "southamerica", "iso3166.tab", "zone1970.tab"] are missing in /var/www/bonfire/_build/prod/rel/bonfire/lib/tz-0.26.5/priv/tzdata2024a
            (tz 0.26.5) lib/tz/compiler.ex:196: Tz.Compiler.validate_tzdata_dir_has_required_files/1
            (tz 0.26.5) lib/tz/compiler.ex:15: Tz.Compiler.compile/0
            (tz 0.26.5) lib/tz/updater.ex:23: Tz.Updater.maybe_recompile/0
            (tz 0.26.5) lib/tz/update_periodically.ex:31: Tz.UpdatePeriodically.init/1
            (stdlib 4.0.1) gen_server.erl:848: :gen_server.init_it/2
            (stdlib 4.0.1) gen_server.erl:811: :gen_server.init_it/6
            (stdlib 4.0.1) proc_lib.erl:240: :proc_lib.init_p_do_apply/3
-e: 1: kill: No such process

[os_mon] memory supervisor port (memsup): Erlang has closed
{"Kernel pid terminated",application_controller,"{application_start_failure,bonfire,{{shutdown,{failed_to_start_child,'Elixir.Tz.UpdatePeriodically',{#{'__exception__' => true,'__struct__' => 'Elixir.RuntimeError',message => <<\"files [\\"antarctica\\", \\"asia\\", \\"australasia\\", \\"backward\\", \\"etcetera\\", \\"europe\\", \\"northamerica\\", \\"southamerica\\", \\"iso3166.tab\\", \\"zone1970.tab\\"] are missing in /var/www/bonfire/_build/prod/rel/bonfire/lib/tz-0.26.5/priv/tzdata2024a\">>},[{'Elixir.Tz.Compiler',validate_tzdata_dir_has_required_files,1,[{file,\"lib/tz/compiler.ex\"},{line,196},{error_info,#{module => 'Elixir.Exception'}}]},{'Elixir.Tz.Compiler',compile,0,[{file,\"lib/tz/compiler.ex\"},{line,15}]},{'Elixir.Tz.Updater',maybe_recompile,0,[{file,\"lib/tz/updater.ex\"},{line,23}]},{'Elixir.Tz.UpdatePeriodically',init,1,[{file,\"lib/tz/update_periodically.ex\"},{line,31}]},{gen_server,init_it,2,[{file,\"gen_server.erl\"},{line,848}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,811}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,240}]}]}}},{'Elixir.Bonfire.Application',start,[normal,[]]}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,bonfire,{{shutdown,{failed_to_start_child,'Elixir.Tz.UpdatePeriodically',{#{'__exception__' => true,'__struct__' => 'Elixir.RuntimeError',message => <<"files [\"antarctica\", \"asia\", \"australasia\", \"backward\", \"etcetera\", \"europe\", \"northamerica\", \"southamerica\", \"iso3166.tab\", \"zone1970.tab\"] are missing in /var/www/bonfire/_build/prod/rel/bonfire/lib/tz-0.26.5/priv/tzdata2024a">>},[{'Elixir.Tz.Compiler',validate_tzdata_dir_has_required_files,1,[{file,"lib/tz/compiler.ex"},{line,196},{error_info,#{module => 'Elixir.Exception'}}]},{'Elixir.Tz.Compiler',compile,0,[{file,"lib/tz/compiler.ex"},{line,15}]},{'Elixir.Tz.Updater',maybe_recompile,0,[{file,"lib/tz/updater.ex"},{line,23}]},{'Elixir.Tz.UpdatePeriodically',init,1,[{file,"lib/tz/update_periodically.ex"},{line,31}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,848}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,811}]},{proc_lib,init_p_do_apply,3,[{

Crash dump is being written to: erl_crash.dump...error: Recipe `cmd` was terminated on line 733 by signal 11

@lapineige
Copy link
Member Author

If I start the daemon manually:

17:13:49.169 [info] Access Bonfire.Web.Endpoint at http://domail.tld:443
17:13:49.170 [info] Tz is fetching the latest IANA time zone data version at https://data.iana.org/time-zones/tzdb/version
17:13:49.635 [info] Latest version of the IANA time zone data is 2024a
17:13:49.636 [info] Tz is recompiling the time zone periods...
17:13:49.642 [notice] Application bonfire exited: Bonfire.Application.start(:normal, []) returned an error: shutdown: failed to start child: Tz.UpdatePeriodically
    ** (EXIT) an exception was raised:
        ** (RuntimeError) files ["antarctica", "asia", "australasia", "backward", "etcetera", "europe", "northamerica", "southamerica", "iso3166.tab", "zone1970.tab"] are missing in /var/www/bonfire/_build/prod/rel/bonfire/lib/tz-0.26.5/priv/tzdata2024a
            (tz 0.26.5) lib/tz/compiler.ex:196: Tz.Compiler.validate_tzdata_dir_has_required_files/1
            (tz 0.26.5) lib/tz/compiler.ex:15: Tz.Compiler.compile/0
            (tz 0.26.5) lib/tz/updater.ex:23: Tz.Updater.maybe_recompile/0
            (tz 0.26.5) lib/tz/update_periodically.ex:31: Tz.UpdatePeriodically.init/1
            (stdlib 4.0.1) gen_server.erl:848: :gen_server.init_it/2
            (stdlib 4.0.1) gen_server.erl:811: :gen_server.init_it/6
            (stdlib 4.0.1) proc_lib.erl:240: :proc_lib.init_p_do_apply/3

@mayel
Copy link

mayel commented Feb 2, 2024

Ok I'll try debugging this further later on.

@lapineige
Copy link
Member Author

I also tried with a normal start (not daemon) command and it's the same result. I guess it's expected, but just it case I'm sharing it.

@lapineige
Copy link
Member Author

!testme

@yunohost-bot
Copy link
Contributor

😜
Test Badge

@yunohost-bot
Copy link
Contributor

🪱
Test Badge

@lapineige
Copy link
Member Author

!testme

@yunohost-bot
Copy link
Contributor

😜
Test Badge

@yunohost-bot
Copy link
Contributor

🪱
Test Badge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants