Nope, they do not show up when I run the knife search
command:
[chef-repo]$ knife search "*:*"
0 items found
So this suggests it’s a problem with the Solr indexing.
Upon someone else’s suggestion, I did try chef-server-ctl tail
but I did not see anything helpful. I am assuming that the problem is with indexing the node when it’s added (As I was previously able to see the initial node that was created). The logs when adding a node show the following: (Shortened for brevity, but I can add the full thing if needed)
==> /var/log/opscode/nginx/access.log <==
"POST /organizations/myorganisation/clients HTTP/1.1" 201
- Client validation?
"GET /organizations/myorganisation/nodes/node1 HTTP/1.1" 404
- It’s not in the server yet so 404 makes sense to me
The below would make sense to me as the node is not there yet.
==> /var/log/opscode/opscode-erchef/crash.log <==
=ERROR REPORT====
{<<"method=GET; path=/organizations/myorganisation/nodes/node1; status=404; ">>,"Not Found"}
==> /var/log/opscode/opscode-erchef/erchef.log <==
[error] {<<"method=GET; path=/organizations/myorganisation/nodes/node1; status=404; ">>,"Not Found"}
==> /var/log/opscode/opscode-erchef/current <==
[error] {<<"method=GET; path=/organizations/myorganisation/nodes/node1; status=404; ">>,"Not Found"}
Trying to add the node?
==> /var/log/opscode/nginx/access.log <==
"POST /organizations/myorganisation/nodes HTTP/1.1" 201
node1 was in the post data
==> /var/log/opscode/nginx/internal-chef.access.log <==
"GET /organizations/myorganisation/principals/node1 HTTP/1.1" 200 "0.012" 591 "-" "opscode-reporting-server reporting pubkey"
"GET /organizations/myorganisation/nodes/node1/_identifiers HTTP/1.1" 200 "0.009" 131 "-" "opscode-reporting-server reporting pubkey"
==> /var/log/opscode/nginx/access.log <==
"POST /organizations/myorganisation/reports/nodes/node1/runs HTTP/1.1" 201
"POST /organizations/myorganisation/environments/_default/cookbook_versions HTTP/1.1" 200
"PUT /organizations/myorganisation/nodes/node1 HTTP/1.1" 200
"POST /organizations/myorganisation/reports/nodes/node1/runs/af33770b-938d-46db-a525-bfd360203b1e HTTP/1.1" 200
==> /var/log/opscode/oc_bifrost/requests.log.1 <==
A whole bunch of GET
s PUT
s and POST
s for actors, objects and containers. All with status=20x
Looked for the node, didn’t find the node, added the node, looked for the node, found the node…
==> /var/log/opscode/opscode-erchef/requests.log.1 <== erchef@127.0.0.1 method=POST; path=/organizations/myorganisation/clients; status=201 erchef@127.0.0.1 method=GET; path=/organizations/myorganisation/nodes/node1; status=404 erchef@127.0.0.1 method=POST; path=/organizations/myorganisation/nodes; status=201 erchef@127.0.0.1 method=GET; path=/organizations/myorganisation/principals/node1 erchef@127.0.0.1 method=GET; path=/organizations/myorganisation/nodes/node1/_identifiers erchef@127.0.0.1 method=POST; path=/organizations/myorganisation/environments/_default/cookbook_versions; status=200 erchef@127.0.0.1 method=PUT; path=/organizations/myorganisation/nodes/node1; status=200
==> /var/log/opscode/opscode-reporting/reporting.log.1 <==
oc_reporting@127.0.0.1 method=POST; path=/organizations/myorganisation/reports/nodes/node1/runs; status=201;
oc_reporting@127.0.0.1 method=POST; path=/organizations/myorganisation/reports/nodes/node1/runs/af33770b-938c-46db-a525-bfd360203b1e; status=200;
So one thing of note is that i’m not seeing anything here from Solr, but the service is up…
[chef-repo]$ sudo chef-server-ctl status run: bookshelf: (pid 11006) 72303s; run: log: (pid 5561) 1186370s run: nginx: (pid 11049) 72302s; run: log: (pid 5772) 1186366s run: oc_bifrost: (pid 11055) 72302s; run: log: (pid 5366) 1186375s run: oc_id: (pid 11090) 72301s; run: log: (pid 5383) 1186374s run: opscode-erchef: (pid 11123) 72300s; run: log: (pid 5629) 1186369s run: opscode-expander: (pid 11156) 72299s; run: log: (pid 5502) 1186371s run: opscode-reporting: (pid 11161) 72299s; run: log: (pid 20573) 950445s run: opscode-solr4: (pid 11255) 72297s; run: log: (pid 5460) 1186372s run: postgresql: (pid 11304) 72296s; run: log: (pid 5288) 1186376s run: rabbitmq: (pid 11321) 72296s; run: log: (pid 5177) 1186378s run: redis_lb: (pid 11367) 72295s; run: log: (pid 5768) 1186366s
So where do I look from here?
Thanks,
Tom…