Aug 01 10:17:35 KITT tyk-analytics[3133]: /src/github.com/TykTechnologies/tyk-analytics/Main.go:530 +0x42a
Aug 01 10:17:35 KITT tyk-analytics[3133]: main.main()
Aug 01 10:17:35 KITT tyk-analytics[3133]: /src/github.com/TykTechnologies/tyk-analytics/Main.go:943 +0x57
Aug 01 10:17:35 KITT systemd[1]: tyk-dashboard.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Aug 01 10:17:35 KITT systemd[1]: tyk-dashboard.service: Unit entered failed state.
Aug 01 10:17:35 KITT systemd[1]: tyk-dashboard.service: Failed with result ‘exit-code’.
Aug 01 10:17:35 KITT systemd[1]: tyk-dashboard.service: Service hold-off time over, scheduling restart.
Aug 01 10:17:35 KITT systemd[1]: Stopped Tyk API Dashboard.
Aug 01 10:17:35 KITT systemd[1]: tyk-dashboard.service: Start request repeated too quickly.
Aug 01 10:17:35 KITT systemd[1]: Failed to start Tyk API Dashboard.
My gateway was crashed too but after fixing the directory of the templates the error went away and the gateway service seems to be running although I can’t access my API - either it’s still broken or it’s because of the dashboard.
Could it be your dashboard templates folder? (i.e. has it been updated recently, is it readable etc.) This error seems to originate with this section of the code.
I have many files in that folder including index.html. There is no mention of anything in the tyk_analytics.conf file but here it is:
“listen_port”: 3000,
“tyk_api_config”: {
“Host”: “http://localhost”,
“Port”: “5000”,
“Secret”: “352d20ee67be67f6340b4c0605b044b7”
},
“mongo_url”: “mongodb://localhost/tyk_analytics”,
“page_size”: 10,
“admin_secret”: “12345”,
“redis_port”: 6379,
“redis_host”: “localhost”,
“redis_password”: “”,
“force_api_defaults”: true,
“notify_on_change”: true,
“license_owner”: “Your Name”,
“hash_keys”: true,
“dashboard_session_lifetime”: 43200