{"id":709,"date":"2024-11-02T11:46:28","date_gmt":"2024-11-02T16:46:28","guid":{"rendered":"https:\/\/carminebufano.com\/?p=709"},"modified":"2024-11-02T12:05:58","modified_gmt":"2024-11-02T17:05:58","slug":"how-to-fix-openstack-horizon-dashboard-on-centos-stream-9-error-invalidcachebackenderror","status":"publish","type":"post","link":"https:\/\/carminebufano.com\/index.php\/2024\/11\/02\/how-to-fix-openstack-horizon-dashboard-on-centos-stream-9-error-invalidcachebackenderror\/","title":{"rendered":"How to Fix Openstack Horizon Dashboard on Centos Stream 9 error: InvalidCacheBackendError"},"content":{"rendered":"\n<p>If you have recently deployed Openstack Caracal with RDO Packstack you may run into a problem when you first load the Horizon Dashboard. If you get the &#8220;Something went wrong&#8221; text instead of the regular login page even though Packstack finished successfully check the following. Try the following:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Login to your controller<\/li>\n\n\n\n<li>Edit this file: \/etc\/openstack-dashboard\/local_settings<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>CACHES = {\n    'default': {\n        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',\n        'LOCATION': '127.0.0.1:11211',  # Adjust to your memcached server's address if different\n    }\n}\n<\/code><\/pre>\n\n\n\n<p>3. Replace <code>django.core.cache.backends.memcached.MemcachedCache<\/code><\/p>\n\n\n\n<p>4. With <code>django.core.cache.backends.memcached.PyMemcacheCache<\/code><\/p>\n\n\n\n<p>It should now look like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CACHES = {\n    'default': {\n        'BACKEND': 'django.core.cache.backends.memcached.PyMemcacheCache',\n        'LOCATION': '127.0.0.1:11211',  # Adjust to your memcached server's address if different\n    }\n}\n<\/code><\/pre>\n\n\n\n<p>5. Save and close the file<\/p>\n\n\n\n<p>6. Install pymemcache  <code>pip install pymemcache<\/code><\/p>\n\n\n\n<p>7. Restart the web server: <code>service httpd restart<\/code><\/p>\n\n\n\n<p>You should now be able to login to Horizon. If you have an issue try holding down the function key and tap on 5 or if you have a fancy keyboard&#8230; dance on F5 a few times \ud83d\ude42<\/p>\n\n\n\n<p>The error message you&#8217;re encountering is because Django is attempting to use a cache backend that it can&#8217;t find or isn&#8217;t correctly installed. Specifically, it&#8217;s looking for <code>django.core.cache.backends.memcached.MemcachedCache<\/code>, which is not valid in Django 4.2 since Django removed this particular cache backend.<\/p>\n\n\n\n<p> Happy Stacking!<\/p>\n\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>If you have recently deployed Openstack Caracal with RDO Packstack you may run into a problem when you first load the Horizon Dashboard. If you get the &#8220;Something went wrong&#8221; text instead of the regular login page even though Packstack finished successfully check the following. Try the following: 3. Replace django.core.cache.backends.memcached.MemcachedCache 4. With django.core.cache.backends.memcached.PyMemcacheCache It&hellip; <a class=\"read-more\" href=\"https:\/\/carminebufano.com\/index.php\/2024\/11\/02\/how-to-fix-openstack-horizon-dashboard-on-centos-stream-9-error-invalidcachebackenderror\/\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":712,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"How to fix Openstack Horizon Dashboard. error: InvalidCacheBackendError at \/\r\n\r\nCould not find backend 'django.core.cache.backends.memcached.MemcachedCache': Module \"django.core.cache.backends.memcached\" does not define a \"MemcachedCache\" attribute\/class","jetpack_seo_html_title":"error: InvalidCacheBackendError at\/Could not find backend 'django.core.cache.backends.memcached.MemcachedCache': Module \"django.core.cache.backends.memcached\" does not define a \"MemcachedCache\" attribute\/class\r\nException Type: \tInvalidCacheBackendError\r\nException Value: \t\r\nCould not find backend 'django.core.cache.backends.memcached.MemcachedCache': Module \"django.core.cache.backends.memcached\" does not define a \"MemcachedCache\" attr","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[127,10,90,11,15],"tags":[163,161,162,122],"class_list":["post-709","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microstack","category-openstack","category-openvswitch","category-ubuntu","category-walkthroughs","tag-error","tag-horizon","tag-memcache","tag-openstack"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/11\/image-1.png?fit=1024%2C768&ssl=1","jetpack-related-posts":[{"id":145,"url":"https:\/\/carminebufano.com\/index.php\/2015\/07\/07\/how-to-upload-turnkey-linux-appliances-to-openstack-juno\/","url_meta":{"origin":709,"position":0},"title":"How to Upload Turnkey Linux Appliances to Openstack Juno","author":"Carmine Bufano","date":"July 7, 2015","format":false,"excerpt":"","rel":"","context":"In &quot;Openstack&quot;","block_context":{"text":"Openstack","link":"https:\/\/carminebufano.com\/index.php\/category\/openstack\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":231,"url":"https:\/\/carminebufano.com\/index.php\/2016\/07\/01\/how-to-fix-rdo-packstack-openstack-installation-error-rabbitmq-server-start-failed-with-exitcode-1\/","url_meta":{"origin":709,"position":1},"title":"How to fix RDO Packstack Openstack Installation Error: &#8220;rabbitmq-server start failed with exitcode 1&#8221;","author":"Carmine Bufano","date":"July 1, 2016","format":false,"excerpt":"","rel":"","context":"In &quot;CentOS&quot;","block_context":{"text":"CentOS","link":"https:\/\/carminebufano.com\/index.php\/category\/centos\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":153,"url":"https:\/\/carminebufano.com\/index.php\/2015\/07\/08\/launching-a-openstack-instance-from-turnkey-linux\/","url_meta":{"origin":709,"position":2},"title":"Launching a Openstack instance from Turnkey Linux","author":"Carmine Bufano","date":"July 8, 2015","format":false,"excerpt":"","rel":"","context":"In &quot;Openstack&quot;","block_context":{"text":"Openstack","link":"https:\/\/carminebufano.com\/index.php\/category\/openstack\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":137,"url":"https:\/\/carminebufano.com\/index.php\/2015\/01\/08\/resize-centos-7-partition-for-rdo-packstack-openstack-installer-juno\/","url_meta":{"origin":709,"position":3},"title":"Resize Centos 7 Partition for RDO Packstack Openstack installer Juno","author":"Carmine Bufano","date":"January 8, 2015","format":false,"excerpt":"","rel":"","context":"In &quot;Openstack&quot;","block_context":{"text":"Openstack","link":"https:\/\/carminebufano.com\/index.php\/category\/openstack\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":68,"url":"https:\/\/carminebufano.com\/index.php\/2014\/08\/26\/how-to-create-a-virtual-network-that-spans-every-project-in-your-openstack-based-cloud\/","url_meta":{"origin":709,"position":4},"title":"How to create a virtual network that spans every project in your Openstack based cloud.","author":"Carmine Bufano","date":"August 26, 2014","format":false,"excerpt":"","rel":"","context":"In &quot;Openstack&quot;","block_context":{"text":"Openstack","link":"https:\/\/carminebufano.com\/index.php\/category\/openstack\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":601,"url":"https:\/\/carminebufano.com\/index.php\/2023\/05\/27\/microstack-openstack-image-service\/","url_meta":{"origin":709,"position":5},"title":"Microstack Openstack Image Service","author":"Carmine Bufano","date":"May 27, 2023","format":false,"excerpt":"How to add Image to Glance For the impatient: Move the image to \/var\/snap\/microstack\/common\/images Create the image with: microstack.openstack image create --public --container-format=bare --disk-format=qcow2 --file \/var\/snap\/microstack\/common\/images\/FedoraCloudx86.qcow2 FedoraCloudx86 Microstack is admittedly not my favorite way to deploy openstack, probably because it takes some getting used to. Running openstack services in isolated\u2026","rel":"","context":"In &quot;Linux&quot;","block_context":{"text":"Linux","link":"https:\/\/carminebufano.com\/index.php\/category\/linux\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2023\/05\/ubuntu-microstack.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_shortlink":"https:\/\/wp.me\/p70MUT-br","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/posts\/709","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/comments?post=709"}],"version-history":[{"count":4,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/posts\/709\/revisions"}],"predecessor-version":[{"id":721,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/posts\/709\/revisions\/721"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/media\/712"}],"wp:attachment":[{"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/media?parent=709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/categories?post=709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/tags?post=709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}