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

Error: Can't find resource 'data-config.xml' in classpath or '/configs/products.AUTOCREATED #59

Open
hadupa opened this issue Nov 17, 2023 · 1 comment

Comments

@hadupa
Copy link

hadupa commented Nov 17, 2023

Hello, thanks for making the package and the eventual reply. Before we begin:

-I'm running Solr 9.4 in SolrCloud mode
-I'm familiar with Splainer but do not have it installed or running with this instance
-Using embedded Zookeeper, default localhost:8983
-Using the solrconfig.xml and schema.xml from the example_techproducts_configs example
-No other packages have been installed
-I have tried running the command with the config.xml file from the tutorial in every file directory/folder possible within Solr

There were no issues following the tutorial set-up instructions until this step:

curl http://localhost:8983/solr/products/dataimport?command=full-import

This is the result:

{
"responseHeader":{
"status":500,
"QTime":2
},
"initArgs":["defaults",["config","data-config.xml"]],
"command":"full-import",
"error":{
"msg":"Can't find resource 'data-config.xml' in classpath or '/configs/products.AUTOCREATED', cwd=/mnt/e/***/solr-9.4.0/server",
...
BIG BLOCK OF TEXT
...
"code":500
}

Thanks again!

@saimanikanta73
Copy link

saimanikanta73 commented Nov 19, 2023

  1. Check if data-config.xml is uploaded
  2. If yes, check if the name is data-config.xml or any other, I faced issue when I uploaded with different name.
  3. if no data-config file is present, click on collections tab in solr UI> click on collection>check the config Name, if it is not products.AUTOCREATED, replace products.AUTOCREATED with whatever name is present. and repeat the process.
    ./server/scripts/cloud-scripts/zkcli.sh -z localhost:9983 -cmd putfile "/configs/products.AUTOCREATED/data-config.xml" data-config.xml
    image

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