title: Magento 2.2 - Can't log into admin panel
body: <p>I'm new to Magento development. I'm currently working on eCommerce site using Magento latest version. I wanted to add custom module to the admin. So I executed </p>
  
  <pre><code>php bin/magento setup:di:compile
  </code></pre>
  
  <p>command after running the following command, </p>
  
  <pre><code>php bin/magento setup:upgrade 
  </code></pre>
  
  <p>Module installed and generated (compiled) code successfully after fixing some errors. But now I see my admin is not working and giving me following error. </p>
  
  <pre><code>This page isn’t working
  
  127.0.0.1 redirected you too many times.
  Try clearing your cookies.
  ERR_TOO_MANY_REDIRECTS
  </code></pre>
  
  <p>I checked <code>web/unsecure/base_url</code> and <code>web/secure/base_url</code> values in core_config_data table and it seems ok. Also I checked <code>web/cookie/cookie_path</code> and <code>web/cookie/cookie_domain</code> and both are set to <code>NULL</code>. I checked with different browser after cleaning var/cache folder. But none of these seems solve the problem. </p>
  
  <p>Also in frontend, the categories(top nav) and product list I created in home page are missing. Please help.</p>