Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to upload config with bin files #45

Open
mruknowme opened this issue Sep 12, 2024 · 6 comments
Open

Unable to upload config with bin files #45

mruknowme opened this issue Sep 12, 2024 · 6 comments

Comments

@mruknowme
Copy link

Keep getting errors about bin files when trying to upload configs:

Not uploading file cloud-config-set/en-pos-maxent.bin to configset, as it matched the MAGIC signature of a forbidden mime type application/zip

Tried Solr8 and Solr9. Tried uploading configs from Drupal Admin, via drush and by placing into .ddev/sold/configsets.

Also in dblog seeing this index_id error:

{ "error":{ "metadata":["error-class","org.apache.solr.common.SolrException","root-error-class","org.apache.solr.common.SolrException"], "msg":"undefined field index_id", "code":400 } }

Does anybody know why this might be happening?

@rfay
Copy link
Member

rfay commented Sep 12, 2024

It looks like you're trying to upload a zipfile, when you think it's a .bin file. Is that possible? Check what you're trying to upload.

@mruknowme
Copy link
Author

Hi @rfay , nope, certainly .bin files. Tried different configs - including default ones from Drupal search_api_solr jump-start.

@rfay
Copy link
Member

rfay commented Sep 13, 2024

Try doing a file on those files to see what it says.

Please try a plain vanilla D10 with search_api_solr and see if this happens. Just use the quickstart, https://ddev.readthedocs.io/en/stable/users/quickstart/#drupal

I've done the config with ddev-solr and search_api_solr a number of times without seeing this.

@mruknowme
Copy link
Author

mruknowme commented Sep 13, 2024

Hi @rfay , appreciate your quick responses!

file /path/redacted/solr_8.x_config/en-token.bin
/path/redacted/solr_8.x_config/en-token.bin: Zip archive data, at least v2.0 to extract, compression method=deflate

So indeed it shows zip. But what should it be? I am running file on these directly on:

None of them are expected to work then? In which case what Solr8 or Solr9 config should definitely work?

Thanks

@rfay
Copy link
Member

rfay commented Sep 13, 2024

Did you go through the setup using the instructions in https://github.com/ddev/ddev-solr?tab=readme-ov-file#drupal-and-search-api-solr on a new test Drupal installation, without changing anything?

@rfay
Copy link
Member

rfay commented Sep 13, 2024

Oh, and did you temporarily disable firewall and VPN and virus checker?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants