FreeTakServer
FreeTakServer copied to clipboard
Webmap not working in AWS
Installed fresh to aws using zerotouch deployment. Install completed properly and accessing the server shows all servers running properly, however when clicking the WEBMAP tab the webmap fails to load and a message is given at the top (Cannot GET /tak-map). What should I do to fix this?
open your nodered installation and check if the IP in config is set properly https://freetakteam.github.io/FreeTAKServer-User-Docs/FreeTAKHub/WebMap/Installation/
when I open Node Red im getting the warnings that flows stopped due to missing node types -worldmap -worldmap in.
On Sun, Apr 21, 2024, 15:23 Corvo @.***> wrote:
open your nodered installation and check if the IP in config is set properly
https://freetakteam.github.io/FreeTAKServer-User-Docs/FreeTAKHub/WebMap/Installation/
— Reply to this email directly, view it on GitHub https://github.com/FreeTAKTeam/FreeTakServer/issues/692#issuecomment-2068172378, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDMG3NOGIZHNHZYFX34JBC3Y6QGZTAVCNFSM6AAAAABGP5LZMWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRYGE3TEMZXHA . You are receiving this because you authored the thread.Message ID: @.***>
Also under the manage palette, for the webmap im getting the error; SyntaxError: Unexpected Token '.' (line 203)
On Sun, Apr 28, 2024, 12:20 Demetrios Logan @.***> wrote:
when I open Node Red im getting the warnings that flows stopped due to missing node types -worldmap -worldmap in.
On Sun, Apr 21, 2024, 15:23 Corvo @.***> wrote:
open your nodered installation and check if the IP in config is set properly
https://freetakteam.github.io/FreeTAKServer-User-Docs/FreeTAKHub/WebMap/Installation/
— Reply to this email directly, view it on GitHub https://github.com/FreeTAKTeam/FreeTakServer/issues/692#issuecomment-2068172378, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDMG3NOGIZHNHZYFX34JBC3Y6QGZTAVCNFSM6AAAAABGP5LZMWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRYGE3TEMZXHA . You are receiving this because you authored the thread.Message ID: @.***>
This seems like the installation failed to add dependencies, @brothercorvo have you seen this before?
As I said: the component used by the webmap is not installed. To solve the issue you should update node red to the current version.
Same Problem here. How exactly can I update Nodered? The Nodes in the "Manage Pallette" show they are up to date.
I had this same problem not on AWS, just in a fresh Ubuntu 22.04 container running the zero touch script. Maps were not loading. The problem appears to be that the default nodejs and nodered versions in the Ubuntu repos are ancient.
@Sebull-git I had success with the following process:
- Add the nodesource repo to get newer builds of nodejs following their instructions
- I had to uninstall the
libnode-dev
package because of a conflict;sudo apt remove libnode-dev
. - Update nodejs --
sudo apt update
followed bysudo apt dist-upgrade
. - Update nodered
sudo npm install -g --unsafe-perm node-red
- Restart nodered
sudo systemctl restart nodered
Following that and the maps seems to work now, though no promises it didn't break something else.
It looks like the zero touch installer needs to be modified to make sure recent versions of nodejs and node-red get installed on platforms where the package repo versions are too old.
PS: I'm still having a problem getting anything to actually display on the map. I have devices connected and they can see each other, but nothing at all displays in the web map.
Ensure that the config node has the proper IP
@brothercorvo Indeed, that worked thanks!