Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[OTA] NervesHub client not using current information on a fresh flash from an image file #850

Closed
ConnorRigby opened this issue Jul 15, 2019 · 0 comments · Fixed by #851
Closed
Labels

Comments

@ConnorRigby
Copy link
Contributor

8:34:32.200 [error] Process #PID<0.2099.0> terminating
** (MatchError) no match of right hand side value: {:error, {:asn1, {{:invalid_value, 0}, [{:asn1rt_nif, :decode_ber_tlv, 1, [file: 'asn1rt_nif.erl', line: 85]}, {:"OTP-PUB-KEY", :decode, 2, [file: 'OTP-PUB-KEY.erl', line: 1109]}, {:public_key, :der_decode, 2, [file: 'public_key.erl', line: 280]}, {:ssl_config, :init_private_key, 5, [file: 'ssl_config.erl', line: 121]}, {:ssl_config, :init, 2, [file: 'ssl_config.erl', line: 38]}, {:ssl_connection, :ssl_config, 3, [file: 'ssl_connection.erl', line: 743]}, {:tls_connection, :init, 1, [file: 'tls_connection.erl', line: 131]}, {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 249]}]}}}
    (public_key) public_key.erl:284: :public_key.der_decode/2
    (ssl) ssl_config.erl:121: :ssl_config.init_private_key/5
    (ssl) ssl_config.erl:38: :ssl_config.init/2
    (ssl) ssl_connection.erl:743: :ssl_connection.ssl_config/3
    (ssl) tls_connection.erl:131: :tls_connection.init/1
    (stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Initial Call: :tls_connection.init/1
Ancestors: [:tls_connection_sup, :ssl_connection_sup, :ssl_sup, #PID<0.209.0>]
Message Queue Length: 1
Messages: [{:"$gen_call", {#PID<0.2096.0>, #Reference<0.1868848869.805568515.171664>}, {:start, 6000}}]
Links: [#PID<0.2098.0>, #Port<0.337>, #PID<0.218.0>]
Dictionary: [ssl_pem_cache: :ssl_pem_cache, ssl_manager: :ssl_manager]
Trapping Exits: true
Status: :running
Heap Size: 6772
Stack Size: 27
Reductions: 5025
Neighbours:
    #PID<0.2098.0>
        Initial Call: :tls_sender.init/1
        Current Call: :gen_statem.loop_receive/3
        Ancestors: [#PID<0.2096.0>, NervesHub.Socket, NervesHub.Supervisor, FarmbotOS, #PID<0.1068.0>]
        Message Queue Length: 0
        Links: [#PID<0.2099.0>]
        Trapping Exits: false
        Status: :waiting
        Heap Size: 233
        Stack Size: 12
        Reductions: 59
        Current Stacktrace:
            (stdlib) gen_statem.erl:880: :gen_statem.loop_receive/3
            (stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
        
18:34:32.208 [error] Child :undefined of Supervisor :tls_connection_sup terminated
** (exit) an exception was raised:
    ** (MatchError) no match of right hand side value: {:error, {:asn1, {{:invalid_value, 0}, [{:asn1rt_nif, :decode_ber_tlv, 1, [file: 'asn1rt_nif.erl', line: 85]}, {:"OTP-PUB-KEY", :decode, 2, [file: 'OTP-PUB-KEY.erl', line: 1109]}, {:public_key, :der_decode, 2, [file: 'public_key.erl', line: 280]}, {:ssl_config, :init_private_key, 5, [file: 'ssl_config.erl', line: 121]}, {:ssl_config, :init, 2, [file: 'ssl_config.erl', line: 38]}, {:ssl_connection, :ssl_config, 3, [file: 'ssl_connection.erl', line: 743]}, {:tls_connection, :init, 1, [file: 'tls_connection.erl', line: 131]}, {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 249]}]}}}
        (public_key) public_key.erl:284: :public_key.der_decode/2
        (ssl) ssl_config.erl:121: :ssl_config.init_private_key/5
        (ssl) ssl_config.erl:38: :ssl_config.init/2
Writing | #######################                            | 4        
18:34:32.489 [error] Process #PID<0.2107.0> terminating
** (MatchError) no match of right hand side value: {:error, {:asn1, {{:invalid_value, 0}, [{:asn1rt_nif, :decode_ber_tlv, 1, [file: 'asn1rt_nif.erl', line: 85]}, {:"OTP-PUB-KEY", :decode, 2, [file: 'OTP-PUB-KEY.erl', line: 1109]}, {:public_key, :der_decode, 2, [file: 'public_key.erl', line: 280]}, {:ssl_config, :init_private_key, 5, [file: 'ssl_config.erl', line: 121]}, {:ssl_config, :init, 2, [file: 'ssl_config.erl', line: 38]}, {:ssl_connection, :ssl_config, 3, [file: 'ssl_connection.erl', line: 743]}, {:tls_connection, :init, 1, [file: 'tls_connection.erl', line: 131]}, {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 249]}]}}}
    (public_key) public_key.erl:284: :public_key.der_decode/2
    (ssl) ssl_config.erl:121: :ssl_config.init_private_key/5
    (ssl) ssl_config.erl:38: :ssl_config.init/2
    (ssl) ssl_connection.erl:743: :ssl_connection.ssl_config/3
    (ssl) tls_connection.erl:131: :tls_connection.init/1
    (stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Initial Call: :tls_connection.init/1
Ancestors: [:tls_connection_sup, :ssl_connection_sup, :ssl_sup, #PID<0.209.0>]
Message Queue Length: 1
Messages: [{:"$gen_call", {#PID<0.2105.0>, #Reference<0.1868848869.805568514.173506>}, {:start, 6000}}]
Links: [#PID<0.2106.0>, #Port<0.339>, #PID<0.218.0>]
Dictionary: [ssl_pem_cache: :ssl_pem_cache, ssl_manager: :ssl_manag⏎ 
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant