Skip to content

Using sqlx prepare output: "Error: failed to open the temporary file" #2907

Answered by abonander
Remalloc asked this question in Q&A
Discussion options

You must be logged in to vote

It looks like overlayfs doesn't support O_TMPFILE which is used by the atomic-write-file crate added in #2803

That was part of the 0.7.3 release so you should be able to downgrade to 0.7.2, but you probably need to specify the exact version:

# Only use 0.7.2
sqlx = { version = "=0.7.2" }

This is definitely something we'll want to fix as building in Docker is an important use case.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Remalloc
Comment options

@abonander
Comment options

Answer selected by abonander
@Remalloc
Comment options

@abonander
Comment options

@Remalloc
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants