Hello, we've decided to move our hosted apps that were on a Windows machine using NGINX server to a Ubuntu machine.
So we followed the same steps as we did on Windows; installed NGINX, moved the app files to the www folder and that's it.
But upon accessing the app through a browser many things aren't loaded like icons and such, and on the console I get the error "498" on some request to esri's server. According to google 498 means invalid token but I can't think why the generated token would be invalid in a Linux.
The problem is that we don't have any infrastructure specialist, we always relied on simplicity of Windows and now we are stuck in this problem.
Is there any extra steps/configuration that need to be done in a Linux environment to properly use Apps created by WAB? All we installed in this machine was the NGINX server, do we need do install any windows packages or anything else?
Samuel,
I don't have any NGINX or Ubuntu experience (not sure why you moved if you don't either...) but it could be the reason you are getting invalid token is because you liek have a different domain url/IP on the new web server.
Yes it is a different domain/ip, but where do I configure this?
Did you store your credentials in the web map for some secure service?
I'm not sure what you're talking about, I just downloaded the app .zip from WAB, add the appID and hosted it on the server
Samuel,
If you are using secure services in your web map then the appId is registered to the url/IP of the machine when you deployed your app. So you need to generate a new appId that goes with your new domain then.
Deploy your app—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers
Step 5.
Well, after that now I get an error after clicking the login dialog, it opens a popup that says "Invalid client_id error 400"
Samuel,
Seems like you are failing at registering the app with the appropriate app id.
Frequently asked questions—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers