I am using Foreman server version 1.19.0 with chef_handler_foreman installed on my chef client. I use Foreman to get the report and all my client information.
When the facts are upload I got an error in /var/log/foreman/production.log:
2018-09-14T15:57:36 [W|app|836a7] Action failed
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: missing FROM-clause entry for table "fact_names"
LINE 1: SELECT fact_names.name FROM "fact_values" WHERE "fact_values...
. . .
The host is created and I can see the report but it seems there is an issue to upload the facts.
I’m the reporter of the chef-issue 24789, and i’m running with my own PR from that issue in production and it works. However it depends a bit on your setup, i also use foreman-tasks, plus use mysql, not pg.
Thanks for your answer, I had a look at your code changes if there is no merge soon I probably will manually change and apply that on my server (no risk we are is testing mode)
Oh, you know what, please proceed with some caution. I just realized that I’m hitting another fault when using my own patch, that I need adress.
Not sure if they’re because of my changes or if there are additional fixing that needs to be done due to fact-refactoring. I’ll update the bugreport with findings when i know more.