Hello,
Port 8080 not working, showing time out
Is the gateway running? Do you have any logs? That would be more useful than a screenshot…
Dear Martin
The gateway is running and please find below logs
ayme.com (squid/3.1.23)
\n\n\n\n"The following error was encountered while trying to retrieve the URL: <a href="http://api.airpay.co.in:3000/register/node\“>http://api.airpay.co.in:3000/register/node
\n\n<blockquote id="error">\nAccess Denied.
\n\n\nAccess control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.
\n\nYour cache administrator is <a href="mailto:root?subject=CacheErrorInfo%20-%20ERR_ACCESS_DENIED&body=CacheHost%3A%20monitor.airpayme.com%0D%0AErrPage%3A%20ERR_ACCESS_DENIED%0D%0AErr%3A%20%5Bnone%5D%0D%0ATimeStamp%3A%20Tue,%2029%20Aug%202017%2015%3A15%3A17%20GMT%0D%0A%0D%0AClientIP%3A%2010.1.0.21%0D%0A%0D%0AHTTP%20Request%3A%0D%0AGET%20%2Fregister%2Fnode%20HTTP%2F1.1%0AHost%3A%20api.airpay.co.in%3A3000%0D%0AUser-Agent%3A%20Go-http-client%2F1.1%0D%0AAuthorization%3A%20352d20ee67be67f6340b4c0605b044b7%0D%0AX-Tyk-Hostname%3A%20api.airpay.co.in%0D%0AAccept-Encoding%3A%20gzip%0D%0A%0D%0A%0D%0A">root.
\nGenerated Tue, 29 Aug 2017 15:15:17 GMT by monitor.airpayme.com (squid/3.1.23)
\n\n\n\n”The following error was encountered while trying to retrieve the URL: <a href="http://api.airpay.co.in:3000/register/node\“>http://api.airpay.co.in:3000/register/node
\n\n<blockquote id="error">\nAccess Denied.
\n\n\nAccess control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.
\n\nYour cache administrator is <a href="mailto:root?subject=CacheErrorInfo%20-%20ERR_ACCESS_DENIED&body=CacheHost%3A%20monitor.airpayme.com%0D%0AErrPage%3A%20ERR_ACCESS_DENIED%0D%0AErr%3A%20%5Bnone%5D%0D%0ATimeStamp%3A%20Tue,%2029%20Aug%202017%2015%3A15%3A18%20GMT%0D%0A%0D%0AClientIP%3A%2010.1.0.21%0D%0A%0D%0AHTTP%20Request%3A%0D%0AGET%20%2Fregister%2Fnode%20HTTP%2F1.1%0AHost%3A%20api.airpay.co.in%3A3000%0D%0AUser-Agent%3A%20Go-http-client%2F1.1%0D%0AAuthorization%3A%20352d20ee67be67f6340b4c0605b044b7%0D%0AX-Tyk-Hostname%3A%20api.airpay.co.in%0D%0AAccept-Encoding%3A%20gzip%0D%0A%0D%0A%0D%0A">root.
\nGenerated Tue, 29 Aug 2017 15:15:18 GMT by monitor.airpayme.com (squid/3.1.23)
\n\n\n\n”Dear team,
Port 8080 not listen on tyk
So basically the gateway is trying to bootstrap against the dashboard, but the shared secrets do not match.
There are two node_serets, one in tyk.comf and the other in tyk_analytics.conf, i’d suggest to align these.
Btw in future you can use three back-ticks at the start and end of a code block to make it easier tomreadh and fix the formatting - the editor also has an option for marking a block of text as code so it gets formatted properly
Dear Martin ,
Please find below tyk.conf
{
“listen_port”: 8080,
“node_secret”: “352d20ee67be67f6340b4c0605b044b7”,
“secret”: “352d20ee67be67f6340b4c0605b044b7”,
“template_path”: “/opt/tyk-gateway/templates”,
“tyk_js_path”: “/opt/tyk-gateway/js/tyk.js”,
“use_db_app_configs”: true,
“db_app_conf_options”: {
“connection_string”: “http://api.airpay.co.in:3000”,
“node_is_segmented”: false,
“tags”: [“test2”]
},
“disable_dashboard_zeroconf”: false,
“app_path”: “/opt/tyk-gateway/apps”,
“middleware_path”: “/opt/tyk-gateway/middleware”,
“storage”: {
“type”: “redis”,
“host”: “localhost”,
“port”: 6379,
“username”: “”,
“password”: “”,
“database”: 0,
“optimisation_max_idle”: 2000,
“optimisation_max_active”: 4000
},
“enable_analytics”: true,
“analytics_config”: {
“type”: “mongo”,
“pool_size”: 100,
“csv_dir”: “/tmp”,
“mongo_url”: “”,
“mongo_db_name”: “”,
“mongo_collection”: “”,
“purge_delay”: 100,
“ignored_ips”: [],
“enable_detailed_recording”: true,
“enable_geo_ip”: false,
“geo_ip_db_path”: “”,
“normalise_urls”: {
“enabled”: true,
“normalise_uuids”: true,
“normalise_numbers”: true,
“custom_patterns”: []
}
},
“health_check”: {
“enable_health_checks”: false,
“health_check_value_timeouts”: 60
},
“optimisations_use_async_session_write”: true,
“allow_master_keys”: false,
“policies”: {
“policy_source”: “service”,
“policy_connection_string”: “http://api.airpay.co.in:3000”,
“policy_record_name”: “tyk_policies”,
“allow_explicit_policy_id”: true
},
“hash_keys”: true,
“suppress_redis_signal_reload”: false,
“use_redis_log”: true,
“close_connections”: true,
“enable_non_transactional_rate_limiter”: true,
“enable_sentinel_rate_limiter”: false,
“experimental_process_org_off_thread”: true,
“local_session_cache”: {
“disable_cached_session_state”: false
},
“http_server_options”: {
“enable_websockets”: true
},
“uptime_tests”: {
“disable”: false,
“config”: {
“enable_uptime_analytics”: true,
“failure_trigger_sample_size”: 2,
“time_wait”: 10,
“checker_pool_size”: 50
}
},
“hostname”: “”,
“enable_custom_domains”: true,
“enable_jsvm”: true,
“oauth_redirect_uri_separator”: “;”,
“coprocess_options”: {
“enable_coprocess”: false,
“coprocess_grpc_server”: “”
},
“pid_file_location”: “./tyk-gateway.pid”,
“allow_insecure_configs”: true,
“public_key_path”: “”,
“close_idle_connections”: false,
“allow_remote_config”: false,
“enable_bundle_downloader”: true,
“bundle_base_url”: “”,
“global_session_lifetime”: 100,
“force_global_session_lifetime”: false,
“max_idle_connections_per_host”: 100
}
I am having the same problem. The node does not show up as active in the dashboard.
What could be wrong?
Hi,
the appropriate documentation section is here.
More specifically look at the tyk_api_config
.
Thanks,
Kos @ Tyk Support Team