Getting 502 bad gateway error while creating new index

502 Bad Gateway

502 Bad Gateway

What are your Elasticsearch logs?
Is there a proxy?
What exact request are you sending?
How?

i am sending request from terminal using curl. here is the command:

curl -X PUT "****ES_URL***" -H 'Content-Type: application/json' -d '{
   "settings":{
      "analysis":{
         "analyzer":{
            "my_email_analyzer":{
               "filter":[
                  "lowercase",
                  "stop"
               ],
               "type":"custom",
               "tokenizer":"uax_url_email"
            }
         }
      }
   },
   "mappings":{
      "properties":{
         "NewEducation":{
            "properties":{
               "degree":{
                  "properties":{
                     "id":{
                        "type":"text",
                        "fields":{
                           "keyword":{
                              "type":"keyword",
                              "ignore_above":256
                           }
                        }
                     },
                     "title":{
                        "type":"text",
                        "fields":{
                           "keyword":{
                              "type":"keyword",
                              "ignore_above":256
                           }
                        }
                     }
                  }
               },
               "gradDate":{
                  "properties":{
                     "mo":{
                        "type":"text",
                        "fields":{
                           "keyword":{
                              "type":"keyword",
                              "ignore_above":256
                           }
                        }
                     },
                     "yr":{
                        "type":"text",
                        "fields":{
                           "keyword":{
                              "type":"keyword",
                              "ignore_above":256
                           }
                        }
                     }
                  }
               },
               "institute":{
                  "properties":{
                     "id":{
                        "type":"text",
                        "fields":{
                           "keyword":{
                              "type":"keyword",
                              "ignore_above":256
                           }
                        }
                     },
                     "title":{
                        "type":"text",
                        "fields":{
                           "keyword":{
                              "type":"keyword",
                              "ignore_above":256
                           }
                        }
                     }
                  }
               },
               "marks":{
                  "properties":{
                     "type":{
                        "type":"text",
                        "fields":{
                           "keyword":{
                              "type":"keyword",
                              "ignore_above":256
                           }
                        }
                     },
                     "value":{
                        "type":"long"
                     }
                  }
               },
               "specialization":{
                  "properties":{
                     "id":{
                        "type":"text",
                        "fields":{
                           "keyword":{
                              "type":"keyword",
                              "ignore_above":256
                           }
                        }
                     },
                     "title":{
                        "type":"text",
                        "fields":{
                           "keyword":{
                              "type":"keyword",
                              "ignore_above":256
                           }
                        }
                     }
                  }
               }
            }
         },
         "completeness":{
            "type":"long"
         },
         "createdAt":{
            "type":"date"
         },
         "ctcCurrent":{
            "type":"long"
         },
         "ctcExpected":{
            "type":"long"
         },
         "currentCompany":{
            "type":"text",
            "fields":{
               "keyword":{
                  "type":"keyword",
                  "ignore_above":256
               }
            }
         },
         "currentDesignation":{
            "type":"text",
            "fields":{
               "keyword":{
                  "type":"keyword",
                  "ignore_above":256
               }
            }
         },
         "customer":{
            "type":"text",
            "fields":{
               "keyword":{
                  "type":"keyword",
                  "ignore_above":256
               }
            }
         },
         "daysToJoin":{
            "type":"long"
         },
         "email":{
            "type":"text",
            "fields":{
               "keyword":{
                  "type":"keyword",
                  "ignore_above":256
               }
            }
         },
         "experience":{
            "properties":{
               "month":{
                  "type":"long"
               },
               "year":{
                  "type":"long"
               }
            }
         },
         "externalProfileLinks":{
            "type":"text",
            "fields":{
               "keyword":{
                  "type":"keyword",
                  "ignore_above":256
               }
            }
         },
         "fullName":{
            "type":"text",
            "fields":{
               "keyword":{
                  "type":"keyword",
                  "ignore_above":256
               }
            }
         },
         "gender":{
            "type":"text",
            "fields":{
               "keyword":{
                  "type":"keyword",
                  "ignore_above":256
               }
            }
         },
         "id":{
            "type":"text",
            "fields":{
               "keyword":{
                  "type":"keyword",
                  "ignore_above":256
               }
            }
         },
         "jobTags":{
            "type":"text",
            "fields":{
               "keyword":{
                  "type":"keyword",
                  "ignore_above":256
               }
            }
         },
         "keySkills":{
            "type":"text",
            "fields":{
               "keyword":{
                  "type":"keyword",
                  "ignore_above":256
               }
            }
         },
         "location":{
            "properties":{
               "createdAt":{
                  "type":"date"
               },
               "customerDefined":{
                  "type":"boolean"
               },
               "gPlace":{
                  "properties":{
                     "address_components":{
                        "properties":{
                           "long_name":{
                              "type":"text",
                              "fields":{
                                 "keyword":{
                                    "type":"keyword",
                                    "ignore_above":256
                                 }
                              }
                           },
                           "short_name":{
                              "type":"text",
                              "fields":{
                                 "keyword":{
                                    "type":"keyword",
                                    "ignore_above":256
                                 }
                              }
                           },
                           "types":{
                              "type":"text",
                              "fields":{
                                 "keyword":{
                                    "type":"keyword",
                                    "ignore_above":256
                                 }
                              }
                           }
                        }
                     },
                     "adr_address":{
                        "type":"text",
                        "fields":{
                           "keyword":{
                              "type":"keyword",
                              "ignore_above":256
                           }
                        }
                     },
                     "formatted_address":{
                        "type":"text",
                        "fields":{
                           "keyword":{
                              "type":"keyword",
                              "ignore_above":256
                           }
                        }
                     },
                     "geometry":{
                        "properties":{
                           "location":{
                              "properties":{
                                 "lat":{
                                    "type":"float"
                                 },
                                 "lon":{
                                    "type":"float"
                                 }
                              }
                           },
                           "viewport":{
                              "properties":{
                                 "northeast":{
                                    "properties":{
                                       "lat":{
                                          "type":"float"
                                       },
                                       "lng":{
                                          "type":"float"
                                       }
                                    }
                                 },
                                 "southwest":{
                                    "properties":{
                                       "lat":{
                                          "type":"float"
                                       },
                                       "lng":{
                                          "type":"float"
                                       }
                                    }
                                 }
                              }
                           }
                        }
                     },
                     "place_id":{
                        "type":"text",
                        "fields":{
                           "keyword":{
                              "type":"keyword",
                              "ignore_above":256
                           }
                        }
                     }
                  }
               },
               "id":{
                  "type":"text",
                  "fields":{
                     "keyword":{
                        "type":"keyword",
                        "ignore_above":256
                     }
                  }
               },
               "searchText":{
                  "type":"text",
                  "fields":{
                     "keyword":{
                        "type":"keyword",
                        "ignore_above":256
                     }
                  }
               },
               "updatedAt":{
                  "type":"date"
               }
            }
         },
         "maritalStatus":{
            "type":"text",
            "fields":{
               "keyword":{
                  "type":"keyword",
                  "ignore_above":256
               }
            }
         },
         "phone":{
            "type":"text",
            "fields":{
               "keyword":{
                  "type":"keyword",
                  "ignore_above":256
               }
            }
         },
         "preferredLocation":{
            "properties":{
               "createdAt":{
                  "type":"date"
               },
               "customerDefined":{
                  "type":"boolean"
               },
               "gPlace":{
                  "properties":{
                     "address_components":{
                        "properties":{
                           "long_name":{
                              "type":"text",
                              "fields":{
                                 "keyword":{
                                    "type":"keyword",
                                    "ignore_above":256
                                 }
                              }
                           },
                           "short_name":{
                              "type":"text",
                              "fields":{
                                 "keyword":{
                                    "type":"keyword",
                                    "ignore_above":256
                                 }
                              }
                           },
                           "types":{
                              "type":"text",
                              "fields":{
                                 "keyword":{
                                    "type":"keyword",
                                    "ignore_above":256
                                 }
                              }
                           }
                        }
                     },
                     "adr_address":{
                        "type":"text",
                        "fields":{
                           "keyword":{
                              "type":"keyword",
                              "ignore_above":256
                           }
                        }
                     },
                     "formatted_address":{
                        "type":"text",
                        "fields":{
                           "keyword":{
                              "type":"keyword",
                              "ignore_above":256
                           }
                        }
                     },
                     "geometry":{
                        "properties":{
                           "location":{
                              "properties":{
                                 "lat":{
                                    "type":"float"
                                 },
                                 "lon":{
                                    "type":"float"
                                 }
                              }
                           },
                           "viewport":{
                              "properties":{
                                 "northeast":{
                                    "properties":{
                                       "lat":{
                                          "type":"float"
                                       },
                                       "lng":{
                                          "type":"float"
                                       }
                                    }
                                 },
                                 "southwest":{
                                    "properties":{
                                       "lat":{
                                          "type":"float"
                                       },
                                       "lng":{
                                          "type":"float"
                                       }
                                    }
                                 }
                              }
                           }
                        }
                     },
                     "place_id":{
                        "type":"text",
                        "fields":{
                           "keyword":{
                              "type":"keyword",
                              "ignore_above":256
                           }
                        }
                     }
                  }
               },
               "id":{
                  "type":"text",
                  "fields":{
                     "keyword":{
                        "type":"keyword",
                        "ignore_above":256
                     }
                  }
               },
               "searchText":{
                  "type":"text",
                  "fields":{
                     "keyword":{
                        "type":"keyword",
                        "ignore_above":256
                     }
                  }
               },
               "updatedAt":{
                  "type":"date"
               }
            }
         },
         "recruiter":{
            "type":"text",
            "fields":{
               "keyword":{
                  "type":"keyword",
                  "ignore_above":256
               }
            }
         },
         "relationship":{
            "type":"text",
            "fields":{
               "keyword":{
                  "type":"keyword",
                  "ignore_above":256
               }
            }
         },
         "resume":{
            "type":"text",
            "fields":{
               "keyword":{
                  "type":"keyword",
                  "ignore_above":256
               }
            }
         },
         "resumeTitle":{
            "type":"text",
            "fields":{
               "keyword":{
                  "type":"keyword",
                  "ignore_above":256
               }
            }
         },
         "source":{
            "type":"text",
            "fields":{
               "keyword":{
                  "type":"keyword",
                  "ignore_above":256
               }
            }
         },
         "systemTags":{
            "properties":{
               "dateOn":{
                  "type":"date"
               },
               "status":{
                  "type":"text",
                  "fields":{
                     "keyword":{
                        "type":"keyword",
                        "ignore_above":256
                     }
                  }
               }
            }
         },
         "tags":{
            "type":"text",
            "fields":{
               "keyword":{
                  "type":"keyword",
                  "ignore_above":256
               }
            }
         },
         "updatedAt":{
            "type":"date"
         }
      }
   }
}'

Please format your code, logs or configuration files using </> icon as explained in this guide and not the citation button. It will make your post more readable.

Or use markdown style like:

```
CODE
```

This is the icon to use if you are not using markdown format:

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.
Please update your post.

Also please answer the other questions.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.