Open kyleavery opened 6 months ago
Update: I tried uploading a simple .txt file and the result was the same. Doesn't seem to be related to PDF files specifically or the size of my original file.
Odd, sounds like the Postgres schema isn't even initialized for some some reason. Some questions:
http://<NEMESIS>/hasura/console/data/sql
and run select * from file_data_enriched;
does it succeed?If your cluster is still running, you could retry redeploying postgres and then repeating the query in question 4 above to ensure that the table is being created. Steps to redeploy postgres are as follows:
kubectl delete deployment postgres
sleep 5 # Wait for it to delete
kubectl apply -f kubernetes/postgres/deployment.yaml
What OS are you using?
Debian 11
What specs did you give your k8s cluster?
Minikube has default 3 CPUs and 12GB memory. Confirmed with minikube config view vm-driver
Does your k8s host OS actually have the resources in question 2?
The host has 4 CPUs and 16GB memory.
If you navigate to http://
/hasura/console/data/sql and run select * from file_data_enriched; does it succeed?
No. I ran the query and this was the result:
SQL Execution Failed relation "file_data_enriched" does not exist.null
{
"arguments": [],
"error": {
"description": null,
"exec_status": "FatalError",
"hint": null,
"message": "relation \"file_data_enriched\" does not exist",
"status_code": "42P01"
},
"prepared": false,
"statement": "select * from file_data_enriched;"
}
If your cluster is still running, you could retry redeploying postgres and then repeating the query in question 4...
The result was the same. I also tried deleting the persistent volume, but that did not change anything for me.
I haven't had time to pinpoint the exact setting, but the issue seems to be caused by the changes I made to my config file. I'm guessing it is the username or password for one of the services.
It was the postgres_user
variable. I can change everything else, including the postgres_password
, and it works fine.
I setup a fresh instance of Nemesis and uploaded a PDF file. Accessing the file by UUID or browsing to
/Files
returns the following error message. I've completely rebuilt Nemesis (minikube delete...
) but the result is the same.