[bug] failed to start after upgrade #616

Closed
opened 2023-08-06 09:03:01 +00:00 by creme · 1 comment

Your setup

OTP

Extra details

Debian 12

Version

Akkoma stable 2023.08

PostgreSQL version

13

What were you trying to do?

hi, after I upgrade to the new version pleroma does not start anymore.

upgrade process:

$ su pleroma -s $SHELL -lc "./bin/pleroma_ctl update --branch stable"                                                           
Downloading the artifact from https://akkoma-updates.s3-website.fr-par.scw.cloud/stable/akkoma-amd64.zip to /tmp/pleroma.zip                                                                                                                                                       
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current                                                    
                                 Dload  Upload   Total   Spent    Left  Speed                                                                                                                                                                                                      
100 20.4M  100 20.4M    0     0  15.2M      0  0:00:01  0:00:01 --:--:-- 15.2M                                                                                                                                                                                                     
Unpacking /tmp/pleroma.zip to /tmp                                                                                                       
Backing up erlang cookie                                                                                                                                                                                                                                                           Cookie: UNIR5CQM6EJ3KJYUJDV6VLY7IPVZU4IQ6VYRWNO33DFNWWPX62UQ====                                                                                                                                                                                                                   Copying files over to /opt/pleroma                                                                                                                                                                                                                                                 Removing files from the previous release                                                                                                                                                                                                                                           Removing temporary files                                                                                                                                                                                                                                                           
Restoring erlang cookie                                                                                                                                                                                                                                                            Done! Please refer to the changelog/release notes for changes and update instructions                                                                                                                                                                                              You probably also want to update your frontend!                                                                                                                                                                                                                                    

$ systemctl stop pleroma.service                                                                                                          

$ chmod o= /etc/pleroma/config.exs

$ chown -R pleroma:pleroma /etc/pleroma/

$ su pleroma -s $SHELL -lc "./bin/pleroma_ctl migrate"                                                                                    
                                                                                                                                                                                                                                                                                   
08:51:39.561 [info] Migrations already up                                                                                                                                                                                                                                          

$ systemctl restart pleroma.service

What did you expect to happen?

No response

What actually happened?

No response

Logs

```
Aug 05 21:48:08 pleroma.envs.net systemd[1]: Started pleroma.service - Pleroma social network.                                                                                                                                                                                     
Aug 05 21:48:10 pleroma.envs.net pleroma[9878]: warning: function scrub_css/1 is unused                                                                                                                                                                                            
Aug 05 21:48:10 pleroma.envs.net pleroma[9878]:   /opt/pleroma/lib/pleroma-3.10.2-0-gba1ed37/priv/scrubbers/default.ex:130: Pleroma.HTML.Scrubber.Default (module)
Aug 05 21:48:10 pleroma.envs.net pleroma[9878]: 21:48:10.336 [error] Failed to start!
Aug 05 21:48:10 pleroma.envs.net pleroma[9878]: 21:48:10.336 [error] {:error, {:shutdown, {:failed_to_start_child, Pleroma.Config.TransferTask, {:EXIT, {%Protocol.UndefinedError{protocol: Enumerable, value: nil, description: ""}, [{Enumerable, :impl_for!, 1, [file: ~c"lib/en
um.ex", line: 1]}, {Enumerable, :reduce, 3, [file: ~c"lib/enum.ex", line: 166]}, {Enum, :each, 2, [file: ~c"lib/enum.ex", line: 4387]}, {Pleroma.Config.TransferTask, :configure, 1, [file: ~c"lib/pleroma/config/transfer_task.ex", line: 113]}, {Enum, :"-each/2-lists^foreach/1-
0-", 2, [file: ~c"lib/enum.ex", line: 984]}, {Pleroma.Config.TransferTask, :load_and_update_env, 2, [file: ~c"lib/pleroma/config/transfer_task.ex", line: 51]}, {Pleroma.Config.TransferTask, :start_link, 1, [file: ~c"lib/pleroma/config/transfer_task.ex", line: 34]}, {:supervi
sor, :do_start_child_i, 3, [file: ~c"supervisor.erl", line: 420]}]}}}}}    
Aug 05 21:48:10 pleroma.envs.net pleroma[9878]: 21:48:10.337 [notice] Application pleroma exited: Pleroma.Application.start(:normal, []) returned an error: shutdown: failed to start child: Pleroma.Config.TransferTask
Aug 05 21:48:10 pleroma.envs.net pleroma[9878]:     ** (EXIT) an exception was raised:
Aug 05 21:48:10 pleroma.envs.net pleroma[9878]:         ** (Protocol.UndefinedError) protocol Enumerable not implemented for nil of type Atom. This protocol is implemented for the following type(s): DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.S
QL.Stream, File.Stream, Floki.HTMLTree, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, Jason.OrderedObject, List, Map, MapSet, Phoenix.LiveView.LiveStream, Postgrex.Stream, Range, Stream, Timex.Interval
Aug 05 21:48:10 pleroma.envs.net pleroma[9878]:             (elixir 1.15.4) lib/enum.ex:1: Enumerable.impl_for!/1
Aug 05 21:48:10 pleroma.envs.net pleroma[9878]:             (elixir 1.15.4) lib/enum.ex:166: Enumerable.reduce/3
Aug 05 21:48:10 pleroma.envs.net pleroma[9878]:             (elixir 1.15.4) lib/enum.ex:4387: Enum.each/2
Aug 05 21:48:10 pleroma.envs.net pleroma[9878]:             (pleroma 3.10.2-0-gba1ed37) lib/pleroma/config/transfer_task.ex:113: Pleroma.Config.TransferTask.configure/1
Aug 05 21:48:10 pleroma.envs.net pleroma[9878]:             (elixir 1.15.4) lib/enum.ex:984: Enum."-each/2-lists^foreach/1-0-"/2
Aug 05 21:48:10 pleroma.envs.net pleroma[9878]:             (pleroma 3.10.2-0-gba1ed37) lib/pleroma/config/transfer_task.ex:51: Pleroma.Config.TransferTask.load_and_update_env/2
Aug 05 21:48:10 pleroma.envs.net pleroma[9878]:             (pleroma 3.10.2-0-gba1ed37) lib/pleroma/config/transfer_task.ex:34: Pleroma.Config.TransferTask.start_link/1
Aug 05 21:48:10 pleroma.envs.net pleroma[9878]:             (stdlib 4.3.1.2) supervisor.erl:420: :supervisor.do_start_child_i/3
Aug 05 21:48:11 pleroma.envs.net pleroma[9878]: {"Kernel pid terminated",application_controller,"{application_start_failure,pleroma,{{shutdown,{failed_to_start_child,'Elixir.Pleroma.Config.TransferTask',{'EXIT',{#{'__exception__' => true,'__struct__' => 'Elixir.Protocol.Unde
finedError',description => <<>>,protocol => 'Elixir.Enumerable',value => nil},[{'Elixir.Enumerable','impl_for!',1,[{file,\"lib/enum.ex\"},{line,1}]},{'Elixir.Enumerable',reduce,3,[{file,\"lib/enum.ex\"},{line,166}]},{'Elixir.Enum',each,2,[{file,\"lib/enum.ex\"},{line,4387}]}
,{'Elixir.Pleroma.Config.TransferTask',configure,1,[{file,\"lib/pleroma/config/transfer_task.ex\"},{line,113}]},{'Elixir.Enum','-each/2-lists^foreach/1-0-',2,[{file,\"lib/enum.ex\"},{line,984}]},{'Elixir.Pleroma.Config.TransferTask',load_and_update_env,2,[{file,\"lib/pleroma
/config/transfer_task.ex\"},{line,51}]},{'Elixir.Pleroma.Config.TransferTask',start_link,1,[{file,\"lib/pleroma/config/transfer_task.ex\"},{line,34}]},{supervisor,do_start_child_i,3,[{file,\"supervisor.erl\"},{line,420}]}]}}}},{'Elixir.Pleroma.Application',start,[normal,[]]}
}}"}                                         
Aug 05 21:48:11 pleroma.envs.net pleroma[9878]: Kernel pid terminated (application_controller) ({application_start_failure,pleroma,{{shutdown,{failed_to_start_child,'Elixir.Pleroma.Config.TransferTask',{'EXIT',{#{'__exception__' => true,'__struct__' => 'Elixir.Protocol.Undef
inedError',description => <<>>,protocol => 'Elixir.Enumerable',value => nil},[{'Elixir.Enumerable','impl_for!',1,[{file,"lib/enum.ex"},{line,1}]},{'Elixir.Enumerable',reduce,3,[{file,"lib/enum.ex"},{line,166}]},{'Elixir.Enum',each,2,[{file,"lib/enum.ex"},{line,4387}]},{'Elix
ir.Pleroma.Config.TransferTask',configure,1,[{file,"lib/pleroma/config/transfer_task.ex"},{line,113}]},{'Elixir.Enum','-each/2-lists^foreach/1-0-',2,[{file,"lib/enum.ex"},{line,984}]},{'Elixir.Pleroma.Config.TransferTask',load_and_update_env,2,[{file,"lib/pleroma/config/tran
sfer_task.ex"},{line,51}]},{'Elixir.Pleroma.Config.TransferTask',start_link,1,[{file,"lib/pleroma/config/transfer_task.ex"},{line,34}]},{supervisor,do_start_child_i,3,[{file,"supervisor.erl"},{line,420}]}]}}}},{'Elixir.Pleroma.Application',start,
Aug 05 21:48:11 pleroma.envs.net pleroma[9878]: 
Aug 05 21:48:12 pleroma.envs.net pleroma[9878]: Crash dump is being written to: erl_crash.dump...done
```

