start-os: [bug]: [cli]: Cannot sideload using embassy-cli remotely
EmbassyOS Version
cb5bb34ed82e7991d24f7cb5ad0ae37146b40c10
Device
Laptop/Desktop
Device OS
MacOS
Device OS Version
11.6.4
Current Behavior
CLI is hard/impossible to use remotely on Mac. Haven’t tested on Linux.
- Install
embassy-cliat the above hash - create
/etc/embassy/config.yamland put the following in it:host: "https://embassy-30297ba3.local"(doesn’t work without quotes) sudo chown -R $(whoami) /etc/embassy- Trust root cert in system keychain
embassy-cli auth loginand paste password- Bug number 1: embassy-cli tries to connect to localhost despite my embassy’s hostname being defined in the config file
% embassy-cli auth login
Password:
General error: HTTP Error: error sending request for url (http://127.0.0.1/rpc/v1): error trying to connect: tcp connect error: Connection refused (os error 61)
embassy-cli -h https://embassy-30297ba3.local/ auth login- That seems to work
- Bug number 2:
% embassy-cli -h https://embassy-30297ba3.local package install electrs.s9pk
S9PK Parsing Error: Deserializing Manifest (CBOR): Semantic(None, "missing field `description`")
I can install this exact s9pk just fine by scping it to my box and sideloading.
Expected Behavior
embassy-clishould honor the hostname set in the config so I don’t have to use the-hflagembassy-cli installshould install an s9pk that otherwise works.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (18 by maintainers)
And to be clear, the home folder overrides root, not the other way around
/etc/embassywas the OG location from when 030 was still in development. I think since 031 @dr-bonez has enabled the config path to be local, ie.~/.embassy. This is where the embassy-publish script, and the SDK developer key live, and is now where theconfig.yamlfile can live, so I would default to using this local directory.fwiw you can also add the embassy IP address as the value for the host field, and you dont need to do anything with certs.
Another question: is it possible to define multiple embassies in this config file?
Yes, agreed, I wrote that in the OP.
Perhaps I should test on Linux, it’s likely related to this being a Mac