I have success to build run Web server and mqtt-gateway-master on VM bot and can control my raspberry pi. These day I’m trying to turn the Web App to 5.1.0. I can done everything in my VM box, but when I try to use the Web APP I got this:
Enter the url below it show this:
But looking in the command window of mqtt broker, the Web app has success connect to the broker.
At first I think this may cause by my firewall setting. I change the default rules of my VM to ACCEPT and add exception of IP to AVG on my host computer. It doesn’t solve the problem. Using curl command in my host computer to GET the /webpack/bundle.js it stop at chunck 12, but in the VM it get got about more than 900.
Also find that some people solve the problem about dynamic page by upgrade the webpack version. I use the yarn to upgrade it. It still not slove.
Using the google chrome developer tools I think the problem is about the localhost.
Below is in my host:
And here is on VM:
Finding that the 13.js is under localhost. Is this this the problem why I can use the Web APP with out in the VM box? How can I solve this problem.
Appreciated for any response.
rake api:upgrade will update your API to the latest version.
Are you sure you are using real IP addresses in
application.yml? You cannot use
Check the value of
API_HOST to make sure they are using valid IP addresses.
@RickCarlino Thanks for replying. Yes both of the MQTT_HOST and API_HOST is using my ip on VM. I have also use that IP to run an simple express website to make sure it is fine. Today I have try rebuild the database and rebuild with npm rebuild node-sass --force. Still the same situation. But when I use the rake api:upgrade I got rake aborted(Picture below). Does this mean I didn’t correct install something?
You might be running an older version that did not support that command.
you can manually update with
git pull https://github.com/FarmBot/Farmbot-Web-App.git master and starting over.
@RickCarlino Thanks for replying.
Today I have try the master version. Also try to download from the github and starting over. Unfortunately have the same problem.
Below is what I set in
DEVISE_SECRET: rake secret
Is there anything wrong or missing something?
@mophy85 When I paste your config into my text editor, I see that you are using
” as quotation marks. This usually the result of editing files in MS Word or Open Office. It can cause issues. For best results, I recommend using a text editor rather than a word processor. VS Code is my personal favorite.
It should be:
Please let me know if that helps.