Network Error - Bad Gateway(502)

Hi, I have a very basic Influx/grafana setup on a VM which worked fine for sometime. I left for 10 days, came back vacation, I re-run the VMs , start influx, start Grafana, clicking on any dashboard or item, I get
Network Error - Bad Gateway(502)
I have no network issues
Also, before this error I get
Templating failed to init

Thanks for your help

Here is the log for Grafana

t=2019-06-07T20:08:10+0200 lvl=info msg=“Starting Grafana” logger=server version=6.0.1 commit=0c44a04 branch=HEAD compiled=2019-03-06T15:21:49+0100
t=2019-06-07T20:08:10+0200 lvl=info msg=“Config loaded from” logger=settings file=E:\Influx\grafana-6.0.1/conf/defaults.ini
t=2019-06-07T20:08:10+0200 lvl=info msg=“Config loaded from” logger=settings file=E:\Influx\grafana-6.0.1\conf\custom.ini
t=2019-06-07T20:08:10+0200 lvl=info msg=“Path Home” logger=settings path=E:\Influx\grafana-6.0.1
t=2019-06-07T20:08:10+0200 lvl=info msg=“Path Data” logger=settings path=E:\Influx\grafana-6.0.1\data
t=2019-06-07T20:08:10+0200 lvl=info msg=“Path Logs” logger=settings path=E:\Influx\grafana-6.0.1\data\log
t=2019-06-07T20:08:10+0200 lvl=info msg=“Path Plugins” logger=settings path=E:\Influx\grafana-6.0.1\data\plugins
t=2019-06-07T20:08:10+0200 lvl=info msg=“Path Provisioning” logger=settings path=E:\Influx\grafana-6.0.1\conf\provisioning
t=2019-06-07T20:08:10+0200 lvl=info msg=“App mode production” logger=settings
t=2019-06-07T20:08:10+0200 lvl=info msg=“Initializing HTTPServer” logger=server
t=2019-06-07T20:08:10+0200 lvl=info msg=“Initializing SqlStore” logger=server
t=2019-06-07T20:08:10+0200 lvl=info msg=“Connecting to DB” logger=sqlstore dbtype=sqlite3
t=2019-06-07T20:08:10+0200 lvl=info msg=“Starting DB migration” logger=migrator
t=2019-06-07T20:08:11+0200 lvl=info msg=“Initializing InternalMetricsService” logger=server
t=2019-06-07T20:08:11+0200 lvl=info msg=“Initializing SearchService” logger=server
t=2019-06-07T20:08:11+0200 lvl=info msg=“Initializing PluginManager” logger=server
t=2019-06-07T20:08:11+0200 lvl=info msg=“Starting plugin search” logger=plugins
t=2019-06-07T20:08:12+0200 lvl=info msg=“Registering plugin” logger=plugins name=“Pie Chart”
t=2019-06-07T20:08:12+0200 lvl=info msg=“Registering plugin” logger=plugins name=Discrete
t=2019-06-07T20:08:12+0200 lvl=info msg=“Registering plugin” logger=plugins name=Heatmap
t=2019-06-07T20:08:12+0200 lvl=info msg=“Initializing RenderingService” logger=server
t=2019-06-07T20:08:12+0200 lvl=info msg=“Initializing AlertingService” logger=server
t=2019-06-07T20:08:12+0200 lvl=info msg=“Initializing DatasourceCacheService” logger=server
t=2019-06-07T20:08:12+0200 lvl=info msg=“Initializing HooksService” logger=server
t=2019-06-07T20:08:12+0200 lvl=info msg=“Initializing LoginService” logger=server
t=2019-06-07T20:08:12+0200 lvl=info msg=“Initializing QuotaService” logger=server
t=2019-06-07T20:08:12+0200 lvl=info msg=“Initializing ServerLockService” logger=server
t=2019-06-07T20:08:12+0200 lvl=info msg=“Initializing UsageStatsService” logger=server
t=2019-06-07T20:08:12+0200 lvl=info msg=“Initializing UserAuthTokenService” logger=server
t=2019-06-07T20:08:12+0200 lvl=info msg=“Initializing CleanUpService” logger=server
t=2019-06-07T20:08:12+0200 lvl=info msg=“Initializing NotificationService” logger=server
t=2019-06-07T20:08:12+0200 lvl=info msg=“Initializing ProvisioningService” logger=server
t=2019-06-07T20:08:12+0200 lvl=info msg=“Initializing TracingService” logger=server
t=2019-06-07T20:08:14+0200 lvl=info msg=“Initializing Stream Manager”
t=2019-06-07T20:08:14+0200 lvl=info msg=“HTTP Server Listen” logger=http.server address=0.0.0.0:3000 protocol=http subUrl= socket=
t=2019-06-07T20:08:17+0200 lvl=info msg=“Request Completed” logger=context userId=0 orgId=0 uname= method=GET path=/ status=302 remote_addr=[::1] time_ms=5 size=29 referer=
t=2019-06-07T20:10:55+0200 lvl=info msg=“Request Completed” logger=context userId=1 orgId=1 uname=admin method=GET path=/api/datasources/proxy/6/query status=502 remote_addr=[::1] time_ms=21094 size=0 referer=“http://localhost:3000/d/WbSheEjiz/test-dashboard?orgId=1
t=2019-06-07T20:10:55+0200 lvl=info msg=“Request Completed” logger=context userId=1 orgId=1 uname=admin method=GET path=/api/datasources/proxy/6/query status=502 remote_addr=[::1] time_ms=21077 size=0 referer=“http://localhost:3000/d/WbSheEjiz/test-dashboard?orgId=1