Skip to content

(CaseClauseError) no case clause matching: {:done, 1} in SSHKit.SCP.Download.process_data/3 #92

@d4rk5eed

Description

@d4rk5eed

Hello
Can't get the reason for matching failure in channel loop.
It's some sort of heisenbug cause encounter it in 3-4 case of 90.
And yes, source file is unavailable, but it shoud be {:error, reason} result.

13:53:26.842 [error] Task #PID<0.379.0> started from #PID<0.326.0> terminating                                                                                                                                                               
** (CaseClauseError) no case clause matching: {:done, 1}                                                                                                                                                                                     
    (sshkit) lib/sshkit/scp/download.ex:54: SSHKit.SCP.Download.process_data/3                                                                                                                                                               
    (sshkit) lib/sshkit/ssh/channel.ex:224: SSHKit.SSH.Channel.loop/4                                                                                                                                                                        
    (sshkit) lib/sshkit/ssh.ex:125: SSHKit.SSH.run/3                                                                                                                                                                                         
    (zc_connector) lib/zc_connector/fetcher.ex:84: ZcConnector.Fetcher.send_file/2                                                                                                                                                           
    (elixir) lib/task/supervised.ex:85: Task.Supervised.do_apply/2                                                                                                                                                                           
    (elixir) lib/task/supervised.ex:36: Task.Supervised.reply/5                                                                                                                                                                              
    (stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3                                                                                                                                                                                   
Function: &ZcConnector.Fetcher.send_file/2                                                                                                                                                                                                   
    Args: [%SSHKit.SSH.Connection{host: 'X.X.X.X', options: [user_interaction: false, user: 'admin'], port: 22, ref: #PID<0.372.0>, ssh_modules: %{ssh: :ssh, ssh_connection: :ssh_connection}}, %ZcConnector.Couples{__meta__: #Ecto.Schema.Metadata<:loaded, "callrec", "couples">, callid: 34, callingnr: "6557", created_ts: #DateTime<2017-10-27 10:51:18.891499Z>, direction: "UNKNOWN", id: 34, length: 20, originalcallednr: "6566", start_ts: #DateTime<2017-10-27 10:50:58.383000Z>, stop_ts: #DateTime<2017-10-27 10:51:18.859000Z>, timeofday: 49858}]  

reproducible on sshkit ~> 0.0.3 (Hex package)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions