- Issue created by @thoogend
- 🇷🇴Romania bbu23
Hi, thanks for reporting this issue, and providing detailed information.
It seems that the index selector field might be affected.
I'll look into it. - 🇷🇴Romania bbu23
Could you confirm the following:
1. You were not using the key module when you initially defined your opensolr credentials
2. You've recently installed the key module
3. If you navigate to opensolr config form /admin/config/search/search-api/opensolr you see the secret key select with an empty value set to "- Select a key -" - 🇺🇸United States thoogend
1 and 2: The key module was installed and in use before installing search_api_opensolr. I can't remember now for sure, but believe the initial setup I did for opensolr was done with the key module.
3. When I navigate to the opensolr config form, it is not empty. I see the key name I setup.I double checked the Automation REST API Key in our opensolr account and was surprised to see that it does not match the value I stored in the string. Should I update the key value to match and test again?
- 🇷🇴Romania bbu23
Interesting. Yes, please. Try updating the key to match the one in your opensolr account and let me know if you can edit the Server after that.
- 🇺🇸United States thoogend
That fixed the problem. It also fixed the related issue.
I wonder why the API key changed. I did not regenerate it. We tested with the free account on opensolr a couple of days ago. When indexing failed part way through, we worked with opensolr support to reload the index. After they did that, the drush sapi-i command ran through to completion and everything worked wonderfully (search performance with opensolr as the backend instead of the database is so much faster). Is it possible the API key was regenerated as a part of that reload?
Thank you so much for your support in fixing this issue! I really appreciate it.
- 🇷🇴Romania bbu23
That's excellent news! I'm really glad to hear that the fix worked and resolved both the main issue and the related one.
Regarding the API key changing unexpectedly on your end, I honestly don't know why that would have happened. On my side, during development and testing, I've sometimes accidentally regenerated keys, so I know it can occur. However, if your experience was different and you didn't manually regenerate it, it's intriguing, I'll have to check what other opensolr actions can lead to this.
I'll keep both issues open for now. My goal is to prevent similar crashes from happening and to ensure that if any failures do occur, the module provides clearer status messages so issues like this are easier to diagnose in the future.
Thank you for your collaboration while we worked through this. I'm really glad I could help!
- 🇺🇸United States thoogend
If you work on code updates related to these issues, I would be more than happy to help test patches. Thanks again for your help!
- 🇷🇴Romania bbu23
That would be a great help!
Thank you, I will post the updates on the issues when I have a patch.