erl_crash.dump: https://envs.sh/dOK.dump

Severity

I cannot use the software

Have you searched for this issue?

  • I have double-checked and have not found this issue mentioned anywhere.
### Your setup OTP ### Extra details Debian 12 ### Version Akkoma stable 2023.08 ### PostgreSQL version 13 ### What were you trying to do? hi, after I upgrade to the new version pleroma does not start anymore. upgrade process: ``` $ su pleroma -s $SHELL -lc "./bin/pleroma_ctl update --branch stable" Downloading the artifact from https://akkoma-updates.s3-website.fr-par.scw.cloud/stable/akkoma-amd64.zip to /tmp/pleroma.zip % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 20.4M 100 20.4M 0 0 15.2M 0 0:00:01 0:00:01 --:--:-- 15.2M Unpacking /tmp/pleroma.zip to /tmp Backing up erlang cookie Cookie: UNIR5CQM6EJ3KJYUJDV6VLY7IPVZU4IQ6VYRWNO33DFNWWPX62UQ==== Copying files over to /opt/pleroma Removing files from the previous release Removing temporary files Restoring erlang cookie Done! Please refer to the changelog/release notes for changes and update instructions You probably also want to update your frontend! $ systemctl stop pleroma.service $ chmod o= /etc/pleroma/config.exs $ chown -R pleroma:pleroma /etc/pleroma/ $ su pleroma -s $SHELL -lc "./bin/pleroma_ctl migrate" 08:51:39.561 [info] Migrations already up $ systemctl restart pleroma.service ``` ### What did you expect to happen? _No response_ ### What actually happened? _No response_ ### Logs ````shell ``` Aug 05 21:48:08 pleroma.envs.net systemd[1]: Started pleroma.service - Pleroma social network. Aug 05 21:48:10 pleroma.envs.net pleroma[9878]: warning: function scrub_css/1 is unused Aug 05 21:48:10 pleroma.envs.net pleroma[9878]: /opt/pleroma/lib/pleroma-3.10.2-0-gba1ed37/priv/scrubbers/default.ex:130: Pleroma.HTML.Scrubber.Default (module) Aug 05 21:48:10 pleroma.envs.net pleroma[9878]: 21:48:10.336 [error] Failed to start! Aug 05 21:48:10 pleroma.envs.net pleroma[9878]: 21:48:10.336 [error] {:error, {:shutdown, {:failed_to_start_child, Pleroma.Config.TransferTask, {:EXIT, {%Protocol.UndefinedError{protocol: Enumerable, value: nil, description: ""}, [{Enumerable, :impl_for!, 1, [file: ~c"lib/en um.ex", line: 1]}, {Enumerable, :reduce, 3, [file: ~c"lib/enum.ex", line: 166]}, {Enum, :each, 2, [file: ~c"lib/enum.ex", line: 4387]}, {Pleroma.Config.TransferTask, :configure, 1, [file: ~c"lib/pleroma/config/transfer_task.ex", line: 113]}, {Enum, :"-each/2-lists^foreach/1- 0-", 2, [file: ~c"lib/enum.ex", line: 984]}, {Pleroma.Config.TransferTask, :load_and_update_env, 2, [file: ~c"lib/pleroma/config/transfer_task.ex", line: 51]}, {Pleroma.Config.TransferTask, :start_link, 1, [file: ~c"lib/pleroma/config/transfer_task.ex", line: 34]}, {:supervi sor, :do_start_child_i, 3, [file: ~c"supervisor.erl", line: 420]}]}}}}} Aug 05 21:48:10 pleroma.envs.net pleroma[9878]: 21:48:10.337 [notice] Application pleroma exited: Pleroma.Application.start(:normal, []) returned an error: shutdown: failed to start child: Pleroma.Config.TransferTask Aug 05 21:48:10 pleroma.envs.net pleroma[9878]: ** (EXIT) an exception was raised: Aug 05 21:48:10 pleroma.envs.net pleroma[9878]: ** (Protocol.UndefinedError) protocol Enumerable not implemented for nil of type Atom. This protocol is implemented for the following type(s): DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.S QL.Stream, File.Stream, Floki.HTMLTree, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, Jason.OrderedObject, List, Map, MapSet, Phoenix.LiveView.LiveStream, Postgrex.Stream, Range, Stream, Timex.Interval Aug 05 21:48:10 pleroma.envs.net pleroma[9878]: (elixir 1.15.4) lib/enum.ex:1: Enumerable.impl_for!/1 Aug 05 21:48:10 pleroma.envs.net pleroma[9878]: (elixir 1.15.4) lib/enum.ex:166: Enumerable.reduce/3 Aug 05 21:48:10 pleroma.envs.net pleroma[9878]: (elixir 1.15.4) lib/enum.ex:4387: Enum.each/2 Aug 05 21:48:10 pleroma.envs.net pleroma[9878]: (pleroma 3.10.2-0-gba1ed37) lib/pleroma/config/transfer_task.ex:113: Pleroma.Config.TransferTask.configure/1 Aug 05 21:48:10 pleroma.envs.net pleroma[9878]: (elixir 1.15.4) lib/enum.ex:984: Enum."-each/2-lists^foreach/1-0-"/2 Aug 05 21:48:10 pleroma.envs.net pleroma[9878]: (pleroma 3.10.2-0-gba1ed37) lib/pleroma/config/transfer_task.ex:51: Pleroma.Config.TransferTask.load_and_update_env/2 Aug 05 21:48:10 pleroma.envs.net pleroma[9878]: (pleroma 3.10.2-0-gba1ed37) lib/pleroma/config/transfer_task.ex:34: Pleroma.Config.TransferTask.start_link/1 Aug 05 21:48:10 pleroma.envs.net pleroma[9878]: (stdlib 4.3.1.2) supervisor.erl:420: :supervisor.do_start_child_i/3 Aug 05 21:48:11 pleroma.envs.net pleroma[9878]: {"Kernel pid terminated",application_controller,"{application_start_failure,pleroma,{{shutdown,{failed_to_start_child,'Elixir.Pleroma.Config.TransferTask',{'EXIT',{#{'__exception__' => true,'__struct__' => 'Elixir.Protocol.Unde finedError',description => <<>>,protocol => 'Elixir.Enumerable',value => nil},[{'Elixir.Enumerable','impl_for!',1,[{file,\"lib/enum.ex\"},{line,1}]},{'Elixir.Enumerable',reduce,3,[{file,\"lib/enum.ex\"},{line,166}]},{'Elixir.Enum',each,2,[{file,\"lib/enum.ex\"},{line,4387}]} ,{'Elixir.Pleroma.Config.TransferTask',configure,1,[{file,\"lib/pleroma/config/transfer_task.ex\"},{line,113}]},{'Elixir.Enum','-each/2-lists^foreach/1-0-',2,[{file,\"lib/enum.ex\"},{line,984}]},{'Elixir.Pleroma.Config.TransferTask',load_and_update_env,2,[{file,\"lib/pleroma /config/transfer_task.ex\"},{line,51}]},{'Elixir.Pleroma.Config.TransferTask',start_link,1,[{file,\"lib/pleroma/config/transfer_task.ex\"},{line,34}]},{supervisor,do_start_child_i,3,[{file,\"supervisor.erl\"},{line,420}]}]}}}},{'Elixir.Pleroma.Application',start,[normal,[]]} }}"} Aug 05 21:48:11 pleroma.envs.net pleroma[9878]: Kernel pid terminated (application_controller) ({application_start_failure,pleroma,{{shutdown,{failed_to_start_child,'Elixir.Pleroma.Config.TransferTask',{'EXIT',{#{'__exception__' => true,'__struct__' => 'Elixir.Protocol.Undef inedError',description => <<>>,protocol => 'Elixir.Enumerable',value => nil},[{'Elixir.Enumerable','impl_for!',1,[{file,"lib/enum.ex"},{line,1}]},{'Elixir.Enumerable',reduce,3,[{file,"lib/enum.ex"},{line,166}]},{'Elixir.Enum',each,2,[{file,"lib/enum.ex"},{line,4387}]},{'Elix ir.Pleroma.Config.TransferTask',configure,1,[{file,"lib/pleroma/config/transfer_task.ex"},{line,113}]},{'Elixir.Enum','-each/2-lists^foreach/1-0-',2,[{file,"lib/enum.ex"},{line,984}]},{'Elixir.Pleroma.Config.TransferTask',load_and_update_env,2,[{file,"lib/pleroma/config/tran sfer_task.ex"},{line,51}]},{'Elixir.Pleroma.Config.TransferTask',start_link,1,[{file,"lib/pleroma/config/transfer_task.ex"},{line,34}]},{supervisor,do_start_child_i,3,[{file,"supervisor.erl"},{line,420}]}]}}}},{'Elixir.Pleroma.Application',start, Aug 05 21:48:11 pleroma.envs.net pleroma[9878]: Aug 05 21:48:12 pleroma.envs.net pleroma[9878]: Crash dump is being written to: erl_crash.dump...done ``` ```` erl_crash.dump: https://envs.sh/dOK.dump ### Severity I cannot use the software ### Have you searched for this issue? - [x] I have double-checked and have not found this issue mentioned anywhere.
creme added the
bug
label 2023-08-06 09:03:01 +00:00
creme changed title from [bug] to [bug] failed to start after upgrade 2023-08-06 09:07:55 +00:00
Author

@FloatingGhost

looks like it is fixed in 3.10.3-0-g368b22f-develop

@FloatingGhost looks like it is fixed in 3.10.3-0-g368b22f-develop
creme closed this issue 2023-08-06 16:11:10 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: AkkomaGang/akkoma#616
No description provided.