Open CactiChameleon9 opened 3 years ago
Hi, remote serving requires some tweaks on the device hosting mycroft-core. @AIIX has most experience of this but as I recall it the mycroft.conf need to be configured with a remote_url
key with the external url. In addition an http server needs to be set up serving the /opt folder so a gui page is available at http://MY_EXTERNAL_URL/opt/mycroft/skills/THE_SKILL/ui/PAGE.qml
Why isn't that mentions in the README.md bit? any specific reason
I think I know what I did wrong, mycroft-gui needs to be installed and running on the remote bit too?
To run Mycroft Core remotely with Mycroft GUI on another device:
Remote System Hosting Mycroft Core:
{
"remote": true,
"remote-server": "https://ip-or-name-address-where-mycroft-server-is-hosted/"
}
Host System Where Mycroft-GUI is hosted:
Thank you so much that makes a ton more sense. I am using nginx, but the principle is the same. This also makes it easier to do remotely - my next plan of action. Is that safe to do with ssl/https?
it should work with https fine I believe, what really matters is that the qml file path is readable/downloadable over the network
OK, in theory I have done it all correctly - however it doesn't seem to be working? I now have a different error:
Mycroft is running but the connection failed for some reason. Kill Mycroft manually.
I had to do a bit of tweaking for my setup: The config file I added to the end of (with the correct syntax, so inside the {} and removing the {} from what you gave me and adding a comma) of /mnt/dietpi_userdata/mycroft-core/mycroft/configuration/mycroft.conf
With nginx I made a folders in /var/www/mycroft/opt/mycroft(linkfolder), making an new nginx config based off the default one with /var/www/mycroft as the root, and I download a file from the directory structure listed (checked with ls to find a specific file to try)
Have I done anything wrong that you can see?
Describe the bug Mycroft GUI does not seem to work properly with a remote mycroft server
To Reproduce Steps to reproduce the behavior:
Expected behavior It should all work properly
Log files Client end running log:
If you are running Mycroft, the Support Skill helps to automate gathering this information. Simply say "Create a support ticket" and the Skill will put together a support package and email it to you.
Environment (please complete the following information):
Additional context Fresh install, trying the start-mycroft.sh all manually doesn't help. I think the issue is a client issue rather than a server issue, as the file trying to reference is there and it is stating that the syntax is wrong (I think)
Please think carefully about whether you have modified anything in Mycroft's code or configuration files. If so, can you reproduce this on a clean installation of Mycroft? Many "bugs" turn out to be non-standard configuration errors.