meta-flutter / workspace-automation

Work aids for developing with Embedded Flutter on Linux
Apache License 2.0
6 stars 4 forks source link

SSH Connection Refused When Launching Flutter App on AGL QEMU Image #29

Open JesperBllnbm opened 3 weeks ago

JesperBllnbm commented 3 weeks ago

Hello @jwinarske ! 👋

I've made some progress with the AGL QEMU setup, but I've hit another snag when trying to run the Flutter app. I'd appreciate your insights on this new issue.

When attempting to launch the Flutter app using flutter run, I encounter the following error:

Launching lib/main.dart on AGL ricefish-latest QEMU Image in debug mode...
ssh: connect to host localhost port 22: Connection refused

QEMU is running and I can interact with the AGL UI. I also added the fingerprint:

   Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
   Warning: Permanently added '[localhost]:2222' (ED25519) to the list of known hosts.
   agl-driver tty7         Aug 20 17:23

Questions

  1. Why is the Flutter run command attempting to connect to port 22 instead of 2222?
  2. Is there a configuration setting I might have missed that specifies the SSH port for Flutter?
  3. Could this be related to the changes made in the ricefish config?

I'm happy to suggest PRs if needed, but I don't yet feel confident enough in my understanding of the system to do so. Any guidance or explanations would be greatly appreciated.

Thanks in advance for your help with this issue!

jwinarske commented 3 weeks ago

@JesperBllnbm Hey.

Have you reviewed the AGL meta-agl-flutter doc? https://gerrit.automotivelinux.org/gerrit/gitweb?p=AGL/meta-agl.git;a=blob;f=meta-agl-flutter/README.md;h=24929ccd02e8eb11ae2da0c9413299cf4693d07a;hb=HEAD#l142

jwinarske commented 3 weeks ago

Also be sure you're using the configs in meta-agl-flutter. The ones here are just for reference.