I have added the phone to devices, and it passes the “Test” button to connect.
Trying to run I get:
C:/l/SailfishOS/bin/./sfdk.exe -c target=SailfishOS-3.4.0.22EA-armv7hl -c ‘device=Xperia XA2 WIFI - Dual SIM (ARM)’ deploy --sdk
Not running under MSYS shell. Session management is not possible.
Fatal: ‘Xperia XA2 WIFI - Dual SIM (ARM)’ is not a known device
13:28:16: The process “C:\l\SailfishOS\settings\SailfishSDK\libsfdk\build-target-tools\sailfish-os-build-engine\SailfishOS-3.4.0.22EA-armv7hl\deploy.cmd” exited with code 1.
Error while building/deploying project componentgallery (kit: SailfishOS-3.4.0.22EA-armv7hl (in sailfish-os-build-engine))
When executing step “RPM”
That means that the connection test failed. It’s a bit unfortunate that it doesn’t tell us why the connection failed. But in any case, I recommend that you remove and add the device again inside Qt Creator, as that should regenerate all configuration files etc.
ssh: connect to host 192.168.1.74 port 22: Connection refused
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.3]
Now it passes test button on options->device, as below. But since it says "SFTP will be used (below), why is it trying rsync (above)
Checking whether rsync works...
Failed to start rsync: Process failed to start: The system cannot find the file specified.
SFTP will be used for deployment, because rsync is not available.
Device test finished successfully.
The “SFTP will be used…” text comes from Qt Creators remote linux tester, which we use in configuration wizard. That should really never happen, as rsync should get installed at the latest when you add the device - just before the connection test is run.
Which Sailfish OS version is installed on your device?
yes rsync works when I direct ssh.
(I have left ssh running while I try to deploy, and it is still active when delpoy attempt is done.)
Perhaps something to do with keys. Authentication type is “Specific Key” C:\Users\New User.ssh\qtc_id (The key file and the device xml is the same as it was in previous sdk version that was working.)
ok, so now I tried to ssh in using the key file and it works, so that key file is working.:
Not really sure if it’s the same case or just slightly related but I also had issues when I tried to build app and deploy it to my device a few days ago. In my case the main reason was some mess up with the keys. First I re-added the device and then I had to add my computer’s public keys to my device’s .ssh/authorized_keys file. After this deploying went smoothly.
“Fatal: ‘Xperia X Compact (ARM)’ is not a known device”
I seem to have the same problem. The device I’ve just created is not listed in vmshare/devices.xml
It’s related to SSH keys. My normal key is on the device, so I didn’t create a new one for the failed config. If I create another config with a dedicated key and deploy the public key to the device it works as expected…
Interestingly it refuses to make a new key since there is an old one. I will try removing the old one (at the pc)
I wonder if there is any limit on the scope that docker has access to i.e. the docker part can’t see the key as it is out of scope (I know nothing about docker)