Error message value when calling start_child / 2

I get the following error code when calling start_child / 2

{error,
{{[],[]},
    {child,undefined,"i.file_man",
        {sg_file_mgr,start_link,
            ["i.file",
            [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,
            7,568,569,570,571,572,573,574,
            575,576,577,578,579,580,581,582,583,584,
            585,586,587,588,589,590],
            [{"129.16.165.241",6881},
            {"68.189.244.138",55109},
            {"68.10.136.204",51422},
            {"68.10.136.204",51416},
            {"67.174.189.28",6881}],
            <0.400.0>]},
        permanent,2000,worker,
        [sg_file_mgr]}}}

What are these two empty lists in the first tuple if the message is and what is undefined?

+3
source share
1 answer

undefinedlies in the fact that the child is not yet running and is not inserted into the supervisor. {[], []}probably the term from the main process. Can you manually start_link sg_file_mgr or not?

run erl -boot start_sasland check if you have SASL interesting error report.

What does the init / 1 sg_file_mgr function look like?

+1
source

Source: https://habr.com/ru/post/1780514/


All Articles