-
I am testing creation of a license, and am getting 500 Internal Server Error. It's unclear what I need to look at in the logs to debug this...I don't see any errors in the logs around the time I made the requests. I am POSTing this body to /v1/licenses --
Getting back a 500 Internal Server Error with the following body --
I've searched the logs for that meta id, as well, and am not seeing it. Edit: When I re-tried I got a 400 Bad Request, and saw this in the log, which might give me something to go on:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
Assuming this is for CE/EE. The application logs will include a full stack trace for any internal server errors. It seems like somehow the Policy.find_by(id: '0b95ff5c-af0d-4b35-b877-36d3abb1ae84').inspect Sharing your Keygen CE/EE version may also be helpful. |
Beta Was this translation helpful? Give feedback.
-
When I check the policy, I do see a product attached. I'm not sure where to run "Policy.find_by(id: '0b95ff5c-af0d-4b35-b877-36d3abb1ae84').inspect" to get the output. I ran this in pgsql:
and got this output:
When I re-tried posting this request, it went through and created a license. The keygen edition is CE. It's a clustered system with four nodes sharing external posgres and redis. |
Beta Was this translation helpful? Give feedback.
-
Alright, I think I tracked down the issue, and this actually explains another issue I had earlier. We are provisioning all of this via Ansible scripts, and the task to pull the keygen docker image using the "latest" tag was not including the "force: true" option. This means that when we added two additional nodes to the cluster, only the new nodes got the new version. The previous issue was that the database migrations for the new version were not being run when I deployed via Ansible, but ran fine when I used the command line (which I just happened to run on one of the new nodes that had the later version installed...). Updating my Ansible scripts and re-deploying, fingers crossed. |
Beta Was this translation helpful? Give feedback.
Alright, I think I tracked down the issue, and this actually explains another issue I had earlier.
We are provisioning all of this via Ansible scripts, and the task to pull the keygen docker image using the "latest" tag was not including the "force: true" option. This means that when we added two additional nodes to the cluster, only the new nodes got the new version.
The previous issue was that the database migrations for the new version were not being run when I deployed via Ansible, but ran fine when I used the command line (which I just happened to run on one of the new nodes that had the later version installed...).
Updating my Ansible scripts and re-deploying, fingers crossed.