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

Random error psycopg2.errors.UndefinedFunction: function splitgraph_api.get_tagged_images #672

Open
mingfang opened this issue Apr 27, 2022 · 2 comments

Comments

@mingfang
Copy link
Contributor

I'm using a splitfile to build images and while it works most of the time, sometimes it fails with these errors

Gathering remote metadata...
error: psycopg2.errors.UndefinedFunction: function splitgraph_api.get_tagged_images(unknown, unknown) does not exist
error: LINE 1: SELECT image_hash, tag FROM "splitgraph_api"."get_tagged_ima...
error:                                     ^
error: HINT:  No function matches the given name and argument types. You might need to add explicit type casts.

This started to happen after upgrading to v0.3.9 and using the new sgr build --layered-query feature.

@mildbyte
Copy link
Contributor

Is this running against data.splitgraph.com or your own custom remote engine? Can you rerun this with sgr --verbosity DEBUG build and, when it happens again, provide that output and the logs of the local/remote engine? Looks like the API functions on the engine go missing, which is definitely not supposed to happen.

@mingfang
Copy link
Contributor Author

I'm getting this on my local engine.
My setup is based on this https://github.com/splitgraph/splitgraph/tree/master/examples/push-to-other-engine
The problem doesn't happen all the time.
I'm testing out a guess that this is caused by multiple simultaneous "local" splitfile builds hitting the same "remote" engine at the same time. It could be some race condition happened on the remote engine.

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