Skip to content
This repository has been archived by the owner on Mar 4, 2025. It is now read-only.

webui backend showing stat output for deletion #203

Open
justinclift opened this issue May 3, 2023 · 2 comments
Open

webui backend showing stat output for deletion #203

justinclift opened this issue May 3, 2023 · 2 comments

Comments

@justinclift
Copy link
Member

Just noticed several instances of this showing up in the webui's backend log file.

Note that the user and database name have been replaced for privacy.

May 03 03:22:37 dbhub.io webui[190641]: 2023/05/03 03:22:37 [DELETE] 'webUI' removed Minio database object 'USERNAME/DATABASE', using bucket 'live-cua8zty58i' and id 'kuaya8'
May 03 03:22:37 dbhub.io webui[190641]: 2023/05/03 03:22:37 stat /home/dbhub/.dbhub/live_databases/USERNAME/DATABASE/live.sqlite: no such file or directory

The stat output there is making me wonder if perhaps we have the deletion running in the wrong order, or perhaps the verification of the deletion is going wrong.

So, I'm not sure there's anything wrong here than possibly over-logging, but we should look into it just in case.

justinclift added a commit that referenced this issue May 3, 2023

Verified

This commit was signed with the committer’s verified signature.
targos Michaël Zasso
Addresses #203, which I've not been able to replicate
in testing (so far).

Lets keep the issue open for now though, for future
follow up.
@justinclift
Copy link
Member Author

The error message seems to be coming from here:

log.Println(err)

I've just committed a workaround, but will leave this open for now, so I can look into it more properly later.

@justinclift
Copy link
Member Author

Hmmm, this is still showing up in our backend logs occasionally.

One possibility popped into mind... maybe it's something to do with a foreign key constraint stopping the deletion from occurring. eg missing CASCADE or similar

Something along these lines would fit the behaviour we're seeing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant