Hey Sweta,
thanks for the longer log, this sheds some more light on the issue - but still isn't enough to debug it.
First regarding the promt which Milosz already mentioned: You set it to "login:" - that most probably is wrong. Linux hosts usually have a prompt something like "username@hostname:" e.g. "root@example:". Please set yaml config to the promt your device really uses.
Then regarding your logs:
Does the line "[login-action] Waiting for messages, (timeout 00:0x:xx)" appear in logs? I guess yes.
Does the line "Matched prompt #xx: login:" and "Sending username root" appear? At which line? If yes, the login prompt (or something earlier in your banner message) gets matched - and it's not LAVAs fault.
As we can see in your screenshot, your login prompt isn't just "login:" - it is "do[redacted]t login:". Set your yaml config "login_prompt" to this string, this will make detection of that login prompt less error prone.
Regarding your code point question: Just search the code for "login_prompt" and you will find https://gitlab.com/lava/lava/-/blob/master/lava_dispatcher/actions/boot/__in... As far as I can see there's just a time limit and no line limit for detecting the login prompt.
Best regards
Stefan
On 10/25/2024 8:40 AM, Sweta Ghosh wrote:
Hello Milosz,
Thanks for replying. I tried the changing the prompts by adding strings from welcome messages and login_prompt but it looks like it is not able to reach that point where my login prompt is displayed. My login prompt(circled) is displayed in logs only after auto-login fails. Please find the screenshot attached. Is there is any limit to number of line it try to match the prompt?
Could you please point me to the code that lava uses to detect the prompt. Thanks, Sweta
*From:* Milosz Wasilewski milosz.wasilewski@foundries.io *Sent:* Thursday, October 24, 2024 1:07 PM *To:* Sweta Ghosh sweta.ghosh@nagarro.com *Cc:* lava-users@lists.lavasoftware.org lava-users@lists.lavasoftware.org *Subject:* Re: [lava-users] Re: Auto login fails after adding banner message before login prompt [Email from a non-Nagarro source: please exercise caution with links and attachments]
Sweta,
On Thu, Oct 24, 2024 at 8:12 AM Sweta Ghosh sweta.ghosh@nagarro.com wrote:
Hello Milosz,
I couldn't understand what you mean by " Did you try to change the prompt to sth else?" . Could you please share an example , how can I do the same.
This part:
prompts: - 'login:'
I think this might be your issue. Did you try to change the prompt to sth else?
Try changing the prompt and see if it helps.
Best Regards, Milosz
lava-users mailing list -- lava-users@lists.lavasoftware.org To unsubscribe send an email to lava-users-leave@lists.lavasoftware.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s