Error: Non-option or unrecognized argument(s) given

43 views
Skip to first unread message

Sourabh Hegde

unread,
Feb 23, 2022, 11:50:39 AM2/23/22
to swupdate
Hello All,

While doing update from command line parameters like:

swupdate -l 5 -e stable,copy2 -H dh-stm32mp1-dhcor-avenger96:1.0 -u '-t default -u http://localhost:8080/ -i dh-stm32mp1-dhcor-avenger96' l -k /etc/swupdate/swupdate-public.pem

I encounter an issue:

[DEBUG] : SWUPDATE running :  [read_settings_file] : Reading config file /etc/swupdate.cfg
[DEBUG] : SWUPDATE running :  [read_module_settings] : Reading config settings for module globals
Error: Non-option or unrecognized argument(s) given, see --help.

My swupdate.cfg file:

globals :
{
        postupdatecmd = "/etc/swupdate/post-update.sh";
        verbose = true;
        loglevel = 5;
        syslog = true;
        public-key-file = "/etc/swupdate/swupdate-public.pem";
};

download :
{
        retries = 3;
        timeout = 1800;
};

identify : (
        { name = "dh-stm32mp1-dhcor-avenger96"; value = "1.0"; }
);

suricatta :
{

        tenant          = "default";
        id              = "dh-stm32mp1-dhcor-avenger96";
        confirm         = 0;
        url             = "http://localhost:8080";
        polldelay       = 60;
        nocheckcert     = true;
        retry           = 4;
        retrywait       = 200;
        loglevel        = 10;
        userid          = 0;
        groupid         = 0;
        max_artifacts   = 1;
/*
        cafile          = "/etc/ssl/cafile";
        sslkey          = "/etc/ssl/sslkey";
        sslcert         = "/etc/ssl/sslcert";
*/
};

webserver :
{
        document_root = "/www";
        userid          = 0;
        groupid         = 0;
};

I don't understand what is the reason for this error. Can anyone please let me know how to resolve this issue?

Thanks in advance.

Kind Regards,
Sourabh

Sourabh Hegde

unread,
Feb 24, 2022, 7:13:02 AM2/24/22
to swupdate
Hi,

Any update on above request would be helpful.

Thanks in advance.
Reply all
Reply to author
Forward
0 new messages